/* AskWithin v3.1 (base) — "the night editing room"
   Night comes from the D. app, paper from the D. cards themselves.
   Titles: Fraunces (soft, from dot WEB-AUTO-004 option A); Korean hero title: Gowun Batang; text: Noto Sans KR / Noto Serif KR. */
:root {
  --night: #0b1120;
  --night-line: #1f2a40;
  --paper: #f3ecde;
  --paper-deep: #ebe2d0;
  --ink: #1b2230;
  --ink-soft: #4a5260;
  --gold: #d8bd7f;
  --mist: #a8b0b8;
  --sage: #536a54;
  --rule: #ddd3c1;
  --rule-strong: #c9bca4;

  --display: "Fraunces", "Noto Serif KR", Georgia, serif;
  --serif-ko: "Noto Serif KR", Batang, serif;
  --sans: "Noto Sans KR", system-ui, -apple-system, "Malgun Gothic", sans-serif;

  --wrap: 72.5rem;
}
html[lang="ko"] { --display: "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.75 var(--sans);
  word-break: keep-all;
  overflow-wrap: break-word;
  font-synthesis: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sage); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
.night :focus-visible { outline-color: var(--gold); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 40rem) { .wrap { padding: 0 1rem; } }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--paper); color: var(--ink); padding: .5rem .8rem; }

/* ---------------- night: header + hero ---------------- */
.night { background: var(--night); color: var(--paper); }
.night a { color: var(--paper); }

.site-head .wrap { display: flex; align-items: center; min-height: 4.5rem; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--paper); font: 600 1.375rem/1 "Fraunces", Georgia, serif; letter-spacing: -.005em; }
.brand svg { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; font-size: .9375rem; }
.site-nav .nav-links { display: flex; gap: 1.75rem; }
.site-nav a { color: var(--mist); text-decoration: none; padding: .6rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }
.site-nav .lang { color: var(--gold); }
.menu { display: none; }
@media (max-width: 52rem) {
  .site-nav .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; color: var(--paper); display: flex; align-items: center; min-height: 2.75rem; min-width: 2.75rem; padding: 0 .5rem; font-size: .9375rem; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { color: var(--gold); }
  .menu .menu-panel {
    position: absolute; right: 0; top: 100%; z-index: 10; min-width: 13rem;
    background: var(--night); border: 1px solid var(--night-line); border-radius: .5rem;
    padding: .5rem; display: flex; flex-direction: column;
  }
  .menu .menu-panel a { color: var(--paper); text-decoration: none; padding: .75rem .75rem; border-radius: .35rem; }
  .menu .menu-panel a:hover { background: var(--night-line); }
  .site-nav { gap: 1rem; }
}

.hero { padding: 4.5rem 0 6rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) clamp(18rem, 28vw, 25rem); gap: 3.5rem; align-items: center; }
.hero h1 {
  font: 500 clamp(2.4rem, 4.1vw, 3.5rem)/1.12 var(--display);
  text-wrap: balance;
  letter-spacing: -.012em;
  margin: 0 0 1.75rem;
  color: var(--paper);
}
html[lang="ko"] .hero h1 { font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.3; letter-spacing: -.02em; }
.hero h1 span { display: block; }
.hero .intro { font-size: 1.125rem; line-height: 1.75; color: var(--paper); max-width: 31rem; margin: 0 0 2.25rem; opacity: .92; }
.hero .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.75rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.4rem;
  border-radius: 999px; font: 500 1rem/1 var(--sans); text-decoration: none;
}
.night .btn-primary { background: var(--paper); color: var(--night); }
.night .btn-primary:hover { background: #fff8ea; color: var(--night); }
.text-link { color: var(--paper); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(243, 236, 222, .4); padding: .7rem 0; }
.night .text-link:hover { text-decoration-color: var(--gold); }
.hero .note { margin: 2.25rem 0 0; font-size: .875rem; color: var(--mist); max-width: 30rem; line-height: 1.65; }

.hero-card { margin: 0; }
.hero-card img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .375rem;
  box-shadow: 0 2.5rem 4rem -2rem rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3);
}
.hero-card figcaption { margin-top: 1rem; font-size: .8125rem; color: var(--mist); line-height: 1.6; }

@media (max-width: 52rem) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.75rem; }
  .hero-card { max-width: 22rem; }
  .hero .note { margin-top: 1.5rem; }
}

/* ---------------- paper sections ---------------- */
.section { padding: 6.5rem 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 {
  font: 500 clamp(2rem, 3.4vw, 2.75rem)/1.18 var(--display);
  letter-spacing: -.01em; margin: 0 0 1.25rem; color: var(--ink);
}
html[lang="ko"] .section h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); line-height: 1.35; letter-spacing: -.02em; }
.section .lede { font-size: 1.125rem; color: var(--ink-soft); max-width: 36rem; margin: 0; }
@media (max-width: 52rem) { .section { padding: 4rem 0; } }

.tagline {
  font: 400 clamp(1.25rem, 2.1vw, 1.5rem)/1.6 var(--serif-ko);
  color: var(--ink); max-width: 30em; margin: 2.5rem 0 0;
  padding-left: 1.25rem; border-left: 2px solid var(--sage);
}
.tagline small { display: block; font: 400 .875rem/1.6 var(--sans); color: var(--ink-soft); margin-top: .35rem; }

/* card reader */
.reader {
  display: grid; grid-template-columns: clamp(17rem, 34vw, 27rem) minmax(0, 1fr);
  grid-template-areas: "stage roles" "stage text"; grid-template-rows: auto 1fr;
  column-gap: 4.5rem; margin-top: 4rem; align-items: start;
}
.reader > .roles { grid-area: roles; }
.reader-stage { grid-area: stage; position: sticky; top: 1.5rem; }
.reader-text { grid-area: text; min-width: 0; }
.stage-title { margin: 0 0 .75rem; font: 500 .9375rem/1.4 var(--sans); color: var(--ink-soft); }
.stage-title [data-count] { font-variant-numeric: tabular-nums; color: var(--sage); }
.no-js .stage-title { display: none; }
.reader-stage .frame { position: relative; aspect-ratio: 2 / 3; border-radius: .375rem; overflow: hidden; background: var(--paper-deep); box-shadow: 0 1.5rem 3rem -1.75rem rgba(27, 34, 48, .55); }
.reader-stage .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .reader-stage .frame img { opacity: 0; transition: opacity .2s ease; }
.js .reader-stage .frame img.is-current { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js .reader-stage .frame img { transition: none; } }
.no-js .reader-stage .frame { aspect-ratio: auto; background: none; box-shadow: none; overflow: visible; display: grid; gap: 1rem; }
.no-js .reader-stage .frame img { position: static; height: auto; border-radius: .375rem; }

.stepper { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.stepper button {
  font: 500 .9375rem/1 var(--sans); color: var(--ink); background: transparent;
  border: 1px solid var(--rule-strong); border-radius: 999px; min-height: 2.75rem; padding: 0 1.15rem; cursor: pointer;
}
.stepper button:hover { border-color: var(--ink); }
.stepper button:disabled { opacity: .4; cursor: default; border-color: var(--rule-strong); }
.no-js .stepper { display: none; }

.roles { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.roles button {
  font: 500 .9375rem/1.2 var(--sans); color: var(--ink-soft); background: transparent; cursor: pointer;
  border: 0; border-bottom: 2px solid transparent; padding: .75rem .1rem; margin-right: 1.25rem;
}
.roles button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--sage); }
.roles button:hover { color: var(--ink); }
.no-js .roles { display: none; }

.card-text h3 { font: 500 1.5rem/1.35 var(--display); margin: 0 0 .5rem; color: var(--ink); }
html[lang="ko"] .card-text h3 { font-size: 1.375rem; }
.card-text .job { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 34rem; }
.card-text .transcript { border-top: 1px solid var(--rule); padding-top: 1.5rem; max-width: 34rem; }
.card-text .transcript p { margin: 0 0 1rem; font-family: var(--serif-ko); font-size: 1.0625rem; line-height: 1.8; }
.card-text .transcript .kicker { font: 500 .875rem/1.5 var(--sans); color: var(--sage); margin: 1.5rem 0 .4rem; }
.card-text .transcript ul { margin: 0 0 1rem; padding-left: 1.1rem; font-family: var(--serif-ko); }
.card-text .transcript li { margin: .25rem 0; }
.card-text .original { margin-top: 1rem; }
.card-text .original summary { cursor: pointer; color: var(--sage); font-weight: 500; padding: .5rem 0; }
.card-text .original[open] summary { margin-bottom: .75rem; }
.js .card-text { display: none; }
.js .card-text.is-current { display: block; }
.no-js .card-text { margin-bottom: 3rem; }

.dream { margin: 0 0 2.5rem; padding: 0 1.5rem; background: var(--paper-deep); border-radius: .5rem; max-width: 34rem; }
.dream summary { cursor: pointer; font: 500 .875rem/1.5 var(--sans); color: var(--ink-soft); padding: .9rem 0; list-style: none; display: flex; gap: .6rem; align-items: baseline; }
.dream summary::-webkit-details-marker { display: none; }
.dream summary::before { content: "+"; color: var(--sage); font-weight: 500; width: .8rem; flex: none; }
.dream[open] summary::before { content: "−"; }
.dream p { margin: 0 0 1.25rem; font-family: var(--serif-ko); line-height: 1.85; }

@media (max-width: 52rem) {
  .reader { grid-template-columns: 1fr; grid-template-areas: "roles" "stage" "text"; grid-template-rows: auto; margin-top: 2rem; }
  .reader-stage { position: static; max-width: 22rem; margin-bottom: 2rem; }
  .reader > .roles { margin-bottom: 1rem; }
  .roles button { margin-right: .9rem; }
  .dream { margin-bottom: 2rem; }
}

/* lab notes */
.notes-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.notes-intro p { margin: 0 0 1rem; max-width: 34rem; }
@media (max-width: 52rem) { .notes-intro { grid-template-columns: 1fr; gap: 1rem; } }
.lab { margin-top: 3rem; }
.lab h3 { font: 500 1.0625rem/1.4 var(--sans); color: var(--ink); margin: 0 0 1rem; }
.lab h3 .asof { font-weight: 400; font-size: .875rem; color: var(--ink-soft); margin-left: .4rem; }
.cell-label { display: none; }
.lab-table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.lab-table th { text-align: left; font-weight: 500; color: var(--ink-soft); font-size: .875rem; padding: 0 1rem .75rem 0; border-bottom: 1px solid var(--rule-strong); }
.lab-table td { vertical-align: top; padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--rule); line-height: 1.65; }
.lab-table td:first-child { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lab-table .decision { font-weight: 500; white-space: nowrap; }
.lab-table .shipped { color: var(--sage); }
.lab-table .held { color: #8a5a3b; }
.lab-foot { font-size: .875rem; color: var(--ink-soft); margin-top: 1rem; max-width: 46rem; }
@media (max-width: 44rem) {
  .lab-table thead { display: none; }
  .lab-table, .lab-table tbody, .lab-table tr, .lab-table td { display: block; }
  .lab-table tr { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
  .lab-table td { border: 0; padding: .15rem 0; }
  .lab-table td:first-child { font-size: .875rem; }
  .lab-table td + td { margin-top: .6rem; }
  .lab-table .cell-label { display: block; font: 500 .8125rem/1.5 var(--sans); color: var(--ink-soft); }
  .lab-table .decision .cell-label { display: inline; margin-right: .5rem; }
}

/* company */
.company { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
.company p { max-width: 32rem; margin: 0 0 1rem; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: .5rem 0 1rem; }
.mail a { font: 500 clamp(1.15rem, 2vw, 1.375rem)/1.4 var(--sans); color: var(--ink); overflow-wrap: anywhere; }
.copy { font: 500 .875rem/1 var(--sans); background: transparent; color: var(--sage); border: 1px solid var(--rule-strong); border-radius: 999px; min-height: 2.75rem; padding: 0 1.1rem; cursor: pointer; }
.copy:hover { border-color: var(--sage); }
.no-js .copy { display: none; }
.copy-status { min-height: 1.5rem; margin: 0 0 .5rem; font-size: .875rem; color: var(--ink-soft); }
.copy-status.is-error { color: #8a5a3b; }
.policy-links { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
@media (max-width: 52rem) { .company { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------------- footer ---------------- */
.site-foot { padding: 3.5rem 0 3rem; font-size: .875rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: start; }
.site-foot .wrap > * { min-width: 0; }
.site-foot .brand { font-size: 1.25rem; }
.biz { margin: 1.25rem 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1.25rem; color: var(--mist); }
.biz dt { color: var(--mist); }
.biz dd { margin: 0; color: var(--paper); min-width: 0; }
.biz dd a { overflow-wrap: anywhere; }
.foot-links { display: flex; flex-direction: column; gap: .2rem; text-align: right; }
.foot-links a { color: var(--paper); text-decoration: none; padding: .45rem 0; }
.foot-links a:hover { color: var(--gold); }
.site-foot small { grid-column: 1 / -1; color: var(--mist); font-size: .8125rem; }
@media (max-width: 40rem) {
  .site-foot .wrap { grid-template-columns: 1fr; }
  .foot-links { text-align: left; }
  .biz { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .biz dt { font-size: .8125rem; margin-top: .7rem; }
  .biz dt:first-child { margin-top: 0; }
}

/* ---------------- policy documents ---------------- */
.doc-head { padding: 3.5rem 0 3rem; }
.doc-head h1 { font: 500 clamp(2rem, 3.6vw, 2.75rem)/1.2 var(--display); margin: 0 0 .75rem; }
.doc-head p { color: var(--mist); margin: 0; }
.doc { padding: 3.5rem 0 5rem; }
.doc .wrap { max-width: 48rem; }
.toc { background: var(--paper-deep); border-radius: .5rem; padding: 1.25rem 1.5rem; margin: 0 0 3rem; }
.toc p { margin: 0 0 .5rem; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { margin: 0 0 .4rem; break-inside: avoid; }
@media (max-width: 40rem) { .toc ol { columns: 1; } }
.doc h2 { font: 500 1.3125rem/1.45 var(--serif-ko); margin: 3rem 0 .85rem; scroll-margin-top: 1.5rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: .3rem 0; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.5rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 36rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); }
.doc th { font-weight: 500; color: var(--ink-soft); border-bottom-color: var(--rule-strong); }
@media (max-width: 40rem) {
  .doc table.stack { min-width: 0; }
  .doc table.stack thead { display: none; }
  .doc table.stack, .doc table.stack tbody, .doc table.stack tr, .doc table.stack td { display: block; }
  .doc table.stack tr { border-bottom: 1px solid var(--rule); padding: .85rem 0; }
  .doc table.stack td { border: 0; padding: .1rem 0; }
  .doc table.stack td:first-child { font-weight: 500; }
  .doc table.stack td + td { margin-top: .4rem; }
  .doc table.stack .cell-label { display: block; font-size: .8125rem; color: var(--ink-soft); }
}
.doc .en { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--rule-strong); }
.doc .en h2:first-of-type { margin-top: 2.5rem; }
.doc .en .h1 { font: 500 1.75rem/1.3 var(--display); margin: 0 0 .5rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
