@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/PlayfairDisplay-1a295b18.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/PlayfairDisplay-48d1e9cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/PlayfairDisplay-48d1e9cd.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSans3-48bcd1d9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/SourceSans3-263ee033.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SourceSans3-263ee033.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SourceSans3-263ee033.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root{
  --green-900:#0b2a1e; --green-800:#0f3b2a; --green-700:#15513a; --green-600:#1d6748;
  --brass:#c9a24a; --brass-600:#b08a35; --brass-ink:#7d5f1c;
  --cream:#f7f2e6; --paper:#fffdf8; --ink:#1a2620; --muted:#5b6a62; --rule:#e3d9c2;
  --serif:"Playfair Display",Georgia,"Times New Roman",serif;
  --sans:"Source Sans 3",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --wrap:920px; --bar-h:64px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--cream);color:var(--ink);font:400 18px/1.65 var(--sans)}
img{max-width:100%;display:block}
a{color:var(--green-700)}
a:hover{color:var(--green-900)}
:focus-visible{outline:3px solid var(--brass);outline-offset:2px;border-radius:4px}
.skip{position:absolute;left:-9999px;top:0;background:var(--green-800);color:#fff;padding:.6rem 1rem;z-index:100}
.skip:focus{left:1rem;top:1rem}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ---------- Profile header (X-style) ---------- */
.profile{background:var(--paper);border-bottom:1px solid var(--rule)}
.banner{position:relative;background:var(--green-900);overflow:hidden}
.banner img{width:100%;height:clamp(150px,30vw,400px);object-fit:cover;object-position:50% 45%}
.banner::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;
  background:repeating-linear-gradient(90deg,var(--brass) 0 28px,var(--brass-600) 28px 30px)}
.profile-row{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.avatar{width:clamp(96px,17vw,150px);height:clamp(96px,17vw,150px);border-radius:50%;
  margin-top:calc(clamp(96px,17vw,150px) / -2);border:5px solid var(--paper);
  box-shadow:0 0 0 2px var(--brass),0 6px 18px rgba(0,0,0,.25);object-fit:cover;background:var(--green-800);position:relative;z-index:1}
.btn-follow{display:inline-flex;align-items:center;gap:.5em;padding:.55em 1.2em;margin-bottom:6px;border-radius:999px;
  background:var(--green-800);color:#fff;text-decoration:none;font-weight:700;font-size:16px;border:2px solid var(--brass);
  transition:background .15s}
.btn-follow:hover{background:var(--green-900);color:#fff}
.btn-follow svg{width:16px;height:16px;fill:currentColor}
.profile-text{padding:10px 0 22px}
.profile h1{font:800 clamp(30px,5vw,44px)/1.1 var(--serif);margin:6px 0 2px;color:var(--green-900);letter-spacing:.01em}
.handle{color:var(--muted);margin:0 0 12px;font-size:16px}
.handle a{color:inherit;text-decoration:none}
.handle a:hover{text-decoration:underline}
.bio{font-size:clamp(18px,2.2vw,20px);margin:0 0 12px;max-width:60ch}
.meta{display:flex;flex-wrap:wrap;gap:6px 20px;color:var(--muted);font-size:15.5px;margin:0;padding:0;list-style:none}
.meta li{display:inline-flex;align-items:center;gap:6px}
.meta svg{width:17px;height:17px;fill:currentColor;flex:none}
.meta strong{color:var(--ink)}

/* ---------- Sticky toolbar ---------- */
.toolbar{position:sticky;top:0;z-index:20;background:var(--green-800);color:#fff;
  box-shadow:0 2px 0 var(--brass),0 6px 14px rgba(0,0,0,.18)}
.toolbar .wrap{display:flex;align-items:center;gap:14px;min-height:var(--bar-h);padding-top:8px;padding-bottom:8px}
.letters{display:flex;justify-content:space-between;gap:0;flex:1;margin:0;padding:0;list-style:none}
.letters a,.letters span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:32px;padding:0 2px;border-radius:6px;
  font:600 17px/1 var(--serif);text-decoration:none;color:#fff}
.letters a:hover,.letters a[aria-current="true"]{background:var(--brass);color:var(--green-900)}
.letters span{color:rgba(255,255,255,.32)}
.search{position:relative;flex:0 0 210px}
.search input{width:100%;height:38px;border-radius:999px;border:1.5px solid var(--brass);background:var(--green-900);color:#fff;
  padding:0 14px 0 36px;font:400 16px var(--sans)}
.search input::placeholder{color:rgba(255,255,255,.65)}
.search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;height:14px;width:14px;cursor:pointer;background:linear-gradient(45deg,transparent 43%,var(--brass) 43%,var(--brass) 57%,transparent 57%),linear-gradient(-45deg,transparent 43%,var(--brass) 43%,var(--brass) 57%,transparent 57%)}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;fill:var(--brass)}
@media (max-width:760px){
  :root{--bar-h:auto}
  .toolbar .wrap{flex-direction:column;align-items:stretch;gap:8px}
  .search{flex:none}
  .letters{display:grid;grid-template-columns:repeat(13,1fr);gap:2px}
  .letters a,.letters span{min-width:0;height:30px;font-size:16px}
  .letter-group{scroll-margin-top:140px}
  .entry{scroll-margin-top:150px;padding:16px 18px 12px}
}

/* ---------- Glossary ---------- */
main{padding-top:28px;padding-bottom:56px}
.status{color:var(--muted);font-size:15.5px;margin:0 0 8px;min-height:1.4em}
.letter-group{scroll-margin-top:90px}
.letter-head{display:flex;align-items:center;gap:16px;margin:30px 0 6px}
.letter-head h2{font:800 46px/1 var(--serif);color:var(--green-800);margin:0;min-width:.8em}
.letter-head::after{content:"";flex:1;height:2px;background:linear-gradient(90deg,var(--brass),transparent)}
.entry{background:var(--paper);border:1px solid var(--rule);border-left:4px solid var(--green-700);border-radius:10px;
  padding:18px 22px 14px;margin:14px 0;scroll-margin-top:100px}
.entry:target{border-left-color:var(--brass);box-shadow:0 0 0 3px rgba(201,162,74,.35)}
.entry h3{margin:0;font:600 clamp(22px,3vw,26px)/1.25 var(--serif);color:var(--green-900)}
.entry h3 a{color:inherit;text-decoration:none}
.entry h3 a:hover{text-decoration:underline;text-decoration-color:var(--brass);text-underline-offset:4px}
.pos{text-decoration:none;border:0;cursor:help;font:italic 500 17px var(--serif);color:var(--brass-ink);margin-left:.35em;white-space:nowrap}
.def p{margin:.55em 0}
.def em{color:var(--green-800)}
.empty{display:none;text-align:center;padding:40px 10px;color:var(--muted)}
mark{background:#f3e3b5;color:inherit;border-radius:2px}

/* ---------- Footer ---------- */
footer{background:var(--green-900);color:#dfe8e2;border-top:4px solid var(--brass);padding:28px 0 36px;font-size:15.5px}
footer .wrap{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between}
footer a{color:#fff}
.foot-name{font:700 20px var(--serif);color:#fff}

/* ---------- Term page ---------- */
.term-top{background:var(--green-800);border-bottom:4px solid var(--brass);color:#fff}
.term-top .wrap{display:flex;align-items:center;gap:14px;min-height:72px}
.term-top img{width:44px;height:44px;border-radius:50%;border:2px solid var(--brass)}
.term-top a{color:#fff;text-decoration:none;font:700 22px var(--serif)}
.term-page{padding-top:36px;padding-bottom:60px}
.crumb{font-size:15px;color:var(--muted);margin:0 0 16px}
.term-page .entry{padding:26px 28px 20px}
.term-page h1{margin:0;font:800 clamp(30px,5vw,42px)/1.15 var(--serif);color:var(--green-900)}
.term-page .pos{font-size:20px;display:inline-block}
.term-page .entry{padding:26px 28px 20px}
@media (max-width:760px){.term-page .entry{padding:20px 18px 14px}}
.pager{display:flex;justify-content:space-between;gap:12px;margin-top:22px;font-size:16px}
.pager a{max-width:48%}
.term-page h1{margin-bottom:.35em}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1}

/* ---------- Share row ---------- */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--rule)}
.share a,.share button{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:999px;font:600 15px/1 var(--sans);
  text-decoration:none;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.share svg{width:15px;height:15px;fill:currentColor;flex:none}
.btn-share{background:var(--green-800);color:#fff;border:2px solid var(--brass)}
.btn-share:hover{background:var(--green-900);color:#fff}
.btn-ghost{background:transparent;color:var(--green-800);border:1.5px solid var(--rule)}
.btn-ghost:hover{border-color:var(--brass);color:var(--green-900);background:#fbf6ea}
.btn-ghost.ok{border-color:var(--green-700);color:var(--green-700)}
@media (max-width:420px){.share a,.share button{padding:0 11px;font-size:14px}}
.card-preview{margin:26px 0 0}
.card-preview img{width:100%;height:auto;border-radius:12px;border:1px solid var(--rule);box-shadow:0 8px 24px rgba(11,42,30,.14)}
.card-preview figcaption{font-size:15px;color:var(--muted);margin-top:10px;text-align:center}
