/* dental health — clinical chart editorial system
   Paper, ink, one rust accent, numbered chart rules. No gradients. */

:root {
  --paper: #f3efe6;
  --surface: #fbf8f1;
  --ink: #1b1c19;
  --muted: #5b5d55;
  --faint: #8b8d84;
  --line: #d8d2c3;
  --line-strong: #b9b1a0;
  --accent: #b23a1b;
  --accent-ink: #8a2a11;
  --accent-soft: #f0ddd2;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 10px;
  --shell: 1180px;
  --header: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[dir='rtl'] { direction: rtl; }

img, svg { max-width: 100%; }
img { display: block; height: auto; }

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .9rem;
}
.skip:focus { top: 12px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

.mini-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .02em;
  color: var(--muted);
  text-transform: none;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.kicker-mark {
  width: 7px;
  height: 7px;
  background: var(--accent);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.link-arrow span { transition: color .18s var(--ease); }
.link-arrow:hover { color: var(--accent-ink); border-color: var(--accent); }
.link-arrow.small { font-size: .8rem; }

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.brand-mark { color: var(--accent); flex: 0 0 auto; }
.brand-word {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: .88rem;
}
.main-nav a { color: var(--muted); transition: color .16s var(--ease); }
.main-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { border-color: var(--line-strong); color: var(--ink); }
.lang-switch[open] summary { border-color: var(--ink); color: var(--ink); }
.lang-code { font-size: .68rem; color: var(--accent-ink); letter-spacing: .04em; }
.lang-switch ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 178px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(27, 28, 25, .08);
  padding: 6px;
  z-index: 120;
}
.lang-switch li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: .85rem;
}
.lang-switch li a:hover { background: var(--paper); }
.lang-switch li a[aria-current='page'] { background: var(--accent-soft); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}
.menu-toggle .menu-close { display: none; }
.menu-toggle .icon-x { display: none; }
.menu-toggle[aria-expanded='true'] .menu-open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-close { display: inline; }
.menu-toggle[aria-expanded='true'] .icon-bars { display: none; }
.menu-toggle[aria-expanded='true'] .icon-x { display: inline; }

.mobile-nav {
  border-top: 1px solid var(--line);
  padding: 8px 32px 24px;
  background: var(--paper);
}
.mobile-nav nav { display: grid; }
.mobile-nav nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.mobile-lang { margin-top: 18px; }
.mobile-lang ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-top: 8px;
}
.mobile-lang a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: .88rem;
  color: var(--muted);
}
.mobile-lang a[aria-current='page'] { color: var(--accent-ink); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  min-height: calc(100vh - var(--header));
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(56px, 7vw, 92px);
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.035em;
  margin: 18px 0 22px;
  max-width: 12ch;
}
.hero-dek {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.trust-row li {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  padding: 0 14px;
  border-left: 1px solid var(--line);
}
.trust-row li:first-child { padding-left: 0; border-left: 0; }

.hero-visual { position: relative; }
.specimen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 12px;
  box-shadow: 0 1px 0 rgba(27, 28, 25, .04);
}
.specimen-head,
.specimen-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--muted);
}
.specimen-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.specimen-foot { padding-top: 10px; border-top: 1px solid var(--line); }
.specimen-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.tooth { width: 100%; height: auto; margin: 6px 0; }
.tooth-grid { opacity: .55; }
.tooth-labels text { font-size: 10px; }
.specimen-legend {
  display: none;
  list-style: none;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 2px 0 8px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
}
.specimen-legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border: 1px solid var(--line-strong); }
.swatch-enamel { background: var(--accent-soft); border-color: var(--accent); }
.swatch-dentin { background: #e4d0b2; }
.swatch-pulp { background: #c56a4c; }
.hero-caption {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--faint);
  margin-top: 10px;
  text-align: right;
}

/* sections */
.section {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 36px;
}
.section-num {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent-ink);
  letter-spacing: .03em;
  white-space: nowrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.section-dek {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: .98rem;
  max-width: 54ch;
  margin-top: -10px;
}
.section-head.compact {
  grid-template-columns: auto 1fr;
  margin-bottom: 18px;
}
.section-head.compact h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card { min-width: 0; }
.feature-img {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--line);
}
.feature-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity .2s var(--ease);
}
.feature-img:hover img { opacity: .9; }
.feature-card .guide-cat { margin: 14px 0 6px; }
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.feature-card h3 a:hover { color: var(--accent-ink); }
.feature-time {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
  margin-top: 8px;
}

.guide-cat {
  display: block;
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--accent-ink);
  letter-spacing: .02em;
}

.guide-list {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.guide-row { border-bottom: 1px solid var(--line); }
.guide-row > a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 110px 20px;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
}
.guide-index {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--faint);
}
.guide-body { display: block; min-width: 0; }
.guide-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: 3px;
  transition: color .16s var(--ease);
}
.guide-row > a:hover .guide-title { color: var(--accent-ink); }
.guide-time {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
  text-align: right;
}
.guide-arrow { color: var(--line-strong); font-size: .95rem; transition: color .16s var(--ease); }
.guide-row > a:hover .guide-arrow { color: var(--accent); }

.band {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.how-item { border-top: 1px solid var(--ink); padding-top: 18px; }
.how-num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 18px;
}
.how-item h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}
.how-item p:last-child { color: var(--muted); font-size: .92rem; }

.cta-band {
  display: grid;
  grid-template-columns: 1.5fr auto;
  align-items: center;
  gap: 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 36px 40px;
  margin-top: clamp(56px, 8vw, 96px);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.cta-band .kicker { color: #bdb9ac; }
.cta-band .kicker-mark { background: var(--accent); }
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 10px 0 8px;
}
.cta-band p { color: #c9c5b8; font-size: .92rem; max-width: 56ch; }
.cta-action { text-align: right; }
.cta-action .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-action .btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.cta-action .mini-label { color: #a7a497; margin-top: 10px; }

/* footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.brand-invert .brand-mark { color: var(--accent); }
.footer-brand p {
  color: #b9b5a8;
  font-size: .88rem;
  max-width: 34ch;
  margin-top: 14px;
}
.footer-contact { line-height: 1.8; }
.footer-contact a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.25); }
.footer-contact a:hover { border-color: var(--accent); }
.site-footer .mini-label { color: #8f9186; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: #c9c5b8; font-size: .84rem; }
.site-footer li a:hover { color: var(--paper); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 44px;
  padding-top: 18px;
}
.footer-base p { color: #8f9186; font-size: .68rem; max-width: 70ch; line-height: 1.5; }

/* article */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--faint);
  overflow: hidden;
  white-space: nowrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-current] { overflow: hidden; text-overflow: ellipsis; }

.article-head { max-width: 900px; padding: 26px 0 30px; }
.article-meta {
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
}
.article-cat { color: var(--accent-ink); }
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
  margin: 14px 0 16px;
  max-width: 20ch;
}
.article-dek {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}
.byline {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 7px;
  font-family: var(--serif);
  font-size: 1rem;
}
.avatar.large { width: 56px; height: 56px; font-size: 1.25rem; border-radius: 8px; }
.byline-name { font-size: .88rem; font-weight: 500; line-height: 1.3; }
.byline-role {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.byline-dates { font-family: var(--mono); font-size: .64rem; color: var(--faint); margin-top: 3px; }
.byline-check {
  margin-left: auto;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--faint);
  text-align: right;
  max-width: 230px;
  line-height: 1.5;
}

.hero-figure { margin: 8px auto 42px; max-width: 980px; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--line);
}
.hero-figure figcaption {
  font-family: var(--mono);
  font-size: .64rem;
  color: var(--faint);
  margin-top: 8px;
}

.article-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 40px;
}
.article-aside {
  position: sticky;
  top: calc(var(--header) + 24px);
  align-self: start;
}
.tldr {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tldr ul { list-style: none; margin-top: 10px; }
.tldr li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink);
}
.tldr li:last-child { margin-bottom: 0; }
.tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.toc { margin-top: 26px; border-top: 1px solid var(--ink); padding-top: 12px; }
.toc ol { list-style: none; margin-top: 8px; }
.toc a {
  display: flex;
  gap: 9px;
  padding: 6px 0;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted);
  transition: color .16s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent-ink); }
.toc-num { font-family: var(--mono); font-size: .64rem; color: var(--faint); padding-top: 2px; }
.toc a.is-active .toc-num { color: var(--accent); }
.toc-mobile { display: none; }

.share { margin-top: 20px; }
.copy-link {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.copy-link:hover { color: var(--ink); border-color: var(--ink); }

.prose {
  max-width: 720px;
  font-size: 1.04rem;
  line-height: 1.72;
  counter-reset: h2;
}
.prose p { margin: 0 0 1.15em; }
.prose .lead {
  font-size: 1.16rem;
  line-height: 1.62;
  color: var(--ink);
  margin-bottom: 1.3em;
}
.prose > h2 {
  counter-increment: h2;
  font-family: var(--serif);
  font-size: clamp(1.42rem, 2.3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.015em;
  margin: 2.4em 0 .7em;
  padding-top: 1.05em;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header) + 18px);
}
.prose > h2::before {
  content: '0' counter(h2);
  font-family: var(--mono);
  font-size: .58em;
  color: var(--accent);
  margin-right: 10px;
  vertical-align: .14em;
}
.prose h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 1.8em 0 .45em;
}
.prose a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.2em 1.15em; }
.prose li { margin-bottom: .35em; }
.prose strong { font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 1.5em 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  line-height: 1.45;
}
.prose th {
  text-align: left;
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
  padding: 8px 14px 8px 0;
  vertical-align: bottom;
}
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px 10px 0;
  vertical-align: top;
}
.prose tr:last-child td { border-bottom: 1px solid var(--line); }

.callout {
  margin: 1.8em 0;
  padding: 14px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
}
.callout p { margin: 0; font-size: .92rem; line-height: 1.6; }
.callout .callout-label {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--accent-ink);
  margin-bottom: 6px;
}
.disclaimer-inline {
  font-size: .78rem;
  line-height: 1.55;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 2em;
}

.faq { margin-top: 46px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 15px 0;
  font-size: .96rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
}
.faq details[open] summary::after { content: '−'; }
.faq-answer p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
  max-width: 64ch;
}

.refs { margin-top: 40px; }
.refs h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.refs ol { margin-left: 1.1em; }
.refs li { font-size: .8rem; color: var(--muted); margin-bottom: 7px; line-height: 1.5; }
.refs a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.refs a:hover { color: var(--accent-ink); }

.author-box {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  margin: 46px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.author-box h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 3px 0 2px;
}
.author-role { font-family: var(--mono); font-size: .66rem; color: var(--muted); margin-bottom: 8px; }
.author-box p:last-child { font-size: .84rem; color: var(--muted); line-height: 1.6; }

.medical-note {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.medical-note p:last-child { font-size: .78rem; color: var(--muted); line-height: 1.55; margin-top: 5px; }

.related { margin-top: 46px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { border-top: 1px solid var(--ink); padding-top: 11px; }
.related-card h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 6px 0 7px;
}
.related-card h3 a:hover { color: var(--accent-ink); }
.related-card .feature-time { margin-top: 0; }

.newsletter-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 44px 0 10px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.newsletter-inline h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 4px 0 5px;
}
.newsletter-inline p:last-child { font-size: .84rem; color: var(--muted); max-width: 48ch; }

/* 404 */
.not-found { min-height: 100vh; display: grid; place-items: center; }
.nf-main { max-width: 680px; padding: 48px 32px; }
.nf-main h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 14px 0 14px;
}
.nf-main > p { color: var(--muted); max-width: 48ch; }
.nf-langs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 20px;
  margin: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.nf-langs a { display: flex; gap: 9px; padding: 9px 0; font-size: .9rem; }
.nf-langs a:hover { color: var(--accent-ink); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(10px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .hero { gap: 36px; }
  .hero-copy h1 { font-size: clamp(2.7rem, 5.6vw, 4.4rem); }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .lang-switch { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 44px;
    padding-bottom: 56px;
  }
  .hero-copy h1 { max-width: 14ch; }
  .hero-visual { max-width: 560px; }
  .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .article-aside { position: static; display: grid; gap: 16px; }
  .toc { display: none; }
  .toc-mobile { display: block; border-top: 1px solid var(--ink); padding-top: 10px; }
  .toc-mobile summary {
    list-style: none;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 0;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: ' +'; color: var(--accent); }
  .toc-mobile[open] summary::after { content: ' −'; }
  .toc-mobile ol { list-style: none; margin-top: 6px; }
  .toc-mobile a { display: flex; gap: 9px; padding: 6px 0; font-size: .84rem; color: var(--muted); }
  .share { display: none; }
  .byline-check { display: none; }
  .how-grid { grid-template-columns: 1fr; gap: 26px; }
  .how-item { padding-top: 14px; }
  .how-num { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .mobile-nav { padding-left: 20px; padding-right: 20px; }
  .section-head { grid-template-columns: auto 1fr; gap: 14px; }
  .section-head > .link-arrow { grid-column: 2 / 3; justify-self: start; }
  .section-dek { grid-column: 1 / -1; margin-top: 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 30px; }
  .feature-img img { aspect-ratio: 16 / 9; }
  .guide-row > a { grid-template-columns: 32px minmax(0, 1fr) 18px; gap: 12px; }
  .guide-time { display: none; }
  .guide-title { font-size: 1.15rem; }
  .cta-band { grid-template-columns: 1fr; padding: 28px 24px; gap: 22px; }
  .cta-action { text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-base { flex-direction: column; gap: 8px; }
  .article-head h1 { max-width: none; }
  .byline { flex-wrap: wrap; }
  .byline-role { display: block; margin-left: 0; margin-top: 2px; }
  .hero-figure { margin-bottom: 30px; }
  .prose { font-size: 1rem; }
  .related-grid { grid-template-columns: 1fr; gap: 16px; }
  .newsletter-inline { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .header-inner { height: 64px; gap: 14px; }
  :root { --header: 64px; }
  .brand-word { font-size: 1.05rem; }
  .hero-copy h1 { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .hero-actions { gap: 18px; }
  .trust-row li { padding: 0 10px; font-size: .62rem; }
  .specimen { padding: 12px 12px 10px; }
  .specimen-head, .specimen-foot { font-size: .6rem; }
  .tooth-labels { display: none; }
  .specimen-legend { display: flex; }
  .section-head h2 { font-size: 1.65rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nf-langs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
