/* White Whale — partnership brief styles (maritime almanac)
   Shared by every /partners/*.html page. Light = sea-chart paper, dark = deep ocean. */

:root {
  --ground:    #e6eae9;
  --ground-2:  #dfe4e3;
  --card:      #f3f5f4;
  --card-2:    #eceeed;
  --ink:       #12242e;
  --ink-soft:  #40525b;
  --ink-faint: #6f7f86;
  --accent:    #8a5c22;   /* deep brass — carries contrast on pale ground */
  --accent-2:  #a06e2f;
  --line:      rgba(18, 36, 46, 0.14);
  --line-2:    rgba(18, 36, 46, 0.08);
  --shadow:    0 1px 2px rgba(18,36,46,.06), 0 8px 30px rgba(18,36,46,.07);
  --sonar:     138, 92, 34;

  --font-display: "Hoefler Text", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace;

  --measure: 64ch;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:#0b1922; --ground-2:#081219; --card:#10222d; --card-2:#142834;
    --ink:#e8edec; --ink-soft:#a3b4b6; --ink-faint:#6d8085;
    --accent:#cc9c5a; --accent-2:#dcae6c;
    --line:rgba(232,237,236,.13); --line-2:rgba(232,237,236,.07);
    --shadow:0 1px 2px rgba(0,0,0,.3),0 18px 50px rgba(0,0,0,.4);
    --sonar:204,156,90;
  }
}
:root[data-theme="light"] {
  --ground:#e6eae9; --ground-2:#dfe4e3; --card:#f3f5f4; --card-2:#eceeed;
  --ink:#12242e; --ink-soft:#40525b; --ink-faint:#6f7f86;
  --accent:#8a5c22; --accent-2:#a06e2f;
  --line:rgba(18,36,46,.14); --line-2:rgba(18,36,46,.08);
  --shadow:0 1px 2px rgba(18,36,46,.06),0 8px 30px rgba(18,36,46,.07);
  --sonar:138,92,34;
}
:root[data-theme="dark"] {
  --ground:#0b1922; --ground-2:#081219; --card:#10222d; --card-2:#142834;
  --ink:#e8edec; --ink-soft:#a3b4b6; --ink-faint:#6d8085;
  --accent:#cc9c5a; --accent-2:#dcae6c;
  --line:rgba(232,237,236,.13); --line-2:rgba(232,237,236,.07);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 18px 50px rgba(0,0,0,.4);
  --sonar:204,156,90;
}

/* minimal reset (standalone pages get no host-provided reset) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.label--accent { color: var(--accent); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; line-height: 1.25; }
p { margin: 0; }
a { color: inherit; }

.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 82%, transparent); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 5; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; flex-wrap: wrap; }
.brandmark { display: flex; align-items: center; gap: .6rem; }
.brandmark b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
.topbar .prepared { color: var(--ink-soft); }
.topbar .prepared span { color: var(--ink); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#sonar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }
.hero__grid { position: relative; z-index: 1; padding-block: clamp(3.5rem, 9vw, 6.5rem); display: grid; gap: clamp(1.4rem, 3vw, 2rem); max-width: 42rem; }
.eyebrow { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); letter-spacing: -0.02em; }
.hero .lede { font-size: clamp(1.1rem, 1.9vw, 1.32rem); color: var(--ink-soft); max-width: 34rem; line-height: 1.5; }
.hero .lede b { color: var(--ink); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: .34rem .8rem; background: color-mix(in srgb, var(--card) 60%, transparent); }

.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .3rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .95rem; font-weight: 600; padding: .7rem 1.15rem; border-radius: 7px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn--primary { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #1a1207; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #1a1207; } }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

section { padding-block: clamp(3rem, 7vw, 5rem); border-bottom: 1px solid var(--line-2); }
.sec-head { display: grid; gap: .7rem; max-width: var(--measure); margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.sec-head p.sub { color: var(--ink-soft); font-size: 1.05rem; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); padding: 1.6rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.step__n { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: var(--accent); }
.step p { color: var(--ink-soft); font-size: .96rem; }

.cards { display: grid; gap: 1rem; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.5rem; display: grid; gap: .55rem; box-shadow: var(--shadow); }
.card__ic { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: .97rem; }

.ledger { display: grid; gap: 1rem; }
@media (min-width: 680px) { .ledger { grid-template-columns: 1fr 1fr; } }
.ledger__col { border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem; background: var(--card); }
.ledger__col h3 { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; }
.ledger__col.are h3 { color: var(--accent); }
.ledger__col.arenot h3 { color: var(--ink-faint); }
.ledger ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
.ledger li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; line-height: 1.45; }
.ledger li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .5rem; border-radius: 2px; }
.ledger .are li::before { background: var(--accent); }
.ledger .arenot li::before { background: var(--line); border: 1px solid var(--ink-faint); }
.ledger .arenot li { text-decoration: line-through; text-decoration-color: var(--line); text-decoration-thickness: 1px; }

.ask { display: grid; gap: 1rem; }
@media (min-width: 720px) { .ask { grid-template-columns: 1fr 1fr; } }
.ask__item { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 1.4rem 1.5rem; background: var(--card); display: grid; gap: .5rem; }
.ask__item .label { margin-bottom: .1rem; }
.ask__item p { color: var(--ink-soft); font-size: .97rem; }

.stage { display: grid; gap: 1.4rem; max-width: var(--measure); }
.stage dl { margin: 0; display: grid; gap: 1.1rem; }
.stage .row { display: grid; gap: .25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line-2); }
.stage .row:last-child { border-bottom: 0; padding-bottom: 0; }
.stage dt { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.stage dd { margin: 0; color: var(--ink-soft); }
.stage dd b { color: var(--ink); font-weight: 600; }

footer { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--ground-2); }
.foot { display: grid; gap: 1.6rem; }
.foot__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.4rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.foot__links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; }
.foot__links a:hover { color: var(--accent); }
.disclosure { font-size: .82rem; color: var(--ink-faint); max-width: 52ch; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 1.3rem; }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Legal / prose pages ---- */
.prose { max-width: var(--measure); display: grid; gap: 1.1rem; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h2 { font-size: 1.4rem; margin-top: 1.4rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose .note { border-left: 3px solid var(--accent); background: var(--card); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; font-size: .92rem; }
.prose a { color: var(--accent); }
