@font-face {
  font-family: "Agreeon Symbols";
  src: url("fonts/AgreeonSymbols-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
:root {
  color-scheme: light dark;
  --paper: #faf9f5;
  --ink: #20251e;
  --muted: #60665d;
  --rule: #ced1c7;
  --plate: #eeefe7;
  --grid: #dce0d4;
  --accent: #49623f;
}
@media (prefers-color-scheme: dark) {
  :root { --paper:#20231f; --ink:#eeeee6; --muted:#b1b7aa; --rule:#464c41; --plate:#292e26; --grid:#333a2f; --accent:#b1c7a3; }
  .brand img { filter: invert(1); }
}
* { box-sizing: border-box; }
body { margin:0 auto; width:min(100% - 44px, 960px); background:var(--paper); color:var(--ink); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
a { color:inherit; text-underline-offset:4px; }
header,footer { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 0; font-size:13px; }
header { border-bottom:1px solid var(--rule); }
header a,footer a { text-decoration:none; }
a:hover { text-decoration:underline; }
.brand { display:flex; align-items:center; gap:8px; font-weight:600; font-size:15px; }
.brand img { width:27px; height:25px; }
.intro { margin:clamp(38px,6vw,78px) 0 28px; }
h1,h2,p { margin:0; }
h1,.caption h2,.source h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.05em; }
h1 { font-size:clamp(46px,7.5vw,86px); line-height:1.04; }
.intro p,.source p,.caption p { color:var(--muted); max-width:58ch; }
.intro p { margin-top:12px; font-size:16px; }
.specimen { display:grid; grid-template-columns:1.15fr 1fr; border-block:1px solid var(--rule); }
.plate { min-height:260px; display:grid; place-items:center; background-color:var(--plate); background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size:24px 24px; background-position:center; }
.symbol { font-family:"Agreeon Symbols"; font-weight:400; font-synthesis:none; line-height:1; }
.plate .symbol { font-size:clamp(144px,21vw,220px); }
.caption { padding:32px clamp(18px,4vw,48px); align-self:center; }
.code,small,.label,footer { font:11px/1.45 ui-monospace,monospace; color:var(--muted); }
.caption h2 { margin:9px 0; font-size:clamp(26px,4vw,42px); line-height:1.08; }
.caption p { font-size:14px; }
.formula { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:22px; }
.formula .symbol { font-size:29px; color:var(--ink); }
.collection h2 { font-size:15px; font-weight:550; margin:29px 0 9px; }
.tiles { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--rule); gap:10px; }
button { appearance:none; background:transparent; color:inherit; cursor:pointer; border:0; border-bottom:1px solid var(--rule); font:inherit; min-width:0; }
.tiles button { padding:17px 5px 12px; display:grid; justify-items:center; gap:9px; font-size:13px; }
.tiles button .symbol { font-size:52px; }
button[aria-pressed="true"] { background:var(--plate); box-shadow:inset 0 -2px var(--accent); }
button:hover { background:var(--plate); }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.source { border-top:1px solid var(--rule); margin-top:54px; padding-top:23px; }
.source h2 { font-size:31px; }
.source p { margin:8px 0 14px; }
.downloads { display:flex; flex-wrap:wrap; gap:28px; }
.downloads a { text-decoration:none; border-bottom:1px solid var(--rule); padding:5px 0; }
.downloads a:hover { border-color:var(--ink); }
footer { margin-top:36px; border-top:1px solid var(--rule); }
@media(max-width:600px) {
  body { width:calc(100% - 32px); }
  .specimen { grid-template-columns:1fr; }
  .plate { min-height:180px; }
  .caption { padding:18px 0; }
  .tiles { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .downloads { gap:12px 20px; }
}
.plate { position:relative; padding-bottom:28px; }
#construction { width:clamp(144px,21vw,220px); aspect-ratio:1; }
#drawing-mode { position:absolute; bottom:9px; left:50%; transform:translateX(-50%); padding:3px 9px; white-space:nowrap; font:11px/1.5 ui-monospace,monospace; background:var(--plate); border:1px solid var(--rule); border-radius:3px; }
[hidden] { display:none !important; }
