/* Campaign site design system. Tokens and rationale: the campaign-site skill's
   references/design.md. Color follows the land-use-map convention so it carries meaning:
   violet = industrial (what's proposed), yellow = residential / the posted notice sign,
   red = dates and deadlines only, green = land, wetlands, outcomes won. */

@font-face { font-family: "Overpass"; src: url("fonts/overpass-latin.woff2") format("woff2");
  font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --survey: #EDF0EC;
  --paper: #FFFFFF;
  --bayou: #12343B;
  --bayou-soft: #4A6268;
  --industrial: #6B3FA0;
  --residential: #F2C230;
  --deadline: #C3202F;
  --cane: #5E7F3A;
  --rule: #C9D1CC;

  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Type scale: 1.25 ratio from an 18px base. */
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.4rem;
  --step-2: 1.75rem;
  --step-3: 2.2rem;
  --step-4: 2.75rem;

  --measure: 40rem;
  --page: 57rem;      /* text column + gap + sidenote column */
  --gutter: max(clamp(1rem, 4vw, 3rem), calc(50% - var(--page) / 2));
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--survey);
  color: var(--bayou);
  font: 400 var(--step-0)/1.6 var(--serif);
}
img { max-width: 100%; height: auto; }
a { color: var(--bayou); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--industrial); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.15; margin: 2.2rem 0 0.8rem; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, var(--step-4)); font-weight: 800; letter-spacing: -0.01em; max-width: 24ch; margin-top: 1.5rem; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; }
p, ul, ol { margin: 0 0 1rem; }
.small { font-size: var(--step--1); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* --- header / footer ---------------------------------------------------- */

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 2rem; padding: 1rem var(--gutter);
  border-bottom: 4px solid var(--bayou);
  font-family: var(--sans);
}
.site-name { font-weight: 900; font-size: var(--step-1); text-decoration: none; }
/* The logo carries the name; 4.5-5rem keeps its lettering near 10 px cap height
   without the yellow competing with the notice, the page's one loud element. */
.site-name img { display: block; width: 4.5rem; height: auto; }
@media (min-width: 60rem) { .site-name img { width: 5rem; } }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { text-decoration: none; font-weight: 600; }
.site-header nav a[aria-current="page"], .site-header nav a:hover { text-decoration: underline; }

main { padding: 0 var(--gutter) 3rem; }
main > p, main > ul, main > ol, main > figure { max-width: var(--measure); }

.site-footer {
  padding: 2rem var(--gutter) 3rem; border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
.site-footer p { max-width: var(--measure); }

/* --- the notice: the one loud element ----------------------------------- */

.notice {
  background: var(--residential);
  border: 5px solid var(--bayou);
  padding: 1.1rem 1.25rem 1.25rem;
  margin: 1.5rem 0;
  max-width: 36rem;
  font-family: var(--sans);
}
.notice-title {
  margin: 0; font-weight: 900; font-size: var(--step-2); line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.notice-sub {
  margin: 0.2rem 0 0.9rem; font-weight: 800; font-size: var(--step-0);
  text-transform: uppercase; letter-spacing: 0.04em;
  padding-bottom: 0.7rem; border-bottom: 3px solid var(--bayou);
}
.notice-rows { margin: 0; }
.notice-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; padding: 0.3rem 0; }
.notice-row dt { font-weight: 800; }
.notice-row dd { margin: 0; font-weight: 500; }
/* Agency public notices are printed documents, not field signs: white field, ruled. */
.notice-agency { background: var(--paper); border-width: 2px; }
.notice-agency .notice-title { font-size: var(--step-1); }

/* Notice beside the primary action on wide screens, so when, where and the ask are
   above the fold; stacked (notice first) on phones. */
@media (min-width: 60rem) {
  .hero-act { display: grid; grid-template-columns: minmax(0, 25rem) minmax(0, 1fr); gap: 2rem; align-items: start; }
  .hero-act .notice, .hero-act .action { margin-top: 0.5rem; }
  .hero-act .notice-row { grid-template-columns: 6.5rem 1fr; }
}

/* Phones: the ask has to be reachable without a long scroll, so the notice and lede tighten. */
@media (max-width: 40rem) {
  .lede { font-size: var(--step-0); }
  .notice { padding: 0.8rem 0.9rem 0.9rem; border-width: 4px; }
  .notice-title { font-size: var(--step-1); }
  .notice-sub { font-size: var(--step--1); margin-bottom: 0.6rem; padding-bottom: 0.5rem; }
  .notice-row { grid-template-columns: 5.5rem 1fr; gap: 0.5rem; padding: 0.2rem 0; font-size: var(--step--1); }
  .action { padding: 0.1rem 1rem 1rem; }
}

/* --- action panel ------------------------------------------------------- */

.action {
  background: var(--paper);
  border-left: 6px solid var(--deadline);
  padding: 0.25rem 1.25rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
  max-width: var(--measure);
}
.action h2 { margin-top: 1rem; }
.action-secondary { border-left-color: var(--bayou); }
.action-label {
  display: inline-block; min-width: 4.5rem; font-family: var(--sans); font-weight: 800;
}
.action-when { color: var(--deadline); font-family: var(--sans); font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.action-when .action-label { color: var(--bayou); font-size: var(--step-0); }
.action-ask { font-weight: 600; font-size: var(--step-1); line-height: 1.35; }
.action-note { color: var(--bayou-soft); }
.steps { padding-left: 1.4rem; }
.steps li { margin-bottom: 0.35rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.button {
  display: inline-block; font: 700 var(--step-0)/1.2 var(--sans);
  background: var(--bayou); color: var(--paper); border: 2px solid var(--bayou);
  border-radius: var(--radius); padding: 0.7rem 1.1rem; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--industrial); border-color: var(--industrial); }
.button-quiet { background: transparent; color: var(--bayou); }
.button-quiet:hover { background: var(--bayou); color: var(--paper); border-color: var(--bayou); }
.button[data-copied]::after { content: " (copied)"; font-weight: 500; }

.comment-box { margin-top: 1.5rem; }
.comment-box label { display: block; font-family: var(--sans); font-weight: 700; margin-bottom: 0.4rem; }
.comment-to { font-family: var(--sans); font-size: var(--step--1); margin-bottom: 0.4rem; }
.comment-box textarea {
  width: 100%; font: 400 1rem/1.55 var(--serif); color: var(--bayou);
  border: 2px solid var(--bayou); border-radius: var(--radius); padding: 0.75rem; background: var(--survey);
}

/* --- body copy with source sidenotes ------------------------------------ */

.body > * { max-width: var(--measure); }
.body .claim { max-width: none; display: grid; grid-template-columns: minmax(0, var(--measure)) 15rem; column-gap: 2rem; }
.body .claim > :not(.source) { grid-column: 1; }
.source {
  grid-column: 2; font: 400 var(--step--1)/1.45 var(--sans); color: var(--bayou-soft);
  border-top: 2px solid var(--rule); padding-top: 0.35rem; margin: 0.3rem 0 1rem; align-self: start;
}
.source::before { content: "Source: "; font-weight: 700; }
@media (max-width: 58rem) {
  .body .claim { display: block; }
  .source { border-top: 0; padding-top: 0; margin-top: -0.6rem; }
}

.lede { font-size: var(--step-1); line-height: 1.45; max-width: var(--measure); }

blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 4px solid var(--rule); font-style: italic; }

/* What the zoning or permit would allow. Violet marks what's proposed. */
.allows { border-top: 4px solid var(--industrial); padding-top: 0.5rem; }
.allows h3 { color: var(--industrial); margin-top: 0.5rem; }

/* Known / unknown pair. */
.known-unknown { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 52rem; }
.known-unknown > div { border-top: 3px solid var(--bayou); padding-top: 0.25rem; }
.known-unknown > div + div { border-top-style: dashed; }
@media (max-width: 40rem) { .known-unknown { grid-template-columns: 1fr; } }

/* Dated chronology. Use only for real sequences of dated events. */
.timeline { list-style: none; padding: 0; border-left: 3px solid var(--rule); }
.timeline li { padding: 0 0 1rem 1rem; position: relative; }
.timeline time { display: block; font: 700 var(--step--1)/1.3 var(--sans); }

figure { margin: 1.5rem 0; }
.body > figure { max-width: var(--page); }
figcaption { font: 400 var(--step--1)/1.45 var(--sans); color: var(--bayou-soft); margin-top: 0.4rem; }

/* --- status --------------------------------------------------------------- */

.status-box {
  background: var(--paper); border-left: 6px solid var(--bayou-soft);
  padding: 0.8rem 1rem; margin-top: 1.5rem; max-width: var(--measure); font-family: var(--sans);
}
.status-box .as-of { color: var(--bayou-soft); font-size: var(--step--1); }
.status-pending.status-box { border-left-color: var(--industrial); }
.status-won.status-box { border-left-color: var(--cane); }

/* --- docket --------------------------------------------------------------- */

.docket-section { margin-top: 3.5rem; border-top: 4px solid var(--bayou); }
.docket { width: 100%; border-collapse: collapse; font: 400 var(--step--1)/1.4 var(--sans); background: var(--paper); }
.docket th, .docket td { text-align: left; vertical-align: top; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--rule); }
.docket thead th { font-weight: 800; border-bottom: 2px solid var(--bayou); background: var(--survey); }
.docket tbody th a { font-weight: 800; font-size: var(--step-0); }
.docket-place, .docket-case { display: block; color: var(--bayou-soft); }
.docket .status { font-weight: 700; }
.docket .status-open .status { color: var(--deadline); }
.docket .status-pending .status { color: var(--industrial); }
.docket .status-won .status { color: var(--cane); }
@media (max-width: 44rem) {
  .docket thead { display: none; }
  .docket, .docket tbody, .docket tr, .docket th, .docket td { display: block; }
  .docket tr { border-bottom: 2px solid var(--bayou); padding: 0.5rem 0; }
  .docket th, .docket td { border: 0; padding: 0.2rem 0.6rem; }
  .docket td::before { content: attr(data-label) ": "; font-weight: 700; }
}

.share { margin-top: 3rem; max-width: var(--measure); }

/* About page portraits sit in the text column, not in cards. */
.person { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; max-width: var(--measure); margin-bottom: 1.5rem; }
.person img, .person .portrait-placeholder { width: 7rem; height: 7rem; object-fit: cover; background: var(--rule); }
.person h3 { margin-top: 0; }
@media (max-width: 30rem) { .person { grid-template-columns: 1fr; } }

/* --- ported pages ------------------------------------------------------------ */

/* Key numbers from an older page: number first, label after, in a plain row. */
.figures { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1rem 1.5rem; font-family: var(--sans); }
.figures li { border-top: 3px solid var(--bayou); padding-top: 0.3rem; line-height: 1.3; }
.figures strong { display: block; font-size: var(--step-2); font-weight: 800; }
.impacts dt { font: 700 var(--step-0)/1.3 var(--sans); margin-top: 0.8rem; }
.impacts dd { margin: 0.2rem 0 0; }
.section-lede { font-size: var(--step-1); line-height: 1.4; color: var(--bayou-soft); }
blockquote.template { font-style: normal; background: var(--paper); padding: 0.8rem 1rem; border-left-color: var(--bayou-soft); }

/* Interactive map (Leaflet), full page width. */
.body > .map { max-width: var(--page); height: min(70vh, 40rem); border: 1px solid var(--rule); }
.map-legend { list-style: none; padding: 0; font-family: var(--sans); }
.swatch { display: inline-block; width: 0.8rem; height: 0.8rem; vertical-align: -0.05rem; margin-right: 0.3rem; }
.swatch-plume { background: #000; border-radius: 50%; }
.swatch-boundary { background: #d00; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header nav, .button-row, .share, .site-footer .button { display: none; }
  body { background: #fff; }
}
