:root {
  --bg: #f7f2e7;
  --surface: #fffdf7;
  --ink: #1b2233;
  --muted: #535b6e;
  --line: #ddd3bf;
  --accent: #1f43b8;
  --accent-ink: #ffffff;
  --accent-soft: #e4e9f8;
  --danger: #b3261e;
  --warn-bg: #fdecc8;
  --focus: #e08a00;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --surface: #1b1f2a;
    --ink: #ece7dc;
    --muted: #a9afbd;
    --line: #333949;
    --accent: #8ea6ff;
    --accent-ink: #0d1120;
    --accent-soft: #232a42;
    --danger: #ff8a80;
    --warn-bg: #3a2f14;
    --focus: #ffb84d;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 1rem; word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
h3 { font-size: 1.1rem; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; }
.section { padding-top: 48px; padding-bottom: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: .9rem; }
.eyebrow { color: var(--accent); font-weight: 700; margin: 0 0 .4em; }
.lead { font-size: 1.1rem; }

.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; }
nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
nav a:not(.btn) { color: var(--ink); text-decoration: none; }
nav a:not(.btn):hover { text-decoration: underline; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .95rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 12px; }

.hero { padding: 40px 0 16px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
.hero-date { font-size: 1.1rem; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }

.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 6px; white-space: pre-line; }
.notice.warn { background: var(--warn-bg); border-left-color: var(--focus); }

.days details, #faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.days summary, #faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; min-height: 48px; }
.day { display: inline-block; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 0 8px; margin-right: 8px; font-size: .9rem; }
#faq details p { margin: 0; padding: 0 18px 16px; }
.timeline { list-style: none; margin: 0; padding: 0 18px 14px; }
.timeline li { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.timeline time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }

.tracks { display: grid; gap: 14px; }
@media (min-width: 720px) { .tracks { grid-template-columns: 1fr 1fr; } }
.tracks article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tracks p { margin: 0; }
.cap { color: var(--accent); font-weight: 800; margin-left: 4px; }
.final-cta { text-align: center; padding-bottom: 48px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 4px 0; }

form { margin-top: 24px; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
fieldset.field legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.field > label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password], textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 2px solid var(--line); border-radius: 8px; padding: 12px 14px; min-height: 48px; }
input:focus-visible, textarea:focus-visible { border-color: var(--accent); }
[aria-invalid=true] { border-color: var(--danger) !important; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; cursor: pointer; font-weight: 400; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.req { color: var(--danger); font-size: .85rem; font-weight: 700; }
.opt { color: var(--muted); font-size: .85rem; font-weight: 400; }
.hint { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }
.err { color: var(--danger); font-weight: 600; font-size: .92rem; margin: 6px 0 0; }
.form-error { color: var(--danger); border: 2px solid var(--danger); border-radius: 8px; padding: 10px 14px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 4px; margin-bottom: 20px; }
.privacy h2 { font-size: 1.1rem; }
.privacy dl { margin: 0 0 8px; }
.privacy dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 4px 0; }
.privacy dt { font-weight: 700; color: var(--muted); }
.privacy dd { margin: 0; }
.done { background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 22px; margin-top: 24px; }
.ref-box { font-size: 1.2rem; }
.ref-box strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }

.settings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-width: 680px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; background: var(--surface); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: pre-wrap; }
th { white-space: nowrap; }
[hidden] { display: none !important; }
