/* toridon.online — self-contained stylesheet. No web fonts, no remote assets. */
:root {
  --bg: #f5f4ee;
  --surface: #ffffff;
  --sand: #e9e4d2;
  --line: #dcd9cc;
  --ink: #17201b;
  --muted: #5d6970;
  --olive: #4f6136;
  --olive-dark: #2f3b20;
  --amber: #c7862b;
  --amber-soft: #f6ead6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 27, .06), 0 8px 24px rgba(23, 32, 27, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--font);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--olive); text-underline-offset: 3px; }
a:hover { color: var(--olive-dark); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Disclosure bar — always first in the page */
.ad-bar {
  background: var(--olive-dark);
  color: #f5f4ee;
  font-size: 14px;
  line-height: 1.5;
  padding: 9px 16px;
  text-align: center;
}
.ad-bar strong { color: #ffd9a0; }
.ad-bar a { color: #ffffff; }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .in {
  max-width: 1160px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand b { font-size: 20px; letter-spacing: -.01em; }
.brand span { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav a {
  text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--sand); color: var(--olive-dark); }

/* Layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 32px 16px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 980px) {
  .layout.has-aside { grid-template-columns: minmax(0, 1fr) 300px; }
  .aside-in { position: sticky; top: 20px; }
}
.prose { max-width: 740px; }
.narrow { max-width: 760px; margin: 0 auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(30px, 5vw, 46px); margin: 8px 0 18px; }
h2 { font-size: clamp(23px, 3.2vw, 30px); margin: 48px 0 14px; padding-top: 8px; }
h3 { font-size: 20px; margin: 30px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: #2e3a33; font-family: var(--serif); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--olive); background: var(--sand); padding: 4px 10px; border-radius: 999px;
}
.byline { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.byline strong { color: var(--ink); }

/* Disclosure box directly under the H1 */
.disclosure {
  background: var(--amber-soft); border: 1px solid #e7cfa6; border-left: 5px solid var(--amber);
  border-radius: 10px; padding: 14px 16px; margin: 0 0 22px; font-size: 15px; line-height: 1.55;
}
.disclosure p { margin: 0 0 6px; }
.disclosure p:last-child { margin: 0; }

/* Cards and boxes */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card h3 { margin-top: 0; }
.card .more { font-weight: 600; }
.note { background: var(--sand); border-radius: 10px; padding: 14px 16px; font-size: 15px; }
.key {
  border-left: 4px solid var(--olive); background: var(--surface); padding: 14px 18px;
  border-radius: 0 10px 10px 0; margin: 0 0 18px;
}
.toc { font-size: 15px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Figures */
figure { margin: 28px 0; }
figure img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg);
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--sand); font-weight: 700; }

/* Call to action */
.cta {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 28px 0; box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--olive); color: #ffffff; text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 12px 22px; border-radius: 12px; text-align: center; line-height: 1.3;
}
.btn:hover { background: var(--olive-dark); color: #ffffff; }
.btn .tag {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #ffe2b5;
}
.btn.block { display: flex; width: 100%; }
.cta-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* Definition list (glossary, legal) */
dl.terms dt { font-weight: 700; margin-top: 18px; }
dl.terms dd { margin: 4px 0 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 20px; }
dl.facts dt { font-weight: 700; }
dl.facts dd { margin: 0; }
@media (max-width: 560px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 10px; } }

.sources { font-size: 15px; }
.sources li { word-break: break-word; }

/* Hero (home) */
.hero { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); margin-bottom: 36px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; } }
.hero img { border-radius: 20px; border: 1px solid var(--line); }

/* Footer */
.site-foot { background: var(--ink); color: #cfd5cf; font-size: 14px; }
.site-foot .in { max-width: 1160px; margin: 0 auto; padding: 36px 16px 28px; }
.site-foot a { color: #ffffff; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-foot h2 { color: #ffffff; font-size: 15px; margin: 0 0 10px; padding: 0; letter-spacing: .02em; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot address { font-style: normal; line-height: 1.6; }
.foot-legal { border-top: 1px solid #34413a; margin-top: 26px; padding-top: 18px; font-size: 13px; color: #a9b3ab; }
.foot-legal p { margin: 0 0 8px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121814; --surface: #1a221d; --sand: #26302a; --line: #303b34; --ink: #e8ebe4;
    --muted: #a5b0a8; --olive: #a9c27f; --olive-dark: #c8dca4; --amber-soft: #2b2417;
    --shadow: none;
  }
  .lead { color: #d3d9d0; }
  .disclosure { border-color: #5a4523; }
  .btn { background: #4f6136; }
  .btn:hover { background: #5f7441; }
  .site-foot { background: #0b0f0c; }
  figure img { background: #f5f4ee; }
}
