/* Kilnhaus — four brand colours, nothing else.
   Tints are mixed from these four with color-mix(). */
:root {
  --color-primary: #2340A6;    /* cobalt underglaze */
  --color-accent: #E8A21C;     /* ochre glaze */
  --color-background: #EEF1E7; /* pale stoneware slip */
  --color-text: #26192A;       /* manganese, near-black */

  --hairline: color-mix(in srgb, var(--color-text) 22%, var(--color-background));
  --muted: color-mix(in srgb, var(--color-text) 78%, var(--color-background));
  --wash: color-mix(in srgb, var(--color-primary) 9%, var(--color-background));

  --font-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; line-height: 1.2; }

p { margin: 0 0 1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); text-decoration-thickness: 0.09em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999rem; top: 0;
  background: var(--color-text); color: var(--color-background);
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

.fill-primary { fill: var(--color-primary); }
.fill-accent { fill: var(--color-accent); }
.fill-text { fill: var(--color-text); }
.fill-background { fill: var(--color-background); }
.stroke-primary { stroke: var(--color-primary); fill: none; }
.stroke-accent { stroke: var(--color-accent); fill: none; }
.stroke-text { stroke: var(--color-text); fill: none; }

/* ---------- Header ---------- */
.site-header { padding-block: 1.1rem; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 2rem;
}
.site-header .logo img { height: 40px; width: auto; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem;
}
.site-nav a {
  color: var(--color-text); text-decoration: none; font-weight: 500;
  font-size: 1rem; padding-block: 0.35rem; display: inline-block;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--hairline); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.button {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1.05rem;
  padding: 0.8rem 1.4rem; border-radius: 999px;
  background: var(--color-primary); color: var(--color-background);
  border: 2px solid var(--color-primary);
  transition: transform 120ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.quiet { background: transparent; color: var(--color-primary); }
.on-primary .button { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-text); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2rem, 6vw, 5rem); }
.hero h1 { max-width: 12em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; max-width: 32em; margin-top: 1.5rem; }
.shelf { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.shelf svg { width: 100%; }
.shelf figcaption {
  font-size: 0.95rem; color: var(--muted);
  padding-top: 0.7rem;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section > .wrap > h2 { max-width: 16em; margin-bottom: 1.25rem; }
.section-intro { font-size: 1.2rem; max-width: 34em; }

.about .wrap { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 52rem) {
  .about .wrap { grid-template-columns: 5fr 6fr; align-items: start; }
}

/* Three audiences: each vessel stands on one continuous shelf */
.audiences { background: var(--wash); }
.audience-grid { display: grid; gap: 3rem; margin-top: 3rem; }
.audience .vessel {
  height: 9.5rem; display: flex; align-items: flex-end;
  border-bottom: 4px solid var(--color-text); margin-bottom: 1.5rem;
}
.audience .vessel svg { height: 8.5rem; width: auto; margin-left: 0.5rem; }
.audience h3 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.audience ul { padding-left: 1.1rem; margin: 1rem 0 1.25rem; }
.audience li { margin-bottom: 0.3rem; }
.audience li::marker { color: var(--color-primary); }
.audience a { font-weight: 600; }
@media (min-width: 52rem) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .audience > *:not(.vessel) { padding-right: 2.5rem; }
}

/* How it works: a real sequence, so it is numbered */
.sequence { list-style: none; margin: 3rem 0 0; padding: 0; counter-reset: step; display: grid; gap: 2.5rem; }
.sequence li { counter-increment: step; }
.sequence li::before {
  content: counter(step);
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: var(--color-primary); display: block; margin-bottom: 0.75rem;
}
.sequence h3 { margin-bottom: 0.5rem; }
@media (min-width: 40rem) { .sequence { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .sequence { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; } }

/* Kilnhaus Pass band */
.on-primary { background: var(--color-primary); color: var(--color-background); }
.on-primary a:not(.button) { color: var(--color-background); }
.pass-band .wrap { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 52rem) { .pass-band .wrap { grid-template-columns: 6fr 5fr; } }
.pass-card {
  background: var(--color-accent); color: var(--color-text);
  border-radius: 1.25rem; padding: 1.75rem 2rem 1.5rem;
  max-width: 24rem; aspect-ratio: 8 / 5; justify-self: center; width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(-4deg);
  box-shadow: 0.6rem 0.6rem 0 var(--color-text);
}
.pass-card .name { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; }
.pass-card .terms { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 1rem; }

/* ---------- Inner pages ---------- */
.page-head { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-head .wrap { display: grid; gap: 2rem; align-items: end; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 13em; }
.page-head .vessel { border-bottom: 4px solid var(--color-text); display: flex; justify-content: center; align-items: flex-end; }
.page-head .vessel svg { height: 11rem; width: auto; }
@media (min-width: 52rem) { .page-head .wrap { grid-template-columns: 1fr 15rem; } }
@media (max-width: 51.99rem) { .page-head .vessel { order: -1; justify-content: flex-start; } .page-head .vessel svg { height: 7rem; margin-left: 0.5rem; } }

.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; max-width: 46rem; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 2.5rem 4.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -0.2rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--color-accent); color: var(--color-text);
  font-family: var(--font-display); font-size: 1.3rem;
  display: grid; place-items: center;
}
.steps li::after {
  content: ""; position: absolute; left: calc(1.375rem - 1.5px); top: 2.9rem; bottom: 0.35rem;
  width: 3px; background: var(--hairline);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }

.short-version { background: var(--wash); }
.checklist { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.75rem 2.5rem; max-width: 52rem; }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  border: 3px solid var(--color-primary);
}
@media (min-width: 40rem) { .checklist { grid-template-columns: 1fr 1fr; } }

.next { border-top: 4px solid var(--color-text); }
.next .wrap { padding-block: 0; }

.price { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 5rem); line-height: 1; margin: 0 0 0.5rem; }
.price small { font-family: var(--font-body); font-size: 1.1rem; font-weight: 500; }

.two-up { display: grid; gap: 2.5rem 4rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .two-up { grid-template-columns: 1fr 1fr; } }
.two-up h3 { margin-bottom: 0.5rem; }

/* ---------- Help ---------- */
.who { display: grid; gap: 2rem; margin-top: 2.5rem; }
@media (min-width: 52rem) { .who { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.who h3 { margin-bottom: 0.4rem; }
.who div { border-top: 4px solid var(--color-text); padding-top: 1rem; }

.jump { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-weight: 600; }

.faq-group { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--hairline); }
.faq-group .wrap { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 52rem) {
  .faq-group .wrap { grid-template-columns: 16rem 1fr; }
  .faq-group h2 { position: sticky; top: 1.5rem; align-self: start; }
}
.faq-group h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.faq article { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--hairline); }
.faq article:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.faq h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

/* ---------- 404 ---------- */
.lost { padding-block: clamp(3rem, 10vw, 8rem); }
.lost svg { height: 9rem; width: auto; margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: var(--color-background); padding-block: 3.5rem 2rem; margin-top: 0; }
.site-footer a { color: var(--color-background); }
.site-footer .wrap { display: grid; gap: 2.5rem; }
.site-footer .cols { display: grid; gap: 2rem; }
@media (min-width: 46rem) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; } }
.site-footer .wordmark { font-family: var(--font-display); font-size: 2rem; line-height: 1; margin-bottom: 0.75rem; }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer .fine {
  border-top: 1px solid color-mix(in srgb, var(--color-background) 30%, var(--color-text));
  padding-top: 1.25rem; font-size: 0.85rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
}
.site-footer .fine p { margin: 0; max-width: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}
