/* Calcasieu Parish Heritage
   VOICE: independent local history, exact and warm
   IDEA: the street obelisk (white concrete, black stencil letters) is the site's mark and display type
   COLOUR: concrete white, stencil black, lichen green, brick; deep green-black bands
   TYPE: Cinzel for headings (carved-stone capitals), Saira Stencil One only for marker lettering,
         Public Sans for interface, Source Serif 4 for long reading */
:root {
  color-scheme: light dark;
  --bg: light-dark(#f2f0eb, #121311);
  --ink: light-dark(#151515, #ecebe5);
  --panel: light-dark(#ffffff, #1b1d1a);
  --ground: light-dark(#e6e2d8, #1a1c19);
  --line: light-dark(#d4cfc4, #30332d);
  --mut: light-dark(#57534a, #a9a69c);
  --lich: light-dark(#4e6b22, #a6c46a);
  --ochre: light-dark(#94741a, #d8b44e);
  --rust: light-dark(#bc5a20, #e8925a);
  --brick: light-dark(#a8341d, #e57a60);
  --stone: light-dark(#8a867c, #77746b);
  --deep: #1d2019;
  --deep-ink: #ecebe5;
  --crete: #f6f4ef;
  --display: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --stencil: "Saira Stencil One", Impact, "Arial Narrow", sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--lich); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
h1 { font: 500 clamp(30px, 4.6vw, 48px)/1.12 var(--display); letter-spacing: .01em; }
h2 { font: 500 clamp(23px, 2.8vw, 31px)/1.18 var(--display); }
h3 { font: 700 18px/1.3 var(--sans); }
:focus-visible { outline: 3px solid var(--lich); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1240px, 100% - 2 * max(5vw, 16px)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * max(5vw, 16px)); }
.band { padding-block: clamp(32px, 5vw, 64px); }
.band.top0 { padding-top: 0; }
.tint { background: var(--ground); }
.deep { background: var(--deep); color: var(--deep-ink); }
.muted { color: var(--mut); }
.lede { font-size: clamp(18px, 1.8vw, 20px); color: var(--mut); max-width: 62ch; margin: 14px 0 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.small-h { margin-bottom: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 4px; background: transparent; color: var(--ink); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn.pri { background: var(--ink); color: var(--bg); }
.btn.pri:hover { background: color-mix(in srgb, var(--ink) 82%, var(--lich)); color: var(--bg); }
.btn.light { background: var(--crete); color: #151515; border-color: var(--crete); }
.btn.light:hover { background: #fff; color: #151515; }
.btn:disabled { opacity: .55; cursor: wait; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand .glyph { width: 20px; height: 34px; }
.brand-name { font: 600 16px/1.1 var(--display); letter-spacing: .02em; }
.glyph path, .glyph rect { fill: var(--crete); stroke: #151515; stroke-width: 1.2; stroke-linejoin: round; }
.site-head nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: 4px; }
.site-head nav a[aria-current="page"] { background: var(--ground); }
.site-foot { background: var(--deep); color: var(--deep-ink); padding-block: 40px 48px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; }
.foot-name { display: flex; align-items: center; gap: 10px; font: 600 19px/1.15 var(--display); margin: 0 0 10px; }
.foot-name .glyph { width: 16px; height: 28px; }
.site-foot p { margin: 0; max-width: 56ch; color: #c9c7be; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.foot-links a { display: inline-block; padding: 8px 0; text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: #c9de94; }
.foot-small { grid-column: 1 / -1; font-size: 14px; border-top: 1px solid #3a3d35; padding-top: 18px; }

/* Home hero */
.hero { background: var(--ground); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(28px, 4vw, 56px); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; }
.hero-art { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.hero-svg { width: 100%; height: auto; border-radius: 8px; display: block; }
.h-sky1 { stop-color: light-dark(#e9efe6, #1f2a24); }
.h-sky2 { stop-color: light-dark(#f4f2ec, #171a16); }
.h-oak { fill: light-dark(#5f7a3b, #33452a); opacity: .85; }
.h-moss { fill: none; stroke: light-dark(#8d9a77, #56614a); stroke-width: 3; stroke-linecap: round; }
.h-lawn { fill: light-dark(#7e9a4e, #34452a); }
.h-walk { fill: light-dark(#d9d4c8, #4a4c45); }
.h-curb { fill: light-dark(#bdb7aa, #3a3c36); }
.h-shadow { fill: rgb(0 0 0 / .18); }
.h-base { fill: #e6e2d8; stroke: #1a1a18; stroke-width: 2; stroke-linejoin: round; }
.h-base2 { fill: #c9c4b8; stroke: #1a1a18; stroke-width: 2; }
.h-side { fill: #c8c3b7; stroke: #1a1a18; stroke-width: 2; stroke-linejoin: round; }
.h-letters text { font: 400 27px var(--stencil); fill: #151515; }
.h-lichen circle { fill: #7d9442; opacity: .7; }

/* Feature band and lists */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.feature p { max-width: 60ch; }
.stat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }
.stat p { margin: 0; color: var(--mut); font-size: 16px; }
.stat b { color: var(--ink); }
.meter { flex: 0 0 170px; height: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; min-width: 2px; background: var(--lich); }
.mini-list, .reg-list { list-style: none; margin: 0; padding: 0; }
.mini-list li, .reg-list li { border-bottom: 1px solid var(--line); }
.mini-list a, .reg-list a { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 4px; text-decoration: none; }
.mini-list a:hover, .reg-list a:hover { color: inherit; background: var(--ground); }
.th { width: 60px; height: 60px; border-radius: 4px; overflow: hidden; background: var(--ground); display: grid; place-items: center; }
.th img { width: 100%; height: 100%; object-fit: cover; }
.th .glyph { width: 22px; height: 38px; }
.it { display: grid; gap: 2px; }
.it b { line-height: 1.25; }
.ins { font: 400 16px/1.2 var(--stencil); color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg { font-size: 14px; color: var(--mut); }
.tg em { color: var(--brick); font-style: normal; font-weight: 600; }
.c-unchecked { --c: var(--panel); } .c-good { --c: var(--lich); } .c-fair { --c: var(--ochre); }
.c-poor { --c: var(--rust); } .c-damaged { --c: var(--brick); } .c-missing { --c: var(--stone); }
.cd { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: var(--c); border: 1px solid var(--ink); margin-right: 6px; vertical-align: -1px; }

/* Cards */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 20px; }
.sec-head a { font-weight: 600; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; }
.card a:hover { color: inherit; border-color: var(--ink); }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-mark { display: grid; place-items: center; aspect-ratio: 16 / 7; background: var(--deep); }
.card-mark .glyph { width: 26px; height: 44px; }
.card-body { display: grid; gap: 6px; padding: 16px 18px 20px; }
.card-date { font-size: 14px; color: var(--mut); }
.card-title { font: 500 20px/1.25 var(--display); }
.card-sum { color: var(--mut); font-size: 16px; line-height: 1.5; }

.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta p { max-width: 60ch; color: #c9c7be; margin: 12px 0 0; }

/* Page heads */
.page-head { padding-bottom: clamp(20px, 3vw, 32px); }
.crumb { margin: 0 0 10px; font-weight: 600; font-size: 15px; }
.crumb a { text-decoration: none; color: var(--mut); }
.crumb a::before { content: "← "; }
.proj-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: end; }
.proj-in .stat { grid-column: 1 / -1; margin-top: 4px; }

/* Obelisk project page */
.work { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.map-box, .register { height: min(72vh, 660px); min-height: 400px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.map-box { position: relative; background: var(--ground); }
#map { position: absolute; inset: 0; z-index: 0; }
.map-empty { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 500; margin: 0; padding: 8px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.register { display: flex; flex-direction: column; background: var(--panel); }
.tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }

.count { margin: 0; padding: 8px 14px; font-size: 14px; color: var(--mut); border-bottom: 1px solid var(--line); }
.reg-list { overflow-y: auto; flex: 1; }
.reg-list li { display: flex; align-items: center; }
.reg-list li > a { flex: 1; padding-inline: 12px 8px; }
.locate { flex: none; width: 44px; height: 44px; margin-right: 8px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); cursor: pointer; }
.locate svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.locate:hover { border-color: var(--ink); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.two-col p { max-width: 60ch; }

/* Leaflet pins and popups */
.ob-pin { background: none; border: 0; }
.ob-pin svg { display: block; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .35)); }
.ob-pin .p-ob { fill: #f6f4ef; stroke: #141414; stroke-width: 1.4; stroke-linejoin: round; }
.ob-pin .p-base { fill: var(--c); stroke: #141414; stroke-width: 1; }
.ob-pin.c-missing .p-ob { fill: none; stroke-dasharray: 2 2; }
.leaflet-container { font: 15px/1.4 var(--sans); background: var(--ground); }
.leaflet-popup-content { margin: 12px 14px; }
.pop { display: grid; gap: 4px; min-width: 180px; }
.pop img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; margin-bottom: 4px; }
.pop b { font-size: 16px; }
.pop-l { font: 400 16px var(--stencil); color: #57534a; }
.pop-c { font-size: 13px; color: #57534a; }
.pop-a a { font-weight: 600; color: #151515; }

/* Obelisk record page */
.ob-page h1 { margin-bottom: 20px; }
.gallery { position: relative; background: #0d0d0c; border-radius: 6px; overflow: hidden; }
.g-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-track::-webkit-scrollbar { display: none; }
.g-track figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; position: relative; aspect-ratio: 4 / 3; max-height: 70vh; }
.g-track img { width: 100%; height: 100%; object-fit: contain; }
.g-track figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); background: rgb(0 0 0 / .65); color: #fff; font-size: 14px; padding: 4px 10px; border-radius: 3px; }
.g-track figcaption span { opacity: .8; }
.g-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 4px; background: rgb(255 255 255 / .92); color: #111; font-size: 26px; cursor: pointer; }
.g-btn.prev { left: 10px; } .g-btn.next { right: 10px; }
.no-photo { background: var(--ground); border-radius: 6px; padding: 28px 22px; color: var(--mut); }
.no-photo p { margin: 0; }
.ob-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: end; margin-top: 28px; }
.faces { display: flex; gap: 12px; align-items: flex-end; filter: drop-shadow(0 3px 0 rgb(0 0 0 / .2)); }
.face { display: flex; flex-direction: column; align-items: center; width: 52px; padding: 28px 0 14px; background: var(--crete); color: #111; clip-path: polygon(50% 0, 86% 8%, 100% 100%, 0 100%, 14% 8%); font: 400 min(24px, calc(330px / var(--n))) / 1.04 var(--stencil); }
.face b { font-weight: 400; }
.face i { height: .5em; }
.facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.facts dt { color: var(--mut); font-size: 15px; }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ob-prose { margin-top: 32px; }
.note { margin-top: 32px; padding: 14px 18px; background: var(--ground); border-radius: 6px; }

/* Articles and prose */
.art-head { padding-bottom: 8px; }
.byline { margin: 18px 0 0; font-size: 15px; color: var(--mut); }
.cover { margin: 24px auto 0; }
.cover img { width: 100%; border-radius: 6px; }
.cover figcaption { font-size: 14px; color: var(--mut); margin-top: 8px; }
.body-band { padding-top: 24px; }
.prose { font: 19px/1.7 var(--serif); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.6em 0 .4em; font-size: clamp(21px, 2.5vw, 26px); }
.prose h3 { margin: 1.4em 0 .3em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose blockquote { border-left: 3px solid var(--lich); padding-left: 18px; color: var(--mut); font-style: italic; }
.prose img { border-radius: 6px; margin: 1.4em 0; }
.prose a { color: var(--lich); }
.src-band { padding-top: 0; }
.sources { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 8px; }
.sources h2 { font-size: 21px; margin-bottom: 10px; }
.sources ol { margin: 0; padding-left: 22px; font-size: 16px; color: var(--mut); }
.sources li { margin-bottom: 8px; }
.art-foot { padding-bottom: 56px; font-size: 16px; color: var(--mut); }
.topics { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.topic { background: var(--ground); border-radius: 3px; padding: 2px 10px; color: var(--ink); font-size: 14px; }

/* Forms */
.form { display: grid; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(18px, 3vw, 32px); }
.form + .form { margin-top: 28px; }
.form h2 { font-size: 23px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 16px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: 16px/1.4 var(--sans); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
fieldset { margin: 0; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 6px; }
legend { font-weight: 700; padding: 0 6px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hint { margin: -8px 0 0; font-size: 15px; font-weight: 400; color: var(--mut); }
fieldset .hint { margin: 10px 0 0; }
.hint:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--lich); }
.hp { position: absolute; left: -9999px; }
.raw-files { display: grid; gap: 10px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.thumbs:empty { display: none; }
.thumbs figure { position: relative; margin: 0; width: 104px; height: 104px; border-radius: 4px; overflow: hidden; background: var(--ground); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; border-radius: 4px; background: rgb(0 0 0 / .65); color: #fff; font-size: 20px; cursor: pointer; }
.pick-label { position: relative; overflow: hidden; display: inline-flex; width: auto; }
.pick-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pick-label.off { opacity: .5; }
.send-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.send-row .hint { margin: 0; }

@media (max-width: 900px) {
  .hero-in, .feature, .work, .two-col, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 380px; }
  .register { height: auto; min-height: 0; }
  .reg-list { max-height: 70vh; }
  .map-box { height: 58vh; min-height: 340px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .head-in { padding-block: 8px; }
  .site-head nav ul { margin-left: -12px; }
  .proj-in { grid-template-columns: minmax(0, 1fr); }
  .proj-in .btn { justify-self: start; }
  .ob-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .prose { font-size: 18px; }
  .foot-links { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
