/* Landmark Guyana public site.
   A survey sheet laid on the land: every page opens on a deep green band drawn
   with contour lines (our own tile, public/img/topo.svg), the map or photo sits
   on the sheet's edge, and the lists below run on pale, faintly grained paper.
   The one loud colour is the gold "Take me there" — green and gold, the flag. */
:root {
  --paper: #f3f6f1;
  --surface: #e3ebe2;
  --line: #c9d7cb;
  --ink: #14271e;
  --muted: #4e6358;
  --green: #1e5e3f;
  --moss: #2f7a52;
  --fern: #8fcf9f;
  --green-ink: #ffffff;
  --forest: #0f3b2e;
  --forest-deep: #0a2b21;
  --band-ink: #f4f1e6;
  --band-muted: #b9d4c3;
  --contour: rgba(143, 207, 159, 0.26);
  --contour-paper: rgba(30, 94, 63, 0.16);
  --gold: #e0a526;
  --gold-ink: #1c1a17;
  --river: #6b4e2e;
  --notice: #fff3d6;
  --notice-ink: #4a3600;
  --shadow: 0 12px 32px rgba(10, 35, 25, 0.22);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", Roboto, system-ui, sans-serif;
  --radius: 8px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1f18; --surface: #15302a; --line: #244a3b; --ink: #e9f0e8; --muted: #9fb9ab;
    --green: #6cc096; --moss: #4e9d73; --fern: #8fcf9f; --green-ink: #0d1a12;
    --forest: #11392c; --forest-deep: #0a2b21; --band-ink: #f2efe3; --band-muted: #a9c7b5;
    --contour: rgba(143, 207, 159, 0.2); --contour-paper: rgba(143, 207, 159, 0.14);
    --gold: #f0b84a; --gold-ink: #1c1a17; --river: #c9a57c; --notice: #3a2e0f; --notice-ink: #ffe9b3;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1f18; --surface: #15302a; --line: #244a3b; --ink: #e9f0e8; --muted: #9fb9ab;
  --green: #6cc096; --moss: #4e9d73; --fern: #8fcf9f; --green-ink: #0d1a12;
  --forest: #11392c; --forest-deep: #0a2b21; --band-ink: #f2efe3; --band-muted: #a9c7b5;
  --contour: rgba(143, 207, 159, 0.2); --contour-paper: rgba(143, 207, 159, 0.14);
  --gold: #f0b84a; --gold-ink: #1c1a17; --river: #c9a57c; --notice: #3a2e0f; --notice-ink: #ffe9b3;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper) var(--grain); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 42px); letter-spacing: -0.01em; }
h2 { font-size: 27px; color: var(--green); }
h3 { font-size: 21px; }
p { margin: 0; }
.wrap { max-width: 44rem; margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.lead { font-size: 19px; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* the contour texture: a mask, so the lines take whatever colour the element sets */
.band::before, .site-foot::before, span.thumb::after, .date::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../img/topo.svg) 0 0 / 560px 560px repeat; mask: url(../img/topo.svg) 0 0 / 560px 560px repeat;
}

/* the green band: site header and the page's title */
.band { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--forest) 0%, var(--forest-deep) 100%); color: var(--band-ink); }
.band::before { z-index: -1; background: var(--contour); }
.site-head { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--band-ink); text-decoration: none; letter-spacing: -0.01em; }
.brand i { font-style: italic; color: var(--fern); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--band-ink); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-color: var(--gold); }
.hero { padding-block: 28px 70px; display: grid; gap: 10px; justify-items: start; }
.hero .kicker { color: var(--band-muted); font-size: 15px; letter-spacing: 0.02em; }
.hero .kicker a { color: var(--fern); }
.hero h1 { color: var(--band-ink); font-size: clamp(34px, 7vw, 54px); max-width: 16em; }
.hero .lead { color: var(--band-muted); }
.hero .lead strong { color: var(--band-ink); }
.hero .btn-go { margin-top: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.hero .badge-est { vertical-align: middle; }
.has-hero main { padding-top: 0; }
.has-hero main > section:first-child > :first-child { margin-top: 28px; }
.has-hero main > section:first-child > .overlap { margin-top: -46px; }
.overlap { position: relative; z-index: 1; }
.map.overlap, .hero-img.overlap, .hero-figure.overlap img { border: 5px solid var(--paper); box-shadow: var(--shadow); border-radius: calc(var(--radius) + 3px); background: var(--paper); }
.hero-figure { margin: 0; }
.gallery.overlap { margin-top: -46px; }
.gallery.overlap img { border: 5px solid var(--paper); box-shadow: var(--shadow); }

/* notices */
.notice { background: var(--notice); color: var(--notice-ink); }
.notice .wrap { padding-block: 10px; display: flex; gap: 10px; align-items: baseline; }
.notice strong { font-weight: 700; }

main { padding-block: 28px 56px; display: grid; gap: 44px; }
section { display: grid; gap: 14px; }
section > header { display: grid; gap: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn-go { background: var(--gold); color: var(--gold-ink); }
.btn-go:hover { filter: brightness(1.05); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* maps: a Leaflet map once tiles arrive, the schematic drawing or route image until then */
.map { background: var(--surface); border-radius: var(--radius); overflow: hidden; position: relative; }
.map > svg { display: block; width: 100%; height: auto; }
.map.has-map { min-height: 300px; aspect-ratio: 16 / 11; }
.map .wg-map { position: absolute; inset: 0; z-index: 1; }
.map-place, .map-route { margin-top: 16px; }
.map-place:not(.has-map), .map-route:not(.has-map):empty { display: none; }
.map-route img { display: block; width: 100%; height: auto; }
.map-key { font-size: 14px; color: var(--muted); }
.wg-pin-wrap { background: none; border: 0; }
.wg-pin { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font: 700 13px/1 var(--font-body); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.wg-pin-monument { width: 16px; height: 16px; background: var(--gold); border-width: 2px; }
.wg-pin-here { background: var(--gold); color: var(--green-ink); width: 30px; height: 30px; }
.wg-pin-here::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--gold); opacity: .5; }
.wg-pin-to { background: #1c1a17; color: #fff; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a { color: var(--green); font-weight: 700; }

/* place lists */
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.places li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding-block: 14px; color: inherit; text-decoration: none; }
.row:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.thumb { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--surface); }
span.thumb { display: block; position: relative; overflow: hidden; }
span.thumb::after { background: var(--contour-paper); -webkit-mask-size: 240px 240px; mask-size: 240px 240px; }
.row .name { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.row .num { color: var(--green); font-variant-numeric: tabular-nums; }
.row .sub { display: block; color: var(--muted); font-size: 15px; margin-top: 2px; }
.row .fig { text-align: right; min-width: 64px; }
.fig b { display: block; font-size: 24px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.fig span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.fig .walk { color: var(--green); }
.fig.go b { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--green); font-size: 20px; transition: background .15s, color .15s; }
.row:hover .fig.go b { background: var(--green); color: var(--green-ink); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.pill-est { background: var(--notice); color: var(--notice-ink); }

/* route cards on a sign's page */
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.route { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
.route-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.route-head .name { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.route-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.route-actions .btn { padding: 10px 14px; }
.street { color: var(--muted); font-size: 15px; }

/* gallery */
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: calc(-1 * clamp(16px, 4vw, 28px)); padding-inline: clamp(16px, 4vw, 28px); }
.gallery figure { margin: 0; flex: 0 0 min(86%, 560px); scroll-snap-align: start; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--surface); }

/* facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { display: grid; gap: 12px; max-width: 36rem; }

/* tables */
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 400; font-size: 13px; }
td.num, th.num { text-align: right; padding-right: 10px; }

/* steps */
.steps { padding-left: 1.4em; display: grid; gap: 8px; margin: 0; }
.steps li::marker { color: var(--green); font-weight: 700; }
.route-map { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.map.is-live .route-map { display: none; }

/* events */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; }
.date { position: relative; overflow: hidden; background: var(--surface); border-radius: 6px; text-align: center; padding: 6px 4px; line-height: 1.1; }
.date::after { background: var(--contour-paper); -webkit-mask-size: 200px 200px; mask-size: 200px 200px; }
.date b { display: block; font-size: 22px; font-family: var(--font-display); color: var(--green); }
.date span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.event h3 { font-size: 19px; }
.event img { width: 100%; max-width: 360px; border-radius: 4px; margin-top: 8px; }

/* sponsor banner */
.sponsor { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 6px; background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
.sponsor small { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
/* Artwork is shown at its own size, centred — never stretched beyond it (small files go soft). */
.sponsor img { display: block; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }

/* footer: the band again, quieter */
.site-foot { position: relative; isolation: isolate; background: var(--forest-deep); color: var(--band-muted); font-size: 14px; }
.site-foot::before { z-index: -1; background: var(--contour); opacity: .6; }
.site-foot a { color: var(--fern); }
.site-foot .wrap { padding-block: 26px 36px; display: grid; gap: 8px; }
.site-foot .programme { color: var(--band-ink); font-size: 16px; }
.site-foot .programme strong { font-family: var(--font-display); font-weight: 600; }

.you-are-here { color: var(--muted); font-size: 15px; letter-spacing: 0.02em; }
.badge-est { font-size: 13px; color: var(--notice-ink); background: var(--notice); padding: 2px 8px; border-radius: 999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media (max-width: 420px) {
  .row { grid-template-columns: 72px 1fr auto; }
  .thumb { width: 72px; height: 54px; }
  .hero { padding-bottom: 60px; }
  .has-hero main > section:first-child > .overlap { margin-top: -36px; }
}
