/* The ocean's carbon ledger: site stylesheet.
   Layout: a quiet landing page over a drawn ocean map; content pages with a short header band and a single reading column. */
:root{
  --bg:#f4f6f3; --card:#fbfcfa; --line:#d5dde2;
  --ink:#0b1f33; --text:#3b4a58; --muted:#556472;
  --teal:#157477; --teal-deep:#0f5f63; --teal-soft:#d7ecec; --teal-light:#7fc4cc;
  --amber:#7a4a0e; --amber-soft:#f6e3c8;
  --deep:#07182a; --deep-2:#0b2a44;
  --on-deep:#f4f6f3; --on-deep-sub:#d5e3e8; --on-deep-muted:#9fb3bd;
  --display:'Libre Baskerville',Georgia,'Times New Roman',serif;
  --sans:'Public Sans',Arial,Helvetica,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0a1c2e; --card:#10263b; --line:#24405a;
    --ink:#f4f6f3; --text:#c9d6dd; --muted:#9fb3bd;
    --teal:#4fb2b8; --teal-deep:#7fd0d6; --teal-soft:#123b44;
    --amber:#e0b27a; --amber-soft:#3a2c17;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0a1c2e; --card:#10263b; --line:#24405a;
  --ink:#f4f6f3; --text:#c9d6dd; --muted:#9fb3bd;
  --teal:#4fb2b8; --teal-deep:#7fd0d6; --teal-soft:#123b44;
  --amber:#e0b27a; --amber-soft:#3a2c17;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:17px;line-height:1.6}
a{color:var(--teal-deep)}
a:focus-visible{outline:3px solid var(--teal-light);outline-offset:3px}
h1,h2,h3{font-family:var(--display);color:var(--ink);line-height:1.15;text-wrap:balance;margin:0}
h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700}
h3{font-size:1.25rem;font-weight:700}
p{margin:0}
sub{font-size:.75em}
.wrap{max-width:1080px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
.narrow{max-width:720px}
.eyebrow{font-size:.78rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--teal)}
.lede{font-size:1.2rem;line-height:1.5;max-width:62ch;color:var(--ink)}
.prose{display:flex;flex-direction:column;gap:18px;max-width:66ch}
.prose p{max-width:66ch}
.prose ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:8px}

/* ---------- navigation ---------- */
.nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--deep)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:14px;flex-wrap:wrap}
.brand{font-family:var(--display);font-weight:700;color:var(--on-deep);text-decoration:none;font-size:1.05rem;letter-spacing:.01em}
.nav ul{list-style:none;margin:0;padding:0;display:flex;gap:4px 22px;flex-wrap:wrap}
.nav a.link{color:var(--on-deep-sub);text-decoration:none;font-size:.9rem;font-weight:600;padding-block:4px;border-bottom:2px solid transparent}
.nav a.link:hover{color:var(--teal-light)}
.nav a.link[aria-current="page"]{color:var(--on-deep);border-bottom-color:var(--teal-light)}
.nav.over{position:absolute;top:0;left:0;right:0;background:transparent}

/* ---------- landing hero ---------- */
.hero{position:relative;background:var(--deep);color:var(--on-deep);min-height:min(88vh,760px);display:flex;align-items:flex-end;overflow:hidden}
.hero canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero > .wrap{position:relative;width:100%;padding-block:120px 64px;display:flex;flex-direction:column;gap:22px}
.hero h1{font-size:clamp(2.6rem,7vw,5.2rem);color:var(--on-deep);max-width:14ch}
.hero .tag{font-size:clamp(1.15rem,2.1vw,1.5rem);line-height:1.35;color:var(--on-deep-sub);max-width:36ch}
.hero .eyebrow{color:var(--teal-light)}
.actions{display:flex;gap:12px;flex-wrap:wrap;padding-top:8px}
.btn{display:inline-block;padding:12px 22px;border-radius:999px;font-weight:600;text-decoration:none;font-size:.95rem;border:1.5px solid transparent}
.btn.primary{background:var(--teal-light);color:#07182a;border-color:var(--teal-light)}
.btn.primary:hover{background:#a3dbe0}
.btn.ghost{color:var(--on-deep);border-color:rgba(244,246,243,.45)}
.btn.ghost:hover{border-color:var(--on-deep)}
.hero .key{position:absolute;right:max(20px,env(safe-area-inset-right,0px));top:96px;font-size:.78rem;color:var(--on-deep-muted);display:flex;flex-direction:column;gap:6px}
.hero .key span{display:flex;align-items:center;gap:8px}
.hero .key i{display:inline-block;width:10px;height:10px;border-radius:50%}
@media (max-width:700px){.hero .key{display:none}}

/* ---------- landing body ---------- */
.moments{padding-block:72px}
.moments .wrap{display:flex;flex-direction:column;gap:36px}
.three{display:grid;gap:28px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.moment{display:flex;flex-direction:column;gap:12px;padding-top:20px;border-top:3px solid var(--teal);min-width:0;text-decoration:none;color:inherit}
.moment .num{font-family:var(--display);font-size:2.4rem;color:var(--teal);line-height:1}
.moment h3{font-size:1.2rem}
.moment p{color:var(--text)}
.moment .more{color:var(--teal-deep);font-weight:600;font-size:.92rem;margin-top:auto}
.moment:hover h3{color:var(--teal-deep)}
.why{background:var(--card);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding-block:64px}
.why .wrap{display:grid;gap:32px 64px;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:start}
@media (max-width:760px){.why .wrap{grid-template-columns:1fr}}
.figure{display:flex;flex-direction:column;gap:6px}
.figure .big{font-family:var(--display);font-size:clamp(2.2rem,5vw,3.4rem);color:var(--ink);line-height:1;font-variant-numeric:tabular-nums}
.figure .small{color:var(--muted);font-size:.95rem;max-width:30ch}
.figures{display:flex;flex-direction:column;gap:28px}

/* ---------- content pages ---------- */
.page-head{background:var(--deep);color:var(--on-deep);padding-block:72px 56px;position:relative;overflow:hidden}
.page-head .wrap{position:relative;display:flex;flex-direction:column;gap:14px}
.page-head h1{font-size:clamp(2rem,4.5vw,3.4rem);color:var(--on-deep);max-width:20ch}
.page-head .eyebrow{color:var(--teal-light)}
.page-head .tag{color:var(--on-deep-sub);font-size:1.15rem;max-width:60ch;line-height:1.5}
.page-head svg.motif{position:absolute;right:-40px;top:-20px;height:calc(100% + 40px);width:auto;max-width:55%;opacity:.55;pointer-events:none}
@media (max-width:760px){.page-head svg.motif{display:none}}
section.block{padding-block:56px}
section.block + section.block{border-top:1px solid var(--line)}
.block .wrap{display:flex;flex-direction:column;gap:22px}
.grid{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:26px;display:flex;flex-direction:column;gap:12px;min-width:0}
.card.dark{background:#0b1f33;border-color:#0b1f33;color:#d5e3e8}
.card.dark h3{color:#f4f6f3}
.card.dark .eyebrow{color:#7fc4cc}
.card ul{margin:0;padding-left:1.1em;display:flex;flex-direction:column;gap:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:4px}
.chip{display:inline-block;padding:5px 11px;border-radius:999px;font-size:.8rem;font-weight:600;background:var(--teal-soft);color:var(--teal-deep)}
.chip.amber{background:var(--amber-soft);color:var(--amber)}
.aside{border-left:4px solid var(--teal);padding:4px 0 4px 20px;color:var(--text);max-width:66ch}
.aside b{color:var(--ink)}
.pair{display:grid;gap:28px 48px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.charts{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.chart{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}
.chart h3{font-family:var(--sans);font-size:.95rem;margin-bottom:8px}
.chart svg{width:100%;height:auto;max-width:100%;display:block}
.legend{display:flex;gap:24px;flex-wrap:wrap;font-size:.95rem}
.legend span{display:inline-flex;align-items:center;gap:10px}
.swatch{display:inline-block;width:36px;height:6px;border-radius:3px}
.caption{font-size:.9rem;color:var(--muted);max-width:70ch}
.tablewrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.95rem;min-width:620px}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:top}
th{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);font-weight:600}
td:first-child{font-weight:600;color:var(--ink);white-space:nowrap}
.status{display:inline-block;padding:4px 10px;border-radius:999px;font-size:.8rem;font-weight:600;white-space:nowrap}
.status.go{background:var(--teal-soft);color:var(--teal-deep)}
.status.wait{background:var(--amber-soft);color:var(--amber)}
.log{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;border-left:2px solid var(--line)}
.log li{display:grid;grid-template-columns:140px 1fr;gap:6px 20px;padding:14px 0 14px 22px;position:relative}
.log li::before{content:"";position:absolute;left:-7px;top:22px;width:12px;height:12px;border-radius:50%;background:var(--teal);border:2px solid var(--bg)}
.log time{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
@media (max-width:600px){.log li{grid-template-columns:1fr}}
.sources ol{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:8px;font-size:.95rem;max-width:80ch}
.email{font-weight:600;color:var(--ink);user-select:all}
.next{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:8px}
.next a{font-weight:600;text-decoration:none}

/* ---------- footer ---------- */
.footer{background:var(--deep);color:var(--on-deep-muted);padding-block:40px;font-size:.9rem;margin-top:40px}
.footer .wrap{display:flex;flex-direction:column;gap:8px}
.footer a{color:var(--teal-light)}
