:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --forest: #3d5145;
  --forest-hover: #283a30;
  --ink: #2a332d;
  --muted: #59615a;
  --line: #d7d8ce;
  --accent: #745533;
  --media: #e6e7df;
  --media-line: #d3d6cc;
  --focus: #3d5145;
  --section-paper: #eaede4;
  --hero-ivory: #fff6df;
  --hero-gold: #e8c68b;
  --hero-dark: #171d19;
  --font-body: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif;
  --font-title: var(--font-body);
  --font-display: "Black Han Sans", "Pretendard Variable", "Malgun Gothic", sans-serif;
  --ease-out: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font-body); word-break: keep-all; overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { background: #c9d9a4; color: var(--forest); }
svg { display: block; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-width { width: min(88%, 1200px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: .75rem; left: 1rem; padding: .8rem 1.1rem; transform: translateY(-180%); background: var(--paper); color: var(--forest); }
.skip-link:focus { transform: translateY(0); }

/* The brand entrance is independent of the reserved real-gameplay media. */
.site-header { position: absolute; z-index: 5; inset: 0 0 auto; color: var(--hero-ivory); border-bottom: 1px solid rgb(255 246 223 / .2); background: rgb(0 0 0 / .1); }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 88px; }
.brand { display: inline-flex; gap: .65rem; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-type { font-size: 1.25rem; font-weight: 730; line-height: 1.3; letter-spacing: -.035em; }
.brand-type span { display: none; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.5vw, 3.5rem); margin-left: auto; font-size: .9375rem; }
.desktop-nav a { display: inline-flex; min-height: 44px; align-items: center; gap: .35rem; position: relative; white-space: nowrap; }
.desktop-nav a::after { content: ""; position: absolute; bottom: 4px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: 2rem; }
.search-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-width: 44px; min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; background: rgb(0 0 0 / .24); border: 1px solid rgb(255 246 223 / .35); border-radius: 4px; transition: background 160ms ease; }
.search-trigger:hover { background: rgb(0 0 0 / .5); }
.site-header a:focus-visible, .site-header button:focus-visible, .hero a:focus-visible { outline-color: var(--hero-gold); }
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; width: 44px; height: 44px; padding: 11px; }
.menu-toggle span { display: block; height: 1.5px; width: 22px; background: currentColor; margin-block: 5px; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav { display: none; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: max(720px, 100svh); padding: 140px 0 150px; color: var(--hero-ivory); background: var(--hero-dark); }
.hero-backdrop { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.hero-backdrop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* At least 56% black everywhere keeps ivory copy legible even over the bright sky. */
.hero-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / .64), rgb(0 0 0 / .56) 36%, rgb(0 0 0 / .56) 65%, rgb(0 0 0 / .7)); }
.hero-heading { position: relative; text-align: center; padding-block: 2rem; }
.hero-intro { margin: 0 0 1.6rem; font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 500; letter-spacing: .08em; }
.hero-wordmark { margin: 0; color: var(--hero-ivory); font: 400 clamp(5rem, 11vw, 10rem)/1.12 var(--font-display); letter-spacing: -.045em; text-shadow: 0 4px 0 #544731, 0 8px 28px rgb(0 0 0 / .35); }
.hero-description { margin: 1.6rem auto 0; max-width: 30rem; font-size: 1.125rem; line-height: 1.9; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.5rem; }
.hero-start, .hero-wiki { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 56px; padding: .9rem 1.85rem; border: 1px solid transparent; border-radius: 4px; font-weight: 650; transition: background 160ms ease, border-color 160ms ease; }
.hero-start { background: var(--hero-gold); color: var(--hero-dark); border-color: var(--hero-gold); }
.hero-start:hover { background: #f4dbaa; border-color: #f4dbaa; }
.hero-wiki { color: var(--hero-ivory); background: rgb(0 0 0 / .28); border-color: rgb(255 246 223 / .6); }
.hero-wiki:hover { background: rgb(0 0 0 / .55); border-color: var(--hero-ivory); }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hero-art-credit { margin: 0; font-size: .75rem; }
.hero-explore { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; font-size: .875rem; }
.hero-explore .icon { transition: transform 180ms ease; }
.hero-explore:hover .icon { transform: translateY(3px); }

/* A distinct arrival screen, connected to the approved entrance palette. */
.start-section { --start-muted: #babdaf; --start-line: #454b40; background: var(--hero-dark); color: var(--hero-ivory); padding: 1.25rem 0 3rem; scroll-margin-top: -2rem; }
.start-section:focus { outline: none; }
.start-section a:focus-visible, .start-section button:focus-visible, .start-section input:focus-visible, .start-help summary:focus-visible { outline: 3px solid var(--hero-gold); outline-offset: 5px; }
.start-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--start-line); font-size: .8125rem; color: var(--start-muted); }
.start-topline p { margin: 0; }
.start-topline a { display: inline-flex; align-items: center; min-height: 44px; gap: .7rem; }
.start-topline a:hover { color: var(--hero-ivory); }
.start-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.5rem, 4vw, 4rem); align-items: center; }
.start-eyebrow { margin: 0 0 1.4rem; font-size: .875rem; letter-spacing: .03em; color: var(--hero-gold); }
.start-welcome h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 650; letter-spacing: -.055em; line-height: 1.45; }
.start-welcome h2 span { color: var(--hero-gold); }
.start-lead { margin: 1.4rem 0 2.5rem; font-size: 1rem; color: var(--start-muted); line-height: 1.9; }
.server-address { padding: 1.25rem 0; border-top: 1px solid var(--start-line); border-bottom: 1px solid var(--start-line); }
.server-address label { display: block; margin-bottom: .6rem; font-size: .8125rem; color: var(--start-muted); }
.address-row { display: flex; align-items: center; gap: 1rem; }
.address-row input { display: block; min-width: 0; width: 100%; padding: .2rem 0; border: 0; border-radius: 0; background: transparent; color: var(--hero-ivory); font: 550 clamp(1.65rem, 2.6vw, 2.5rem)/1.3 var(--font-body); letter-spacing: -.045em; }
.copy-address { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .6rem .85rem; border: 1px solid var(--hero-gold); border-radius: 3px; background: var(--hero-gold); color: var(--hero-dark); font-size: .8125rem; font-weight: 650; }
.copy-address[hidden] { display: none; }
.copy-address:hover { background: #f4dbaa; }
.copy-address:active { transform: translateY(1px); }
.copy-address[data-copied] { background: transparent; color: var(--hero-gold); }
.copy-status { margin: .7rem 0 0; min-height: 1.6em; font-size: .8125rem; color: var(--start-muted); }
.edition-note { display: flex; align-items: center; gap: .6rem; font-size: .8125rem; color: var(--start-muted); margin: 1rem 0 0; }
.edition-note .icon { width: 18px; height: 18px; }
.start-guide { color: var(--ink); background: #f2efE5; border-radius: 6px; }
.start-guide a:focus-visible, .start-guide button:focus-visible { outline-color: var(--forest); }
.start-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 1.8rem; border-bottom: 1px solid #d4d3c6; }
.start-tabs a { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 68px; padding: .75rem .2rem; color: var(--muted); font-size: .9375rem; font-weight: 550; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.start-tabs a span { font-size: .75rem; font-variant-numeric: tabular-nums; color: #72796c; }
.start-tabs a:hover { color: var(--forest-hover); }
.start-tabs a[aria-selected="true"] { border-color: var(--forest); color: var(--forest-hover); font-weight: 750; }
.start-tabs a[aria-selected="true"] span { color: var(--forest-hover); }
.start-panels { padding: 1.8rem 2rem 1.5rem; }
.start-panel { display: flex; flex-direction: column; min-height: 385px; scroll-margin-top: 2rem; }
.start-panel[hidden] { display: none; }
.start-panel:focus { outline: none; }
.start-panel:focus-visible { outline: 2px solid var(--forest); outline-offset: 10px; }
.start-panels:not([data-enhanced]) .start-panel + .start-panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.step-caption { display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem; color: var(--accent); font-size: .8125rem; }
.step-caption .icon { width: 19px; height: 19px; }
.start-panel h3 { margin: 0 0 1rem; font-size: clamp(1.65rem, 2.5vw, 2.2rem); font-weight: 650; line-height: 1.4; letter-spacing: -.055em; }
.step-description { margin: 0 0 1.1rem; color: var(--muted); font-size: .9375rem; line-height: 1.8; }
.step-description strong { font-weight: 600; color: var(--ink); }
.prepare-facts { margin: 0 0 .5rem; font-size: .875rem; }
.prepare-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-top: 1px solid #d4d3c6; padding: .6rem 0; }
.prepare-facts dt { color: var(--muted); }
.prepare-facts dd { margin: 0; text-align: right; font-weight: 600; }
.prepare-facts small { margin-left: .4rem; font-size: .6875rem; font-weight: 400; color: var(--muted); white-space: nowrap; }
.step-note { margin: 0 0 1.5rem; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.step-note a { text-decoration: underline; text-underline-offset: 3px; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.25rem; margin-top: auto; border-top: 1px solid #d4d3c6; }
.step-actions > span { max-width: 9rem; color: var(--muted); font-size: .75rem; }
.step-next { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 46px; margin-left: auto; padding: .65rem .9rem; background: var(--forest); color: var(--paper); border-radius: 3px; font-size: .875rem; font-weight: 600; }
.step-next:hover { background: var(--forest-hover); }
.step-back, .step-detail { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: .875rem; }
.step-back { color: var(--muted); }
.step-back:hover, .step-detail:hover { text-decoration: underline; text-underline-offset: 4px; }
.connection-settings { margin: .1rem 0 1rem; padding: .2rem 1rem; border: 1px solid #c4c7b9; border-left: 3px solid var(--forest); border-radius: 2px; }
.connection-settings > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1rem; padding: .65rem 0; font-size: .9375rem; }
.connection-settings > div + div { border-top: 1px solid #d4d3c6; }
.connection-settings dt { color: var(--muted); font-size: .8125rem; }
.connection-settings dd { margin: 0; font-weight: 650; }
.required-label { font-size: .6875rem; font-weight: 500; margin-left: .35rem; color: var(--accent); }
.step-description code { padding: .2rem .4rem; border: 1px solid #c4c7b9; background: #e5e8dc; color: var(--forest-hover); font: 650 1rem var(--font-body); border-radius: 3px; }
.first-day-note { padding-left: 1rem; margin: .25rem 0 1rem; border-left: 2px solid #b3b9a5; }
.first-day-note p { margin: 0 0 .25rem; font-size: .9375rem; font-weight: 600; }
.first-day-note span { display: block; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.first-day-links { display: flex; flex-wrap: wrap; gap: .15rem 1.4rem; margin-bottom: .7rem; }
.first-day-links a { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; font-size: .8125rem; text-decoration: underline; text-underline-offset: 5px; }
.start-help { max-width: 660px; margin-left: auto; border-top: 1px solid var(--start-line); border-bottom: 1px solid var(--start-line); color: var(--start-muted); }
.start-help summary { display: flex; align-items: center; gap: .6rem; min-height: 56px; padding: .7rem 0; list-style: none; cursor: pointer; font-size: .875rem; }
.start-help summary::-webkit-details-marker { display: none; }
.start-help summary:hover { color: var(--hero-ivory); }
.help-toggle { margin-left: auto; font-size: 1.25rem; }
.start-help[open] .help-toggle { transform: rotate(45deg); }
.start-help > div { padding: 0 1.9rem 1rem; font-size: .875rem; line-height: 1.9; }
.start-help p { margin: 0 0 .6rem; }
.start-help > div a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--hero-gold); text-decoration: underline; text-underline-offset: 5px; }
.start-layout.is-arriving { animation: arrival-enter 620ms var(--ease-out); }
.start-panels[data-enhanced] .start-panel:not([hidden]) { animation: step-enter 260ms var(--ease-out); }
@keyframes arrival-enter { from { opacity: .65; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes step-enter { from { opacity: .5; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.village-view { padding-top: 3.25rem; }
.village-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.village-heading h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.village-heading a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; color: var(--forest); text-decoration: underline; text-underline-offset: 5px; }
.hero-landscape { margin: 0; }
.media-slot { width: 100%; background: var(--media); border: 1px solid var(--media-line); overflow: hidden; }
.media-slot img, .media-slot video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media { aspect-ratio: 3.05; border-radius: 8px; }

/* Alternating image-led spreads preserve the verified life and job content. */
.stories { padding-block: clamp(4.5rem, 9vw, 9rem); }
.section-heading { margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-kicker { display: flex; align-items: center; gap: 1.5rem; margin: 0 0 2rem; font-size: .875rem; color: var(--muted); }
.section-kicker span { color: var(--accent); font-size: .75rem; letter-spacing: .08em; }
.section-heading-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 4rem; }
.section-heading h2 { margin: 0; font: 700 clamp(2.25rem, 4vw, 3.75rem)/1.35 var(--font-body); letter-spacing: -.055em; text-wrap: balance; }
.section-heading-row > p { max-width: 30rem; margin: 0 0 .45rem auto; color: var(--muted); font-size: 1.0625rem; line-height: 1.85; }
.story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.story + .story { margin-top: clamp(4rem, 10vw, 10rem); }
.story-copy { max-width: 26rem; }
.story-category { margin: 0 0 1.2rem; color: var(--accent); font-size: .875rem; }
.story h3, .market-note h3 { margin: 0 0 1.4rem; font: 500 clamp(1.75rem, 2.5vw, 2.5rem)/1.55 var(--font-title); letter-spacing: -.055em; }
.story-copy > p:not(.story-category), .market-detail > p:not(.content-note) { margin: 0 0 1.8rem; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.editorial-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 44px; padding-block: .5rem; border-bottom: 1px solid currentColor; font-size: .9375rem; font-weight: 550; transition: color 180ms ease; }
.editorial-link:hover { color: var(--accent); }
.story-figure { min-width: 0; margin: 0; }
.story-photo { aspect-ratio: 1.5; }
.story-figure figcaption { margin-top: 1rem; font-size: .875rem; color: var(--muted); }
.story-craft { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.story-craft .story-figure { grid-column: 1; grid-row: 1; }
.story-craft .story-copy { grid-column: 2; grid-row: 1; margin-left: auto; }
.story-craft .story-photo { aspect-ratio: 1.18; background: #e5dfd2; border-color: #d4cbb9; }
.market-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; margin-top: clamp(4rem, 8vw, 8rem); padding-top: 3rem; border-top: 1px solid var(--line); }
.market-note h3 { max-width: 24rem; font-size: 1.65rem; }
.market-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.market-links a { min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; font-size: .9375rem; text-decoration: underline; text-underline-offset: 5px; }
.market-links a:hover { color: var(--accent); }
.content-note { color: var(--muted); font-size: .875rem; margin: .8rem 0 0; }

.jobs-section { background: var(--section-paper); padding-block: clamp(4.5rem, 8vw, 8rem); }
.jobs-section .section-heading { margin-bottom: 3rem; }
.job-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 3rem; }
.job-tabs a { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: .9rem .5rem; font-size: 1.125rem; font-weight: 550; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color 180ms ease, border-color 180ms ease; }
.job-tabs a:hover { color: var(--accent); border-bottom-color: var(--line); }
.job-tabs a[aria-selected="true"] { color: var(--forest); border-bottom-color: var(--forest); font-weight: 750; }
.job-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; scroll-margin-top: 2rem; }
.job-panel[hidden] { display: none; }
.job-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 10px; }
.job-panels:not([data-enhanced]) .job-panel + .job-panel { margin-top: 4rem; }
.job-copy { grid-column: 2; grid-row: 1; }
.job-name { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 0 0 1rem; font-size: 1rem; font-weight: 650; color: var(--accent); }
.job-name span { font-size: .75rem; letter-spacing: .1em; font-weight: 500; }
.job-copy h3 { margin: 0 0 1.1rem; font: 500 clamp(1.7rem, 2.8vw, 2.6rem)/1.5 var(--font-title); letter-spacing: -.06em; }
.job-description { margin: 0; max-width: 29rem; min-height: 5.7em; color: var(--muted); font-size: 1rem; line-height: 1.9; }
.job-details { margin: 1.6rem 0 1.5rem; border-top: 1px solid var(--line); }
.job-details > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding-block: .75rem; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.job-details dt { color: var(--muted); }
.job-details dd { margin: 0; }
.job-photo { grid-column: 1; grid-row: 1; aspect-ratio: 1.12; }
.jobs-footnote { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2.4rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.jobs-footnote p { margin: 0; color: var(--muted); font-size: .875rem; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 2rem; color: var(--muted); font-size: .875rem; }
.site-footer a { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.site-footer a:first-child { font-weight: 750; letter-spacing: -.02em; color: var(--forest); }
.site-footer p { margin: 0; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer nav a:first-child { font-weight: 400; letter-spacing: normal; color: var(--muted); }

/* One short welcome; other motion only responds to a visitor's action. */
.hero-heading { animation: wordmark-enter 500ms var(--ease-out); }
.job-panels[data-enhanced] .job-panel:not([hidden]) { animation: panel-enter 320ms var(--ease-out); }
@keyframes wordmark-enter { from { transform: translateY(6px); } to { transform: translateY(0); } }
@keyframes panel-enter { from { transform: translateY(8px); } to { transform: translateY(0); } }

/* Native modal: focus trapping and Escape are handled by the browser. */
.search-is-open { overflow: hidden; }
.search-dialog { position: fixed; top: calc(var(--search-viewport-top, 0px) + 16px); bottom: auto; width: min(680px, calc(100% - 32px)); max-height: calc(var(--search-viewport-height, 100dvh) - 32px); margin: 0 auto; padding: 1.5rem; border: 1px solid var(--world-frame, #8c6740); border-radius: 4px; box-shadow: 0 0 0 4px var(--world-timber, #39291e); background: var(--world-paper, #f5e4bf); color: var(--ink); overflow: hidden; overscroll-behavior: contain; }
.search-dialog[open] { display: flex; flex-direction: column; }
.search-dialog:not([open]) { display: none; }
.search-dialog::backdrop { background: rgb(10 25 19 / .76); }
.search-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.search-header, #guide-search-form, .search-filters, .search-footer { flex-shrink: 0; }
.search-eyebrow { margin: 0 0 .6rem; color: var(--muted); font-size: .875rem; }
.search-header h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.4; }
.search-close { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-width: 44px; min-height: 44px; flex: none; padding: .45rem; margin: -.25rem -.25rem 0 0; border: 0; background: transparent; color: var(--ink); font-size: .875rem; }
.search-close:hover { background: #e3e7da; }
#guide-search-form { margin-top: 1rem; }
#guide-search-form label { display: block; margin-bottom: .55rem; font-size: .875rem; font-weight: 600; }
.search-field { display: flex; gap: .65rem; }
.search-field input { min-width: 0; flex: 1; width: 100%; min-height: 54px; border: 1px solid #71816e; border-radius: 0; padding: .8rem; color: var(--ink); background: transparent; font-size: 1rem; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field button { border: 0; min-height: 54px; min-width: 64px; padding: .7rem 1rem; background: var(--forest); color: var(--paper); }
.search-field button:hover { background: var(--forest-hover); }
#search-help { margin: .7rem 0 0; color: var(--muted); font-size: .875rem; }
.search-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1rem .25rem; }
.search-filters button { flex: 1; min-width: 44px; min-height: 44px; padding: .5rem .65rem; border: 1px solid var(--world-frame, #8c6740); border-radius: 2px; color: var(--ink); background: transparent; transition: background 160ms ease, color 160ms ease; }
.search-filters button:hover { background: #e5d2a8; }
.search-filters button[aria-pressed="true"] { background: var(--forest); color: var(--hero-ivory); border-color: var(--forest); font-weight: 650; }
.search-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scroll-padding: .5rem; padding: .25rem; }
.search-status { margin: .65rem 0 .5rem; color: var(--muted); font-size: .875rem; }
.search-results { padding: 0; margin: 0; list-style: none; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 58px; padding: .8rem .5rem; transition: background 160ms ease; }
.search-results a:hover { background: #e3e7da; }
.search-results a:focus-visible { outline-offset: -3px; }
.search-result-title { font-weight: 550; }
.search-result-category { color: var(--muted); font-size: .875rem; text-align: right; }
.search-empty { padding: 1rem 0; color: var(--muted); }
.search-empty[hidden] { display: none; }
.search-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.3rem; color: var(--muted); font-size: .875rem; }
.search-footer a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.search-dialog[data-compact="true"] { overflow-y: auto; scroll-padding-block: 5rem 1rem; }
.search-dialog[data-compact="true"] .search-header { position: sticky; top: 0; z-index: 1; background: var(--world-paper, #f5e4bf); padding-block: .25rem; }
.search-dialog[data-compact="true"] .search-body { flex: none; min-height: 8rem; overflow: visible; }

@media (max-width: 940px) {
  .start-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; }
  .start-tabs { padding-inline: 1rem; }
  .start-tabs a { font-size: .8125rem; gap: .35rem; }
  .start-panels { padding: 1.5rem; }
  .start-panel { min-height: 440px; }
  .address-row { flex-wrap: wrap; gap: .75rem; }
  .address-row input { font-size: 2rem; }
  .step-actions > span { display: none; }
  .page-width { width: 90%; }
  .desktop-nav { display: none; }
  .header-inner { min-height: 76px; gap: 1rem; }
  .header-actions { margin-left: auto; gap: .7rem; }
  .menu-toggle:not([hidden]) { display: block; }
  .mobile-nav:not([hidden]) { display: grid; padding: .5rem 5% 1rem; background: var(--hero-dark); }
  .mobile-nav a { padding: .7rem .25rem; display: flex; justify-content: space-between; min-height: 48px; border-bottom: 1px solid rgb(255 246 223 / .18); }
  .site-header:has(.menu-toggle[hidden]) { position: relative; background: var(--hero-dark); }
  .section-heading-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-heading-row > p { margin: 0; }
  .story, .story-craft { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .market-note { gap: 2.5rem; }
  .job-panel { gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .job-photo { aspect-ratio: .85; }
  .job-details > div { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 600px) {
  .start-section { padding-bottom: 2rem; }
  .start-topline { font-size: .6875rem; gap: .5rem; padding-bottom: .5rem; }
  .start-topline a { flex: none; gap: .3rem; }
  .start-layout { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem; }
  .start-eyebrow { margin-bottom: .8rem; }
  .start-welcome h2 { font-size: clamp(1.75rem, 7.5vw, 2.5rem); }
  .start-lead { margin: .9rem 0 1.5rem; font-size: .9375rem; }
  .server-address { padding-block: 1rem; }
  .address-row { flex-wrap: nowrap; gap: .7rem; }
  .address-row input { font-size: clamp(1.4rem, 6.5vw, 2rem); }
  .copy-address { padding: .6rem; font-size: .75rem; }
  .copy-address .icon { width: 16px; height: 16px; }
  .copy-status { font-size: .75rem; min-height: 3.2em; }
  .edition-note { margin-top: .7rem; }
  .start-tabs { padding-inline: 1rem; }
  .start-tabs a { min-height: 62px; }
  .start-panels { padding: 1.5rem 1.25rem 1.2rem; }
  .start-panel { min-height: 400px; }
  .start-panel h3 { font-size: 1.8rem; }
  .prepare-facts small { display: block; margin-left: 0; }
  .step-description { font-size: .9375rem; }
  .start-help summary { font-size: .8125rem; }
  .start-help > div { padding-inline: 0; }
  .page-width { width: calc(100% - 40px); }
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: .5rem .75rem; padding-block: .6rem; }
  .brand { gap: .4rem; }
  .brand img { width: 32px; height: 32px; }
  .brand-type { font-size: 1.15rem; }
  .search-trigger { padding: .5rem; border: 0; background: transparent; }
  .search-trigger span { display: none; }
  .header-actions { gap: .5rem; }
  .hero { min-height: max(680px, 100svh); padding: 116px 0 134px; }
  .hero-backdrop img { object-position: 50% 50%; }
  .hero-heading { padding-block: 1.5rem; }
  .hero-intro { font-size: .9375rem; margin-bottom: 1.5rem; letter-spacing: .04em; }
  .hero-wordmark { font-size: clamp(3.4rem, 17.5vw, 6rem); text-shadow: 0 3px 0 #544731, 0 6px 22px rgb(0 0 0 / .35); }
  .hero-description { max-width: 18rem; margin-top: 1.4rem; font-size: 1rem; line-height: 1.8; }
  .hero-actions { gap: .75rem; margin-top: 2rem; }
  .hero-start, .hero-wiki { width: 100%; max-width: 290px; padding: .8rem 1rem; font-size: 1rem; }
  .hero-bottom { bottom: 1.25rem; gap: .5rem; }
  .hero-explore { gap: .5rem; font-size: .8125rem; }
  .village-view { padding-top: 2rem; }
  .hero-media { aspect-ratio: 1.32; }
  .stories { padding-block: 4rem; }
  .section-heading { margin-bottom: 2.5rem; }
  .section-heading h2 { font-size: clamp(2.1rem, 9vw, 3rem); }
  .section-heading-row > p { font-size: 1rem; }
  .section-heading-row > p br { display: none; }
  .section-kicker { gap: 1rem; margin-bottom: 1.5rem; }
  .story { display: flex; flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .story-copy { max-width: none; }
  .story h3 { font-size: 1.85rem; }
  .story-craft .story-copy { margin: 0; }
  .story-photo, .story-craft .story-photo { aspect-ratio: 1.3; }
  .story-figure figcaption { margin-top: .7rem; }
  .market-note { grid-template-columns: 1fr; gap: .4rem; padding-top: 2rem; }
  .market-note h3 { font-size: 1.6rem; }
  .market-links { gap: .2rem 1.15rem; }
  .jobs-section { padding-block: 4rem; }
  .job-tabs { margin-bottom: 1.75rem; }
  .job-tabs a { padding: .8rem .1rem; min-height: 54px; font-size: .9375rem; }
  .job-panel { display: flex; flex-direction: column; align-items: stretch; gap: 1.6rem; }
  .job-copy h3 { font-size: 1.85rem; }
  .job-photo { aspect-ratio: 1.3; }
  .job-description { min-height: 0; }
  .job-details { margin-block: 1.2rem; }
  .job-details > div { grid-template-columns: 5.7rem minmax(0, 1fr); gap: .65rem; font-size: .875rem; }
  .jobs-footnote { align-items: flex-start; flex-direction: column; gap: .4rem; margin-top: 1.5rem; }
  .site-footer { flex-wrap: wrap; gap: .25rem 1rem; padding-block: 1.5rem; }
  .site-footer p { order: 3; width: 100%; }
  .search-dialog { padding: 1rem; }
  .search-header h2 { font-size: 1.3rem; }
  #guide-search-form { margin-top: .65rem; }
  .search-field input, .search-field button { min-height: 48px; padding: .6rem; }
  .search-filters { margin-top: .75rem; }
  .search-filters button { padding-inline: .25rem; font-size: .875rem; }
  .search-footer { margin-top: .5rem; }
  .search-footer > span { display: none; }
  .search-result-category { font-size: .8125rem; }
  .search-results a { align-items: flex-start; flex-direction: column; gap: .2rem; padding-block: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-heading { transform: none !important; }
}
