/* «Марс до нашей эры» — gothic stone: dark carved stone ground, wine-red (red algae) for action, purple basil for marks,
   bone-coloured text, a gothic title face. Single dark theme by choice. */
@font-face { font-family: "MarsTitle"; src: url("/assets/fonts/title.ttf?v=635de0c779") format("truetype"); font-display: swap;
  unicode-range: U+0000-2012, U+2015-2025, U+2027-FFFF; } /* its dashes and ellipsis are too small — those come from the fallback face */
:root {
  --bg: #1c1719;
  --panel: #262023;
  --panel-2: #2e272b;
  --line: #433a3f;
  --ink: #ece2d2;
  --ink-2: #cfc3b3;
  --muted: #9f9388;
  --basil: #b89cc0;
  --basil-deep: #66436F;
  --algae: #a33644;
  --rust: var(--algae);
  --water: #8cc3d6;
  --water-deep: #3c6f86;
  --moss: var(--basil-deep);
  --story: #c9a45c;
  --f-title: "MarsTitle", "Forum", Georgia, serif;
  --f-display: "Forum", "Cormorant Garamond", Georgia, serif;
  --f-water: "Cormorant Garamond", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.55; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--basil); }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.in { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 28px 56px; display: grid; gap: 18px; align-content: start; }
main.wide { max-width: 1480px; }
.is-wide .in { max-width: 1480px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: rgba(244, 236, 225, 0.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); padding-top: env(safe-area-inset-top, 0px); }
.site-head .in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 10px; }
.brand { font-family: var(--f-display); font-size: 22px; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--rust); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-head nav a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 4px; }
.site-head nav a:hover { color: var(--ink); background: var(--panel); }
.site-head nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rust); border-radius: 0; }

/* footer */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-foot .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }

/* type */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: 0.05em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.page-head { display: grid; gap: 6px; }
.page-head h1 { font-size: clamp(30px, 4vw, 42px); }
.sub { color: var(--muted); max-width: 70ch; margin: 0; }
.eyebrow, .glabel { font-family: var(--f-body); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--f-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 9px 16px; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--basil); border-color: var(--basil); }
.btn.primary { background: var(--algae); border-color: var(--algae); color: #fff; }
.btn.primary:hover { background: #7A2430; border-color: #7A2430; color: #fff; }
.btn.small { font-size: 13px; padding: 6px 12px; }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 12px 8px; }
.hero-text { display: grid; gap: 14px; }
.hero-text p { margin: 0; max-width: 60ch; color: var(--ink-2); }
.hero-text .lead { font-size: 19px; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-globe { display: block; border-radius: 50%; }
.hero-globe img { width: 100%; max-width: 560px; margin: 0 auto; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-globe { order: -1; } .hero-globe img { max-width: 360px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tile { display: grid; gap: 8px; align-content: start; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.tile:hover { border-color: var(--rust); color: var(--ink); }
.tile h2 { font-size: 24px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 15px; }
.facts { display: grid; gap: 14px; padding-top: 10px; }
.facts h2 { font-size: 26px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 0; }
.facts dl div { background: var(--bg); padding: 14px 16px; }
.facts dt { font-family: var(--f-display); font-size: 26px; color: var(--rust); font-variant-numeric: tabular-nums; }
.facts dd { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

/* atlas controls */
.controls { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.group .glabel { margin-right: 4px; }
button.chip { font: 500 13px var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--water-deep); border-color: var(--water-deep); color: #fff; }
button.chip.mode[aria-pressed="true"] { background: var(--basil); border-color: var(--basil); color: #fff; }
button.chip:disabled { opacity: 0.45; cursor: wait; }
label.tog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
input[type="range"] { width: 140px; accent-color: var(--water); }
.sea-val { font-family: var(--f-mono); font-size: 12px; color: var(--water); min-width: 7ch; font-variant-numeric: tabular-nums; }

.mapbox { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #D8CCB9; }
.map { position: relative; min-width: calc(980px * var(--z, 1)); width: 100%; aspect-ratio: 2 / 1; cursor: crosshair; }
.map canvas, .map img, .map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.loading { position: absolute; right: 10px; bottom: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: rgba(244, 236, 225, 0.9); padding: 3px 8px; border-radius: 4px; }
svg text { paint-order: stroke; stroke-linejoin: round; font-size: calc(var(--fs, 12px) / var(--z, 1)); stroke-width: calc(var(--sw, 3px) / var(--z, 1)); }
.l-lake-s { --fs: 11px; --sw: 2.6px; }
.l-riv { font-family: var(--f-water); font-style: italic; font-weight: 600; fill: #bfe6f0; stroke: #0f2a40; --fs: 12px; --sw: 2.8px; letter-spacing: 0.04em; }
.mapbox.zoomed { max-height: 78vh; overflow: auto; }
.map { --z: 1; }
.l-sea { font-family: var(--f-water); font-style: italic; font-weight: 600; fill: #a9dbe6; stroke: #0f2a40; --sw: 3px; }
.l-ocean { --fs: 30px; letter-spacing: 0.18em; }
.l-sea-m { --fs: 17px; letter-spacing: 0.05em; }
.l-lake { font-family: var(--f-water); font-style: italic; font-weight: 600; --fs: 13px; fill: #d4f0f5; stroke: #0f2a40; --sw: 3px; }
.l-reg { font-family: var(--f-display); fill: #f6e7d6; stroke: #2e1a12; --sw: 3px; --fs: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.l-big { --fs: 22px; letter-spacing: 0.3em; }
.l-mtn { font-family: var(--f-body); font-style: italic; font-weight: 500; --fs: 11px; fill: #f3dcc6; stroke: #2e1a12; --sw: 3px; letter-spacing: 0.06em; }
.l-lat { font-family: var(--f-body); --fs: 9.5px; fill: #e2cdb8; stroke: #2a160f; --sw: 2.4px; letter-spacing: 0.04em; font-style: italic; }
.l-lat.sea { fill: #cfeaf0; stroke: #0f2a40; }
.l-peak { font-family: var(--f-body); font-weight: 600; --fs: 11.5px; fill: #fff4ea; stroke: #241310; --sw: 3px; }
.l-site { font-family: var(--f-body); font-weight: 500; --fs: 11px; fill: #d9f2f6; stroke: #0b2433; --sw: 3px; }
.l-story { font-family: var(--f-display); --fs: 14px; fill: var(--story); stroke: #2b1906; --sw: 3.4px; letter-spacing: 0.06em; }
.l-focus { font-family: var(--f-display); --fs: 16px; fill: #fff; stroke: #3a1a0a; --sw: 3.6px; letter-spacing: 0.05em; }
.grid line { stroke: rgba(255, 255, 255, 0.14); stroke-width: 0.7; }
.grid text { font-family: var(--f-mono); font-size: 9px; fill: rgba(255, 255, 255, 0.6); }
.l-route { font-family: var(--f-body); font-weight: 600; fill: #f2c66d; stroke: #2b1906; --fs: 16px; --sw: 4px; }
.route { stroke: var(--story); stroke-width: 2.2; fill: none; stroke-dasharray: 6 4; }
.focus-ring { fill: none; stroke: var(--rust); stroke-width: 2.5; }
@media (prefers-reduced-motion: no-preference) { .focus-ring { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; } }
@keyframes pulse { 0% { opacity: 1; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.8); } }

.globebox { position: relative; border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(circle at 50% 45%, #1f1a2a 0%, #0b0a10 70%); display: grid; place-items: center; padding: 8px; }
.globebox canvas { width: min(100%, 76vh); aspect-ratio: 1 / 1; display: block; touch-action: none; cursor: grab; max-width: 100%; }
.globebox canvas.drag { cursor: grabbing; }
.globebox canvas#glo { position: absolute; pointer-events: none; width: auto; height: auto; min-height: 0; }
.gtools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .gtools { position: static; flex-direction: row; flex-wrap: wrap; justify-content: center; order: 2; margin-top: 8px; } .globebox { display: flex; flex-direction: column; align-items: center; } }
.gtools button { font: 500 12px var(--f-body); color: #F1E9DE; background: rgba(24, 20, 30, 0.8); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; padding: 5px 10px; cursor: pointer; }

.readout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.5em; }
.readout b { color: var(--ink); font-weight: 500; }
#dist b { color: var(--story); }
.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--rust); border-radius: 4px; font-size: 14px; }
.pick strong { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: 0.04em; }

.below { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
@media (max-width: 860px) { .below { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; min-width: 0; }
.card h2 { font-size: 20px; letter-spacing: 0.08em; margin: 0 0 10px; }
.bar { height: 12px; border-radius: 3px; margin: 6px 0 4px; background: linear-gradient(90deg, #11263f 0%, #24547a 18%, #5696a0 30%, #ccaa74 31%, #a6623c 45%, #64393a 62%, #4e3a36 72%, #7c6864 84%, #eee6e0 100%); }
.ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.sw { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 6px 0 4px; font-size: 13px; }
.sw span { display: flex; align-items: center; gap: 8px; }
.sw i { width: 18px; height: 12px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); }
.keys { display: grid; gap: 7px; margin-top: 14px; font-size: 13.5px; }
.key { display: flex; align-items: center; gap: 10px; }
.notes p { margin: 0 0 10px; max-width: 72ch; color: var(--ink-2); font-size: 15px; }
.notes p:last-child { margin-bottom: 0; }

/* wiki index */
.wsearch input { width: 100%; max-width: 480px; font: 15px var(--f-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.wgroup { display: grid; gap: 10px; }
.wgroup h2 { font-size: 24px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.wlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 6px 22px; }
.witem { display: grid; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 4px; text-decoration: none; color: var(--ink); }
.witem:hover { background: var(--panel); color: var(--ink); }
.wt { font-family: var(--f-display); font-size: 19px; letter-spacing: 0.03em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws { color: var(--muted); font-size: 14px; }
.status { font: 500 10.5px var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.s-canon { color: var(--basil); border-color: #BBA3C0; }
.s-draft { color: var(--algae); border-color: #D9A9AE; }
.empty { color: var(--muted); }

/* article */
.article { display: grid; gap: 16px; max-width: 760px; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: 15px; }
.place { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.minimap { position: relative; width: 220px; max-width: 100%; aspect-ratio: 2 / 1; border-radius: 4px; background-image: url(/assets/img/real.webp?v=a411af68c1); background-size: 600% auto; background-position: var(--px) var(--py); overflow: hidden; }
.minimap i { position: absolute; left: var(--mx); top: var(--my); width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2.5px solid var(--rust); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); }
.place-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.coords { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); width: 100%; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; border-left: 2px solid var(--line); font-size: 14px; }
.toc .glabel { width: 100%; }
.prose { min-width: 0; }
.prose > * { margin: 0 0 14px; }
.prose p, .prose li { color: var(--ink-2); max-width: 68ch; }
.prose h2 { font-size: 27px; margin-top: 30px; color: var(--ink); }
.prose h3 { font-size: 21px; margin-top: 20px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose code { font-family: var(--f-mono); font-size: 0.9em; background: var(--panel); padding: 1px 5px; border-radius: 3px; }
.prose .missing { color: var(--muted); border-bottom: 1px dashed var(--muted); }
.note { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--basil); border-radius: 4px; padding: 12px 16px; }
.note > *:last-child { margin-bottom: 0; }
.note p, .note li { font-size: 15px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; font-size: 14.5px; min-width: 100%; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
th { font-weight: 600; color: var(--ink); background: var(--panel); }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }

/* contacts */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; max-width: 900px; }
.contact { display: grid; gap: 8px; align-content: start; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.contact .big { font-family: var(--f-display); font-size: 26px; letter-spacing: 0.02em; color: var(--ink); overflow-wrap: anywhere; }
.contact a.big { color: var(--water); }
.contact .sel { user-select: all; }
.contact p { margin: 0; color: var(--muted); font-size: 14px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* atlas pages: the map or globe fits the first screen */
main.atlas { padding-block: 12px 40px; gap: 12px; }
main.atlas .controls { padding: 8px 12px; gap: 8px 22px; }
.atlas .mapbox { width: min(100%, calc((100vh - 200px) * 2)); margin: 0 auto; }
.atlas .mapbox.zoomed { width: 100%; }
.atlas .globebox canvas { width: min(100%, calc(100vh - 210px)); }
@media (max-width: 700px) { .atlas .mapbox { width: 100%; } }

/* globe: one frame, canvas fills it, starfield behind */
.globebox { display: block; padding: 0; background-color: #05040a; overflow: hidden; }
.globebox canvas, .atlas .globebox canvas { width: 100%; height: calc(100vh - 200px); min-height: 340px; max-height: none; aspect-ratio: auto; }
@media (max-width: 600px) { .globebox canvas, .atlas .globebox canvas { height: 70vh; } .gtools { position: absolute; flex-direction: column; } }

/* ---------- purple basil ornament ---------- */
main, .site-foot { position: relative; z-index: 1; }
.vine { position: fixed; bottom: 0; height: min(92vh, 1000px); pointer-events: none; z-index: 0; }
.vine-l { left: max(0px, calc(50% - 600px - 170px)); }
.vine-r { right: max(0px, calc(50% - 600px - 170px)); transform: scaleX(-1); }
/* the vines always grow in the page margins; on narrower screens they slide partly off the edge and fade behind the text */
.vine { display: block; width: 150px; opacity: .62; }
.vine-l { left: max(-70px, calc(50% - 600px - 170px)); }
.vine-r { right: max(-70px, calc(50% - 600px - 170px)); }
@media (max-width: 1419px) { .vine { opacity: .45; } }
@media (max-width: 700px) { .vine { opacity: .25; height: 75vh; } .vine-l { left: -95px; } .vine-r { right: -95px; } }
@media (prefers-reduced-motion: no-preference) {
  .vine .lf { transform-box: fill-box; transform-origin: 0 50%; animation: sway 7s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1); }
}
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }
.sprig { display: block; width: 220px; max-width: 70%; height: auto; margin: -4px 0 2px; }
.foot-sprig { display: flex; justify-content: center; margin-top: -21px; }
.foot-sprig .sprig { width: 200px; margin: 0; background: var(--bg); padding: 0 10px; }
.prose h2::before { content: ""; display: inline-block; width: 26px; height: 14px; margin-right: 10px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 30'%3E%3Cpath d='M0 15 C10 2 30 -2 46 5 C54 9 59 13 62 15 C59 17 54 21 46 25 C30 32 10 28 0 15 Z' fill='%2366436F'/%3E%3Cpath d='M2 15 L58 15' stroke='%23b996c2' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain; }
.prose ul { list-style: none; padding-left: 4px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 30'%3E%3Cpath d='M0 15 C10 2 30 -2 46 5 C54 9 59 13 62 15 C59 17 54 21 46 25 C30 32 10 28 0 15 Z' fill='%23922D3A'/%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(-20deg); }
.wgroup h2::after { content: ""; display: inline-block; width: 22px; height: 12px; margin-left: 10px; vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 30'%3E%3Cpath d='M0 15 C10 2 30 -2 46 5 C54 9 59 13 62 15 C59 17 54 21 46 25 C30 32 10 28 0 15 Z' fill='%2366436F'/%3E%3C/svg%3E") no-repeat center / contain; }
/* globe frame in the site's colours */
.globebox { border-color: var(--line); background-color: #1d131a; box-shadow: inset 0 0 0 1px rgba(234, 200, 150, .08); }

/* ================= gothic stone theme ================= */
body {
  background-color: var(--bg); background-attachment: fixed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .92 0 0 0 0 .86 0 0 0 0 .8 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 900px 600px at 15% 30%, rgba(120,95,110,.10), transparent 70%),
    radial-gradient(ellipse 800px 700px at 85% 70%, rgba(110,80,90,.09), transparent 70%),
    radial-gradient(ellipse at 50% 0%, #2a2226 0%, transparent 60%);
}
a:hover { color: #d9c2df; }
.site-head { background: rgba(24, 19, 21, 0.95); border-bottom: 1px solid #000; box-shadow: 0 1px 0 #3a3236; }
.brand, h1, .page-head h1, .article h1, .facts h2, .wgroup h2, .prose h2, .card h2 { font-family: var(--f-title); letter-spacing: .04em; }
.brand { font-size: 23px; }
.brand span { color: #c94a5a; }
h1 { text-shadow: 0 2px 0 #000, 0 -1px 0 rgba(255,255,255,.08); }
.hero-text .lead { color: var(--ink); }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--algae); }

/* faceted buttons, like cut stone */
.btn { border: 0; border-radius: 0; background: #2e272b; color: var(--ink); padding: 10px 22px; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.4); letter-spacing: .03em; }
.btn:hover { background: #3a3236; color: var(--ink); }
.btn.primary { background: var(--algae); color: #fff; }
.btn.primary:hover { background: #b8414f; color: #fff; }
.btn.small { padding: 7px 18px; }

/* stone panels with a slight bevel */
.tile, .card, .contact, .place, .controls, .note, .pick, .facts dl, .toc { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(0,0,0,.45); }
.facts dl { background: #0f0c0d; }
.facts dl div { background: var(--panel); }
.facts dt { color: #d4606e; }
.contact { border-radius: 140px 140px 4px 4px / 36px 36px 4px 4px; padding-top: 30px; }
.witem:hover { background: var(--panel); }
.note { border-left-color: var(--basil-deep); }
.s-canon { color: var(--basil); border-color: #5e4a66; }
.s-draft { color: #e08c96; border-color: #74303a; }
button.chip[aria-pressed="true"] { background: var(--water-deep); border-color: var(--water-deep); color: #fff; }
button.chip.mode[aria-pressed="true"] { background: var(--basil-deep); border-color: var(--basil-deep); color: #fff; }
.mapbox { background: #120e10; }
.loading { background: rgba(24, 19, 21, .85); }
.wsearch input { background: var(--panel); }

/* carved marks instead of leaves */
.prose h2::before { width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='%23c9b9a2' stroke-width='1.6'%3E%3Ccircle cy='-5' r='5'/%3E%3Ccircle cx='5' r='5'/%3E%3Ccircle cy='5' r='5'/%3E%3Ccircle cx='-5' r='5'/%3E%3C/g%3E%3Cpath d='M0 -4 L3 0 L0 4 L-3 0 Z' fill='%23a33644'/%3E%3C/svg%3E") no-repeat center / contain; }
.prose ul li::before { width: 9px; height: 12px; top: .5em; transform: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 12'%3E%3Cpath d='M4.5 0 L9 6 L4.5 12 L0 6 Z' fill='%23a33644'/%3E%3C/svg%3E") no-repeat center / contain; }
.wgroup h2::after { width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg fill='none' stroke='%23b89cc0' stroke-width='1.6'%3E%3Ccircle cy='-5' r='5'/%3E%3Ccircle cx='5' r='5'/%3E%3Ccircle cy='5' r='5'/%3E%3Ccircle cx='-5' r='5'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.vine { opacity: .85; }
@media (max-width: 1419px) { .vine { opacity: .6; } }
@media (max-width: 700px) { .vine { opacity: .3; } }
.foot-sprig .sprig { background: transparent; }
.site-foot { border-top: 1px solid #000; box-shadow: inset 0 1px 0 #3a3236; }
