/* Dental Is Medical — publication design system
   Journal register: Source Serif 4 (text), Inter (UI), IBM Plex Mono (data). */

:root {
  --paper: #faf8f4;
  --ink: #1a1611;
  --ink-2: #5c554a;
  --ink-3: #8a8275;
  --line: #e3ddd2;
  --accent: #8a1c1c;      /* oxblood — medical journal, not startup red */
  --accent-2: #1c4f46;    /* deep clinical green */
  --surface: #f2eee6;
  --max: 1080px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12100d;
    --ink: #ece7dd;
    --ink-2: #a89f90;
    --ink-3: #6f685c;
    --line: #2a251e;
    --accent: #d4756b;
    --accent-2: #6fb3a4;
    --surface: #1a1712;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* masthead */
.masthead { border-bottom: 3px double var(--line); padding: 20px 0 16px; }
.masthead-in { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand em { font-style: italic; color: var(--accent); }
.masthead nav { display: flex; gap: 22px; font-family: var(--sans); font-size: 13.5px; }
.masthead nav a { color: var(--ink-2); text-decoration: none; letter-spacing: 0.02em; }
.masthead nav a:hover { color: var(--accent); }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }

/* article */
article.paper { padding: 56px 0 72px; }
article.paper header { margin-bottom: 40px; }
article.paper h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 12px 0 16px; font-weight: 700; }
.dek { font-size: 21px; color: var(--ink-2); font-style: italic; line-height: 1.5; max-width: 62ch; }
.byline { margin-top: 22px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; }
article.paper h2 { font-size: 27px; margin: 48px 0 14px; letter-spacing: -0.01em; }
article.paper p { margin: 0 0 20px; }
article.paper p + p { text-indent: 0; }
article.paper a { color: var(--accent); text-underline-offset: 3px; }
article.paper blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 22px;
  margin: 28px 0;
  font-size: 21px;
  font-style: italic;
  color: var(--ink-2);
}
.pullstat {
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.7;
}
.pullstat strong { color: var(--accent); font-size: 22px; }

/* sources */
.sources { border-top: 1px solid var(--line); margin-top: 56px; padding-top: 24px; }
.sources h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 14px; }
.sources ol { font-family: var(--sans); font-size: 13.5px; color: var(--ink-2); padding-left: 20px; line-height: 1.8; }
.sources a { color: var(--accent-2); word-break: break-all; }

/* front page */
.front-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.front-hero h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -0.025em; max-width: 17ch; margin: 14px 0 20px; }
.front-hero .dek { max-width: 58ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; padding: 40px 0; }
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent); }
.card h3 { font-size: 20px; line-height: 1.28; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.card .more { font-family: var(--sans); font-size: 13px; color: var(--accent-2); margin-top: auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 40px 0 10px; }
.section-head h2 { font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 600; }

/* provider strip */
.strip { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; margin: 48px 0 0; }
.strip-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 780px) { .strip-in { grid-template-columns: 1fr; } }
.strip h2 { font-size: 24px; letter-spacing: -0.01em; margin-bottom: 10px; }
.strip p { color: var(--ink-2); font-size: 16px; }
.strip .links { display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); font-size: 15px; }
.strip .links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.strip .links a:hover { border-color: var(--accent); }

/* footer */
footer.colophon { border-top: 3px double var(--line); margin-top: 72px; padding: 36px 0 48px; font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); }
footer.colophon .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 720px) { footer.colophon .cols { grid-template-columns: 1fr; } }
footer.colophon h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; color: var(--ink-2); }
footer.colophon a { color: var(--ink-2); text-decoration: none; display: block; margin-bottom: 7px; }
footer.colophon a:hover { color: var(--accent); }
footer.colophon .fine { margin-top: 26px; font-size: 12.5px; line-height: 1.7; max-width: 70ch; }
