/* Colors from tokens.css — do not re-lock light --paper/--ink (theme residual). */
:root {
  --page: min(100%, 1600px);
  --pad: clamp(18px, 3.8vw, 60px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; width: 100%; }
:focus-visible { outline: 2px solid #4f7f00; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: -80px;
  left: 18px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 18px; }

.story-header {
  position: static;
  z-index: 30;
  top: auto;
  display: flex;
  width: var(--page);
  margin-inline: auto;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  backdrop-filter: none; /* chrome-lock when under journal-global */
}

.story-wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 900; letter-spacing: -.02em; }
.story-wordmark img { width: 24px; height: 24px; }
.story-header nav { display: flex; gap: 22px; align-items: center; font: 10px/1.2 ui-monospace, monospace; letter-spacing: .08em; }
.story-header nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }
.story-header button { padding: 0; border: 0; background: transparent; }

main,
.story-footer { width: var(--page); margin-inline: auto; }

.article-hero {
  display: grid;
  grid-template-columns: minmax(420px, .9fr) minmax(0, 1.1fr);
  min-height: min(850px, calc(100vh - 59px));
  border-bottom: 1px solid var(--ink);
}

.article-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(44px, 6vw, 94px) var(--pad);
  border-right: 1px solid var(--ink);
}

.article-label {
  margin: 0 0 16px;
  font: 700 10px/1.4 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 18em;
  margin: 0;
  /* 메인 .opening-story h1 과 동일 한글 디스플레이 계약 */
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.article-dek {
  max-width: 640px;
  margin: 30px 0 0;
  color: var(--grey);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.article-hero dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 46px 0 0; padding-top: 14px; border-top: 1px solid var(--hairline); }
.article-hero dl div { min-width: 0; }
.article-hero dt { color: var(--grey); font: 8px/1.3 ui-monospace, monospace; letter-spacing: .1em; }
.article-hero dd { min-width: 0; margin: 5px 0 0; font: 9px/1.35 ui-monospace, monospace; overflow-wrap: anywhere; }

.article-hero figure { position: relative; min-width: 0; margin: 0; }
.article-hero figure img { height: 100%; min-height: 650px; object-fit: cover; }
.article-hero figure.article-hero__media--contain {
  display: grid;
  padding: clamp(20px, 4vw, 64px);
  place-items: center;
  background: var(--surface-strong, #e4e5e1);
}
.article-hero figure.article-hero__media--contain img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 720px;
  object-fit: contain;
}
.article-hero figcaption { position: absolute; right: 14px; bottom: 12px; padding: 6px 8px; background: rgba(0, 0, 0, .72); color: #fff; font: 8px/1.4 ui-monospace, monospace; letter-spacing: .08em; }

.direct-answer {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 6vw, 110px);
  align-items: end;
  padding: clamp(58px, 9vw, 140px) var(--pad);
  border-bottom: 1px solid var(--ink);
  background: var(--lime);
}
.direct-answer .article-label { grid-column: 1 / -1; margin-bottom: -20px; }
.direct-answer h2 { margin: 0; font-size: clamp(38px, 5vw, 78px); line-height: 1.14; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.direct-answer > p:last-child { margin: 0; font-size: clamp(18px, 1.8vw, 26px); line-height: 1.65; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: break-word; }

.article-body { width: min(100%, 1120px); margin-inline: auto; padding: clamp(54px, 8vw, 130px) var(--pad); }
.article-section { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 24px; padding: 58px 0; border-bottom: 1px solid var(--hairline); }
.article-section:first-child { padding-top: 0; }
.article-section:last-child { padding-bottom: 0; border-bottom: 0; }
.article-section__number { padding-top: 8px; color: var(--grey); font: 11px ui-monospace, monospace; }
.article-section h2 { max-width: 760px; margin: 0; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.16; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.article-section p { max-width: 760px; margin: 24px 0 0; color: var(--muted, #3f444a); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.95; word-break: keep-all; overflow-wrap: break-word; }
.article-source-link { display: inline-block; margin-top: 20px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 750; }

.article-media {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 50px;
  align-items: center;
  padding: clamp(60px, 8vw, 120px) var(--pad);
  border-block: 1px solid var(--ink);
  background: #15171b;
  color: #f8f7f2;
}
.article-media h2 { margin: 0; font-size: clamp(38px, 4.6vw, 70px); line-height: 1.14; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.article-media .article-label { color: var(--lime); }
.video-shell { overflow: hidden; aspect-ratio: 16 / 9; background: #08090b; }
.video-shell iframe { width: 100%; height: 100%; border: 0; }

.source-note { display: grid; grid-template-columns: .55fr 1fr auto; gap: 30px; align-items: center; padding: 30px var(--pad); border-bottom: 1px solid var(--ink); }
.source-note span { font: 9px ui-monospace, monospace; letter-spacing: .1em; }
.source-note p { margin: 0; color: var(--grey); font-size: 13px; word-break: keep-all; }
.source-note a { border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 750; white-space: nowrap; }

.story-to-object {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 8vw, 130px);
  padding: clamp(70px, 10vw, 150px) var(--pad);
  border-bottom: 1px solid var(--ink);
}
.story-to-object h2 { margin: 0; font-size: clamp(40px, 5.2vw, 80px); line-height: 1.14; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
.story-to-object > div:first-child > p:not(.article-label) { max-width: 650px; margin: 26px 0 0; color: var(--grey); font-size: 17px; line-height: 1.8; word-break: keep-all; }
.commerce-facts {
  display: grid;
  margin: 32px 0 0;
  border-top: 1px solid var(--ink);
}
.commerce-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.commerce-facts dt {
  color: #648e18;
  font: 700 9px/1.5 ui-monospace, monospace;
  letter-spacing: .08em;
}
.commerce-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}
.object-links { align-self: end; border-top: 1px solid var(--ink); }
.object-links a { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.object-links span { color: var(--grey); font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.object-links strong { font-size: 21px; line-height: 1.35; word-break: keep-all; }
.object-links b { color: #648e18; font-weight: 500; }

.next-stories { padding: clamp(60px, 8vw, 120px) var(--pad); background: #15171b; color: #f8f7f2; }
.next-stories .article-label { color: var(--lime); }
.next-stories > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.next-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 8px 22px; padding: 18px; border: 1px solid #4a4f58; }
.next-card img { grid-row: 1 / 3; width: 150px; height: 120px; object-fit: cover; }
.next-card--contain img { object-fit: contain; background: #e4e5e1; }
.next-card span { align-self: end; color: #9da3ad; font: 8px ui-monospace, monospace; letter-spacing: .08em; }
.next-card strong { font-size: 22px; line-height: 1.25; word-break: keep-all; }

.story-footer { display: flex; justify-content: space-between; padding: 34px var(--pad) 70px; font: 9px ui-monospace, monospace; letter-spacing: .08em; }
.story-footer p { margin: 0; color: var(--grey); }

.share-toast {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  max-width: calc(100% - 44px);
  padding: 12px 16px;
  transform: translateY(20px);
  opacity: 0;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.share-toast.is-visible { transform: translateY(0); opacity: 1; }

@media (max-width: 900px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-hero__copy { min-height: 650px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .article-hero figure img { min-height: 0; height: 72vw; }
  .direct-answer,
  .article-media,
  .story-to-object { grid-template-columns: 1fr; }
  .direct-answer .article-label { margin-bottom: 0; }
  .source-note { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 620px) {
  .story-header { flex-direction: column; align-items: stretch; gap: 14px; padding-block: 14px 10px; }
  .story-header nav { overflow-x: auto; padding-bottom: 4px; scroll-padding-inline: var(--pad); scrollbar-width: thin; }
  .story-header nav a,
  .story-header nav button { flex: 0 0 auto; }
  .article-hero__copy { min-height: 610px; }
  .article-hero h1 { font-size: clamp(44px, 13vw, 52px); }
  .article-hero figure img { height: 112vw; }
  .article-hero figure.article-hero__media--contain { padding: 18px; }
  .article-hero figure.article-hero__media--contain img { height: auto; max-height: none; }
  .article-hero dl { grid-template-columns: 1fr; }
  .article-hero dl div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hairline); }
  .article-hero dd { text-align: right; }
  .direct-answer { gap: 24px; }
  .article-section { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .article-media { padding-inline: 0; gap: 34px; }
  .article-media > div:first-child { padding-inline: var(--pad); }
  .commerce-facts div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .object-links a { grid-template-columns: 70px minmax(0, 1fr) auto; }
  .next-stories > div { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 105px minmax(0, 1fr); }
  .next-card img { width: 105px; height: 100px; }
  .next-card strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
