:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --surface: #fffefa;
  --ink: #182d49;
  --body: #323c49;
  --muted: #666b71;
  --line: #d9dcd9;
  --tint: #eaf0f4;
  --accent: #b39a71;
  --radius: 16px;
  --reading: 720px;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: var(--body);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #947039; outline-offset: 5px; }
h1:focus, main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
button, p, h1, h2, h3 { overflow-wrap: anywhere; word-break: keep-all; }
.site-header { max-width: 1120px; margin: 0 auto; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 23px; font-weight: 750; letter-spacing: .14em; color: var(--ink); display: flex; align-items: center; gap: 15px; }
.brand-ko { font-size: 11px; letter-spacing: .06em; font-weight: 500; border-left: 1px solid #c8ccd0; padding-left: 15px; }
.header-note { font-size: 12px; color: var(--muted); }
main { width: min(var(--reading), calc(100% - 48px)); margin: 0 auto; min-height: calc(100svh - 202px); padding: 64px 0 72px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .08em; font-weight: 600; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.intro { position: relative; padding: 12px 0 38px; }
.intro h1 { color: var(--ink); font-size: clamp(42px, 6.5vw, 66px); font-weight: 700; line-height: 1.22; letter-spacing: -.06em; max-width: 520px; margin-bottom: 26px; }
.intro h1 span { display: block; }
.intro .lead { font-size: 19px; line-height: 1.85; max-width: 500px; letter-spacing: -.035em; }
.motif { position: absolute; right: 8px; top: 44px; width: 154px; height: 154px; pointer-events: none; opacity: .65; }
.motif::before, .motif::after { content: ""; position: absolute; width: 99px; height: 135px; border: 1px solid #9daabd; border-radius: 70px 70px 8px 8px; transform: rotate(24deg); }
.motif::after { left: 40px; top: 4px; border-color: var(--accent); transform: rotate(-19deg); }
.start-panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 30px; }
.start-panel .instruction { font-size: 16px; line-height: 1.85; margin-bottom: 24px; max-width: 560px; }
.button { min-height: 54px; border: 1px solid transparent; border-radius: 9px; padding: 15px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #294361; }
.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.start-button { width: 100%; justify-content: space-between; font-size: 17px; }
.arrow { font-size: 23px; font-weight: 400; }
.text-button { border: 0; background: transparent; color: var(--muted); padding: 10px 4px; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
.back-button { text-decoration: none; margin: -20px 0 25px; padding-left: 0; }
.back-button span { padding-right: 9px; }
.question-context { font-size: 13px; line-height: 1.75; color: var(--muted); margin-bottom: 15px; }
.question-title { font-size: clamp(24px, 3.5vw, 31px); color: var(--ink); letter-spacing: -.04em; line-height: 1.55; font-weight: 650; margin-bottom: 30px; }
.options { display: grid; gap: 12px; }
.option { width: 100%; display: flex; align-items: center; gap: 17px; text-align: left; padding: 19px 22px; min-height: 68px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; color: var(--body); font-size: 16px; line-height: 1.8; }
.option::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border: 1px solid #9ca6b0; border-radius: 50%; }
.option[aria-pressed="true"] { border-color: var(--ink); background: var(--tint); }
.option[aria-pressed="true"]::before { background: var(--ink); border: 4px solid var(--tint); box-shadow: 0 0 0 1px var(--ink); }
@media (hover: hover) { .option:hover { border-color: #7d8a9a; background: #f0f3f6; } }
.result { padding-top: 4px; }
.result-section { padding: 36px 0; border-bottom: 1px solid var(--line); }
.result-section:first-child { padding: 0 0 36px; }
.result-section:last-child { border-bottom: 0; }
.result-title { font-size: 14px; letter-spacing: .02em; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
.gate { font-size: clamp(36px, 6vw, 48px); line-height: 1.25; letter-spacing: -.055em; color: var(--ink); font-weight: 700; }
.subtype { display: inline-block; margin-top: 16px; padding: 6px 12px; font-size: 13px; border-radius: 5px; background: #e6ebef; color: var(--ink); }
.conclusion { font-size: 18px; line-height: 1.9; margin-top: 25px; color: var(--ink); }
.result-section h2 { font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.5; color: var(--ink); margin-bottom: 21px; }
.prose p { font-size: 16px; line-height: 1.95; letter-spacing: -.025em; white-space: pre-line; }
.prose p + p { margin-top: 22px; }
.analysis-section { border-left: 2px solid var(--accent); padding-left: 26px; margin-top: 36px; padding-top: 0; }
.observation { background: #e9edf0; padding: 18px 21px; border-radius: 8px; margin-top: 24px; font-size: 15px; line-height: 1.85; }
.content-list { display: grid; gap: 16px; }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.content-card.lecture { background: var(--ink); border-color: var(--ink); color: #f4f6fa; }
.content-label { font-size: 11px; letter-spacing: .09em; margin-bottom: 12px; opacity: .8; }
.content-card h3 { font-size: 20px; line-height: 1.6; margin-bottom: 13px; letter-spacing: -.03em; }
.content-card p { font-size: 14px; line-height: 1.85; }
.content-card .button { margin-top: 22px; font-size: 13px; min-height: 45px; padding: 11px 17px; }
.content-card .button:disabled { background: #edeef0; color: #565e69; border-color: #d7dbe0; }
.content-card.lecture .button { background: #f4f6fa; color: var(--ink); }
.content-card.lecture .button:disabled { background: #2c405b; color: #e3e8ef; border-color: #607087; }
.content-card .window-note { margin-top: 10px; font-size: 12px; opacity: .85; }
.result-actions { display: flex; justify-content: center; gap: 30px; margin-top: 25px; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; width: min(1048px, calc(100% - 72px)); margin: 0 auto; border-top: 1px solid var(--line); padding: 24px 0 30px; color: var(--muted); font-size: 11px; letter-spacing: .05em; }
.notice { width: min(var(--reading), calc(100% - 48px)); margin: 24px auto 0; background: #e7edf2; padding: 16px 20px; border-radius: 8px; font-size: 14px; line-height: 1.8; }
.notice[hidden] { display: none; }
.loading { color: var(--muted); line-height: 1.8; }
.error-panel h1 { color: var(--ink); font-size: 27px; line-height: 1.6; margin-bottom: 20px; }
.error-panel p { line-height: 1.9; margin-bottom: 24px; }
.error-actions { display: flex; gap: 16px; flex-wrap: wrap; }
dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--body); padding: 30px; width: min(440px, calc(100% - 40px)); }
dialog::backdrop { background: #13233a80; }
dialog h2 { font-size: 22px; line-height: 1.6; color: var(--ink); }
dialog p { margin: 16px 0 26px; line-height: 1.8; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 14px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 10px; }
@media (max-width: 600px) {
  .site-header { padding: 24px; }
  .wordmark { font-size: 20px; gap: 11px; }
  .brand-ko { padding-left: 11px; }
  .header-note { display: none; }
  main { padding: 40px 0 48px; min-height: calc(100svh - 161px); }
  .intro { padding: 8px 0 30px; }
  .intro h1 { max-width: 300px; margin-bottom: 22px; }
  .intro .lead { font-size: 16px; max-width: 320px; }
  .motif { width: 75px; height: 88px; right: 0; top: 18px; opacity: .38; }
  .motif::before, .motif::after { width: 47px; height: 69px; }
  .motif::after { left: 23px; }
  .start-panel { padding: 22px; }
  .start-panel .instruction { font-size: 15px; }
  .back-button { margin-top: -14px; margin-bottom: 20px; }
  .option { padding: 16px; font-size: 15px; gap: 13px; }
  .question-title { margin-bottom: 24px; }
  .result-section { padding: 30px 0; }
  .analysis-section { padding: 0 0 30px 18px; margin-top: 30px; }
  .prose p { font-size: 15px; }
  .conclusion { font-size: 17px; }
  .content-card { padding: 22px; }
  .site-footer { width: calc(100% - 48px); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
