/* Zach Bloxham — Layton City Council
   Brand orange from the existing campaign sign: #FE6903
   Type: Oswald (sign-like condensed sans) + Source Serif 4 (reading) */

:root {
  --orange: #fe6903;
  --orange-dark: #9a3a00;
  --ink: #1c1612;
  --muted: #5a524a;
  --paper: #fff8f3;
  --paper-2: #f3ebe3;
  --rule: #e4d8cc;
  --footer: #1a1410;
  --max: 70rem;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Oswald", "Arial Narrow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--orange-dark);
  text-underline-offset: 0.15em;
}

a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  height: 3.6rem;
  width: auto;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  background: transparent;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
}

.nav-button span,
.nav-button span::before,
.nav-button span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-button span::before,
.nav-button span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-button span::before { top: -6px; }
.nav-button span::after { top: 6px; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange-dark);
}

@media (max-width: 52rem) {
  .nav-button { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-toggle:checked ~ .nav-button span { background: transparent; }
  .nav-toggle:checked ~ .nav-button span::before {
    top: 0;
    transform: rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-button span::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* Hero */
.hero-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #2a241c;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.hero-identity {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 2.15rem 1.25rem 2.4rem;
}

.hero-identity h1 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 9vw, 6.1rem);
  letter-spacing: 0.055em;
  line-height: 0.92;
  text-transform: uppercase;
  color: #fff;
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.85rem auto 0.7rem;
  max-width: 22rem;
}

.hero-rule hr {
  flex: 1;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  margin: 0;
}

.hero-rule .star {
  font-size: 0.95rem;
  line-height: 1;
}

.hero-identity .office {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.3vw, 1.35rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

@media (max-width: 40rem) {
  .hero-photo {
    aspect-ratio: 4 / 3;
    object-position: 50% 70%;
  }
}

@media (min-width: 70rem) {
  .hero-photo { aspect-ratio: 2.2 / 1; }
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-alt { background: var(--paper-2); }

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.section h2 {
  margin: 0 0 1.4rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
}

.lede,
.prose p,
.bio p,
.principles p {
  margin: 0 0 1rem;
  max-width: 42rem;
}

.prose p:last-child,
.bio p:last-child,
.principles p:last-child { margin-bottom: 0; }

.principles p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 44rem;
}

/* Record */
.record-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 0.5rem;
}

@media (min-width: 48rem) {
  .record-grid { grid-template-columns: 1fr 1fr; }
}

.record-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.35rem 1.45rem;
}

.record-item .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--orange-dark);
  margin: 0 0 0.4rem;
}

.record-item h3 {
  margin: 0 0 0.55rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.record-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Issues */
.issues-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .issues-grid { grid-template-columns: 1fr 1fr; }
}

.issue {
  padding: 1.6rem 0 1.75rem;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 48rem) {
  .issue:nth-child(odd) { padding-right: 1.75rem; border-right: 1px solid var(--rule); }
  .issue:nth-child(even) { padding-left: 1.75rem; }
  .issue:nth-child(-n+2) { /* top row already has container border */ }
}

.issue .num {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

.issue h3 {
  margin: 0 0 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.issue p { margin: 0; }

/* Assignment + contact */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.assignment-name {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.email-link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--orange-dark);
  word-break: break-word;
  display: inline-block;
  margin-top: 0.15rem;
}

.email-link:hover { text-decoration: underline; }

.media-frame {
  margin: 0;
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-frame figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #f3ebe3;
  padding: 2.25rem 0;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.45);
}

.site-footer a:hover { text-decoration-color: #fff; color: #fff; }

/* Votes archive */
.page-header {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  margin: 0.3rem 0 0.6rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.crumb {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.crumb:hover { color: var(--orange-dark); }

.year-group { margin: 2.4rem 0 0; }

.year-group h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: var(--orange-dark);
}

.vote-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.vote-list li {
  border-bottom: 1px solid var(--rule);
}

.vote-list a {
  display: block;
  padding: 0.95rem 0;
  text-decoration: none;
  color: inherit;
}

.vote-list a:hover .vote-title { color: var(--orange-dark); }

.vote-date {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.vote-title {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.25;
}

.vote-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.vote-post { padding: 2.5rem 0 4rem; }

.vote-post header h1 {
  margin: 0.35rem 0 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.15;
}

.vote-meta {
  font-family: var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 1.75rem;
}

.vote-body {
  max-width: 42.5rem;
}

.vote-body p,
.vote-body li {
  margin: 0 0 1rem;
}

.vote-body p:last-child { margin-bottom: 0; }

.vote-body ol,
.vote-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.vote-body a { word-break: break-word; }

.featured-image {
  margin: 0 0 1.75rem;
}

.vote-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vote-nav a { text-decoration: none; max-width: 45%; }
.vote-nav a:hover { text-decoration: underline; }
.vote-nav .next { text-align: right; margin-left: auto; }

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#contact p { margin: 0; }
#contact p + p { margin-top: 0.35rem; }

.assignment-note {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}
.record-item {
  min-height: 100%;
}
