/* Haneuljip: hanji paper, timber, roof-tile grey. */
:root {
  --paper: #f6f1e7; --paper2: #fffcf6; --paper3: #ece4d4; --ink: #24272b; --muted: #6a645a; --line: #ddd2bf;
  --wood: #8a5228; --wood2: #b9824f; --woodlight: #e6cfae; --tile: #4b525a; --celadon: #5f8f80; --link: #8a4b20;
  --shadow: 0 1px 2px rgba(60, 45, 25, .08), 0 6px 18px rgba(60, 45, 25, .07);
  --serif: "Hj Serif", "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --sans: "Hj Sans KR", system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181b; --paper2: #1f2226; --paper3: #272a2f; --ink: #ebe5d9; --muted: #a49d91; --line: #33373c;
    --wood: #d79c63; --wood2: #b9824f; --woodlight: #4a3a2a; --tile: #a3acb6; --celadon: #8cbcad; --link: #e1aa73;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 1.7em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .3em; }
[lang="ko"] { word-break: keep-all; }
.hk { font-family: var(--serif); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; } .muted { color: var(--muted); }
.js-only { display: none; } html.js .js-only { display: revert; }
html.js form.js-only { display: flex; }

/* header */
.top { background: var(--paper2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 22px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; flex: none; }
.brand .bn { font: 600 1.2rem/1 var(--serif); }
.brand .bk { font-size: .95rem; color: var(--muted); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ink); text-decoration: none; padding: 7px 11px; border-radius: 6px; white-space: nowrap; font-size: .95rem; }
.nav a:hover { background: var(--paper3); }
.nav a[aria-current] { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; gap: 0 12px; padding-top: 8px; }
  .nav { width: 100%; margin: 0 -8px; padding: 2px 0 8px; }
  .top { position: static; }
}

/* hero */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fbf6ec; overflow: hidden; background: #2e3338; }
.hero-img, .phero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 15, .05) 25%, rgba(20, 18, 15, .8) 100%), linear-gradient(90deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, 0) 70%); }
.hero-text { position: relative; padding-bottom: 64px; padding-top: 120px; width: 100%; }
.hero-text h1 { max-width: 20em; text-shadow: 0 1px 16px rgba(0, 0, 0, .35); }
.hero-ko { font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1; margin: 0; letter-spacing: .06em; opacity: .95; }
.hero .lede { max-width: 40em; font-size: 1.12rem; color: #f1eadc; }
.hero-credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .72rem; color: #e8dfcf; opacity: .85; max-width: 90%; text-align: right; }
.hero-credit a { color: inherit; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; background: #f6efe1; color: #2a2620; text-decoration: none; font-weight: 600; }
.btn.ghost { background: transparent; color: #f6efe1; border: 1.5px solid rgba(246, 239, 225, .7); }
.phero { position: relative; height: min(56vh, 520px); overflow: hidden; background: #2e3338; }
.phero .hero-shade { background: linear-gradient(180deg, rgba(20, 18, 15, 0) 55%, rgba(20, 18, 15, .5) 100%); }

/* page head & sections */
.crumbs { font-size: .86rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.page-head { max-width: 50em; padding: 4px 0 8px; }
.page-head .eyebrow { margin: 14px 0 0; }
.lede { font-size: 1.12rem; color: var(--muted); }
.page-head .lede { color: var(--ink); opacity: .86; }
.h1-ko { font-size: .62em; color: var(--muted); margin-left: .2em; white-space: nowrap; }
.rr { margin: -.4em 0 .4em; color: var(--muted); font-style: italic; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); font-weight: 600; }
.sec { margin: 56px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); max-width: 40em; }
.more { margin-top: 18px; }

/* cards */
.grid { display: grid; gap: 22px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1040px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g4, .g2 { grid-template-columns: minmax(0, 1fr); } }
.flexgrid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.flexgrid .card { flex: 0 1 270px; }
.card { display: flex; flex-direction: column; background: var(--paper2); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; min-width: 0; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 45, 25, .1), 0 12px 28px rgba(60, 45, 25, .12); }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--paper3); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card-title { font: 600 1.13rem/1.3 var(--serif); }
.card-ko { font-size: .9rem; color: var(--muted); margin-top: -3px; }
.card-text { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.card-badges { margin-top: auto; padding-top: 6px; }
.card.wide .card-img { aspect-ratio: 16 / 9; }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin: 0 4px 4px 0; background: var(--paper3); color: var(--ink); }
.badge.unesco { background: #2e5f7a; color: #fff; }
.badge.stay { background: var(--woodlight); color: var(--ink); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }
.panel { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 12px; background: var(--paper2); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border-top: 4px solid var(--wood2); }
.panel strong { font: 600 1.4rem/1.25 var(--serif); }
.panel .go { color: var(--link); font-weight: 600; margin-top: auto; }

/* split map */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: center; }
.split h2 { margin-top: 0; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } .split-map { max-width: 440px; margin: 0 auto; } }
.regions { list-style: none; padding: 0; }
.regions li { padding: 5px 0; border-bottom: 1px solid var(--line); }

/* maps */
.kmap, .smap { width: 100%; height: auto; display: block; }
.kmap .sea-land { fill: var(--paper3); }
.kmap .land { fill: var(--paper2); stroke: #a89a83; stroke-width: .8; }
.kmap .prov { fill: none; stroke: var(--line); stroke-width: .7; }
.kmap .border { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 4 3; }
.pm circle { fill: var(--wood); fill-opacity: .25; stroke: var(--wood); stroke-width: 1.5; transition: r .15s; }
.pm .dot { fill: var(--wood); fill-opacity: 1; stroke: none; }
.pm:hover circle:first-of-type, .pm:focus circle:first-of-type, .pm.hl circle:first-of-type { fill-opacity: .6; r: 10; }
.pm.off { opacity: .15; }
.r-jeju circle { fill: #3e7a6d; stroke: #3e7a6d; } .r-jeju .dot { fill: #3e7a6d; }
.r-gyeongsang circle { fill: #8a5228; stroke: #8a5228; }
.r-jeolla circle { fill: #9c4a3c; stroke: #9c4a3c; } .r-jeolla .dot { fill: #9c4a3c; }
.r-seoul circle { fill: #3f5675; stroke: #3f5675; } .r-seoul .dot { fill: #3f5675; }
.r-gangwon circle { fill: #4f7a3f; stroke: #4f7a3f; } .r-gangwon .dot { fill: #4f7a3f; }
.r-chungcheong circle { fill: #7a6a2e; stroke: #7a6a2e; } .r-chungcheong .dot { fill: #7a6a2e; }
.r-gyeonggi circle { fill: #5d4f7a; stroke: #5d4f7a; } .r-gyeonggi .dot { fill: #5d4f7a; }
@media (prefers-color-scheme: dark) {
  .kmap .land { stroke: #5a5e64; }
  .r-seoul circle, .r-seoul .dot { fill: #8fa9cf; stroke: #8fa9cf; }
  .r-jeolla circle, .r-jeolla .dot { fill: #db8a7a; stroke: #db8a7a; }
  .r-jeju circle, .r-jeju .dot { fill: #7cc0ae; stroke: #7cc0ae; }
  .r-gangwon circle, .r-gangwon .dot { fill: #9ccd85; stroke: #9ccd85; }
  .r-chungcheong circle, .r-chungcheong .dot { fill: #d8c27a; stroke: #d8c27a; }
  .r-gyeonggi circle, .r-gyeonggi .dot { fill: #b6a6dc; stroke: #b6a6dc; }
}
.ml { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--paper2); stroke-width: 3px; }
.smap .sbg { fill: var(--paper2); }
.smap .park { fill: #7fa07a; fill-opacity: .22; }
.smap .road { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.smap .stream { fill: none; stroke: #6c98b5; stroke-width: 3; }
.smap .palace { fill: var(--woodlight); stroke: var(--wood2); stroke-width: 1; }
.smap .pl { font: italic 12px var(--serif); fill: var(--muted); text-anchor: middle; }
.smap .peak path { fill: var(--muted); } .smap .peak text { font: 12px var(--sans); fill: var(--muted); text-anchor: middle; }
.smap .st circle { fill: var(--paper2); stroke: var(--tile); stroke-width: 2; } .smap .st text { font: 11px var(--sans); fill: var(--tile); }
.maps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.maps h2 { margin-top: .5em; }
@media (max-width: 820px) { .maps { grid-template-columns: minmax(0, 1fr); } }
.legend-r { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; font-size: .9rem; }
.legend-r i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; background: var(--wood); }
.legend-r .r-seoul i { background: #3f5675; } .legend-r .r-jeolla i { background: #9c4a3c; } .legend-r .r-jeju i { background: #3e7a6d; }
.legend-r .r-gangwon i { background: #4f7a3f; } .legend-r .r-chungcheong i { background: #7a6a2e; } .legend-r .r-gyeonggi i { background: #5d4f7a; }
.loc { position: relative; max-width: 220px; margin: 0 auto 10px; }
.loc img { display: block; width: 100%; }
.locdot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--wood); box-shadow: 0 0 0 4px rgba(138, 82, 40, .3); }

/* filters */
.filters { flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; background: var(--paper2); padding: 14px 16px; border-radius: 10px; box-shadow: var(--shadow); margin: 8px 0 22px; }
.filters label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); gap: 3px; }
.filters label.chk { flex-direction: row; align-items: center; gap: 6px; font-size: .92rem; color: var(--ink); padding-bottom: 7px; }
.filters label.grow { flex: 1 1 220px; }
.filters select, .filters input[type=search] { font: inherit; font-size: .95rem; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); min-width: 0; }
.filters .count { margin-left: auto; font-size: .9rem; color: var(--muted); padding-bottom: 7px; }
.places-layout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.places-map { position: sticky; top: 80px; }
@media (max-width: 860px) { .places-layout { grid-template-columns: minmax(0, 1fr); } .places-map { position: static; max-width: 360px; margin: 0 auto; } }

/* article */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.prose { max-width: 44em; min-width: 0; }
.prose.narrow { max-width: 40em; margin-bottom: 60px; }
.prose.wide { max-width: none; margin-bottom: 60px; }
.prose p, .prose li { hyphens: auto; }
.side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.box { background: var(--paper2); border-radius: 10px; padding: 16px 18px; box-shadow: var(--shadow); }
.box h2 { font-size: 1.05rem; margin: 0 0 10px; }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; font-size: .9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.wdcheck { font-size: .8rem; color: var(--muted); margin: 12px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.plist, .tlist, .terms { list-style: none; padding: 0; margin: 0; }
.plist li + li { margin-top: 8px; }
.plist a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.plist img { width: 64px; height: 48px; object-fit: cover; border-radius: 5px; flex: none; }
.plist b { display: block; font-weight: 600; font-size: .93rem; }
.plist small { color: var(--muted); }
.tlist li { padding: 4px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.tlist li:last-child { border: 0; }
.terms { display: flex; flex-wrap: wrap; gap: 6px; }
.terms a { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--paper3); color: var(--ink); text-decoration: none; font-size: .86rem; }
.ph { margin: 26px 0; }
.ph img { display: block; width: 100%; border-radius: 8px; }
.ph.wide img { max-height: 560px; object-fit: cover; }
.ph img { max-height: 720px; object-fit: cover; }
@media (max-width: 600px) { .ph img, .ph.wide img { max-height: 440px; } }
.ph figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.credit { font-size: .78rem; } .credit a { color: inherit; }
.see { padding-left: 1.3em; }
.see li::marker { font: 600 1rem var(--serif); color: var(--wood); }
.see h3 { margin-top: .9em; }
.see p { margin-top: .2em; }
.getting { background: var(--paper2); border-left: 4px solid var(--celadon); padding: 2px 22px 10px; border-radius: 0 10px 10px 0; margin: 28px 0; }
.getting h2 { margin-top: .8em; }
.checked { font-size: .84rem; color: var(--muted); }
.seasons { display: flex; flex-wrap: wrap; gap: 6px; }
.season { padding: 3px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.season.on { background: var(--celadon); border-color: var(--celadon); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .season.on { color: #10201b; } }
.uncertain { border: 1px dashed var(--wood2); border-radius: 10px; padding: 4px 20px; margin: 30px 0; font-size: .93rem; }
.uncertain h2 { font-size: 1.05rem; }
.sources { font-size: .88rem; }
.sources h2 { font-size: 1.1rem; }
.sources li { margin: 3px 0; overflow-wrap: anywhere; }
.lookfor { background: var(--paper3); border-radius: 10px; padding: 2px 22px 8px; margin: 26px 0; }
.lookfor h2 { font-size: 1.15rem; margin-top: .9em; }
.toc { background: var(--paper2); border-radius: 10px; padding: 8px 18px; margin: 18px 0; font-size: .95rem; }
.etq li { margin: 8px 0; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.stops { list-style: none; padding: 0; counter-reset: s; }
.stops > li { counter-increment: s; position: relative; padding: 0 0 18px 46px; border-left: 2px solid var(--line); margin-left: 16px; }
.stops > li::before { content: counter(s); position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--wood); color: #fff; font: 600 1rem/32px var(--serif); text-align: center; }
.stops h2 { margin-top: 0; font-size: 1.25rem; padding-top: 2px; }
.stop-img img { border-radius: 8px; max-height: 260px; width: 100%; object-fit: cover; display: block; margin-bottom: 10px; }
.screen { list-style: none; padding: 0; }
.screen > li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.screen h2 { margin-bottom: .2em; }

/* tables */
.tablewrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tbl { border-collapse: collapse; width: 100%; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tbl.dist { font-size: .8rem; }
.tbl.dist td { text-align: right; font-variant-numeric: tabular-nums; padding: 4px 6px; }
.tbl.dist thead th { writing-mode: vertical-rl; transform: rotate(180deg); text-transform: none; letter-spacing: 0; padding: 6px 2px; white-space: nowrap; }
.tbl.dist tbody th { white-space: nowrap; }

/* glossary */
.gloss { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 760px) { .gloss { grid-template-columns: minmax(0, 1fr); } }
.gi { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.gi:target { background: var(--paper3); }
.gi dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.gko { font-size: 1.3rem; }
.grr { font-weight: 600; font-style: italic; }
.ghj { color: var(--muted); font-size: .9rem; }
.gi dd { margin: 4px 0 0; font-size: .93rem; }
.gt { font-size: .8rem; margin-left: 4px; white-space: nowrap; }
.none { text-align: center; color: var(--muted); padding: 20px; }

/* diagrams */
.diagram { margin: 28px 0; background: var(--paper2); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; max-width: 760px; margin: 0 auto; height: auto; display: block; }
.diagram .dg-note { font-size: .86rem; color: var(--muted); margin: 10px 0 6px; }
.legend { margin: 0; padding-left: 1.6em; font-size: .9rem; columns: 2 300px; column-gap: 28px; }
.legend li { break-inside: avoid; padding: 3px 6px; border-radius: 6px; margin-bottom: 2px; }
.legend li.on { background: var(--woodlight); }
.diagram .lab { font: 12px var(--sans); fill: var(--muted); }
.diagram .num circle { fill: var(--ink); } .diagram .num text { font: 600 12px var(--sans); fill: var(--paper2); text-anchor: middle; }
.diagram [data-part] { cursor: pointer; }
.diagram g.on .part, .diagram .num.on circle { filter: brightness(1.15); }
.diagram .num.on circle { fill: var(--wood); }
.diagram g.on .part { stroke: var(--wood); stroke-width: 3; }
.dg-layout .hill { fill: #8aa486; opacity: .35; }
.dg-layout .wall, .dg-layout .wall2 { fill: none; stroke: var(--muted); stroke-width: 2; }
.dg-layout .wallline { stroke: var(--muted); stroke-width: 2; }
.part.house { fill: var(--woodlight); stroke: var(--wood2); stroke-width: 1.5; }
.part.maru { fill: var(--wood2); opacity: .75; }
.part.yard { fill: var(--paper3); stroke: var(--line); stroke-dasharray: 3 3; }
.part.kitchen { fill: #c9a98a; stroke: var(--wood2); }
.part.store { fill: #cdbb9f; stroke: var(--wood2); }
.part.shrine { fill: var(--wood2); stroke: var(--wood); }
.part.gate { fill: var(--tile); }
.part.garden { fill: #9cb98f; opacity: .55; } .terr { stroke: #6d8b62; fill: none; }
@media (prefers-color-scheme: dark) { .part.kitchen { fill: #5b4634; } .part.store { fill: #4d4335; } }
.dg-ondol .ground { fill: #b79f80; opacity: .45; }
.part.room { fill: var(--paper); stroke: var(--line); } .roof { fill: none; stroke: var(--tile); stroke-width: 6; stroke-linejoin: round; }
.part.fire { fill: #3a2c22; } .flame { fill: #e2733b; }
.part.iron { fill: #4a4d52; } .part.paper { fill: #d8b674; } .part.stone { fill: #8d8f92; }
.part.flue { fill: #e9b07a; opacity: .45; } .part.ridge { fill: #8d7458; } .part.earth { fill: #8d7458; }
.part.pit { fill: #5b4a3c; } .part.chimney { fill: #9c6c4b; } .smoke { fill: none; stroke: var(--muted); stroke-width: 2; opacity: .6; }
.heat { fill: none; stroke: #d9612b; stroke-width: 3; stroke-dasharray: 8 6; } .heat.thin { stroke-width: 1.5; opacity: .6; }
.heatf { fill: #d9612b; }
.lab.warm { fill: #c4521f; font-weight: 600; } .lab.cool { fill: #4d7a96; font-weight: 600; }
.part.roofs { fill: var(--tile); opacity: .85; } .tl { fill: none; stroke: var(--paper2); stroke-width: .8; opacity: .5; }
.part.ridge { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.part.eave { fill: var(--wood2); } .part.corner { fill: var(--wood); }
.wallb { fill: var(--paper); stroke: var(--line); } .col { fill: var(--wood2); } .gidan, .part.gidan { fill: #a69a89; }
.guide { stroke: var(--muted); stroke-dasharray: 3 4; stroke-width: 1; }
.part.tile { fill: var(--tile); } .part.tile2 { fill: #6b737c; } .part.makse { fill: #5e666e; stroke: var(--paper2); } .mk { fill: none; stroke: var(--paper2); stroke-width: 1.4; }
.board, .part.board { fill: var(--wood2); } .part.rafter { fill: var(--wood); } .part.clay { fill: #b8956c; }
.part.post { fill: var(--wood2); stroke: var(--wood); } .part.beam { fill: var(--wood); } .part.purlin { fill: var(--wood); stroke: var(--paper2); stroke-width: 2; }
.part.stonep { fill: #8d8f92; } .clayline { stroke: #b8956c; stroke-width: 10; opacity: .5; }

/* footer */
.foot { background: #262a2f; color: #d9d2c4; margin-top: 70px; padding: 36px 0 24px; font-size: .92rem; }
.foot a { color: #f0c899; }
.fgrid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; }
@media (max-width: 860px) { .fgrid { grid-template-columns: 1fr; gap: 8px; } }
.fbrand { font: 600 1.15rem var(--serif); display: flex; align-items: center; gap: 8px; color: #fbf6ec; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { min-height: 560px; }
  .phero { height: 300px; }
  .hero-text { padding-bottom: 46px; }
  .legend { columns: 1; }
  .diagram { padding: 10px; margin-left: -6px; margin-right: -6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
