/* ============================================================
   Fussell for Coroner — Skagit County
   Truth. Transparency. Trust.
   ============================================================ */

:root {
  --navy-900: #0a1e3a;
  --navy-800: #102849;
  --navy-700: #14305c;
  --navy-500: #2a4d80;
  --navy-400: #4a6da3;

  --cream: #f7f1e1;
  --cream-deep: #ede3c8;
  --cream-soft: #faf6ec;
  --paper: #fffdf6;

  --burgundy: #842029;
  --burgundy-dark: #6b1820;
  --burgundy-light: #a73b45;

  --gold: #b8924a;
  --gold-dark: #8a6b2f;

  --text: #1c2438;
  --text-light: #4a5468;
  --text-muted: #6b748a;
  --text-on-navy: #f7f1e1;
  --text-on-navy-muted: #c5cbd9;

  --rule: #d8cfb3;
  --rule-dark: #b8ad8c;

  --serif: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px rgba(10, 30, 58, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 30, 58, 0.10);
  --shadow-lg: 0 12px 40px rgba(10, 30, 58, 0.18);

  --maxw: 1180px;
  --maxw-prose: 720px;
}

/* ------------------ Reset ------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--burgundy); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--burgundy-dark); text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.8rem;
}
.eyebrow.on-navy { color: var(--gold); }

.subhead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-light);
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
  line-height: 1.45;
}

/* ------------------ Layout helpers ------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--maxw-prose); }

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.section--cream-deep { background: var(--cream-deep); }
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-900);
  color: var(--text-on-navy);
}
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--text-on-navy); }
.section--navy a { color: var(--gold); }
.section--navy a:hover { color: var(--cream); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}
.section-head p {
  color: var(--text-light);
  font-size: 1.1rem;
}
.section--navy .section-head p { color: var(--text-on-navy-muted); }

/* ------------------ Buttons ------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
  border-color: var(--burgundy);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  color: var(--cream);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-outline:hover {
  background: var(--navy-900);
  color: var(--cream);
}
.btn-outline.on-navy { color: var(--cream); border-color: var(--cream); }
.btn-outline.on-navy:hover { background: var(--cream); color: var(--navy-900); }

.btn-ghost {
  background: transparent;
  color: var(--burgundy);
  border-color: transparent;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}
.btn-ghost:hover { color: var(--burgundy-dark); }
.btn-ghost::after { content: '\2192'; transition: transform 0.18s ease; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ------------------ Header / Nav ------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 225, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 2rem;
}
.site-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: var(--navy-900);
  text-decoration: none;
}
.site-brand:hover { color: var(--navy-900); text-decoration: none; }
.site-brand__name {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}
.site-brand__office {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--burgundy);
  margin-top: 0.25rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.18s ease;
}
.site-nav a:hover { color: var(--burgundy); border-bottom-color: var(--burgundy); text-decoration: none; }
.site-nav a.active { color: var(--burgundy); border-bottom-color: var(--burgundy); }
.site-nav .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-900);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.9rem 24px;
    border-bottom: 1px solid var(--rule);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { border-bottom-color: var(--rule); }
  .site-nav .btn {
    margin: 0.7rem 24px;
    text-align: center;
    justify-content: center;
  }
}

/* ------------------ Hero ------------------ */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-on-navy);
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(4.5rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184, 146, 74, 0.12), transparent 50%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__content { max-width: 640px; }
.hero__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero__title {
  color: var(--cream);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
  line-height: 1.05;
}
.hero__title .accent { color: var(--gold); font-style: italic; }
.hero__subtitle {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: var(--text-on-navy-muted);
  margin: 0 0 2.2rem;
  line-height: 1.4;
}
.hero__lede {
  font-size: 1.08rem;
  color: var(--text-on-navy);
  margin: 0 0 2.4rem;
  max-width: 560px;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__seal {
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  border: 6px solid var(--gold);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__seal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid var(--gold-dark);
  pointer-events: none;
}
.hero__seal-name {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.hero__seal-line {
  width: 60%;
  height: 1px;
  background: var(--gold-dark);
  margin: 0.5rem auto;
}
.hero__seal-office {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--burgundy);
}
.hero__seal-county {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-top: 0.4rem;
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero__content { margin: 0 auto; }
  .hero__actions { justify-content: center; }
  .hero__seal { justify-self: center; width: min(80%, 280px); }
  .hero__lede { margin-left: auto; margin-right: auto; }
}

/* ------------------ Pillars ------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--burgundy);
  padding: 2rem 1.7rem 1.8rem;
  border-radius: 2px;
  transition: all 0.22s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--burgundy-dark);
}
.pillar__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.pillar h3 {
  margin: 0 0 0.8rem;
  font-size: 1.3rem;
}
.pillar p { color: var(--text-light); margin: 0; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ------------------ About preview / Bio ------------------ */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.bio-portrait {
  background: linear-gradient(135deg, var(--cream-deep), var(--cream));
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.bio-portrait::after {
  content: 'Portrait coming soon';
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.bio-portrait__inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.credentials {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0;
  display: grid;
  gap: 0.8rem;
}
.credentials li {
  padding-left: 2.2rem;
  position: relative;
  font-size: 1.02rem;
  color: var(--text);
}
.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.4rem;
  height: 2px;
  background: var(--burgundy);
}
@media (max-width: 860px) {
  .bio-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .bio-portrait { max-width: 360px; margin: 0 auto; }
}

/* ------------------ Quote / Pull ------------------ */
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.4;
  color: var(--cream);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding: 0 2rem;
}
.pull::before, .pull::after {
  font-size: 4rem;
  color: var(--gold);
  font-family: var(--serif);
  position: absolute;
  line-height: 1;
}
.pull::before { content: '\201C'; left: -0.2rem; top: -0.8rem; }
.pull::after { content: '\201D'; right: -0.2rem; bottom: -2.4rem; }
.pull__attr {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 2rem;
}

/* ------------------ Footer CTA ------------------ */
.cta-band {
  background: var(--burgundy);
  color: var(--cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.cta-band h2 { color: var(--cream); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(247, 241, 225, 0.86); max-width: 580px; margin: 0 auto 2rem; }
.cta-band .btn-outline { color: var(--cream); border-color: var(--cream); }
.cta-band .btn-outline:hover { background: var(--cream); color: var(--burgundy); }

/* ------------------ Footer ------------------ */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-navy-muted);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(247, 241, 225, 0.14);
}
.site-footer h4 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin: 0 0 1.2rem;
}
.site-footer__brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.site-footer__tagline {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 1.4rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--text-on-navy-muted); }
.site-footer a:hover { color: var(--cream); text-decoration: none; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: 0.82rem;
  color: var(--text-on-navy-muted);
}
.site-footer__disclaimer {
  max-width: 580px;
  font-style: italic;
}
@media (max-width: 860px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { justify-content: center; text-align: center; }
}

/* ------------------ Page header (non-home pages) ------------------ */
.page-header {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem);
  text-align: center;
}
.page-header h1 {
  color: var(--cream);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.page-header__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text-on-navy-muted);
  max-width: 640px;
  margin: 0 auto;
}
.page-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1.6rem auto 0;
}

/* ------------------ Prose ------------------ */
.prose {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  font-size: 1.08rem;
}
.prose p { margin-bottom: 1.3em; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; font-family: var(--sans); font-size: 1.15rem; color: var(--burgundy); letter-spacing: 0.02em; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: 0.5rem; }

/* ------------------ Issue cards (Issues page) ------------------ */
.issue {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 5px solid var(--burgundy);
  padding: 2.2rem 2.2rem 1.8rem;
  margin-bottom: 1.6rem;
  border-radius: 2px;
}
.issue h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--navy-900);
}
.issue__num {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--burgundy);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* ------------------ Endorsements ------------------ */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.endorse-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.8rem;
  border-radius: 2px;
}
.endorse-card__quote {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.endorse-card__name {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.endorse-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.endorse-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--paper);
  border: 1px dashed var(--rule-dark);
  border-radius: 2px;
}
.endorse-empty p { color: var(--text-light); max-width: 520px; margin: 0 auto 1.4rem; }

/* ------------------ Forms ------------------ */
.form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.4rem; }
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 600px) {
  .form-row--two { grid-template-columns: 1fr; }
}
label {
  display: block;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 0.45rem;
}
label .req { color: var(--burgundy); }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--cream-soft);
  border: 1px solid var(--rule-dark);
  border-radius: 2px;
  transition: all 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(132, 32, 41, 0.12);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkbox-group { display: grid; gap: 0.55rem; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.97rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--burgundy);
  cursor: pointer;
}

.form-message {
  margin-top: 1.2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 2px;
  font-size: 0.95rem;
  display: none;
}
.form-message.is-success {
  display: block;
  background: rgba(46, 113, 67, 0.12);
  border: 1px solid #5a8c6a;
  color: #2e5a3c;
}
.form-message.is-error {
  display: block;
  background: rgba(132, 32, 41, 0.10);
  border: 1px solid var(--burgundy);
  color: var(--burgundy-dark);
}

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ------------------ Misc ------------------ */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ------------------ 404 ------------------ */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
}
.error-page__code {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 600;
  color: var(--burgundy);
  line-height: 1;
  margin: 0;
}
