/* Yonsei Saebom — Q2 2026 Document Report
 * Design System: Claude (Anthropic) — parchment + terracotta + warm serif
 * Source: awesome-design-md/design-md/claude/DESIGN.md
 */

:root {
  /* Claude design system — exact hex */
  --parchment:       #f5f4ed;
  --ivory:           #faf9f5;
  --pure-white:      #ffffff;
  --warm-sand:       #e8e6dc;
  --dark-surface:    #30302e;
  --deep-dark:       #141413;

  --terracotta:      #c96442;
  --coral:           #d97757;

  --near-black:      #141413;
  --charcoal-warm:   #4d4c48;
  --olive-gray:      #5e5d59;
  --stone-gray:      #87867f;
  --dark-warm:       #3d3d3a;
  --warm-silver:     #b0aea5;

  --border-cream:    #f0eee6;
  --border-warm:     #e8e6dc;
  --border-dark:     #30302e;
  --ring-warm:       #d1cfc5;
  --ring-deep:       #c2c0b6;

  --error-crimson:   #b53333;
  --focus-blue:      #3898ec;

  /* Functional roles */
  --accent-positive: #5a7d4e;   /* muted moss for "good" markers */
  --accent-warn:     #b8740f;   /* warm amber for caution */
  --accent-critical: #b53333;   /* error crimson for critical */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--parchment); color: var(--near-black); }
body {
  font-family: 'Inter', 'Pretendard Variable', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.font-serif { font-family: 'EB Garamond', 'Noto Serif KR', Georgia, serif; }
.font-mono  { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

/* ── Document scaffold ── */
.doc {
  max-width: 760px;        /* book-page width */
  margin: 0 auto;
  padding: 80px 32px 120px;
}

.cover {
  padding: 12vh 32px 6vh;
  border-bottom: 1px solid var(--border-warm);
  text-align: left;
}
.cover-inner {
  max-width: 760px; margin: 0 auto;
}

.cover .stamp {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500;
  border: 1px solid var(--terracotta); padding: 6px 14px; border-radius: 4px;
}
.cover h1 {
  font-family: 'EB Garamond', 'Noto Serif KR', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.10;
  letter-spacing: -0.015em;
  color: var(--near-black);
  margin: 24px 0 14px;
  word-break: keep-all;
}
.cover h1 em { font-style: italic; color: var(--terracotta); }
.cover .subtitle {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--olive-gray);
  line-height: 1.40;
  margin: 0;
  max-width: 580px;
}
.cover .meta-line {
  font-size: 13px; color: var(--stone-gray);
  margin-top: 32px; letter-spacing: 0.06em;
}
.cover .meta-line .dot { margin: 0 8px; color: var(--ring-warm); }

/* ── Headings ── */
.h-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--stone-gray); font-weight: 500;
  margin: 0 0 14px;
}
h2.section {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.20;
  letter-spacing: -0.015em;
  color: var(--near-black);
  margin: 80px 0 18px;
  padding-top: 56px;
  border-top: 1px solid var(--border-cream);
  word-break: keep-all;
}
h2.section em { font-style: italic; color: var(--terracotta); }
h2.section:first-child { padding-top: 0; border-top: none; }

h3.sub {
  font-family: 'EB Garamond', serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 1.30;
  color: var(--near-black);
  margin: 40px 0 12px;
}

/* ── Body text ── */
p { margin: 0 0 16px; color: var(--charcoal-warm); }
p.lede {
  font-family: 'EB Garamond', serif;
  font-size: 22px; line-height: 1.55; color: var(--olive-gray);
  font-style: italic; margin: 12px 0 32px;
}
p.body { color: var(--charcoal-warm); }
p.body b, p.body strong { color: var(--near-black); font-weight: 500; }
p.body em { color: var(--terracotta); font-style: italic; }
a { color: var(--terracotta); text-decoration: none; border-bottom: 1px solid rgba(201,100,66,0.3); transition: border-color 0.15s; }
a:hover { border-color: var(--terracotta); }

ul.body, ol.body { color: var(--charcoal-warm); padding-left: 22px; margin: 0 0 24px; }
ul.body li, ol.body li { margin: 6px 0; line-height: 1.55; }

/* ── Pull quote ── */
blockquote.pull {
  font-family: 'EB Garamond', 'Noto Serif KR', serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.42;
  color: var(--near-black);
  border-left: 3px solid var(--terracotta);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
}

/* ── Tables ── */
table.t {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14px;
  background: var(--ivory);
  border: 1px solid var(--border-warm);
  border-radius: 4px;
  overflow: hidden;
}
table.t th {
  text-align: left; font-weight: 500;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone-gray);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-warm);
  background: var(--warm-sand);
}
table.t td {
  padding: 12px 16px; vertical-align: top;
  border-bottom: 1px solid var(--border-cream);
  color: var(--charcoal-warm);
}
table.t tr:last-child td { border-bottom: none; }
table.t td.num { font-family: 'JetBrains Mono', monospace; text-align: right; color: var(--near-black); }
table.t td.em { color: var(--terracotta); font-weight: 500; }
table.t td.dn { color: var(--accent-critical); font-weight: 500; }
table.t td.up { color: var(--accent-positive); font-weight: 500; }
table.t tr.total td { background: var(--warm-sand); font-weight: 500; color: var(--near-black); border-top: 2px solid var(--ring-deep); }

/* ── Sidenote / Callout ── */
.callout {
  background: var(--ivory);
  border: 1px solid var(--border-warm);
  border-left: 3px solid var(--terracotta);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 15px; line-height: 1.6;
  color: var(--charcoal-warm);
  border-radius: 3px;
}
.callout .lbl {
  display: block;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--terracotta); font-weight: 500;
  margin-bottom: 6px;
}
.callout.muted { border-left-color: var(--stone-gray); }
.callout.muted .lbl { color: var(--stone-gray); }

/* ── Stat figures ── */
.fig-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 28px 0 36px; padding: 24px 0; border-top: 1px solid var(--border-warm); border-bottom: 1px solid var(--border-warm); }
@media (max-width: 700px) { .fig-row { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.fig { }
.fig .l { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--stone-gray); margin-bottom: 8px; }
.fig .n { font-family: 'EB Garamond', serif; font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--near-black); }
.fig .n.em { color: var(--terracotta); }
.fig .s { font-size: 12px; color: var(--stone-gray); margin-top: 6px; }

/* ── Comparison split (ID vs MY) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 28px 0 36px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.split .col { padding: 22px 24px; background: var(--ivory); border: 1px solid var(--border-warm); border-radius: 4px; }
.split .col h4 { font-family: 'EB Garamond', serif; font-weight: 500; font-size: 22px; margin: 0 0 4px; color: var(--near-black); }
.split .col .role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px; }
.split .col .role.cool { color: var(--accent-positive); }
.split .col dl { margin: 0; }
.split .col dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-gray); margin-top: 14px; }
.split .col dd { margin: 4px 0 0; font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--near-black); }

/* ── Footnotes ── */
.fn-ref {
  font-size: 0.62em; vertical-align: super; line-height: 0;
  color: var(--terracotta); font-weight: 500; margin: 0 1px 0 1px;
  text-decoration: none; border: none;
}
.fn-ref:hover { color: var(--coral); }
.footnotes {
  margin-top: 100px;
  padding: 40px 0 0;
  border-top: 2px solid var(--ring-deep);
}
.footnotes h2 {
  font-family: 'EB Garamond', serif; font-weight: 500;
  font-size: 22px; color: var(--near-black);
  margin: 0 0 24px;
  padding: 0; border: none;
}
.footnotes ol { padding-left: 0; list-style: none; counter-reset: fn; }
.footnotes ol li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--border-cream);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--olive-gray);
  counter-increment: fn;
}
.footnotes ol li:last-child { border-bottom: none; }
.footnotes ol li::before {
  content: counter(fn);
  position: absolute; left: 0; top: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--terracotta);
  width: 24px; text-align: right;
  font-weight: 500;
}
.footnotes ol li .term {
  font-family: 'EB Garamond', serif; font-style: italic; font-weight: 500;
  color: var(--near-black); font-size: 14.5px;
}
.footnotes ol li .full {
  font-size: 12.5px; color: var(--stone-gray); font-family: 'Inter', sans-serif;
  margin-left: 6px;
}

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,237,0.92);
  border-bottom: 1px solid var(--border-cream);
  padding: 14px 32px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--olive-gray);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(8px);
}
.topbar .right { display: flex; gap: 18px; }
.topbar a { color: var(--olive-gray); border: none; }
.topbar a:hover { color: var(--terracotta); }

/* ── Closing colophon ── */
.colophon {
  margin-top: 96px;
  padding: 36px 0 0;
  border-top: 1px solid var(--border-cream);
  text-align: center;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--stone-gray);
  line-height: 1.8;
}
.colophon a { color: var(--olive-gray); border: none; }
.colophon a:hover { color: var(--terracotta); }

/* ── Print ── */
@media print {
  .topbar { display: none !important; }
  body, html { background: white; }
  .doc { padding: 24px; max-width: 100%; }
  h2.section { page-break-after: avoid; }
  table.t, .split, .fig-row, .callout { page-break-inside: avoid; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .doc { padding: 56px 22px 80px; }
  .cover { padding: 8vh 22px 4vh; }
}
