/* NovaCoach – "the drawing office". Paper, asphalt blue, one yellow centre line. */
:root {
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --ink: #14243a;
  --ink-2: #2c3e57;
  --muted: #5d6b7e;
  --line: #d8d2c4;
  --yellow: #f2c230;
  --yellow-ink: #8a6a00;
  --white: #fffdf9;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101a2a; --paper-2: #16233a; --ink: #f1ecdf; --ink-2: #d9d2c2; --muted: #a2aab8; --line: #2c3b55; --white: #14213a; --yellow-ink: #f2c230;
  }
}
:root[data-theme="dark"] { --paper: #101a2a; --paper-2: #16233a; --ink: #f1ecdf; --ink-2: #d9d2c2; --muted: #a2aab8; --line: #2c3b55; --white: #14213a; --yellow-ink: #f2c230; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--yellow-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-variation-settings: "opsz" 144; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 40em; }
.big { font-size: 1.25rem; line-height: 1.5; font-family: var(--serif); font-weight: 400; }
.small { font-size: .9rem; color: var(--muted); }
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--yellow); padding-left: 1em; max-width: 44em; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--yellow-ink); margin-bottom: 1.2em; }
.tag { text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: 600; color: var(--muted); margin: 0 0 .6em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.block { padding: 4rem 16px; }
@media (min-width: 900px) { .block { padding: 5.5rem 16px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* The centre line: a dashed yellow rule under h2s and between sections */
.h2-rule { position: relative; padding-bottom: .55em; margin-bottom: 1.4em; }
.h2-rule::after { content: ""; position: absolute; left: 0; bottom: 0; width: 160px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 28px, transparent 28px 44px); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: var(--ink); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 4px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 6px, transparent 6px 10px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark { background: var(--yellow); } :root:not([data-theme="light"]) .brand-mark::after { background: repeating-linear-gradient(90deg, #101a2a 0 6px, transparent 6px 10px); } }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.01em; }
.brand-name b { font-weight: 600; }
.nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.nav a { text-decoration: none; }
.nav-cta { font-weight: 600; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .2em .8em; font-size: .85rem; }

/* Hero */
.hero { padding-top: 3rem; overflow: hidden; position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-grid > *, .why-grid > *, .course-grid > *, .contact-grid > *, .about-head > *, .cards-2 > *, .cards-3 > *, .footer-inner > * { min-width: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } .hero { padding-top: 5rem; } }
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .08s } .hero-text > :nth-child(3) { animation-delay: .16s } .hero-text > :nth-child(4) { animation-delay: .24s } .hero-text > :nth-child(5) { animation-delay: .32s }
@keyframes rise { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none; } }
.hero-photo { margin: 0; position: relative; width: 100%; max-width: 460px; justify-self: center; animation: rise .9s .2s both; }
.hero-photo img { border-radius: var(--r); aspect-ratio: 3 / 4; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(20,36,58,.45); }
.hero-photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); border-radius: var(--r); z-index: -1; }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: .8em 1.4em; border-radius: var(--r); font-weight: 600; border: 1px solid var(--ink); transition: transform .15s, background .15s; }
.btn:hover { background: var(--ink-2); color: var(--paper); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: .45em 1em; font-size: .9rem; }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn { background: var(--yellow); color: #101a2a; border-color: var(--yellow); } :root:not([data-theme="light"]) .btn:hover { background: #ffd65a; color: #101a2a; } :root:not([data-theme="light"]) .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); } }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-size: .92rem; color: var(--muted); }
.facts li::before { content: "— "; color: var(--yellow); }

/* Section drawing: a road cross section (normalprofil) */
.section-drawing { margin-top: 3rem; border-bottom: 1px solid var(--line); }
.section-drawing svg { width: min(100%, 1200px); height: auto; max-height: 200px; display: block; margin: 0 auto; }
.section-drawing .fillbody { fill: var(--paper-2); stroke: none; opacity: 0; animation: fade 1s 2s forwards; }
.section-drawing .draw { fill: none; stroke: var(--ink-2); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2.2s .3s ease-out forwards; }
.section-drawing .terrain { stroke-width: 1.2; opacity: .6; }
.section-drawing .road { stroke-width: 2.4; animation-delay: .9s; }
.section-drawing .layers { stroke-width: 1; opacity: .5; animation-delay: 1.6s; }
.section-drawing .centre { stroke: var(--yellow); stroke-width: 2; stroke-dasharray: 14 6 2 6; stroke-dashoffset: 0; animation: fade .8s 2.2s both; opacity: 0; }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-text > *, .hero-photo { animation: none; } .section-drawing .draw { animation: none; stroke-dashoffset: 0; } .section-drawing .centre, .section-drawing .fillbody { animation: none; opacity: 1; } }

/* Cards */
.cards-3 { display: grid; gap: 2rem; }
.cards-2 { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); } }
.card-plain h3 { margin-top: 0; }
.card-plain h3::before { content: ""; display: block; width: 36px; height: 4px; background: var(--yellow); margin-bottom: 1rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.6rem 1.4rem; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -28px rgba(20,36,58,.5); }
.card h3 { margin: 0 0 .6em; font-size: 1.35rem; }
.card h3 a { text-decoration: none; }
.card p:last-of-type { margin-bottom: 1.2em; }
.more { margin-top: auto; font-weight: 600; text-decoration: none; }
.more::after { content: " \2192"; }
.band { background: var(--paper-2); padding: 4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .band { padding: 5.5rem 0; } }

/* Why */
.why-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.4fr .6fr; gap: 5rem; align-items: start; } }
.numbers { display: grid; gap: 1.2rem; border-left: 1px solid var(--line); padding-left: 1.6rem; }
.numbers div { display: grid; }
.numbers b { font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1; }
.numbers span { color: var(--muted); font-size: .95rem; }

/* Course pages */
.page-head h1 { margin-bottom: .4em; }
.page-head { padding-bottom: 1.5rem; }
.page-head + .course, .page-head + .contact-grid { padding-top: 2.5rem; }
.course { border-top: 1px solid var(--line); }
.course-head { max-width: 46em; }
.course-grid { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .course-grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }
.course-aside { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; align-self: start; position: sticky; top: 90px; }
.course-aside h3:first-child { margin-top: 0; }
.course-aside ul { padding-left: 1.2em; }
.course-aside .btn { margin-top: 1rem; width: 100%; text-align: center; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 3px; background: var(--yellow); }

/* About */
.about-head { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .about-head { grid-template-columns: 1.2fr .8fr; } }
.about-photo { margin: 0; max-width: 360px; }
.about-photo img { border-radius: var(--r); aspect-ratio: 3/4; object-fit: cover; }
.story .story-row { display: grid; gap: .6rem 3rem; padding: 2rem 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .story .story-row { grid-template-columns: 1fr 2fr; } }
.story h2 { font-size: 1.5rem; margin: 0; }
.story p { margin: 0; max-width: 44em; }
.timeline { display: grid; gap: .8rem; margin: 0; }
.timeline div { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.timeline dt { font-family: var(--serif); font-weight: 600; }
.timeline dd { margin: 0; }
.quote { font-family: var(--serif); font-size: 1.4rem; margin: 0; max-width: 34em; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .8em; }

/* Form */
.form-block { max-width: 760px; }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr .7fr; gap: 4rem; } }
.form { display: grid; gap: 1.2rem; }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: .7em .8em; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: var(--ink); }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
legend { font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.choice { display: flex !important; gap: .6rem; align-items: center; font-weight: 400 !important; }
.choice input { width: auto; margin: 0; accent-color: var(--ink); }
.share { display: flex !important; gap: .6rem; align-items: flex-start; font-weight: 400 !important; background: var(--paper-2); padding: .8em 1em; border-radius: var(--r); border-left: 3px solid var(--yellow); }
.share input { width: auto; margin-top: .3em; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.form-foot .small { margin: 0; max-width: 34em; }
.form .btn { cursor: pointer; font: inherit; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); padding: 3rem 0 2.5rem; margin-top: 2rem; font-size: .95rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.footer-col .brand-name { display: block; margin-bottom: .3rem; }
.tagline { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.footer-col.small p { color: var(--muted); }
