:root {
  --ink: #17211d;
  --muted: #65706a;
  --paper: #f6f1e7;
  --white: #fffdf8;
  --green: #0d5b43;
  --lime: #d6ed66;
  --line: #d8d3c9;
  --orange: #ef6a3a;
  --radius: 22px;
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header { min-height: 84px; padding: 16px clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: var(--lime); font-family: Georgia, serif; font-size: 28px; font-style: italic; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: 12px; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { text-underline-offset: 5px; font-size: 14px; font-weight: 700; }

.hero { min-height: 620px; padding: clamp(64px, 10vw, 126px) clamp(20px, 6vw, 92px) 80px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: clamp(44px, 9vw, 140px); align-items: end; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(13,91,67,.18); border-radius: 50%; left: -250px; top: -240px; box-shadow: 0 0 0 42px rgba(13,91,67,.035), 0 0 0 84px rgba(13,91,67,.025); }
.eyebrow { margin: 0 0 16px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 26px; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(52px, 7.4vw, 112px); line-height: .94; letter-spacing: -.055em; font-weight: 600; }
h1 em { color: var(--green); font-weight: inherit; }
.lede { max-width: 690px; margin-bottom: 32px; color: #46514b; font-size: clamp(17px, 1.5vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 12px 22px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 800; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { background: transparent; }
.button:hover { transform: translateY(-2px); }

.hero-proof { padding: 28px; background: var(--green); color: white; border-radius: var(--radius); box-shadow: 16px 16px 0 var(--lime); }
.proof-label { color: var(--lime); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.hero-proof > strong { display: block; margin-bottom: 30px; font-family: Georgia, serif; font-size: 30px; }
.hero-proof dl { margin: 0; }
.hero-proof dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); }
.hero-proof dt { color: #c9ded5; font-size: 13px; }
.hero-proof dd { margin: 0; text-align: right; font-weight: 800; }

.notice { margin: 0 clamp(20px, 6vw, 92px); padding: 18px 22px; display: flex; gap: 22px; align-items: center; background: var(--lime); border: 1px solid var(--ink); }
.notice span { flex: 0 0 auto; padding: 4px 10px; background: var(--ink); color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.notice p { margin: 0; font-weight: 700; }

.quick-start { margin: 24px clamp(20px, 6vw, 92px) 0; padding: 30px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 2fr); gap: 32px; align-items: center; border: 1px solid var(--line); background: rgba(255,253,248,.55); }
.quick-start-heading .eyebrow { margin-bottom: 10px; }
.quick-start h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -.035em; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.quick-links a { min-height: 142px; padding: 20px; display: flex; flex-direction: column; text-decoration: none; background: var(--white); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quick-links a:hover { background: #e9f0df; }
.quick-links span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.quick-links strong { margin: 18px 0 5px; font-size: 18px; line-height: 1.3; }
.quick-links small { margin-top: auto; color: var(--muted); }

.section { padding: 110px clamp(20px, 6vw, 92px); }
.section-heading { margin-bottom: 40px; display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.section-heading h2, .correction h2 { margin: 0; font-family: Georgia, "Noto Serif KR", serif; font-size: clamp(38px, 5vw, 72px); line-height: 1; letter-spacing: -.045em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }

.tools { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.search-field { flex: 1; }
.search-field input { width: 100%; min-height: 54px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.clear-search { min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 800; }
.tools fieldset { display: flex; gap: 7px; padding: 0; border: 0; }
.filter { min-height: 44px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.filter.is-active { background: var(--green); color: white; border-color: var(--green); }
.result-count { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.info-card { min-height: 490px; padding: 28px; display: flex; flex-direction: column; background: var(--white); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.info-card.featured { background: #e9f0df; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tag { font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.status { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status.reviewed { background: var(--green); color: white; }
.status.current { background: #ffdfc7; color: #7c2d12; }
.card-number { margin: 44px 0 16px; color: var(--orange); font-family: Georgia, serif; font-size: 24px; font-style: italic; }
.info-card h3 { margin-bottom: 16px; font-family: Georgia, "Noto Serif KR", serif; font-size: 29px; line-height: 1.25; letter-spacing: -.025em; }
.info-card > p:not(.card-number) { color: #505b55; }
.meta { margin: auto 0 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.meta div { display: flex; justify-content: space-between; gap: 10px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; text-align: right; font-weight: 800; }
.source-link { text-underline-offset: 5px; font-weight: 900; }
.source-link[target="_blank"]::after { content: " · 새 창"; color: var(--muted); font-size: 11px; font-weight: 700; }
.empty-state { padding: 60px; text-align: center; border: 1px solid var(--line); background: var(--white); }

.standards { background: var(--ink); color: white; }
.inverse .eyebrow { color: var(--lime); }
.inverse > p { color: #abb4af; }
.standard-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid #53605a; }
.standard-grid li { min-height: 240px; padding: 28px 24px; border-right: 1px solid #53605a; }
.standard-grid li:last-child { border-right: 0; }
.standard-grid span { color: var(--lime); font-family: Georgia, serif; font-style: italic; }
.standard-grid h3 { margin: 62px 0 8px; font-size: 22px; }
.standard-grid p { color: #abb4af; }

.correction > div:first-child { margin-bottom: 42px; }
.correction-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; }
.correction article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.correction article:first-child { background: var(--lime); border-color: var(--ink); }
.correction h3 { font-size: 20px; }
.correction p { color: #505b55; }
.correction a { font-weight: 900; text-underline-offset: 5px; }

footer { padding: 48px clamp(20px, 6vw, 92px); display: flex; justify-content: space-between; gap: 36px; background: var(--green); color: white; }
footer strong { font-family: Georgia, serif; font-size: 30px; }
footer p { margin-bottom: 4px; color: #c9ded5; }
footer > div:last-child { text-align: right; }
.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; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .hero-proof { max-width: 520px; }
  .quick-start { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-grid { grid-template-columns: repeat(2, 1fr); }
  .standard-grid li:nth-child(2) { border-right: 0; }
  .standard-grid li { border-bottom: 1px solid #53605a; }
  .correction-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding-block: 13px; align-items: stretch; flex-direction: column; gap: 12px; }
  .site-header nav { width: 100%; gap: 8px; justify-content: space-between; text-align: center; }
  .site-header nav a { flex: 1; padding: 6px 3px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 12px; }
  .hero { min-height: auto; padding-top: 70px; }
  h1 { font-size: clamp(48px, 16vw, 72px); }
  .notice, .section-heading, .tools, footer { align-items: stretch; flex-direction: column; }
  .quick-start { padding: 22px; }
  .quick-links { grid-template-columns: 1fr; }
  .quick-links a { min-height: 118px; }
  .tools fieldset { overflow-x: auto; padding-bottom: 5px; }
  .filter { flex: 0 0 auto; }
  .card-grid, .standard-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 440px; }
  .standard-grid li { min-height: 190px; border-right: 0; }
  .standard-grid h3 { margin-top: 40px; }
  footer > div:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  @page { margin: 15mm; }
  body { background: white; font-size: 10pt; }
  .site-header nav, .hero-actions, .tools, .notice { display: none !important; }
  .site-header, .hero, .section, footer { padding: 18px 0; }
  .hero { min-height: auto; grid-template-columns: 1fr 260px; }
  .hero::before { display: none; }
  h1 { font-size: 44pt; }
  .hero-proof { box-shadow: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card { min-height: 0; break-inside: avoid; }
  .standards { color: black; background: white; }
  .inverse .eyebrow, .standard-grid span { color: black; }
  .standard-grid { border-color: black; }
  .standard-grid li { min-height: 0; border-color: black; }
  .standard-grid h3 { margin-top: 18px; }
  footer { color: black; background: white; border-top: 1px solid black; }
  footer p { color: black; }
}
