/* =============================================================
   TOM OTTERMAN FOR VERMONT — Custom styles  ("Heritage Field")
   Navy-led on cream parchment. Red = action accent. Gold = quiet
   warm accent. Garamond headlines. Surveying motif kept subtle.
   ============================================================= */

:root {
  --ink:   #15233D;   /* body text / near-black navy */
  --navy:  #002868;   /* brand navy */
  --flag:  #C8102E;   /* red accent */
  --gold:  #C6A052;   /* gold accent */
  --gold-dark: #8A6726;
  --paper: #F6F0E2;   /* parchment ground */
  --cream: #FCF8EF;   /* cards */
  --sand:  #EBE2CE;
  --line:  #E2D8C2;   /* hairlines */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important; scroll-behavior: auto !important;
  }
}

html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); }

/* Garamond headings: neutral tracking, navy by default */
h1, h2, h3 { letter-spacing: 0; color: var(--navy); }
h1 { letter-spacing: -0.005em; }
/* headings placed on dark bands opt back into light via text-paper utility */

/* --- Subtle topographic contours (navy, very faint) ------------------- */
.contours-bg {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='190'%3E%3Cg fill='none' stroke='%23002868' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M-20,48 C70,16 150,80 240,48 S390,32 410,40'/%3E%3Cpath d='M-20,96 C70,64 150,128 240,96 S390,80 410,88'/%3E%3Cpath d='M-20,144 C70,112 150,176 240,144 S390,128 410,136'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 320px 190px;
}

/* Hero / banner ground: warm parchment + faint navy contours + soft glow */
.bp-grid-lg {
  background-color: var(--paper);
  background-image:
    radial-gradient(130% 90% at 85% -15%, rgba(198,160,82,0.16), transparent 60%),
    radial-gradient(90% 80% at -5% 110%, rgba(0,40,104,0.06), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='190'%3E%3Cg fill='none' stroke='%23002868' stroke-opacity='0.07' stroke-width='1'%3E%3Cpath d='M-20,48 C70,16 150,80 240,48 S390,32 410,40'/%3E%3Cpath d='M-20,96 C70,64 150,128 240,96 S390,80 410,88'/%3E%3Cpath d='M-20,144 C70,112 150,176 240,144 S390,128 410,136'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 320px 190px;
}

/* Small section texture: a whisper of navy grid on cream */
.bp-grid {
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(0,40,104,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,40,104,0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Dark band: brand navy with faint light grid + soft gold glow */
.bp-grid-dark {
  background-color: var(--navy);
  background-image:
    radial-gradient(120% 90% at 88% -10%, rgba(198,160,82,0.16), transparent 55%),
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, 38px 38px, 38px 38px;
}

/* --- Benchmark crosshair (kept subtle, gold) -------------------------- */
.crosshair { position: relative; border-radius: 9999px; }
.crosshair::before, .crosshair::after { content:""; position:absolute; background: var(--gold); border-radius:2px; }
.crosshair::before { top:6px; left:50%; width:1.5px; height:calc(100% - 12px); transform:translateX(-50%); }
.crosshair::after  { left:6px; top:50%; height:1.5px; width:calc(100% - 12px); transform:translateY(-50%); }

/* --- Mono "field-notebook" label ------------------------------------- */
.survey-label {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem;
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  font-family:"IBM Plex Sans", system-ui, sans-serif; font-weight:600;
  letter-spacing:0.005em; text-transform:none;
  padding:0.85rem 1.7rem; line-height:1; border-radius:0.8rem;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
  border:1.5px solid transparent; cursor:pointer; white-space:nowrap;
}
.btn:active { transform: translateY(1px); }
/* Primary = red (the action color, like the sign banner) */
.btn-hiviz { background: var(--flag); color:#fff; box-shadow:0 8px 22px -9px rgba(166,13,38,0.55); }
.btn-hiviz:hover { background:#b30f29; box-shadow:0 12px 28px -9px rgba(166,13,38,0.6); transform:translateY(-2px); }
/* Solid navy */
.btn-ink { background: var(--navy); color:#fff; box-shadow:0 8px 22px -10px rgba(0,40,104,0.45); }
.btn-ink:hover { background:#0A3A86; transform:translateY(-2px); }
/* Navy outline (on light) */
.btn-outline { background:transparent; color:var(--navy); border-color:rgba(0,40,104,0.4); }
.btn-outline:hover { background:var(--navy); color:#fff; border-color:var(--navy); }
/* Light outline (on dark) */
.btn-outline-light { background:transparent; color:#fff; border-color:rgba(255,255,255,0.6); }
.btn-outline-light:hover { background:#fff; color:var(--navy); }

/* --- Photo placeholder (cream, navy benchmark ticks) ------------------ */
.photo-slot {
  position:relative;
  background: radial-gradient(120% 120% at 30% 20%, rgba(255,255,255,0.6), transparent 60%), var(--sand);
  border:1px solid var(--line); border-radius:1rem;
  display:flex; align-items:center; justify-content:center; text-align:center;
  color:#7d7768; overflow:hidden;
}
.photo-slot::before, .photo-slot::after {
  content:""; position:absolute; width:18px; height:18px;
  border:2px solid var(--navy); opacity:0.55; border-radius:4px;
}
.photo-slot::before { top:12px; left:12px; border-right:0; border-bottom:0; border-top-left-radius:8px; }
.photo-slot::after  { bottom:12px; right:12px; border-left:0; border-top:0; border-bottom-right-radius:8px; }
.photo-slot .slot-inner {
  font-family:"IBM Plex Mono", monospace; font-size:0.74rem; line-height:1.55;
  padding:1.25rem; letter-spacing:0.02em; max-width:90%;
}
.photo-slot .slot-inner strong { color:var(--navy); display:block; margin-bottom:.4rem; letter-spacing:0.1em; }

/* --- Gold ruler / divider -------------------------------------------- */
.ruler { height:2px; border:0; background:linear-gradient(to right, var(--gold), rgba(198,160,82,0)); border-radius:2px; }

/* --- Nav underline (gold) -------------------------------------------- */
.nav-link { position:relative; }
.nav-link::after { content:""; position:absolute; left:0; bottom:-5px; height:2px; width:0; background:var(--gold); border-radius:2px; transition:width .25s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { width:100%; }

/* --- Card top accent: gold bar --------------------------------------- */
.accent-top { box-shadow: inset 0 3px 0 var(--gold); }
.card-soft { box-shadow: 0 8px 28px -12px rgba(21,35,61,0.14); }

/* --- Stagger load ----------------------------------------------------- */
.stagger > * { opacity:0; animation: riseIn 0.8s cubic-bezier(0.22,1,0.36,1) both; }
.stagger > *:nth-child(1){animation-delay:.05s}.stagger > *:nth-child(2){animation-delay:.15s}
.stagger > *:nth-child(3){animation-delay:.25s}.stagger > *:nth-child(4){animation-delay:.35s}
.stagger > *:nth-child(5){animation-delay:.45s}
@keyframes riseIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* Skip-link */
.skip-link { position:absolute; left:-999px; top:0; z-index:100; background:var(--navy); color:#fff; padding:.75rem 1rem; border-radius:0 0 0.6rem 0; }
.skip-link:focus { left:0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline:3px solid var(--gold); outline-offset:2px; border-radius:4px;
}

/* =============================================================
   LOGOTYPE — from the campaign sign. Now congruent: the whole
   site is navy-on-cream, so the mark sits naturally.
   ============================================================= */
.logo-lockup { display:inline-flex; align-items:center; gap:0.55rem; }
.logo-lockup > span { display:flex; flex-direction:column; align-items:center; }
.logo-star { flex-shrink:0; }
.logo-name {
  font-family:"EB Garamond", Georgia, serif; font-weight:800;
  text-transform:uppercase; letter-spacing:0.015em; color:var(--navy);
  font-size:1.18rem; line-height:0.92;
}
.logo-name.light { color: var(--paper); }
.logo-banner {
  display:inline-flex; align-items:center; gap:0.5rem; margin-top:3px;
  background:var(--flag); color:#fff; font-family:"EB Garamond", Georgia, serif;
  font-weight:700; text-transform:uppercase; letter-spacing:0.22em; font-size:0.6rem;
  padding:2px 9px; border-radius:3px;
}
.logo-banner::before, .logo-banner::after { content:""; width:9px; height:1.5px; background:rgba(255,255,255,0.85); display:inline-block; }

/* --- Drop-in photos: real image covers the placeholder when present ---- */
.photo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: inherit; display: block;
}
.photo-slot.has-photo { background: none; border-color: transparent; }
.photo-slot.has-photo::before,
.photo-slot.has-photo::after,
.photo-slot.has-photo .slot-inner { display: none; }
/* "contain" slots (maps, documents): show the whole image on a clean ground */
.photo-img.contain { object-fit: contain; }
.photo-slot.has-photo.photo-contain { background: #fff; border: 1px solid var(--line); }
