@font-face {
  font-family: "Moaticle Sans";
  src: url("/fonts/moaticle-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4Variable-Roman.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Moaticle Batang";
  src: url("/fonts/moaticle-gowun.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-paper: #f7f4eb;
  --color-sheet: #eeeadf;
  --color-ink: #282a25;
  --color-secondary: #53534a;
  --color-muted: #646151;
  --color-rule: #beb8a8;
  --color-deep-rule: #8e8777;
  --color-seal: #8d4233;
  --color-accepted: #2e5b49;
  --color-on-ink: #fcf9ee;
  --font-sans: "Moaticle Sans", Pretendard, system-ui, sans-serif;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-heading: var(--font-display);
  --frame: 76rem;
}
:lang(ko) { --font-heading: "Moaticle Batang", "Moaticle Sans", serif; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block: 1.25rem; }
body { margin: 0; color: var(--color-ink); background: var(--color-paper); font: 400 1rem/1.65 var(--font-sans); }
::selection { color: var(--color-on-ink); background: var(--color-ink); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--color-seal); }
:focus-visible { outline: 2px solid var(--color-seal); outline-offset: 4px; }
button { font: inherit; }
img { display: block; max-width: 100%; }
figure, dl, dd, p, h1, h2, h3 { margin: 0; }
.frame { width: min(calc(100% - clamp(2.5rem, 9vw, 8rem)), var(--frame)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: .5rem auto auto .5rem; translate: 0 -250%; padding: .6rem 1rem; background: var(--color-paper); }
.skip:focus { translate: 0; }
.masthead { border-bottom: 1px solid var(--color-rule); }
.masthead-inner { display: flex; align-items: center; min-height: 4.75rem; gap: clamp(.8rem, 2.8vw, 2.25rem); }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 680; letter-spacing: -.035em; text-decoration: none; font-size: 1.45rem; }
.mark { width: 1.85rem; height: 1.85rem; flex: none; color: var(--color-seal); }
.section-nav, .languages { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.65rem); font-size: .9rem; }
.section-nav { margin-inline-start: auto; }
.section-nav a, .languages a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; white-space: nowrap; }
.nav-verify { font-weight: 650; }
.languages { gap: .3rem; padding-inline-start: .8rem; border-inline-start: 1px solid var(--color-rule); }
.languages a { color: var(--color-muted); justify-content: center; min-inline-size: 2.75rem; padding-inline: .25rem; }
.languages a[aria-current] { color: var(--color-ink); font-weight: 680; text-decoration: underline; }

.hero { position: relative; isolation: isolate; min-height: 32rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; column-gap: clamp(1.5rem, 3vw, 3rem); }
.hero-copy { position: relative; z-index: 1; padding-block: 4rem; }
h1, h2 { font-family: var(--font-heading); font-weight: 450; text-wrap: balance; }
h1 { font-size: clamp(3.4rem, 6.25vw, 5.85rem); letter-spacing: -.038em; line-height: .99; }
h1 span { display: block; }
:lang(ko) h1 { font-size: clamp(3rem, 5.65vw, 5.1rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 400; }
.hero-intro { max-width: 40ch; color: var(--color-secondary); margin-block-start: 1.6rem; font-size: clamp(1.05rem, 1.55vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.25rem; margin-block-start: 1.65rem; }
.action { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; gap: .8rem; padding: .62rem 1.03rem; border: 1px solid var(--color-ink); border-radius: 3px; font-weight: 630; font-size: .91rem; text-decoration: none; cursor: pointer; }
.primary { background: var(--color-ink); color: var(--color-on-ink); }
.primary:not([aria-disabled=true]):hover { color: var(--color-on-ink); background: #46483f; border-color: #46483f; }
.primary[aria-disabled=true] { cursor: wait; }
.action svg, .text-link svg { width: 1.04rem; height: 1.04rem; flex: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; font-size: .94rem; font-weight: 600; }
.hero-plate { min-width: 0; padding-block-start: 1rem; }
.hero-plate picture { display: block; }
.hero-plate img { width: 100%; height: auto; mix-blend-mode: multiply; }
.hero-plate figcaption { text-align: end; font-size: .77rem; padding-inline-end: .65rem; color: var(--color-muted); }

.findings { display: grid; grid-template-columns: minmax(12rem, .68fr) minmax(0, 2.25fr); align-items: start; gap: 1.5rem; border-block: 1px solid var(--color-deep-rule); padding-block: 1.15rem 1.3rem; }
.line-label { color: var(--color-seal); font-size: .82rem; font-weight: 630; }
.findings dl { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1rem, 3vw, 2.5rem); }
.findings dt { font-weight: 650; font-size: .94rem; line-height: 1.42; }
.findings dd { margin-block-start: .22rem; color: var(--color-secondary); font-size: .91rem; }

.section { padding-block: clamp(4rem, 8vw, 7.25rem); }
.section-head { margin-block-end: 2rem; }
h2 { font-size: clamp(2.25rem, 4vw, 3.75rem); line-height: 1.06; letter-spacing: -.035em; }
:lang(ko) h2 { font-weight: 400; line-height: 1.18; word-break: keep-all; }
.section-head > p { margin-block-start: .85rem; max-width: 68ch; color: var(--color-secondary); }
.method-steps { margin: 2.4rem 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.method-steps li { border-block-start: 1px solid var(--color-deep-rule); padding-block-start: .95rem; }
.method-steps h3, .offline h3 { font-weight: 660; font-size: 1.13rem; }
.method-steps p { max-width: 39ch; margin-block-start: .3rem; color: var(--color-secondary); }
.case-wrap { background: var(--color-sheet); border-block: 1px solid var(--color-rule); }
.case-wrap .section { padding-block: clamp(3.5rem, 6.3vw, 6rem); }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: start; font-size: .84rem; font-weight: 540; color: var(--color-muted); padding-block-end: .45rem; }
.data-table :is(th, td) { padding: .72rem .8rem; text-align: start; border-bottom: 1px solid var(--color-rule); }
.data-table thead th { border-block-start: 1px solid var(--color-deep-rule); color: var(--color-secondary); font-size: .84rem; font-weight: 650; }
.data-table tbody th { color: var(--color-secondary); font-weight: 500; }
.data-table tfoot th, .data-table tfoot td { font-weight: 670; }
.case-table small { display: block; color: var(--color-secondary); font-size: .83rem; }
.case-table :is(th, td):nth-child(3), .case-table :is(th, td):nth-child(4), .case-table tfoot td { text-align: end; }
.case-table td:nth-child(3), .case-table td:nth-child(4) { font-weight: 580; }
.case-table { max-width: 60rem; }
.limit { max-width: 78ch; margin-block-start: 1rem; color: var(--color-secondary); }
.references { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.4rem; margin-block-start: .6rem; }
.verify-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 1fr); align-items: start; gap: clamp(1.5rem, 5vw, 4.5rem); }
.proof-table { table-layout: fixed; }
.proof-table th:first-child { width: 3.35rem; }
.proof-table [data-state] { font-size: .92rem; }
.proof-table [data-state="accept"] { color: var(--color-accepted); font-weight: 620; }
.proof-table [data-state="reject"] { color: var(--color-seal); font-weight: 620; }
.proof-table [data-state="pending"] { color: var(--color-muted); }
.verify-controls { margin-block-start: 1.15rem; }
.status-message { margin-block-start: .55rem; min-height: 3em; color: var(--color-secondary); font-size: .91rem; }
.status-message[data-state="error"], .status-message[data-state="unsupported"] { color: var(--color-seal); }
.status-message[data-state="success"] { color: var(--color-accepted); }
.offline { padding-block-start: .85rem; border-block-start: 1px solid var(--color-deep-rule); }
.offline p { margin-block: .45rem .75rem; color: var(--color-secondary); max-width: 46ch; }
.offline-refs { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; color: var(--color-secondary); font-size: .85rem; }
.offline-refs a { min-height: 2rem; display: inline-flex; align-items: center; }
.site-footer { padding-block: 1.6rem 2rem; border-block-start: 1px solid var(--color-rule); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.25rem; align-items: start; }
.footer-inner p { color: var(--color-muted); font-size: .88rem; }
.footer-inner nav { display: flex; gap: 1.4rem; align-items: center; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; white-space: nowrap; }

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-copy { padding-block: 3rem; }
  h1 { font-size: clamp(3.05rem, 6.25vw, 4rem); }
  :lang(ko) h1 { font-size: clamp(2.95rem, 5.65vw, 3.5rem); }
  .findings { grid-template-columns: 1fr; gap: .55rem; }
}
@media (max-width: 760px) {
  .masthead-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 1.1rem; padding-block-start: .25rem; }
  .brand { min-height: 2.9rem; grid-column: 1; grid-row: 1; }
  .languages { grid-column: 2; grid-row: 1; padding-inline-start: .75rem; }
  .section-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; margin: 0; border-top: 1px solid var(--color-rule); }
  .section-nav a { min-height: 2.55rem; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-block: 2.95rem .35rem; }
  .hero-intro { margin-block-start: 1.15rem; }
  .actions { margin-block-start: 1.15rem; }
  .hero-plate { margin: 0 -.6rem 1rem; padding: 0; }
  .hero-plate figcaption { margin-block-start: -.05rem; }
  .method-steps { grid-template-columns: 1fr; gap: 1.1rem; margin-block-start: 1.55rem; }
  .method-steps p { max-width: 62ch; }
  .verify-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .frame { width: calc(100% - 2.25rem); }
  h1 { font-size: clamp(2.84rem, 12.8vw, 3.4rem); }
  :lang(ko) h1 { font-size: clamp(2.5rem, 10.9vw, 3.15rem); }
  .findings dl { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .findings dd { margin-block-start: .04rem; }
  .case-table :is(th, td), .proof-table :is(th, td) { padding-inline: .36rem; }
  .case-table thead th, .proof-table thead th { font-size: .78rem; overflow-wrap: anywhere; }
  .proof-table th:first-child { width: 2.65rem; }
  .footer-inner { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .primary { transition: background-color .16s, border-color .16s; }
}
