:root {
  --navy: #0b1f3a;
  --blue: rgb(78, 173, 234);
  --sky: #dff4ff;
  --sand: #f6f1e8;
  --cream: #fffdfa;
  --text: #1e2a36;
  --muted: #5e6d7f;
  --border: rgba(11, 31, 58, 0.12);
  --shadow: 0 22px 50px rgba(11, 31, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(78, 173, 234, 0.2), transparent 30%),
    linear-gradient(180deg, #f7fbff 0%, #fffdfa 52%, #f6f1e8 100%);
}

.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  padding: 1.5rem 0 1rem;
  background: rgb(78, 173, 234);
  color: white;
  position: relative;
  overflow: hidden;
}

.compact {
  padding-bottom: 0.75rem;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header h1,
.site-header h2,
.hero-copy h2,
.summary-panel h2,
.page-intro h2,
.site-header h3,
.page-intro h3,
.story-copy h3,
.contact-panel h2,
.info-card h4 {
  font-family: "Fraunces", serif;
}

.candidate-name {
  margin: 0 0 0.2rem;
  font-family: "Fraunces", serif;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: 0.95;
  font-weight: 700;
  color: white;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.site-header h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.site-header .eyebrow {
  color: rgba(255, 255, 255, 0.95);
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue);
}

.party-logo {
  width: min(340px, 42vw);
  min-width: 220px;
  display: flex;
  justify-content: center;
}

.party-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.main-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a.active,
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--navy);
}

.hero-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-photo-frame,
.form-panel,
.info-card {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card-label {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero-signoff {
  font-weight: 700;
  color: var(--navy);
}

.hero-photo {
  align-self: start;
}

.hero-photo-frame {
  padding: 1rem;
}

.hero-portrait {
  width: 100%;
  height: auto;
  border-radius: 22px;
}

.hero-photo-placeholder {
  height: 100%;
  min-height: 488px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(78, 173, 234, 0.14), rgba(11, 31, 58, 0.08)),
    #f8fbff;
  color: var(--navy);
}

.hero-photo-placeholder p:last-child {
  margin: 0;
  max-width: 14rem;
  font-weight: 700;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
}

.button.primary {
  background: var(--navy);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid var(--border);
}

.content-band {
  padding: 1rem 0 5rem;
}

.summary-panel {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.summary-panel h2 {
  margin: 0 0 1rem;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
}

.summary-panel p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.story-row.reverse img {
  order: 2;
}

.story-row img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.story-copy {
  padding: 1.25rem;
}

.story-copy h3,
.page-intro h2,
.contact-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--navy);
}

.story-copy p,
.page-intro p,
.info-card p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.text-link {
  font-weight: 800;
  color: var(--navy);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
}

.footer-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  color: var(--muted);
}

.footer-shell nav {
  display: flex;
  gap: 1rem;
  font-weight: 700;
}

.interior-page {
  padding: 3rem 0 5rem;
}

.contact-page .interior-page {
  flex: 1;
  display: flex;
  align-items: center;
}

.page-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.form-panel {
  padding: 2rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.contact-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.contact-panel p {
  margin: 0;
  line-height: 1.75;
  color: var(--muted);
}

.privacy-panel {
  max-width: 820px;
}

.privacy-panel h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: "Fraunces", serif;
  font-size: 1.45rem;
  color: var(--navy);
}

.privacy-panel h3:first-child {
  margin-top: 0;
}

.privacy-panel p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 1.25rem;
}

.stack-form label,
.stack-form legend {
  font-weight: 700;
  color: var(--navy);
}

.stack-form h4 {
  margin: 0 0 0.75rem;
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  color: var(--navy);
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.stack-form textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.option input {
  width: auto;
  margin: 0;
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.rating-group {
  display: grid;
  gap: 1rem;
}

.survey-note,
.details-section {
  padding-top: 0.5rem;
}

.survey-note p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(78, 173, 234, 0.08);
  border: 1px solid rgba(78, 173, 234, 0.18);
  border-radius: 18px;
}

.consent-box input {
  width: auto;
  margin: 0.15rem 0 0;
}

.consent-box span {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}

.contact-grid {
  display: block;
}

.contact-grid .contact-panel {
  max-width: 720px;
  margin: 0 auto;
}

.info-card {
  padding: 2rem;
}

.info-card h4 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  color: var(--navy);
}

@media (max-width: 900px) {
  .hero-grid,
  .story-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story-row.reverse img {
    order: 0;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-shell,
  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .party-logo {
    width: min(220px, 50vw);
  }

  .main-nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: min(1120px, calc(100% - 2rem));
    padding-bottom: 0.25rem;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    white-space: nowrap;
    text-decoration: none;
  }

  .hero,
  .interior-page {
    padding-top: 2.5rem;
  }

  .story-row,
  .form-panel,
  .info-card,
  .hero-photo-frame {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

a {
  text-decoration: underline;
}
