/* Inspiolin site styles. Colours meet WCAG 2.2 AA contrast in light and dark mode. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --footer-bg: #f1ede5;
  --text: #1c1b19;
  --muted: #55524c;
  --accent: #8a3b12;
  --accent-text: #ffffff;
  --logo-accent: #b5541c;
  --border: #d6d1c6;
  --field-border: #6b675f;
  --focus: #0b57d0;
  --error: #b3261e;
  --success: #1e7a3c;
  --shadow: 0 10px 30px rgba(28, 27, 25, 0.12);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #211f1d;
    --footer-bg: #0f0e0d;
    --text: #f2efe9;
    --muted: #c4bfb6;
    --accent: #f0a46b;
    --accent-text: #1c1b19;
    --logo-accent: #f0a46b;
    --border: #3d3a36;
    --field-border: #a29d94;
    --focus: #8ab4f8;
    --error: #ffb4ab;
    --success: #7fd69a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  background: var(--surface); color: var(--text); font-weight: 600;
  padding: 12px 18px; border: 3px solid var(--focus); border-radius: 8px;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.page { max-width: 780px; padding-top: 40px; padding-bottom: 56px; }

/* ---------- Header and navigation ---------- */
header.site { background: var(--surface); border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; padding: 4px 0; }
.logo { height: 46px; width: auto; display: block; }
.logo .la { fill: var(--logo-accent); }
.logo .ls { stroke: var(--logo-accent); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
nav a {
  display: inline-block; min-height: 44px; padding: 10px 14px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 500;
}
nav a:hover { background: var(--bg); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Type ---------- */
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.55rem; line-height: 1.3; margin: 48px 0 12px; }
h3 { font-size: 1.15rem; margin: 26px 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 6px; letter-spacing: 0.02em; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--accent); color: var(--accent-text); padding: 12px 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--accent);
}
.button:hover { text-decoration: underline; }
.button.ghost { background: transparent; color: var(--accent); }
button.button { font: inherit; font-weight: 700; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }

/* ---------- Home: hero with the stage photo ---------- */
.hero { position: relative; }
.hero-photo img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; object-position: center 45%; background: #0d0b0a; }
.hero-text { position: relative; }
.hero-card {
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  padding: 28px 30px; max-width: 620px; margin: -120px 0 0; position: relative;
  border: 1px solid var(--border);
}
.hero-card h1 { font-size: 2.6rem; }

/* ---------- Home sections ---------- */
.journey { display: grid; grid-template-columns: 1fr 170px; gap: 40px; align-items: center; }
.violin { width: 170px; height: auto; justify-self: center; }
.tool { display: flex; gap: 22px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.tool > img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.tool h3 { margin-top: 0; font-size: 1.35rem; }
.tool h4 { margin: 22px 0 4px; font-size: 1.05rem; }
.features { padding-left: 1.2em; }
.features li { margin-bottom: 4px; }
.note { color: var(--muted); margin: 0 0 12px; }
.downloads { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }

.social { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); text-decoration: none; font-weight: 600;
}
.social a:hover { border-color: var(--accent); text-decoration: underline; }
.icon { width: 22px; height: 22px; fill: currentColor; flex: none; }

.cta { margin: 56px 0 64px; padding: 28px 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); border-left: 6px solid var(--accent); }
.cta h2 { margin-top: 0; }
.cta p:last-child { margin-bottom: 0; }

/* ---------- Contact form ---------- */
form.contact { max-width: 600px; margin-top: 24px; }
.field { margin: 0 0 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; font: inherit; color: var(--text); background: var(--surface);
  border: 2px solid var(--field-border); border-radius: 10px; padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 10em; }
.hint { color: var(--muted); font-size: 0.92rem; margin: 6px 0 0; }
.field.has-error { border-left: 4px solid var(--error); padding-left: 14px; }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-weight: 700; margin: 0 0 6px; }
.error-summary { border: 3px solid var(--error); border-radius: 12px; padding: 14px 20px; margin: 16px 0 20px; background: var(--surface); }
.error-summary h2 { margin: 0 0 6px; font-size: 1.2rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.hp { display: none; }

/* ---------- Footer ---------- */
footer.site { background: var(--footer-bg); border-top: 1px solid var(--border); color: var(--text); padding: 44px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-brand .logo { height: 40px; }
.footer-about p { color: var(--muted); margin: 10px 0 0; }
.footer-title { font-size: 1.05rem; margin: 0 0 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; min-height: 32px; }
.trust { list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.trust li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.trust li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent); }
.footer-mail { margin: 14px 0 0; }
.copyright { border-top: 1px solid var(--border); margin-top: 36px; padding-top: 16px; padding-bottom: 28px; color: var(--muted); font-size: 0.92rem; }
.copyright p { margin: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-card { margin-top: -80px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  html { font-size: 106.25%; }
  .bar { justify-content: center; }
  .logo { height: 40px; }
  nav ul { justify-content: center; }
  nav a { padding: 10px 12px; }
  .hero-photo img { max-height: 300px; }
  .hero-card { margin: -36px 0 0; padding: 22px 20px; border-radius: 14px; }
  .hero-card h1, h1 { font-size: 1.85rem; }
  h2 { font-size: 1.4rem; }
  .journey { grid-template-columns: 1fr; gap: 8px; }
  .violin { display: none; }
  .tool { flex-direction: column; padding: 20px; }
  .tool > img { width: 64px; height: 64px; }
  .downloads .button, .actions .button { width: 100%; }
  .cta { padding: 22px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (forced-colors: active) {
  .button, .social a, .social-icons a, .hero-card, .tool, .cta { border: 2px solid CanvasText; }
}

/* Contact form success message */
.success { border: 3px solid var(--success); border-radius: 12px; padding: 16px 20px; margin: 16px 0 24px; background: var(--surface); }
.success p { margin: 0 0 8px; }
.success p:last-child { margin-bottom: 0; }
