:root {
    --paper: #f7f4ec;
    --surface: #fffcf5;
    --surface-strong: #fffef9;
    --soft: #ede8db;
    --line: #d6cfc0;
    --ink: #172e25;
    --muted: #546056;
    --brand: #a33c2e;
    --brand-dark: #842c22;
    --accent: var(--brand);
    --herb: #294f40;
    --editorial-cover: var(--ink);
    --soft-shadow: none;
    --shadow: 0 8px 20px rgb(23 46 37 / 11%);
    --cook-serif: "Noto Serif KR", "Batang", serif;
    --cook-sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --cook-width: 1200px;
    --cook-gutter: clamp(16px, 4vw, 48px);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--cook-sans);
    font-size: 15px;
    line-height: 1.65;
}

:is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--paper); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.header-inner, .footer-inner, body > main { width: min(var(--cook-width), calc(100% - 2 * var(--cook-gutter))); }
.site-header .header-inner {
    grid-template-columns: minmax(165px, 1fr) auto minmax(220px, 1fr);
    min-height: 76px;
    align-items: center;
    gap: 22px;
    padding: 0;
}

.site-header .brand { width: fit-content; }
.site-header .brand-mark {
    flex: 0 0 37px;
    width: 37px;
    height: 37px;
    border-radius: 2px;
    background: var(--brand);
    color: var(--surface);
    font: 700 21px/1 var(--cook-serif);
}
.site-header .brand strong {
    color: var(--ink);
    font: 800 25px/1.1 var(--cook-serif);
    letter-spacing: -.09em;
    white-space: nowrap;
}
.site-header .brand small { margin-top: 4px; font-size: 10px; font-weight: 600; }
.site-header .gnb { gap: clamp(10px, 2vw, 30px); align-self: stretch; align-items: stretch; }
.site-header .gnb a {
    position: relative;
    justify-content: center;
    padding: 0 2px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    font-weight: 650;
    font-size: 14px;
    white-space: nowrap;
}
.site-header .gnb a:hover, .site-header .gnb a[aria-current] { background: none; color: var(--brand-dark); }
.site-header .gnb a[aria-current]::after {
    position: absolute;
    inset: auto 0 -1px;
    height: 3px;
    background: var(--brand);
    content: "";
}
.site-header .region-form {
    justify-self: end;
    width: min(232px, 100%);
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: var(--surface);
    min-width: 0;
}
.site-header .region-form label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.site-header .region-form .region-search.has-region-group { width: min(215px, 100%); grid-template-columns: minmax(76px, .9fr) minmax(0, 1fr); }
.site-header .region-form :is(.region-search-input, .region-group-select) { border-radius: 0; min-width: 0; width: 100%; }
.site-header .region-form .region-group-select { padding-inline: 7px 17px; background-position: right 5px center; }
.site-header .region-form .region-search-results { border-radius: 3px; }
.site-footer { background: var(--ink); }
.site-footer .footer-inner { padding-block: 35px; }
.site-footer .footer-brand strong { font: 800 25px/1.2 var(--cook-serif); }
.site-footer .footer-brand span { font-size: 12px; opacity: .85; }
.site-footer .footer-nav a { font-size: 13px; }

.btn, .filter-search-button { border-radius: 3px; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--soft); border-color: var(--ink); }
.btn.primary, .filter-search-button { background: var(--ink); color: var(--surface); border-color: var(--ink); box-shadow: none; }
.btn.primary:hover, .filter-search-button:hover { background: var(--herb); border-color: var(--herb); }
.legal-page h1 { font-family: var(--cook-serif); }
.legal-content { max-width: 74ch; margin-inline: auto; }

.home-spread {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(25px, 5vw, 72px);
    align-items: center;
    margin: clamp(24px, 4vw, 48px) 0 0;
    padding: clamp(22px, 3.2vw, 42px) 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}
.home-lead { max-width: 560px; align-self: center; }
.home-edition {
    margin: 0 0 14px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 720;
}
.home-lead h1 {
    margin: 0;
    font: 800 clamp(42px, 5.5vw, 79px)/1.18 var(--cook-serif);
    letter-spacing: -.095em;
}
.home-intro { margin: 20px 0; max-width: 24em; color: var(--muted); word-break: keep-all; }
.home-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 425px;
    min-height: 54px;
    border: 1px solid var(--ink);
    background: var(--surface);
}
.home-search input {
    min-width: 0;
    min-height: 52px;
    border: 0;
    border-radius: 0;
    background: none;
    padding-inline: 14px;
}
.home-search input:focus { box-shadow: inset 0 0 0 2px var(--brand); }
.home-search button {
    border: 0;
    padding: 0 clamp(15px, 2.5vw, 26px);
    background: var(--ink);
    color: var(--surface);
    font: 700 14px/1 var(--cook-sans);
    cursor: pointer;
}
.home-search button:hover { background: var(--herb); }
.home-map-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    margin-top: 6px;
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 720;
}
.home-map-link:hover, .home-section-head a:hover, .home-theme-index a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-cover { display: block; min-width: 0; background: var(--surface); }
.home-cover img, .home-theme img, .home-story-image img { display: block; width: 100%; height: auto; object-fit: cover; }
.home-cover img { aspect-ratio: 4 / 2.8; }
.home-cover-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-top: 0;
}
.home-cover-caption strong, .home-cover-caption small { display: block; }
.home-cover-caption strong { font-size: 17px; }
.home-cover-caption small { color: var(--muted); font-size: 12px; }
.home-cover-caption > span:last-child { color: var(--brand-dark); font-size: 19px; }
.home-cover:hover strong, .home-story:hover strong, .home-theme:hover h3 { color: var(--brand-dark); }

.home-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(99px, 1fr));
    margin: 0 0 clamp(37px, 6vw, 76px);
    border-bottom: 1px solid var(--line);
}
.home-menu a {
    display: grid;
    min-height: 53px;
    place-content: center;
    padding: 4px;
    font-size: 14px;
    font-weight: 680;
}
.home-menu a + a { border-left: 1px solid var(--line); }
.home-menu a:hover { background: var(--soft); color: var(--brand-dark); }
.home-section { margin: clamp(42px, 6.5vw, 90px) 0; scroll-margin-top: 110px; }
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0 14px;
    border-top: 2px solid var(--ink);
}
.home-section-head h2 { margin: 0; font: 750 clamp(24px, 3.2vw, 40px)/1.45 var(--cook-serif); letter-spacing: -.08em; }
.home-section-head a { color: var(--brand-dark); font-size: 13px; font-weight: 700; white-space: nowrap; }
.home-section-head a span { padding-left: 4px; }
.home-stories, .home-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 27px clamp(12px, 2.4vw, 30px); }
.home-story { display: grid; align-content: start; gap: 2px; min-width: 0; }
.home-story-image { display: grid; aspect-ratio: 4 / 2.7; place-items: center; background: var(--soft); overflow: hidden; margin-bottom: 8px; }
.home-story-image img { height: 100%; min-height: 0; }
.home-story-image > span { color: var(--muted); font: 700 18px var(--cook-serif); }
.home-story small { color: var(--brand-dark); font-size: 11px; font-weight: 680; }
.home-story strong { font-size: clamp(15px, 2vw, 21px); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.home-story > span:last-child { color: var(--muted); font-size: 12px; }
.home-theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-theme { display: grid; grid-template-rows: auto 1fr; border-bottom: 1px solid var(--line); }
.home-theme img { aspect-ratio: 3 / 2; }
.home-theme > div { padding: 10px 0 15px; }
.home-theme h3 { margin: 0; font: 750 clamp(16px, 1.9vw, 22px)/1.45 var(--cook-serif); letter-spacing: -.045em; }
.home-theme p { margin: 7px 0 0; color: var(--muted); font-size: 13px; word-break: keep-all; }
.home-theme-index, .home-regions ul { margin: 0; padding: 0; list-style: none; }
.home-theme-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 25px; margin-top: 16px; }
.home-theme-index a, .home-regions a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.home-theme-index span { color: var(--brand-dark); flex-shrink: 0; }
.home-regions { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 5vw, 64px); align-items: start; }
.home-regions h3 { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--ink); font-size: 16px; }
.home-regions ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.home-regions a:hover { color: var(--brand-dark); }
.home-regions a small { color: var(--muted); font-variant-numeric: tabular-nums; }
.home-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 54px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    background: var(--soft);
}
.home-app strong { display: block; font: 750 18px var(--cook-serif); }
.home-app span { display: block; color: var(--muted); font-size: 13px; }
.home-app .btn { flex-shrink: 0; font-size: 13px; }

@media (max-width: 880px) {
    .site-header .header-inner { grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; padding-top: 10px; min-height: 0; }
    .site-header .gnb { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); order: 3; gap: 4px; }
    .site-header .region-form { grid-row: 1; grid-column: 2; }
    .site-header .gnb a { min-height: 43px; }
    .home-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-menu a { border-bottom: 1px solid var(--line); }
    .home-menu a:nth-child(4n + 1) { border-left: 0; }
    .home-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .site-header .brand-mark { flex-basis: 30px; width: 30px; height: 30px; font-size: 18px; }
    .site-header .brand { gap: 7px; }
    .site-header .brand strong { font-size: 21px; }
    .site-header .brand small { display: none; }
    .site-header .gnb a { font-size: 13px; }
    .site-header .region-form .region-search.has-region-group { width: min(180px, 100%); }
    .site-header .region-form :is(.region-search-input, .region-group-select) { min-height: 36px; font-size: 12px; padding-inline: 5px 12px; }
    .site-header .region-form .region-group-select { padding-inline: 4px 13px; background-position: right 2px center; }
    .home-spread { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 25px 0 14px; }
    .home-intro { margin: 12px 0 16px; }
    .home-edition { margin-bottom: 9px; }
    .home-lead h1 { font-size: clamp(40px, 9vw, 56px); }
    .home-search { max-width: 100%; }
    .home-cover img { aspect-ratio: 16 / 9; }
    .home-cover-caption { padding: 8px 10px; }
    .home-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-menu a { font-size: 12px; min-height: 45px; }
    .home-section-head { gap: 8px; }
    .home-section-head a { font-size: 12px; }
    .home-regions ul, .home-theme-index { grid-template-columns: minmax(0, 1fr); }
    .home-app { display: grid; align-items: start; }
    .home-app .btn { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header a, .cook-home a, .cook-home button { transition: none; }
}
