/* One Continuum — onecontinuum.co.nz
   Layout: full-width colour bands, each with a centred 1180px column; text column ~65ch. */
:root {
  --ground: #FBFBF9;
  --card: #FFFFFF;
  --mist: #EEF5F4;
  --ink: #12284A;
  --muted: #3B4656;
  --line: #DDE3E2;
  --teal: #0F7C7A;
  --teal-ink: #0B6B69;
  --on-teal: #FFFFFF;
  --band: #12284A;
  --band-raised: #1D3760;
  --on-band: #FFFFFF;
  --on-band-muted: #DCE6F2;
  --band-accent: #8FD3CC;
  --focus: #E58A2E;

  --display: "Literata", "Iowan Old Style", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.94rem;
  --step-0: 1.1875rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  --step-3: clamp(2rem, 1.4rem + 2.2vw, 2.85rem);
  --step-4: clamp(2.5rem, 1.5rem + 4vw, 4.6rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1726; --card: #16243A; --mist: #132233; --ink: #E8EEF4; --muted: #B4C1CF;
    --line: #2A3A50; --teal: #0F7C7A; --teal-ink: #6FD1C5; --on-teal: #FFFFFF;
    --band: #0A1322; --band-raised: #1A2C47; --on-band: #FFFFFF; --on-band-muted: #C9D6E4;
    --band-accent: #8FD3CC; --focus: #F2A65A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1726; --card: #16243A; --mist: #132233; --ink: #E8EEF4; --muted: #B4C1CF;
  --line: #2A3A50; --teal: #0F7C7A; --teal-ink: #6FD1C5; --on-teal: #FFFFFF;
  --band: #0A1322; --band-raised: #1A2C47; --on-band: #FFFFFF; --on-band-muted: #C9D6E4;
  --band-accent: #8FD3CC; --focus: #F2A65A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img, svg { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: var(--teal-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--card); padding: 10px 16px; }

/* Bands and columns */
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1180px; margin: 0 auto; padding-block: clamp(64px, 8vw, 104px); }
.band--mist { background: var(--mist); }
.band--dark { background: var(--band); color: var(--on-band); }
.band--dark a { color: var(--band-accent); }
.band--dark .lede, .band--dark .muted { color: var(--on-band-muted); }
.band--teal { background: var(--teal); color: var(--on-teal); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 72px); align-items: flex-start; }
.split > * { min-width: 0; }
.split__narrow { flex: 1 1 340px; }
.split__wide { flex: 1.5 1 480px; }
.grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.measure { max-width: 65ch; }
.lede { font-size: var(--step-1); color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.eyebrow { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--teal-ink); }
.band--dark .eyebrow { color: var(--band-accent); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); }
.site-header .bar { max-width: 1180px; margin: 0 auto; padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand span { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { max-width: 100%; overflow-x: auto; }
.nav ul { list-style: none; margin: 0; padding: 4px 2px; display: flex; gap: 6px 22px; align-items: center; white-space: nowrap; font-size: 1.02rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--teal); }
.nav a[aria-current="page"] { border-bottom-color: var(--teal); font-weight: 700; }
.nav .nav-cta { background: var(--ink); color: var(--ground); padding: 8px 18px; border-radius: 999px; border: 0; }
.nav .nav-cta:hover { background: var(--teal); color: var(--on-teal); }
.nav .nav-cta[aria-current="page"] { background: var(--teal); color: var(--on-teal); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-size: 1.05rem; font-family: var(--body); cursor: pointer; }
.btn--primary { background: var(--teal); color: var(--on-teal); }
.btn--primary:hover { background: var(--teal-ink); color: var(--on-teal); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--ground); }
.band--dark .btn--ghost { color: var(--on-band); }
.band--dark .btn--ghost:hover { background: var(--on-band); color: var(--band); }
.btn--light { background: var(--on-teal); color: #12284A; }
.btn--light:hover { background: var(--band); color: var(--on-band); }

/* Hero */
.hero .wrap { padding-block: clamp(72px, 10vw, 128px) clamp(64px, 8vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--teal-ink); }
.hero__foot { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; margin-top: 32px; }
.hero__foot .lede { flex: 1 1 460px; min-width: 0; max-width: 40ch; }
.page-hero .wrap { padding-block: clamp(64px, 8vw, 104px) clamp(48px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; font-size: var(--step-4); }
.page-hero .lede { margin-top: 24px; max-width: 46ch; }

/* Translation example — the signature element */
.translate { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0; border-radius: 18px; overflow: hidden; }
.translate figure { margin: 0; padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.translate figcaption { font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.translate .said { background: var(--band-raised); color: var(--on-band-muted); }
.translate .said blockquote { margin: 0; font-family: var(--display); font-size: var(--step-1); line-height: 1.45; color: var(--on-band); }
.translate .means { background: var(--card); color: var(--ink); }
.translate .means figcaption { color: var(--teal-ink); }
.translate .means p { font-size: var(--step-1); line-height: 1.5; }
.translate .arrow { color: var(--band-accent); }
.note { font-size: var(--step--1); color: var(--on-band-muted); margin-top: 16px; }

/* Offerings */
.offer { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.offer h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.offer .more { margin-top: auto; padding-top: 8px; font-weight: 700; }

/* Continuum stages */
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0; counter-reset: stage; }
.stages li { padding: 24px 24px 8px 0; border-top: 3px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stages li.is-now { border-top-color: var(--teal); }
.stages .tag { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.stages .is-now .tag { color: var(--teal-ink); }
.stages strong { font-family: var(--display); font-weight: 600; font-size: var(--step-1); line-height: 1.25; }
.stages span.desc { color: var(--muted); font-size: 1.02rem; }
.stages p.detail { color: var(--muted); font-size: 1rem; margin-top: 6px; }

/* Lists of points */
.points { list-style: none; margin: 0; padding: 0; }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--muted); font-size: 1.05rem; }
.band--dark .point p { color: var(--on-band-muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--teal-ink); }
.steps p { color: var(--muted); font-size: 1.05rem; }
.ticks { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; }
.panel { background: var(--band); color: var(--on-band); border-radius: 18px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.panel h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-2); }
.panel .ticks { color: var(--on-band-muted); }
.quote { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: var(--ink); max-width: 30ch; }
.band--dark .quote { color: var(--on-band); }

/* Cost comparison */
.costs { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.costs figcaption { font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--band-accent); }
.costs dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border-radius: 18px; overflow: hidden; }
.costs dl > div { background: var(--band-raised); padding: 28px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255,255,255,0.08); }
.costs dl > div:first-child { background: var(--teal); }
.costs dt { color: var(--on-band); font-weight: 700; }
.costs dd { margin: 0; font-family: var(--display); font-size: var(--step-3); line-height: 1.1; color: var(--on-band); font-variant-numeric: tabular-nums; }
.costs dl span { color: var(--on-band-muted); font-size: 0.98rem; }
.costs dl > div:first-child span { color: var(--on-teal); }
.costs .source { font-size: var(--step--1); color: var(--on-band-muted); max-width: 70ch; }

/* People */
.person { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 6px; }
.person .role { color: var(--teal-ink); font-weight: 700; font-size: 1rem; }
.person p { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }

/* Contact */
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.email-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.email { font-size: var(--step-1); font-weight: 700; word-break: break-all; }
.copy { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.copy:hover { background: var(--ink); color: var(--ground); }

/* CTA band + footer */
.cta h2 { font-size: var(--step-4); }
.cta p { font-size: var(--step-1); max-width: 40ch; }
.site-footer { background: var(--band); color: var(--on-band-muted); font-size: 1rem; }
.site-footer .wrap { padding-block: 56px 40px; display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.site-footer .brand { color: var(--on-band); }
.site-footer a { color: var(--on-band-muted); }
.site-footer a:hover { color: var(--on-band); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 32px; }
.site-footer .legal { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
