:root {
  --paper: #f2efe8;
  --ink: #17231d;
  --muted: #667067;
  --line: #cfd2ca;
  --green: #184f3a;
  --lime: #c8ef88;
  --white: #fbfaf6;
  --red: #ad433b;
  --blue: #315e87;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.masthead { height: 72px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.wordmark-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--lime); background: var(--green); font-family: var(--display); font-size: 13px; }
.live { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b9d65; box-shadow: 0 0 0 4px rgba(91,157,101,.12); }
main { overflow: hidden; }
.hero { min-height: 640px; padding: clamp(72px, 10vw, 132px) clamp(20px, 7vw, 112px) 64px; position: relative; border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; top: 78px; right: clamp(-120px, 2vw, 48px); width: clamp(270px, 34vw, 520px); aspect-ratio: 1; border: 1px solid rgba(24,79,58,.22); border-radius: 50%; box-shadow: inset 0 0 0 38px var(--paper), inset 0 0 0 39px rgba(24,79,58,.14), inset 0 0 0 88px var(--paper), inset 0 0 0 89px rgba(24,79,58,.09); pointer-events: none; }
.eyebrow, .section-index { margin: 0 0 24px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
h1 { position: relative; z-index: 1; max-width: 900px; margin: 0; font: 400 clamp(54px, 8vw, 118px)/.92 var(--display); letter-spacing: -.055em; }
h1 em { color: var(--green); font-weight: 400; }
.hero-copy { position: relative; z-index: 1; max-width: 520px; margin: 38px 0 58px; color: var(--muted); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.75; word-break: keep-all; }
.hero-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0; max-width: 800px; border-top: 1px solid var(--line); }
.hero-meta div { min-width: 170px; padding: 22px 36px 0 0; }
.hero-meta strong { display: block; font: 500 30px/1.1 var(--display); }
.hero-meta span { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }
.workspace { padding: 88px clamp(20px, 4vw, 64px) 110px; background: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
h2 { margin: 0; font: 400 clamp(38px, 5vw, 68px)/.98 var(--display); letter-spacing: -.045em; }
.source-link { padding-bottom: 5px; color: var(--green); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 1px; }
.tab { appearance: none; flex: 0 0 auto; padding: 13px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font: 700 14px var(--sans); cursor: pointer; }
.tab[aria-selected="true"] { color: var(--lime); border-color: var(--green); background: var(--green); }
.tab small { margin-left: 8px; opacity: .72; font-weight: 500; }
.controls { display: grid; grid-template-columns: 180px 220px minmax(240px, 1fr); gap: 12px; margin: 20px 0; }
.controls label { position: relative; }
.controls label > span { position: absolute; top: 8px; left: 13px; z-index: 1; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
select, input { width: 100%; height: 58px; padding: 22px 38px 7px 12px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: var(--white); font: 600 13px var(--sans); outline: none; }
select:focus, input:focus { border-color: var(--green); box-shadow: inset 0 -2px var(--green); }
.table-wrap { border-top: 2px solid var(--ink); overflow-x: auto; }
table { width: 100%; min-width: 1120px; border-collapse: collapse; }
th { padding: 15px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; letter-spacing: .08em; text-align: left; white-space: nowrap; }
td { padding: 19px 12px; border-bottom: 1px solid #e2e3dd; font-size: 13px; vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f1f4ed; }
.price { font: 600 18px var(--display); }
.change { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.change.down { color: var(--blue); }
.change.up { color: var(--red); }
.bundle { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; color: var(--green); background: rgba(24,79,58,.08); font-size: 11px; font-weight: 800; }
.history-button { border: 0; border-bottom: 1px solid var(--ink); padding: 3px 0; background: none; color: var(--ink); font: 700 11px var(--sans); cursor: pointer; }
.empty { padding: 72px 20px; color: var(--muted); text-align: center; }
.footnote { max-width: 940px; margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.method { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: clamp(48px, 8vw, 120px); padding: 110px clamp(20px, 7vw, 112px) 130px; color: var(--white); background: var(--green); }
.method .section-index { color: var(--lime); }
.method h2 { max-width: 480px; }
.method-grid { border-top: 1px solid rgba(255,255,255,.25); }
.method-grid article { display: grid; grid-template-columns: 46px 190px 1fr; gap: 20px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.method-grid span { color: var(--lime); font: 500 16px var(--display); }
.method-grid h3 { margin: 0; font-size: 15px; }
.method-grid p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.7; word-break: keep-all; }
dialog { width: min(680px, calc(100vw - 32px)); max-height: 82vh; padding: 40px; border: 0; color: var(--ink); background: var(--white); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(8,19,13,.66); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 16px; right: 20px; border: 0; background: none; font: 300 28px var(--sans); cursor: pointer; }
.dialog-meta { color: var(--muted); font-size: 13px; }
.history-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.history-list li { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.history-list time { color: var(--muted); font-size: 12px; }
.history-list strong { font: 600 17px var(--display); }
.history-list span { color: var(--muted); font-size: 11px; text-align: right; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px clamp(20px, 4vw, 64px); color: var(--muted); background: #102e23; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }
footer p { margin: 0; }
@media (max-width: 860px) {
  .hero { min-height: 570px; }
  .hero::after { opacity: .45; right: -150px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .method { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { height: 62px; }
  .hero { padding-top: 72px; }
  .hero-meta div { min-width: 50%; }
  .section-head { align-items: start; flex-direction: column; }
  .controls { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .method-grid article { grid-template-columns: 36px 1fr; }
  .method-grid p { grid-column: 2; }
  dialog { padding: 32px 22px; }
  .history-list li { grid-template-columns: 90px 1fr; }
  .history-list span { grid-column: 2; text-align: left; }
  footer { flex-direction: column; }
}

