/* O3 Fusion - site styles. Tokens first; every colour on the page comes from :root. */

:root {
  color-scheme: light dark;

  /* light (default) */
  --paper: #F4EFE6;          /* warm off-white page */
  --surface: #FBF8F2;        /* cards */
  --ink: #1A1916;            /* text + logo */
  --muted: #5A544B;          /* secondary text, 6.5:1 on paper */
  --line: #D9D0BF;           /* hairlines */
  --brand: #1D5A46;          /* spruce: links, primary button, labels */
  --brand-hover: #174A3A;
  --on-brand: #F4EFE6;
  --spark: #E2A72E;          /* the weld - decorative only, never text on paper */
  --band: #1D5A46;           /* contact band */
  --band-text: #F4EFE6;
  --band-muted: #C9DDD3;
  --band-line: #2C6C56;      /* tone-on-tone mark on the band */
  --focus: #1D5A46;
  --shadow: 0 1px 0 rgba(26, 25, 22, .04), 0 12px 32px -18px rgba(26, 25, 22, .28);

  --font-display: "Iowan Old Style", "Sitka Heading", "Palatino Linotype", "Book Antiqua",
                  Palatino, "Noto Serif", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;

  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130F;
    --surface: #1D1B17;
    --ink: #F0EADF;
    --muted: #B0A898;
    --line: #35312A;
    --brand: #8FCBAF;
    --brand-hover: #A9D9C2;
    --on-brand: #10221B;
    --spark: #E8B04A;
    --band: #173E31;
    --band-text: #F0EADF;
    --band-muted: #B9D3C6;
    --band-line: #24554A;
    --focus: #8FCBAF;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 34px -20px rgba(0, 0, 0, .8);
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
p { margin: 0; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: .75rem; }

.eyebrow {
  font: 600 .78rem/1.3 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
  display: flex; align-items: center; gap: .6rem;
}
/* the weld: a short rounded dash, same proportions as the one in the logo */
.eyebrow::before, .weld {
  content: ""; flex: none;
  width: 1.1rem; height: .5rem; border-radius: 1rem;
  background: var(--spark);
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .75rem 1.35rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { color: var(--ink); border-color: var(--muted); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-spark { background: var(--spark); color: #1A1916; }
.btn-spark:hover { background: #F0BE58; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: inline-flex; color: var(--ink); padding: .35rem 0; border-radius: 6px; }
.wm { height: 1.45rem; width: auto; }
.wm-ink { stroke: currentColor; }
.wm-weld { stroke: var(--spark); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) {
  display: none;
  color: var(--ink); text-decoration: none; font-weight: 500;
  padding: .5rem .8rem; border-radius: 999px;
}
.nav a:not(.btn):hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav .btn { min-height: 2.6rem; padding: .55rem 1.05rem; font-size: .95rem; }
.nav .btn .long { display: none; }
@media (min-width: 46em) {
  .nav a:not(.btn) { display: inline-block; }
  .nav .btn { margin-left: .6rem; }
  .nav .btn .long { display: inline; }
  .nav .btn .short { display: none; }
  .wm { height: 1.6rem; }
}

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 var(--section); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 1.5rem + 3.6vw, 4rem); line-height: 1.05; max-width: 16ch; }
@media (min-width: 60em) { .hero h1 { max-width: 19ch; } }
.hero h1 .second { display: block; color: var(--brand); margin-top: .12em; }
.lede { margin-top: 1.5rem; font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.where { margin-top: 1.4rem; font-size: .92rem; color: var(--muted); }

@media (min-width: 60em) {
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* the example card */
.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  margin: 0;
}
.example figcaption {
  font: 600 .74rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line);
}
.example figcaption b { color: var(--brand); font-weight: 600; }
.steps-mini { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-mini li {
  counter-increment: s; position: relative;
  padding: 0 0 1.15rem 2.6rem; font-size: .98rem;
}
.steps-mini li:last-child { padding-bottom: 0; }
.steps-mini li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.05rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 .8rem/1 var(--font-mono);
  color: var(--brand); border: 1.5px solid var(--brand);
  background: var(--surface);
}
.steps-mini li:not(:last-child)::after {
  content: ""; position: absolute; left: .82rem; top: 1.75rem; bottom: .15rem;
  width: 1.5px; background: var(--line);
}
.steps-mini li.you::before { background: var(--spark); border-color: var(--spark); color: #1A1916; }
.steps-mini strong { font-weight: 600; }
.example .note {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line);
  font-size: .9rem; color: var(--muted);
}

/* ------------------------------------------------------------ sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head h2 { font-size: clamp(1.85rem, 1.25rem + 2.3vw, 2.9rem); }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

/* services */
.services { display: grid; gap: 1.25rem; }
@media (min-width: 62em) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  display: flex; flex-direction: column;
}
.service .num {
  font: 600 .8rem/1 var(--font-mono); letter-spacing: .1em; color: var(--muted);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
}
.service .num::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.service h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.75rem); }
.service .sub { margin-top: .45rem; color: var(--brand); font-weight: 600; font-size: .98rem; }
.service p.body { margin-top: 1rem; color: var(--muted); }
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: .8rem; height: .38rem; border-radius: 1rem; background: var(--spark);
}

/* how we work */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: p; }
.process li {
  counter-increment: p; position: relative;
  padding: 0 0 2rem 4rem;
}
.process li::before {
  content: "0" counter(p);
  position: absolute; left: 0; top: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 .85rem/1 var(--font-mono); color: var(--brand);
  border: 1.5px solid var(--brand); background: var(--paper);
}
.process li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.33rem; top: 2.95rem; bottom: .2rem;
  width: 1.5px; background: var(--line);
}
.process h3 { font-size: 1.45rem; padding-top: .45rem; }
.process p { margin-top: .5rem; color: var(--muted); max-width: 34rem; }
@media (min-width: 56em) {
  .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .process li { padding: 4.25rem 0 0; }
  .process li:not(:last-child)::after {
    left: 3.25rem; right: -1.5rem; top: 1.36rem; bottom: auto; width: auto; height: 1.5px;
  }
  .process h3 { padding-top: 0; }
}

.rules {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  display: grid; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
}
.rules h3 { font: 600 .78rem/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.rules li { display: flex; gap: .75rem; align-items: baseline; font-weight: 500; }
.rules li .weld { transform: translateY(-.15em); }
@media (min-width: 56em) {
  .rules { grid-template-columns: 11rem minmax(0, 1fr); align-items: start; }
  .rules ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .rules h3 { padding-top: .2rem; }
}

/* who it's for */
.fit { display: grid; gap: 2rem; }
@media (min-width: 56em) { .fit { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; } }
.fit .section-head { margin-bottom: 0; }
@media (min-width: 56em) { .fit > div:last-child { padding-top: 2.35rem; } }
.fit-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.fit-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem;
}
.fit-list li span {
  font: 600 .78rem/1 var(--font-mono); color: var(--brand); flex: none; width: 1.6rem;
}
.not-fit { margin-top: 1.4rem; color: var(--muted); font-size: .98rem; }
.not-fit strong { color: var(--ink); font-weight: 600; }

/* contact band */
.band { background: var(--band); color: var(--band-text); padding: var(--section) 0; }
.band :focus-visible { outline-color: var(--spark); }
.band .eyebrow { color: var(--band-muted); }
.band h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); max-width: 18ch; }
.band p:not(.eyebrow) { margin-top: 1.1rem; color: var(--band-muted); font-size: 1.12rem; max-width: 38rem; }
.band .wrap { display: grid; gap: 2rem; align-items: center; }
.band-mark { display: none; }
@media (min-width: 60em) {
  .band .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .band-mark { display: block; width: clamp(14rem, 22vw, 19rem); height: auto; margin-right: 1rem; }
  .bm-ink { stroke: var(--band-line); }
  .bm-weld { stroke: var(--spark); }
}
.band .cta-row { margin-top: 2rem; align-items: center; }
.band p.small { margin-top: 1.5rem; font-size: .93rem; }
.band .btn-spark { overflow-wrap: anywhere; text-align: center; }

/* ------------------------------------------------------------ footer */
.site-footer { padding: 3rem 0 2.5rem; font-size: .93rem; color: var(--muted); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.site-footer .brand { color: var(--ink); }
.site-footer .wm { height: 1.25rem; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-footer nav a { color: var(--ink); text-decoration: none; display: inline-block; padding: .3rem 0; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; }

/* ------------------------------------------------------------ text pages (privacy, 404) */
.page { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 var(--section); }
.prose { max-width: 42rem; }
.prose h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.3rem); }
.prose .updated { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.prose h2 { font-size: 1.45rem; margin-top: 2.6rem; }
.prose p, .prose ul { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-top: .4rem; }
.prose .summary {
  margin-top: 1.75rem; padding: 1.25rem 1.4rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--spark);
  border-radius: 10px;
}
.prose .summary p { margin-top: 0; }
.lost { max-width: 36rem; }
.lost .code { font: 600 .85rem/1 var(--font-mono); color: var(--muted); letter-spacing: .12em; }
.lost h1 { font-size: clamp(2.3rem, 1.5rem + 3.5vw, 3.6rem); margin-top: 1rem; }
.lost p:not(.code) { margin-top: 1rem; color: var(--muted); font-size: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .band .cta-row, .skip { display: none; }
  .band { background: none; color: #000; }
  body { background: #fff; color: #000; }
}
