/* City / stone, sea, and a record that remains unfinished. */
.city-body { --city-ink: #15242a; --city-paper: #e8e2d4; --city-muted: #aebdb9; --city-brass: #d7bc87; margin: 0; background: var(--city-ink); }
.city-root { min-height: 100svh; }
.city-root [hidden] { display: none !important; }
.city-root button, .city-root a { -webkit-tap-highlight-color: transparent; }
.city-root :focus-visible { outline: 2px solid var(--city-brass); outline-offset: 5px; }
.city-mast { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(20px, 4vw, 64px); z-index: 60; background: linear-gradient(#101b25b8, transparent); }
.city-mast .wordmark { color: #f2eee4; }
.city-nav { display: flex; align-items: center; gap: 24px; }
.city-btn { appearance: none; background: transparent; border: 0; color: #e5e7df; font: 11px var(--mono); letter-spacing: .03em; text-decoration: none; cursor: pointer; padding: 12px 0; min-height: 44px; }
.city-btn:hover { color: var(--city-brass); }
.city-skip { position: absolute; left: 20px; top: -100px; z-index: 100; background: var(--city-paper); color: var(--city-ink); padding: 15px; }
.city-skip:focus { top: 15px; }
.city-canvas, .city-intro, .scene-ui, .scene-nav, .city-labels, .city-places, .city-panel, .city-help, .city-prompt { display: none; }
.city-kicker { font: 10px/1.6 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
/* The atlas is the HTML baseline. It works without scripting or graphics. */
.mcity { display: block; }
.mcity-hero { position: relative; margin: 0; height: min(850px, 92svh); min-height: 620px; overflow: hidden; background: #253330; }
.mcity-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.mcity-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #14202c22 25%, #15242abb 62%, #15242a 100%); }
.mcity-hero figcaption { position: absolute; z-index: 1; left: max(24px, calc((100vw - 1120px) / 2)); right: 24px; bottom: 56px; color: #f1ecdf; }
.mcity-hero h1, .city-title { font: 400 clamp(54px, 6.4vw, 100px)/.98 var(--serif); letter-spacing: -.045em; margin: 22px 0; }
.mcity-hero h1 em, .city-title em { font-weight: 400; color: #dacbaa; }
.mcity-hero figcaption > p:not(.city-kicker) { font: 17px/1.6 var(--serif); color: #e0dfd5; }
.mcity-hero a { color: #e1ceaa; display: inline-block; margin-top: 22px; font: 11px var(--mono); text-decoration: none; border-bottom: 1px solid #877e68; padding-bottom: 8px; }
.mcity-inner { max-width: 1120px; margin: auto; padding: 0 28px; }
.mcity-arrival { padding: 54px 0 66px; max-width: 800px; }
.mcity-arrival .city-kicker { color: var(--city-brass); }
.mcity-lede { font: 25px/1.5 var(--serif); color: #e9e5db; max-width: 740px; }
.mcity-state { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #657b7b55; margin: 32px 0 18px; padding: 22px 0; }
.mcity-state b { display: block; font: 40px/1.2 var(--serif); font-weight: 400; color: #e6d3ad; }
.mcity-state span { display: block; font: 10px/1.5 var(--mono); margin-top: 9px; color: #b1c0bb; }
.mcity-quiet { font: 10px/1.8 var(--mono); color: #aebdb9; }
.mcity-quiet b { color: #dec79d; font-weight: 400; }
.mcity-map { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; border-block: 1px solid #657b7b55; padding: 40px 0; scroll-margin-top: 25px; }
.mcity h2 { font: 400 clamp(34px, 4vw, 50px)/1.08 var(--serif); letter-spacing: -.035em; color: #e9e5db; margin: 20px 0 22px; }
.mcity-map p:not(.city-kicker) { color: #c2cdc6; font-size: 15px; line-height: 1.7; max-width: 380px; }
.mcity-map .v-derived { font-size: 10px !important; }
.city-atlas { width: 100%; display: block; overflow: visible; }
.city-atlas a circle { fill: #172a2c; stroke: #d5bc83; stroke-width: 1.5; transition: fill .15s; }
.city-atlas a text { fill: #e9d9af; text-anchor: middle; dominant-baseline: middle; font: 15px var(--mono); }
.city-atlas a:hover circle, .city-atlas a:focus circle { fill: #71674e; stroke-width: 3; }
.atlas-sea { fill: #8da8ac; font: 12px var(--mono); letter-spacing: 3px; }
.atlas-caption { fill: #98b0ae; font: 10px var(--mono); text-anchor: middle; letter-spacing: 1.7px; }
.mcity-discover { padding: 60px 0; }
.mcity-places { margin: 30px 0 0; padding: 0; list-style: none; }
.mcity-place { border-top: 1px solid #657b7b55; scroll-margin-top: 20px; }
.mcity-place:last-child { border-bottom: 1px solid #657b7b55; }
.mcity-place summary { list-style: none; display: grid; grid-template-columns: 40px 1fr minmax(100px, .8fr) 24px; align-items: center; gap: 14px; cursor: pointer; padding: 24px 0; }
.mcity-place summary::-webkit-details-marker { display: none; }
.place-number { color: #b5a88d; font: 10px var(--mono); }
.mcity-place summary b { font: 400 25px var(--serif); color: #e8e3d7; }
.mcity-place summary > span:not(.place-number) { font: 10px/1.6 var(--mono); color: #a7b6b1; }
.mcity-place summary em { font: 20px var(--serif); color: #d6bd8e; transition: transform .2s; }
.mcity-place details[open] summary em { transform: rotate(45deg); }
.mcity-place details[open] summary b { color: #e1c99c; }
.mcity-body { max-width: 720px; margin: 0 0 30px 54px; }
.mcity-body > p { font-size: 16px; line-height: 1.75; color: #c8d0c8; }
.mcity-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 20px; margin: 25px 0; }
.mcity-facts b { display: block; font: 20px var(--serif); color: #e4d5b6; }
.mcity-facts span { display: block; font: 10px/1.6 var(--mono); color: #a4b8b4; margin-top: 6px; }
.mcity-go { font: 11px/1.6 var(--mono); color: #d6bb86; text-decoration: none; display: inline-block; padding: 12px 0; }
.city-history, .city-acts { padding: 60px 0; border-top: 1px solid #657b7b55; scroll-margin-top: 30px; }
.city-history > p:not(.city-kicker), .city-acts > p:not(.city-kicker) { max-width: 650px; color: #b9c6bf; font-size: 16px; line-height: 1.75; }
.city-history ol { list-style: none; margin: 38px 0 0; padding: 0 0 0 26px; border-left: 1px solid #887a61; display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.city-history li { position: relative; }
.city-history li::before { content: ''; width: 7px; height: 7px; position: absolute; top: 7px; left: -30px; border-radius: 50%; background: #cbb68a; }
.city-history h3 { font: 400 26px/1.15 var(--serif); color: #e2dac9; margin: 12px 0; }
.city-history .v-derived, .city-source { font: 10px/1.8 var(--mono); color: #afbeb7; }
.city-history-outcome { font: 10px var(--mono); color: #e4c38b; letter-spacing: .08em; }
.city-history .v-narration { font-size: 13px; color: #c0c7bb; }
.city-source { margin-top: 18px; }
.city-source summary { cursor: pointer; padding: 8px 0; }
.city-source p { overflow-wrap: anywhere; }
.city-source code { font-size: 9px; }
.city-act-list { margin-top: 35px; }
.city-act-list article { display: flex; gap: 32px; border-top: 1px solid #657b7b55; padding: 30px 0; }
.city-act-index { font: 18px var(--serif); color: #aa9772; margin-top: 11px; }
.city-act-list h3 { font: 400 28px/1.2 var(--serif); color: #e5dcc6; margin: 8px 0 14px; }
.city-act-list .v-derived { font: 10px/1.8 var(--mono); color: #aebbb1; }
.city-act-list details { margin-top: 22px; }
.city-act-list summary { cursor: pointer; color: #d8bd89; padding: 10px 0; font: 11px var(--mono); }
.city-act-list blockquote { white-space: pre-wrap; margin: 24px 0; border-left: 2px solid #bea77c; padding: 10px 24px; color: #e4e0d3; font: 16px/1.8 var(--serif); max-width: 800px; }
.city-open-ground { margin-top: 30px; padding: 35px; border: 1px dashed #8b8566; max-width: 800px; }
.city-open-ground p { font: 23px/1.5 var(--serif); color: #d8d9c8; }
.city-open-ground span { font: 10px var(--mono); color: #bdb28e; }
.mcity-foot { padding: 45px 0 60px; border-top: 1px solid #657b7b55; color: #a3b7b1; }
.mcity-foot p { font-size: 12px; line-height: 1.8; max-width: 790px; }
.mcity-foot a { display: inline-block; padding: 18px 24px 0 0; color: #d4c098; font: 10px var(--mono); }
.city-overview-reason { padding: 22px 0; color: #dcca9e; font: 12px/1.8 var(--mono); }
/* Desktop is a deliberate enhancement, requested by the visitor. */
.is-desktop-city .city-body { overflow: hidden; }
.is-desktop-city .city-root { height: 100svh; min-height: 480px; position: relative; background: linear-gradient(90deg, #101c28aa, transparent 75%), url('city-overview.jpg') center/cover; }
.is-desktop-city .mcity, .is-desktop-city .atlas-nav { display: none; }
.is-desktop-city .city-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; outline-offset: -4px; }
.is-desktop-city.is-city-ready .city-canvas { opacity: 1; }
.is-desktop-city .city-intro { display: flex; position: absolute; inset: 0; align-items: end; padding: 120px clamp(30px, 6vw, 96px) 95px; background: linear-gradient(0deg, #101d28cc, transparent 80%); z-index: 40; }
.city-intro-card { max-width: 720px; }
.city-intro .city-kicker { color: #deccaa; }
.city-title { font-size: clamp(55px, 6.5vw, 100px); color: #f0eddf; }
.city-lede { font: 18px/1.65 var(--serif); color: #e0e2d6; }
.city-intro-record { color: #e0c595; font: 10px/1.7 var(--mono); margin: 25px 0; }
.city-intro-record span { padding: 0 10px; }
.city-entry-actions { display: flex; align-items: center; gap: 28px; }
.city-enter { background: #e2d2b0; border: 0; padding: 18px 24px; color: #172326; font: 11px var(--mono); letter-spacing: .03em; cursor: pointer; min-height: 52px; }
.city-enter span { margin-left: 35px; }
.city-enter:hover { background: #f3e8ce; }
.city-entry-actions a { color: #e6decd; font: 11px var(--mono); text-decoration: none; padding: 18px 0; }
.city-progress { color: #bfcac4; font: 10px var(--mono); margin: 20px 0 0; }
.city-intro-caption { position: absolute; right: 50px; bottom: 44px; text-align: right; color: #d2d5c7; font: 9px/1.8 var(--mono); }
.is-loading-city .city-progress::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d5bb80; margin-right: 12px; animation: city-breathe 1s infinite alternate; }
@keyframes city-breathe { to { opacity: .2; } }
.city-intro.is-leaving { opacity: 0; pointer-events: none; transition: opacity .6s; }
.is-city-ready .scene-nav { display: inline-block; }
.is-city-entered .scene-ui { display: flex; }
.is-desktop-city .city-places, .is-desktop-city .city-panel, .is-desktop-city .city-help { display: block; position: absolute; z-index: 70; background: #17252af5; border: 1px solid #71868066; padding: 24px; color: #d6ddd2; overflow: auto; max-height: calc(100svh - 160px); }
.city-places { top: 86px; right: 40px; width: 340px; }
.city-places > p:first-child { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #b4c2b8; margin: 0 0 12px; }
.city-places ul { list-style: none; margin: 0; padding: 0; }
.city-places li + li { border-top: 1px solid #74887933; }
.city-places button { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 4px 8px; width: 100%; text-align: left; border: none; background: none; color: #e0e3d7; padding: 11px 0; cursor: pointer; }
.city-places button b { font: 18px var(--serif); font-weight: 400; }
.city-places button > span:last-child { grid-column: 2; font: 9px/1.4 var(--mono); color: #a5b7ae; }
.city-places button:hover b { color: #dec394; }
.city-places .v-editorial { font-size: 11px; line-height: 1.6; color: #b4c0b2; margin-top: 20px; }
.city-panel { left: 36px; bottom: 135px; width: min(420px, calc(100vw - 72px)); border-left: 2px solid #d1b278 !important; }
.city-panel-close { position: absolute; right: 10px; top: 5px; width: 44px; height: 44px; background: transparent; border: 0; color: #e1d9c5; font-size: 24px; cursor: pointer; }
.city-panel-tag { font: 9px/1.6 var(--mono); letter-spacing: .08em; color: #bdb393; padding-right: 25px; }
.city-panel-name { font: 400 32px/1.1 var(--serif); letter-spacing: -.025em; color: #e7e0d1; margin: 12px 0 18px; }
.city-panel-body { font: 14px/1.75 var(--serif); color: #cbd2c4; }
.city-panel-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.city-panel-facts > div { border-top: 1px solid #82948244; padding-top: 10px; }
.city-panel-facts b { display: block; font: 18px var(--serif); color: #e3cd9d; }
.city-panel-facts span { display: block; margin-top: 4px; font: 9px/1.6 var(--mono); color: #b2c0b3; }
.city-panel-link { font: 10px var(--mono); color: #e0c38e; }
.city-panel-inhabitants { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 14px; grid-column: 1 / -1; }
.city-panel-inhabitants a { color: #dfceac; text-decoration: none; display: inline-block; padding: 8px 0; font: 11px var(--mono); }
.city-help { right: 36px; bottom: 135px; width: 340px; }
.city-help h2 { font: 25px var(--serif); font-weight: 400; margin-top: 0; }
.city-help p { font: 13px/1.8 var(--serif); }
kbd { font: 10px var(--mono); border: 1px solid #8e978466; padding: 2px 4px; }
.city-help .city-btn { display: block; }
.city-compass { position: absolute; left: 40px; top: 110px; z-index: 25; flex-direction: column; color: #e2e3d4; text-shadow: 0 1px 5px #17252a; pointer-events: none; }
.city-compass > span:first-child { font: 10px var(--mono); color: #dec391; margin-bottom: 16px; }
.city-compass p { font: 25px var(--serif); margin: 0 0 6px; }
.city-compass .v-derived { font: 9px var(--mono); color: #c4caba; }
.city-tools { position: absolute; right: 38px; bottom: 88px; gap: 24px; z-index: 35; }
.city-route { position: absolute; bottom: 77px; left: 38px; z-index: 35; flex-wrap: wrap; align-items: center; max-width: 450px; gap: 10px 18px; }
.city-route > span:first-child { flex-basis: 100%; font: 9px var(--mono); color: #c8cabc; }
.city-route button { background: none; padding: 7px 0; border: 0; color: #e9d7ad; font: 18px var(--serif); cursor: pointer; }
.city-route > span:last-child { font: 9px var(--mono); color: #b5bca9; }
.city-status { position: absolute; inset: auto 0 0; padding: 25px 38px; gap: 28px; font: 9px var(--mono); color: #c6cdbd; background: linear-gradient(transparent, #132028dc); z-index: 30; pointer-events: none; }
.city-status-state { color: #dec18b; margin-left: auto; }
.is-city-entered .city-labels { display: block; position: absolute; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.city-label { position: absolute; left: 0; top: 0; border: 0; border-bottom: 1px solid #b8ad8366; background: #152329bd; color: #e7e0c9; font: 16px var(--serif); padding: 9px 13px; min-height: 44px; white-space: nowrap; opacity: 0; visibility: hidden; cursor: pointer; pointer-events: none; }
.city-label small { display: block; font: 8px var(--mono); margin-top: 5px; color: #bfccbc; }
.city-label.is-visible { visibility: visible; opacity: .92; pointer-events: auto; }
.city-label.is-near { border-bottom-color: #e9c68a; }
.is-locked .city-label { pointer-events: none; }
.is-desktop-city .city-prompt { display: block; position: absolute; top: 56%; left: 50%; transform: translateX(-50%); z-index: 30; font: 10px var(--mono); color: #ede3cc; padding: 10px 15px; background: #17252ac7; pointer-events: none; }
.city-stats { position: absolute; top: 90px; right: 25px; padding: 15px; z-index: 85; font: 10px/1.5 var(--mono); background: #102026e8; color: #dbd8b8; max-width: calc(100vw - 50px); overflow: auto; pointer-events: none; }
@media (max-width: 1050px) { .city-tools { gap: 14px; } .city-route { max-width: 360px; } .city-status { gap: 16px; font-size: 8px; } .city-intro-caption { display: none; } }
@media (max-width: 819px), (hover: none) and (pointer: coarse) {
  .city-mast { padding: 20px 24px; } .city-nav { gap: 18px; } .city-mast .wordmark-text { font-size: 14px; } .city-mast .gnomon-mast { width: 20px; }
  .city-btn { font-size: 9px; } .mcity-hero { height: 83svh; min-height: 580px; max-height: 800px; } .mcity-hero img { object-position: 53% center; }
  .mcity-hero figcaption { bottom: 42px; } .mcity-hero h1 { font-size: clamp(48px, 9vw, 72px); } .mcity-hero figcaption > p:not(.city-kicker) { font-size: 16px; }
  .mcity-inner { padding: 0 24px; } .mcity-arrival { padding: 35px 0 42px; } .mcity-lede { font-size: 22px; } .mcity-state b { font-size: 36px; } .mcity-state span { font-size: 9px; }
  .mcity-map { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; } .mcity-map p:not(.city-kicker) { max-width: none; } .mcity-map h2 { margin: 14px 0; }
  .city-atlas { margin: 0 -10px; width: calc(100% + 20px); } .mcity-discover, .city-history, .city-acts { padding: 40px 0; }
  .mcity-place summary { grid-template-columns: 26px 1fr 20px; gap: 7px 10px; padding: 20px 0; } .mcity-place summary b { font-size: 22px; }
  .mcity-place summary > span:not(.place-number) { grid-column: 2; grid-row: 2; font-size: 9px; } .mcity-place summary em { grid-column: 3; grid-row: 1 / 3; }
  .mcity-body { margin-left: 36px; } .mcity-body > p { font-size: 15px; } .mcity-facts { gap: 16px; grid-template-columns: 1fr 1fr; }
  .city-history ol { grid-template-columns: 1fr; gap: 30px; } .city-history h3 { font-size: 25px; } .city-act-list article { gap: 18px; } .city-act-list h3 { font-size: 25px; }
  .city-act-list blockquote { padding-inline: 15px; font-size: 15px; } .city-open-ground { padding: 25px; } .city-open-ground p { font-size: 21px; } .atlas-desktop-link { display: none !important; }
}
@media (max-width: 380px) { .city-nav .atlas-nav { display: none; } .mcity-inner { padding-inline: 20px; } .mcity-hero figcaption { left: 20px; } .mcity-body { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .city-root *, .city-root *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .city-mast, .city-canvas, .city-intro, .scene-ui, .city-labels { display: none !important; } .mcity { display: block !important; } .city-body { overflow: visible !important; } }
@media (min-width: 820px) and (max-height: 720px) {
  .is-desktop-city .city-intro { padding-top: 100px; padding-bottom: 48px; }
  .city-title { font-size: clamp(48px, 7.8vh, 68px); margin: 15px 0; }
  .city-lede { font-size: 16px; line-height: 1.5; margin: 12px 0; }
  .city-intro-record { margin: 16px 0; }
  .city-progress { margin-top: 15px; }
  .city-compass { top: 88px; }
  .city-panel, .city-help { bottom: 105px; max-height: calc(100svh - 185px) !important; padding: 18px !important; }
  .city-panel-name { font-size: 26px; margin: 10px 0; }
  .city-panel-body { font-size: 13px; }
  .city-route { bottom: 61px; }
  .city-tools { bottom: 67px; }
  .city-status { padding-block: 18px; }
}
.mcity-hero figcaption > .mcity-hero-state { font: 10px/1.7 var(--mono) !important; color: #d3bd93 !important; margin-top: 20px; }
