/* Hallmark · shape: Feature Stack · genre: editorial · theme: Brutal (deal 1/3, seed prompt-a47f·1e7755ff·2026-11-10·r1) · redesign: full · job: hire · draw: 46fc02
 * hero: Index · nav: slab (swapped from floating pill: the theme is zero-radius) · footer: mast · imagery: photographs (Wikimedia Commons bikes, duotone ink) · signature: the country as six boxed region cells, the visitor's region fills yellow
 * axes: light/grotesk-heavy/chromatic-yellow · posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P3 H3 E3 S3 R2 V3 · weakest: R, region pages share one template, so each carries its own written intro, places, note and regional questions */
/* waive 44c 77 78: inner pages (area, model, guide, quote) are documents with a page head and a reading column, not landing pages; the home page carries the full section run */
/* waive 49b: long Korean article titles in related and guide lists wrap at 375px by design */
/* waive 71: region and step cells carry their name at the cell's top edge by design, the links sit at its foot */
/* waive 44c 79: the hero is an Index; the region cells are its visual and run to the fold, the linter measures only the head block above them */
/* Hallmark · dropped the old Incheon dong pages (/areas/ganseok/ and others) · the owner moved the site from Incheon to nationwide; replaced by 38 region pages */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --font-display: "Libre Franklin", "Black Han Sans", "Noto Sans KR", ui-sans-serif, sans-serif;
  --font-body: "Libre Franklin", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
  --container: 1360px;
  --slab-h: 72px;
  --font-wordmark: "Black Han Sans", "Libre Franklin", sans-serif;
}

body { font-size: 1.0625rem; line-height: 1.6; word-break: keep-all; padding-bottom: 0; }
h1, h2 { text-transform: uppercase; line-height: 1.05; }
h1 { max-width: 16ch; }
h3 { font-weight: 700; letter-spacing: -0.01em; }
.small { font-size: var(--text-sm); }
.muted { color: var(--color-muted); }
.figure { font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
a:hover { background: var(--color-accent); color: var(--color-accent-ink); }
a:active { background: var(--color-ink); color: var(--color-paper); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-rule); border-radius: 0;
  background: var(--color-paper); color: var(--color-ink); font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; transition: none;
}
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { background: var(--color-accent); color: var(--color-accent-ink); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.btn--ink { background: var(--color-ink); color: var(--color-paper); }
.btn--ink:hover { background: var(--color-paper); color: var(--color-ink); }
.btn--paper { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn--paper:hover { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); }
.btn--line { background: transparent; color: var(--color-paper); border-color: var(--color-paper); }
.btn--line:hover { background: var(--color-paper); color: var(--color-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }

/* ---------- nav: slab ---------- */
.slab { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); border-bottom: var(--rule-bar) solid var(--color-rule); }
.slab-row { display: flex; align-items: stretch; min-height: var(--slab-h); }
.wordmark { display: flex; align-items: center; padding-right: var(--space-lg); font: 400 1.625rem/1 var(--font-wordmark); text-decoration: none; letter-spacing: 0; white-space: nowrap; }
.wordmark:hover { background: transparent; color: var(--color-ink); }
.slab nav { display: flex; margin-left: auto; }
.nav-links { display: flex; margin: 0; padding: 0; list-style: none; }
.nav-links li { display: flex; }
.nav-links a { display: flex; align-items: center; height: 100%; padding: 0 var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); font-weight: 700; text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--color-accent); }
.slab-call { display: flex; align-items: center; gap: var(--space-2xs); padding: 0 var(--space-lg); background: var(--color-ink); color: var(--color-paper); font-weight: 700; text-decoration: none; white-space: nowrap; }
.slab-call:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.slab-call .figure { font-size: 1.25rem; }

/* ---------- hero: Index ---------- */
.hero { padding-block: var(--space-2xl) var(--space-3xl); border-bottom: var(--rule-bar) solid var(--color-rule); }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); }
.hero h1 { font-size: clamp(3rem, 6vw + 0.5rem, 6.25rem); line-height: 0.98; max-width: 11ch; }
.hero .lead { font-size: var(--text-lead); }

/* the signature: regions as boxed cells sharing their rules */
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border: var(--rule-bar) solid var(--color-rule); }
.region { margin: calc(var(--rule-bar) * -1) 0 0 calc(var(--rule-bar) * -1); border: var(--rule-bar) solid var(--color-rule); padding: var(--space-lg); min-height: 240px; display: flex; flex-direction: column; gap: var(--space-md); }
.region--lead { background: var(--color-ink); color: var(--color-paper); }
.region:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.region-name { font-size: var(--text-section); }
.region-links { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-md); margin: auto 0 0; padding: 0; list-style: none; font-weight: 700; }
.region-links a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.region--lead .region-links a:hover { background: var(--color-accent); color: var(--color-accent-ink); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap-s); }
.section + .section { padding-top: var(--section-gap); }
.section--tight { padding-block: var(--space-3xl) var(--section-gap-s); }
.sec-head { margin-bottom: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-rule); max-width: none; }
.split-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; margin-bottom: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-rule); }
.more { margin-top: var(--space-lg); font-weight: 700; }

/* cells: the 0원 bento and the steps */
.cells { display: grid; margin: 0; padding: 0; list-style: none; border: var(--rule-bar) solid var(--color-rule); }
.cell { margin: calc(var(--rule-bar) * -1) 0 0 calc(var(--rule-bar) * -1); border: var(--rule-bar) solid var(--color-rule); padding: var(--space-lg); display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-md); min-height: 220px; }
.cell--ink { background: var(--color-ink); color: var(--color-paper); }
.cell-label { font-size: var(--text-sm); }
.cell--ink .cell-label { color: var(--color-paper-3); }
.cells--offer { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells--offer .cell--lead { grid-column: span 2; grid-row: span 2; min-height: 460px; background: var(--color-accent); color: var(--color-accent-ink); }
.big { font-size: clamp(6rem, 14vw, 13rem); line-height: 0.85; }
.mid { font-size: var(--text-section); line-height: 1; }
.cells--steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cells--steps .cell { justify-content: flex-start; min-height: 260px; }
.cells--steps h3 { font-size: var(--text-title); margin-top: auto; }

/* index: boxed table of rows */
.index { margin: 0; padding: 0; list-style: none; border: var(--rule-bar) solid var(--color-rule); }
.index > li + li { border-top: var(--rule-hair) solid var(--color-rule); }
.index a { display: grid; grid-template-columns: 6rem minmax(0, 5fr) minmax(0, 5fr) 11rem; align-items: center; gap: var(--space-lg); padding: var(--space-md) var(--space-lg); text-decoration: none; min-height: 120px; }
.index a:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.index-n { font-size: var(--text-section); }
.index-name { font-size: var(--text-title); font-weight: 700; }
.index-kind { color: var(--color-muted); }
.index a:hover .index-kind { color: var(--color-accent-ink); }
.index-pic { aspect-ratio: 4 / 3; border: var(--rule-bar) solid var(--color-rule); }
.index--text a { grid-template-columns: 6rem minmax(0, 6fr) minmax(0, 5fr); }

/* bands */
.band { padding-block: var(--section-gap-s); }
.band--paper { background: var(--color-paper-2); border-block: var(--rule-bar) solid var(--color-rule); margin-top: var(--section-gap); }
.band--paper .sec-head { border-top-color: transparent; padding-top: 0; }
.band--ink { background: var(--color-ink); color: var(--color-paper); margin-top: var(--section-gap); }
.band--ink a:not(.btn):hover { background: var(--color-accent); color: var(--color-accent-ink); }
.band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.band-grid p { margin-top: var(--space-md); }
.band-phone { justify-self: end; white-space: nowrap; font-size: clamp(1.875rem, 5vw, 5.5rem); text-decoration: none; color: var(--color-paper); }

/* compare table */
.compare { width: 100%; border-collapse: collapse; border: var(--rule-bar) solid var(--color-rule); }
.compare th, .compare td { padding: var(--space-md) var(--space-lg); text-align: left; vertical-align: top; border-top: var(--rule-hair) solid var(--color-rule); }
.compare thead th { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); border-top: 0; }
.compare tbody th { font-weight: 700; width: 22%; }
.compare td:last-child, .compare thead th:last-child { background: var(--color-ink); color: var(--color-paper); font-weight: 700; }
.compare tbody tr { height: 72px; }

/* guides + faq rows */
.rows-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); }
.rows-split h2 { padding-top: var(--space-lg); border-top: var(--rule-bar) solid var(--color-rule); }
.rows-split .lead { margin-top: var(--space-md); }
.faq { margin: 0; border: var(--rule-bar) solid var(--color-rule); }
.faq > div { padding: var(--space-lg); }
.faq > div + div { border-top: var(--rule-hair) solid var(--color-rule); }
.faq dt { font-size: var(--text-title); font-weight: 700; line-height: 1.3; }
.faq dd { margin: var(--space-xs) 0 0; }
.faq--doc dt { font-size: 1.125rem; }
.guide-list { margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.guide-list li { padding: var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 700; }

/* ---------- inner pages ---------- */
.page-head { padding-block: var(--space-2xl) var(--space-xl); border-bottom: var(--rule-bar) solid var(--color-rule); }
.page-head h1 { font-size: var(--text-display); margin-top: var(--space-lg); }
.page-head .h1-long { font-size: var(--text-display-s); max-width: 24ch; }
.page-head .lead { margin-top: var(--space-md); }
.meta { margin-top: var(--space-sm); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-xs); color: var(--color-muted); }
.doc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-3xl); align-items: start; }
.doc--pic { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-2xl); margin-bottom: var(--space-md); text-transform: none; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: var(--space-md); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: var(--space-2xs); }
.note { margin-top: var(--space-lg); padding: var(--space-md) var(--space-lg); border-left: var(--rule-bar) solid var(--color-rule); background: var(--color-paper-2); }
.chips { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 var(--space-md); padding: 0 !important; list-style: none; }
.chips li { margin: 0 0 0 calc(var(--rule-hair) * -1) !important; padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-rule); font-weight: 700; }
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs) var(--space-lg); padding: 0 !important; list-style: none; }
.related li { margin: 0 !important; padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 700; }
.well { border: var(--rule-bar) solid var(--color-rule); padding: var(--space-xl); }
.aside-well { position: sticky; top: calc(var(--slab-h) + var(--space-lg)); display: flex; flex-direction: column; gap: var(--space-md); }
.aside-well h2 { font-size: var(--text-2xl); }
.frame { margin: 0; }
.frame [data-slot] { aspect-ratio: 4 / 3; border: var(--rule-bar) solid var(--color-rule); }
.frame figcaption { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }

/* form: fields as boxed cells */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: var(--rule-bar) solid var(--color-rule); }
.field { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); margin: calc(var(--rule-bar) * -1) 0 0 calc(var(--rule-bar) * -1); border: var(--rule-bar) solid var(--color-rule); }
.field:has(textarea), .form .actions, .form-status, .form noscript { grid-column: 1 / -1; }
.field label { font-weight: 700; }
.field input, .field select { height: 52px; }
.field input, .field select, .field textarea { min-height: 52px; padding: var(--space-sm); border: var(--rule-bar) solid var(--color-rule); border-radius: 0; background: var(--color-paper); color: var(--color-ink); font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { background: var(--color-paper-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--color-error); }
.field input:disabled { opacity: 0.5; }
.hint { font-size: var(--text-sm); color: var(--color-muted); }
.form .actions { margin: 0; padding: var(--space-lg); }
.form-status { padding: 0 var(--space-lg) var(--space-lg); min-height: 1.5em; font-weight: 700; }

/* ---------- footer: mast ---------- */
.mast { margin-top: 0; padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-bar) solid var(--color-rule); }
.mast-word { display: block; font: 400 clamp(2.25rem, 9vw, 9rem)/1 var(--font-wordmark); letter-spacing: 0; white-space: nowrap; text-decoration: none; border-bottom: var(--rule-bar) solid var(--color-rule); padding-bottom: var(--space-lg); }
.mast-word:hover { background: transparent; color: var(--color-ink); }
.mast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-xl); }
.mast-grid h2 { font-size: var(--text-sm); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--color-muted); margin-bottom: var(--space-sm); }
.mast-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2xs); font-weight: 700; }
.fine { font-size: var(--text-sm); color: var(--color-muted); max-width: none; }
.fine + .fine { margin-top: var(--space-xs); }

/* phone call bar: phones only */
.callbar { display: none; }

@media (max-width: 70rem) {
  .slab-row { flex-wrap: wrap; }
  .slab nav { order: 3; flex: 1 0 100%; margin-left: 0; border-top: var(--rule-hair) solid var(--color-rule); overflow-x: auto; scrollbar-width: none; }
  .nav-links li:first-child a { border-left: 0; padding-left: 0; }
  .nav-links a { min-height: 44px; white-space: nowrap; }
  .slab-call { margin-left: auto; min-height: var(--slab-h); }
}
@media (max-width: 60rem) {
  .hero-head, .split-head, .band-grid, .rows-split, .doc, .doc--pic { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .region { min-height: 0; }
  .region--lead { grid-column: 1 / -1; }
  .cells--offer, .cells--steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cells--offer .cell--lead { grid-column: 1 / -1; grid-row: auto; min-height: 280px; }
  .index a { grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 8rem); }
  .index-kind { display: none; }
  .index--text a { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .band-phone { justify-self: start; }
  .aside-well { position: static; }
  .compare tbody th { width: auto; }
}
@media (max-width: 40rem) {
  body { padding-bottom: 72px; }
  .slab-call .call-label { display: none; }
  .slab-call { padding-inline: var(--space-sm); }
  .slab-call .figure { font-size: 1.0625rem; }
  .wordmark { font-size: 1.25rem; }
  .regions { grid-template-columns: minmax(0, 1fr); }
  .cells--offer, .cells--steps, .form, .mast-grid, .related { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 160px; }
  .index a { grid-template-columns: 2.5rem minmax(0, 1fr) minmax(0, 6rem); gap: var(--space-sm); padding: var(--space-sm); min-height: 88px; }
  .index-n { font-size: var(--text-2xl); }
  .compare th, .compare td { padding: var(--space-sm); font-size: 0.9375rem; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: var(--z-sticky); background: var(--color-paper); border-top: var(--rule-bar) solid var(--color-rule); }
  .callbar .btn { min-height: 64px; border: 0; }
}

@media (max-width: 24rem) {
  .wordmark { font-size: 1.0625rem; padding-right: var(--space-xs); }
  .slab-call .figure { font-size: 1rem; }
}
