/*
Theme Name: Evans for Alaska
Theme URI: https://alstonforalaska.com
Author: Alston C. Evans Campaign Team
Author URI: https://alstonforalaska.com
Description: Official WordPress campaign theme for Alston C. Evans for Alaska State House, District 2 (2026). Faithfully preserves the exact design, typography, brand colors, SVG iconography, and responsive layout.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: evans-for-alaska
*/

:root {
  --fjord:      #071B2E;   /* near-black navy — deepest ground */
  --navy:       #0A2E4D;   /* Alaska flag blue — primary field */
  --navy-soft:  #123A5E;   /* lifted panel on navy */
  --gold:       #F2B807;   /* Dipper gold — bright accent */
  --brass:      #C98D2E;   /* antique gold — quiet accent, borders */
  --ice:        #F4F7FA;   /* glacier ice — light text on navy */
  --mist:       #9FB2C4;   /* slate mist — secondary text on navy */
  --line:       rgba(159,178,196,0.22);
}

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

html {
  background: var(--fjord);
}

body {
  margin: 0;
  background: var(--fjord);
  color: var(--ice);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar {
  /* WordPress automatically manages the top offset when admin bar is present */
}

h1, h2, h3 {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.eyebrow::before {
  content: "";
  width: 2em;
  height: 1px;
  background: var(--brass);
  display: inline-block;
}

a {
  color: var(--gold);
}

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

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, var(--navy-soft), var(--navy) 55%, var(--fjord) 100%);
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.brand-logo {
  width: clamp(260px, 52vw, 480px);
  height: clamp(260px, 52vw, 480px);
  border-radius: 50%;
  display: block;
  margin: 0 auto 1.6rem;
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

.office {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--mist);
  margin: 0 0 1.1rem;
}

.office b {
  color: var(--ice);
  font-weight: 600;
}

h1.name {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.98;
  color: var(--ice);
  max-width: 14ch;
}

h1.name .last {
  color: var(--gold);
}

.tagline {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--brass);
  letter-spacing: 0.02em;
  margin: 1.1rem 0 1.4rem;
}

.lede {
  max-width: 52ch;
  color: var(--mist);
  font-size: 1.08rem;
}

.lede b {
  color: var(--ice);
  font-weight: 600;
}

/* ---------- Platform ---------- */
.platform {
  background: var(--fjord);
}

.platform-head {
  padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem;
}

.platform-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  color: var(--ice);
  max-width: 14ch;
}

.platform-head p {
  color: var(--mist);
  max-width: 56ch;
  margin-top: 0.9rem;
}

.plank {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.plank:last-of-type {
  border-bottom: 1px solid var(--line);
}

.plank-icon {
  width: 44px;
  height: 44px;
  flex: none;
  color: var(--gold);
}

.plank-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plank-num {
  grid-column: 2;
  margin: 0 0 0.35rem;
}

.plank h3 {
  grid-column: 2;
  color: var(--ice);
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  margin-bottom: 0.6rem;
}

.plank p {
  grid-column: 2;
  color: var(--mist);
  max-width: 62ch;
}

.plank p + p {
  margin-top: 0.7rem;
}

@media (max-width: 520px) {
  .plank {
    grid-template-columns: 1fr;
  }
  .plank-icon {
    margin-bottom: 0.2rem;
  }
  .plank-num,
  .plank h3,
  .plank p {
    grid-column: 1;
  }
}

/* ---------- Contact / footer ---------- */
.contact {
  background: radial-gradient(ellipse 120% 100% at 50% 110%, var(--navy-soft), var(--fjord) 65%);
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

.contact h2 {
  color: var(--ice);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  max-width: 16ch;
}

.contact p {
  color: var(--mist);
  max-width: 50ch;
  margin-top: 0.8rem;
}

.contact-email {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.15rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: var(--ice);
  border-color: var(--gold);
}

.horizon {
  display: block;
  width: 100%;
  height: auto;
  color: var(--brass);
  opacity: 0.5;
}

footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--mist);
  font-size: 0.82rem;
}

footer .legal {
  max-width: 60ch;
}

footer .fill {
  color: var(--gold);
  font-weight: 600;
}
