/* Shared styles for the Articles pages (added Nov 2026). Same colours, fonts and header as the homepage. */
:root{
  --bg:#f6f3ee; --bg-alt:#efe9df; --surface:#fffdf9; --ink:#16181b; --text:#363a40; --muted:#686c72; --line:#e0d8cb;
  --accent:#1e4a3d; --accent-2:#2a6553; --on-accent:#f6f3ee; --brass:#8f6a36;
  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --sans:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max:1140px; --read:41rem; --gutter:clamp(16px, 4vw, 40px); --radius:18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0f1312; --bg-alt:#141917; --surface:#181e1c; --ink:#eeece6; --text:#cfccc5; --muted:#9ea29d; --line:#29312e;
    --accent:#8fc3ad; --accent-2:#a9d4c2; --on-accent:#0f1312; --brass:#cfa96c; }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-padding-top:72px}
body{margin:0; background:var(--bg); color:var(--text); font:400 17px/1.75 var(--sans); -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; overflow-x:hidden}
img{max-width:100%; height:auto; display:block}
a{color:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:0 var(--gutter)}
.skip{position:absolute; left:-9999px; top:0}
.skip:focus{left:16px; top:12px; z-index:100; background:var(--surface); color:var(--ink); padding:8px 14px; border-radius:8px}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px; border-radius:6px}

/* Header, as on the homepage */
.top{position:sticky; top:0; z-index:50; background:var(--bg); border-bottom:1px solid var(--line)}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)){
  .top{background:color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter:saturate(1.4) blur(12px); backdrop-filter:saturate(1.4) blur(12px)}
}
.top .wrap{display:flex; align-items:center; justify-content:space-between; height:64px; gap:16px}
.brand{font-family:var(--serif); font-size:1.28rem; font-weight:500; color:var(--ink); text-decoration:none; letter-spacing:-.01em; white-space:nowrap}
.nav{display:flex; gap:28px; align-items:center}
.nav a{font-size:.92rem; color:var(--muted); text-decoration:none; transition:color .15s; white-space:nowrap}
.nav a:hover, .nav a[aria-current]{color:var(--ink)}
.nav .pill{color:var(--on-accent); background:var(--accent); padding:8px 16px; border-radius:999px; font-weight:500}
.nav .pill:hover{color:var(--on-accent); background:var(--accent-2)}
@media (max-width:780px){ .nav{gap:18px} .nav a:not(.pill):not(.keep){display:none} }
@media (max-width:360px){ .nav a.keep{display:none} }

/* Type */
.kicker{font:600 .76rem/1.3 var(--sans); letter-spacing:.16em; text-transform:uppercase; color:var(--brass); margin:0 0 18px}
.kicker a{text-decoration:none}
.kicker a:hover{text-decoration:underline}
h1,h2,h3{font-family:var(--serif); color:var(--ink); font-weight:500; letter-spacing:-.015em; margin:0}
h1{font-size:clamp(2.1rem, 4.6vw, 3.4rem); line-height:1.08}
h2{font-size:clamp(1.45rem, 2.6vw, 1.85rem); line-height:1.2}

/* Article */
.article{padding:clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px)}
.article .wrap > *{max-width:var(--read); margin-left:auto; margin-right:auto}
.standfirst{font-size:clamp(1.08rem, 1.6vw, 1.22rem); line-height:1.6; color:var(--ink); margin:22px auto 0}
.byline{display:flex; align-items:center; gap:14px; margin-top:28px; padding:18px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); font-size:.9rem; color:var(--muted)}
.byline img{width:48px; height:48px; border-radius:50%; object-fit:cover; object-position:50% 25%; flex:none; background:var(--bg-alt)}
.byline b{display:block; color:var(--ink); font-weight:600}
.byline a{text-decoration:none}
.body{margin-top:34px}
.body p{margin:0 0 1.15em}
.body h2{margin:1.9em 0 .55em}
.body ul{margin:0 0 1.25em; padding-left:1.15em}
.body li{margin:0 0 .6em; padding-left:.2em}
.body li::marker{color:var(--brass)}
.body a{color:var(--accent); text-underline-offset:3px}
.body a:hover{text-decoration-thickness:2px}
.body strong{color:var(--ink); font-weight:600}
.note{margin:1.6em 0; padding:20px 22px; background:var(--surface); border:1px solid var(--line); border-radius:14px; font-size:.97rem}
.note p:last-child{margin-bottom:0}

/* End of article */
.end{margin-top:46px; padding:28px 26px; background:var(--accent); color:var(--on-accent); border-radius:var(--radius)}
.end h2{color:var(--on-accent); font-size:1.4rem}
.end p{margin:10px 0 18px; opacity:.9}
.end .ctas{display:flex; flex-wrap:wrap; gap:10px}
.end a{display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border-radius:999px; font-weight:500; font-size:.95rem; text-decoration:none; background:var(--on-accent); color:var(--accent)}
.end a.ghost{background:transparent; color:var(--on-accent); border:1px solid color-mix(in srgb, var(--on-accent) 45%, transparent)}
.more{margin-top:46px}
.more h2{font-size:1.3rem; margin-bottom:14px}

/* Lists of articles */
.list, .body .list{list-style:none; margin:0; padding:0; display:grid; gap:14px}
.body .list li{margin:0; padding:0}
.list a{display:block; padding:22px 24px; background:var(--surface); border:1px solid var(--line); border-radius:14px; text-decoration:none; transition:border-color .15s ease, transform .15s ease}
.list a:hover{border-color:var(--ink); transform:translateY(-1px)}
.list .for{font:600 .72rem/1.3 var(--sans); letter-spacing:.14em; text-transform:uppercase; color:var(--brass)}
.list h3{font-size:1.25rem; margin:8px 0 6px; line-height:1.3}
.list p{margin:0; font-size:.96rem; color:var(--text)}
.list .meta{display:block; margin-top:10px; font-size:.82rem; color:var(--muted)}

/* Footer */
footer{border-top:1px solid var(--line); padding:28px 0 40px; font-size:.86rem; color:var(--muted)}
footer .wrap{display:flex; flex-wrap:wrap; gap:10px 24px; justify-content:space-between}
footer nav{display:flex; flex-wrap:wrap; gap:20px}
footer a{color:var(--muted); text-decoration:none}
footer a:hover{color:var(--ink); text-decoration:underline}
