:root {
  --void:#0c0c1e; --magenta:#FF00FF; --pink:#FF5ACD; --cyan:#00FFFF;
  --text:#ECEAFF; --muted:#B8B4E0;
  --display:"Orbitron", "Rajdhani", system-ui, sans-serif;
  --ui:"Rajdhani", system-ui, sans-serif;
  --body:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { background:var(--void); }
body { background:var(--void); color:var(--text); font:17px/1.65 var(--body); }
a { color:var(--cyan); }
.doc { max-width:760px; margin:0 auto; padding:48px 16px 96px; }
.back { display:inline-block; margin-bottom:32px; font:600 15px var(--ui); letter-spacing:.12em; text-transform:uppercase; text-decoration:none; }
.back:hover { color:var(--pink); }
h1 { font:700 clamp(26px, 5vw, 38px)/1.2 var(--display); letter-spacing:.04em; color:#fff; text-shadow:0 0 18px rgba(255,0,255,.45); }
.meta { margin-top:8px; color:var(--muted); font:500 15px var(--ui); letter-spacing:.08em; text-transform:uppercase; }
h2 { margin:36px 0 10px; font:600 20px var(--ui); letter-spacing:.1em; text-transform:uppercase; color:var(--pink); }
p { margin-bottom:12px; }
ul { margin:0 0 12px 22px; }
li { margin-bottom:6px; }

/* Elements skin: chosen by the reader script in each page's head, from the design last shown on the home page */
html[data-design="elements"] {
  --void:#F3F0E8; --text:#111214; --muted:#5E5D58; --cyan:#111214; --pink:#111214;
  --display:"Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ui:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body:"Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
}
html[data-design="elements"] h1 { color:var(--text); text-shadow:none; }
html[data-design="elements"] a { text-decoration-color:#FF4A1C; }

html[data-design="dither"] {
  --void:#F1F2EC; --text:#0B1380; --muted:#1524E6; --cyan:#1524E6; --pink:#1524E6;
  --display:"Doto", ui-monospace, Menlo, monospace;
  --ui:"Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --body:"Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
html[data-design="dither"] body { border-top:8px solid #1524E6; }
html[data-design="dither"] body::before { content:''; display:block; height:8px; background:#1524E6; image-rendering:pixelated;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3C/svg%3E") 0 0 / 8px 8px;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h1v1H0zM1 1h1v1H1z'/%3E%3C/svg%3E") 0 0 / 8px 8px; }
html[data-design="dither"] h1 { font-weight:900; color:#1524E6; text-shadow:none; text-transform:uppercase; letter-spacing:-.02em; -webkit-text-stroke:.03em currentColor; paint-order:stroke fill; }
html[data-design="dither"] h2 { font-weight:700; letter-spacing:.06em; }
html[data-design="dither"] .back { font-weight:700; }
html[data-design="dither"] a { text-decoration-thickness:2px; text-underline-offset:3px; }
html[data-design="dither"] a:hover, html[data-design="dither"] .back:hover { background:#C8FF2E; color:#1524E6; text-decoration:none; }
html[data-design="dither"] ::selection { background:#C8FF2E; color:#1524E6; }
html[data-design="dither"] :focus-visible { outline:4px solid #1524E6; outline-offset:2px; }

html[data-design="tangram"] {
  --void:#0F392D; --text:#0B1F19; --muted:#3A5A4C; --cyan:#0B1F19; --pink:#0F392D;
  --display:"Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ui:"Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body:"Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html[data-design="tangram"] body { font-size:18px; line-height:1.6; font-weight:450; padding:clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px) 64px; }
html[data-design="tangram"] .doc { background:#F6F0E1; border-radius:30px; padding:clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) 56px;
  box-shadow:0 12px 0 #BEB49B, 5px 30px 34px -18px rgba(0,0,0,.55); }
html[data-design="tangram"] h1 { font-weight:800; font-variation-settings:"wdth" 94; letter-spacing:-.02em; color:#0B1F19; text-shadow:none; }
html[data-design="tangram"] h2 { font-weight:800; font-size:22px; letter-spacing:-.01em; text-transform:none; font-variation-settings:"wdth" 94; }
html[data-design="tangram"] .back, html[data-design="tangram"] .meta { font-weight:700; font-size:13px; letter-spacing:.12em; font-variation-settings:"wdth" 84; color:#3A5A4C; }
html[data-design="tangram"] a { text-decoration-color:#B57800; text-decoration-thickness:2px; text-underline-offset:3px; }
html[data-design="tangram"] a:hover, html[data-design="tangram"] .back:hover { color:#0B1F19; text-decoration-color:#0B1F19; }
html[data-design="tangram"] ::selection { background:#FFC53D; color:#0B1F19; }
html[data-design="tangram"] :focus-visible { outline:3px solid #0B1F19; outline-offset:2px; border-radius:4px; }

html[data-design="sakura"] {
  --void:#fff8f2; --text:#3f4273; --muted:#5a5d8a; --cyan:#c2255f; --pink:#1b1c4b;
  --display:"Dela Gothic One", "Arial Black", Impact, sans-serif;
  --ui:"Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:"Zen Kaku Gothic New", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-design="sakura"] body { font-weight:500; border-top:10px solid #1e4fc2; padding:clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px) 64px; }
html[data-design="sakura"] .doc { background:#ffffff; border:2.5px solid #1b1c4b; border-radius:18px; box-shadow:8px 8px 0 #1b1c4b; padding:clamp(28px, 5vw, 56px) clamp(20px, 5vw, 56px) 56px; }
html[data-design="sakura"] h1 { font-weight:400; letter-spacing:-.005em; color:#1b1c4b; text-shadow:none; }
html[data-design="sakura"] h2 { font:400 22px/1.2 var(--display); letter-spacing:0; text-transform:none; }
html[data-design="sakura"] .back, html[data-design="sakura"] .meta { font-weight:700; font-size:13px; letter-spacing:.14em; }
html[data-design="sakura"] .back { color:#1b1c4b; display:inline-flex; align-items:center; min-height:24px; }
html[data-design="sakura"] a { text-decoration-thickness:2px; text-underline-offset:3px; }
html[data-design="sakura"] a:hover, html[data-design="sakura"] .back:hover { color:#1b1c4b; }
html[data-design="sakura"] ::selection { background:#ffd84d; color:#1b1c4b; }
html[data-design="sakura"] :focus-visible { outline:3px solid #c2255f; outline-offset:2px; border-radius:4px; }
