:root {
  --ink: #17211c;
  --paper: #f4f1e8;
  --card: #fffdf7;
  --line: #c9c3b4;
  --green: #0d6b4d;
  --lime: #d8f057;
  --blue: #c8e3ef;
  --muted: #657069;
  font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, select { font: inherit; }
button { color: inherit; }
.site-header { max-width: 1120px; margin: auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); font-size: 22px; font-weight: 900; text-decoration: none; letter-spacing: -.06em; }
.build-badge { border: 1px solid var(--ink); border-radius: 99px; padding: 6px 10px; font: 700 10px/1 monospace; letter-spacing: .08em; }
main { max-width: 1120px; margin: auto; padding: 0 24px 80px; }
.hero { padding: 78px 0 54px; max-width: 850px; }
.eyebrow { margin: 0 0 12px; font: 800 12px/1.3 monospace; color: var(--green); letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(54px, 10vw, 116px); line-height: .92; letter-spacing: -.085em; }
h1 em { color: var(--green); font-style: normal; }
.lede { max-width: 650px; font-size: clamp(18px, 2.5vw, 26px); line-height: 1.55; letter-spacing: -.025em; margin: 36px 0 18px; }
.truth-line { display: inline-block; margin: 0; padding: 10px 14px; background: var(--blue); font-size: 13px; }
.planner { background: var(--card); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: clamp(22px, 5vw, 52px); }
.section-heading { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
.section-heading > span { background: var(--lime); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font: 800 12px monospace; }
.section-heading p { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.055em; }
.origin-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: end; }
label { display: grid; gap: 9px; font-weight: 800; font-size: 14px; }
select { appearance: none; width: 100%; border: 1px solid var(--ink); background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2317211c' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; padding: 16px 44px 16px 16px; border-radius: 0; }
.meet-mark { width: 44px; height: 52px; display: grid; place-items: center; font-size: 28px; }
fieldset { border: 0; padding: 0; margin: 30px 0 20px; }
legend { font-weight: 800; margin-bottom: 10px; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button { border: 1px solid var(--ink); background: transparent; padding: 11px 18px; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: white; }
.filters { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
.filters summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 800; }
.filters summary span { color: var(--muted); font-weight: 500; }
.filter-grid { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.filter-grid label { display: block; cursor: pointer; }
.filter-grid input { position: absolute; opacity: 0; }
.filter-grid span { display: block; border: 1px solid var(--line); padding: 9px 12px; font-weight: 600; }
.filter-grid input:checked + span { border-color: var(--green); background: #e1f0e9; color: var(--green); }
.primary-button { margin-top: 28px; width: 100%; border: 1px solid var(--ink); background: var(--lime); padding: 18px 20px; font-weight: 900; cursor: pointer; display: flex; justify-content: space-between; }
.primary-button:hover { background: #c8e246; }
.results { padding: 90px 0 40px; }
.results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 18px; }
#result-summary { max-width: 400px; margin: 0; color: var(--muted); text-align: right; }
.result-list { display: grid; gap: 14px; padding-top: 20px; }
.result-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rank { font: 900 38px/1 monospace; color: var(--green); }
.result-card h3 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.04em; }
.station { margin: 0 0 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 8px; border: 1px solid var(--line); font-size: 12px; }
.connection { max-width: 260px; text-align: right; }
.connection strong { display: block; color: var(--green); }
.connection p { margin: 6px 0 10px; font-size: 13px; line-height: 1.45; }
.connection a { color: var(--ink); font-weight: 800; font-size: 12px; }
.burden { display: inline-block; background: var(--blue); padding: 5px 8px; font: 700 11px monospace; margin-bottom: 8px; }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line); color: var(--muted); }
.method { padding: 64px 0 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.method article { border-top: 3px solid var(--ink); padding: 18px 4px; }
.method b { font-size: 18px; }
.method p { color: var(--muted); line-height: 1.65; font-size: 14px; }
footer { border-top: 1px solid var(--ink); max-width: 1120px; margin: auto; padding: 24px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
footer p { margin: 0; }

@media (max-width: 720px) {
  .hero { padding-top: 44px; }
  .origin-grid { grid-template-columns: 1fr; }
  .meet-mark { width: auto; height: 20px; }
  .results-head { align-items: flex-start; flex-direction: column; }
  #result-summary { text-align: left; }
  .result-card { grid-template-columns: 42px 1fr; }
  .connection { grid-column: 2; text-align: left; max-width: none; }
  .method-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
