:root {
  color-scheme: light;
  --bg: #f3efe6;
  --paper: #fffdf8;
  --ink: #242820;
  --muted: #585e50;
  --accent: #872e20;
  --deep: #2a362c;
  --line: #d8d0c0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; object-fit: cover; }
p { line-height: 1.83; margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.28; letter-spacing: -.045em; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.72rem); }
.shell { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.skip { position: fixed; top: 0; left: .5rem; z-index: 2; padding: .75rem; background: var(--paper); transform: translateY(-120%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 4.35rem; display: flex; align-items: center; gap: 1.6rem; }
.wordmark { margin-right: auto; font-size: 1.05rem; font-weight: 850; letter-spacing: -.035em; text-decoration: none; }
.header-inner nav { display: flex; gap: 1.25rem; }
.header-inner nav a { text-decoration: none; font-size: .91rem; font-weight: 650; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .65rem 1.15rem; min-width: 7rem; border-radius: .4rem; background: var(--deep); color: #fffcf5; font-weight: 750; text-decoration: none; }
.button:hover { color: #fffcf5; background: color-mix(in srgb, var(--deep) 90%, #ffffff); }
.header-call { min-height: 2.5rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.55rem; }
.text-link { font-weight: 700; color: var(--accent); }
.town { font-size: .84rem; font-weight: 850; color: var(--accent); letter-spacing: .07em; margin-bottom: .75rem; }
.hero { margin: 2.75rem 0 3rem; display: grid; grid-template-columns: 1.04fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); align-items: stretch; }
.hero-copy { padding: clamp(1.4rem, 4.6vw, 4.2rem); align-self: center; }
h1 { font-size: clamp(2.05rem, 4.5vw, 3.45rem); }
.lede { margin-top: 1rem; max-width: 44rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.11rem); }
.hero-photo { min-width: 0; min-height: 25rem; position: relative; background: var(--deep); }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-position: center; }
.layout-1 .hero { grid-template-columns: .94fr 1fr; }
.layout-1 .hero-photo { grid-column: 1; grid-row: 1; }
.layout-2 .hero { display: block; border: 0; background: transparent; }
.layout-2 .hero-copy { max-width: 52rem; padding: 1rem 0 2rem; }
.layout-2 .hero-photo { min-height: clamp(16rem, 42vw, 26rem); border-radius: .65rem; overflow: hidden; }
.layout-3 .hero { grid-template-columns: 1.25fr .75fr; background: var(--deep); color: #fffaf3; border-color: var(--deep); }
.layout-3 .hero .town, .layout-3 .hero .text-link { color: #f4d1ac; }
.layout-3 .hero .lede { color: #f6efe9; }
.layout-3 .hero .button { background: #fff4db; color: #282323; }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.3rem, 4vw, 3.2rem); }
.overview section { padding-top: 1rem; border-top: 2px solid var(--line); }
.overview p, .prose p { color: var(--muted); margin-top: .55rem; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin-top: 2.8rem; }
.photo-pair img { width: 100%; height: clamp(9.5rem, 25vw, 16.75rem); border-radius: .45rem; }
.example { background: var(--paper); margin-top: 1.65rem; padding: clamp(1.2rem, 3.3vw, 2rem); border-left: .25rem solid var(--accent); border-radius: 0 .45rem .45rem 0; }
.example p { color: var(--muted); margin-top: .55rem; max-width: 54rem; }
.next { border-top: 1px solid var(--line); padding-top: 1.6rem; margin: 3rem 0 4rem; }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr)); gap: .8rem; margin-top: 1rem; }
.guide-card { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.15rem 1.2rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); text-decoration: none; }
.guide-card strong { font-size: 1.08rem; }
.guide-card span:not(.arrow) { grid-column: 1; color: var(--muted); line-height: 1.45; font-size: .9rem; }
.guide-card .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); }
.site-footer .shell { min-height: 4rem; display: flex; align-items: center; gap: 1rem; justify-content: space-between; font-size: .85rem; }
.crumb { color: var(--muted); display: flex; gap: .6rem; margin: 1.5rem 0 1rem; font-size: .87rem; }
.article-hero { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 17rem; background: var(--paper); border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; }
.article-hero > div:first-child { padding: clamp(1.4rem, 3.7vw, 3rem); align-self: center; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
.article-photo { position: relative; }
.article-photo img { position: absolute; width: 100%; height: 100%; }
.article-grid { display: grid; grid-template-columns: 1.7fr 1fr; align-items: start; gap: clamp(1.3rem, 5vw, 4rem); margin-top: 2.4rem; }
.prose section + section { margin-top: 1.65rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.article-aside { display: grid; gap: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: .55rem; padding: .9rem; }
.article-aside img { height: 10.8rem; width: 100%; border-radius: .3rem; }
.question { padding: .15rem .22rem .25rem; }
.question h2 { font-size: 1.12rem; line-height: 1.45; }
.question p { margin-top: .4rem; color: var(--muted); font-size: .96rem; }
.map-zone { margin-top: 2.5rem; }
.map-zone iframe { display: block; width: 100%; height: clamp(16rem, 36vw, 23rem); border: 1px solid var(--line); border-radius: .45rem; margin-top: .7rem; }
.landmarks { list-style: none; padding: 0; margin: .6rem 0 0; }
.landmarks li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.landmarks span { color: var(--muted); font-size: .88rem; }
.source-links { padding: .7rem .85rem; background: var(--paper); font-size: .87rem; border: 1px solid var(--line); border-radius: .4rem; }
.gallery { background: linear-gradient(180deg, #ede7db 0, var(--bg) 28rem); }
.gallery-header { padding: clamp(2rem, 6vw, 5.5rem) 0 1.6rem; }
.gallery-header p:not(.town) { margin-top: 1rem; color: var(--muted); }
.spotlight { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.spotlight > a { position: relative; isolation: isolate; display: grid; align-items: end; min-height: 13rem; border-radius: .5rem; overflow: hidden; color: #fffaf1; text-decoration: none; padding: 1rem; background: var(--deep); }
.spotlight img { position: absolute; width: 100%; height: 100%; z-index: -2; }
.spotlight > a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 15%, #110e0d 100%); }
.spotlight span { font-size: 1.12rem; font-weight: 800; line-height: 1.4; }
.spotlight small { display: block; color: #ecd1b5; margin-bottom: .23rem; }
.gallery-filter { margin: 2rem 0 1.75rem; max-width: 32rem; }
.gallery-filter label { display: block; font-size: .89rem; font-weight: 720; margin-bottom: .4rem; }
.gallery-filter input { width: 100%; min-height: 2.85rem; padding: .6rem .85rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); color: var(--ink); font: inherit; }
.gallery section { margin-bottom: 2.6rem; }
.gallery-list { list-style: none; margin: .7rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.gallery-row { display: grid; align-items: start; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: .75rem; padding: 1rem .5rem; border-bottom: 1px solid var(--line); }
.gallery-row h3 { font-size: clamp(1rem, 2vw, 1.18rem); }
.gallery-row h3 a { text-decoration: none; }
.gallery-row h3 a:hover { text-decoration: underline; }
.gallery-number { color: var(--accent); font-size: .89rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.gallery-guides { display: flex; flex-wrap: wrap; gap: .25rem .85rem; margin-top: .4rem; font-size: .86rem; color: var(--muted); }
.open-preview { font-size: .83rem; font-weight: 750; color: var(--accent); }
.gallery-row.approved { background: #ebe5d9; }
@media (max-width: 760px) {
  .shell { width: min(100% - 1.5rem, 1120px); }
  .header-inner { min-height: 3.75rem; gap: .6rem; }
  .header-inner nav { display: none; }
  .hero, .layout-1 .hero, .layout-3 .hero, .article-hero, .article-grid, .overview { grid-template-columns: minmax(0, 1fr); }
  .hero { margin-top: 1rem; margin-bottom: 1.8rem; }
  .hero-photo, .layout-2 .hero-photo, .article-photo { min-height: clamp(12.7rem, 64vw, 20rem); }
  .layout-1 .hero-photo { grid-column: auto; grid-row: auto; }
  .article-grid { margin-top: 1.6rem; }
  .overview section { padding-top: .7rem; }
  .photo-pair { margin-top: 1.5rem; }
  .spotlight { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .spotlight > a { min-height: 6.5rem; }
  .gallery-row { padding-inline: .25rem; gap: .6rem; }
  .open-preview { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
