/*
Theme Name: Gordon Theme
Author: Adam Gordon
Version: 1.0
*/
:root {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --text: #1f1f1c;
  --muted: #6d6a63;
  --line: #e7e1d8;
  --accent: #8a7f68;
  --content-width: 760px;
  --image-width: 1100px;
  --outer-gutter: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 26px var(--outer-gutter) 18px;
  z-index: 10;
}

.nav {
  max-width: var(--image-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a {
  position: relative;
  padding: 6px 2px;
  color: #ffffff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  opacity: 0.7;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero-image-wrap {
  max-width: var(--image-width);
  margin: 14px auto 0;
  padding: 0 var(--outer-gutter);
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6;
  border-radius: 2px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.04) 42%, rgba(0, 0, 0, 0)),
    url('images/home-header.jpg') center / cover no-repeat;
  background-position: center 62%;
}

.about-hero {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0)),
    url('images/about-header.jpg') center / cover no-repeat;
}

.about-bottom {
  aspect-ratio: 16 / 6;
  margin-top: 60px;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0)),
    url('images/about-bottom.jpg') center / cover no-repeat;
}

.support-hero {
  aspect-ratio: 16 / 6;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.03) 42%, rgba(0, 0, 0, 0)),
    url('images/support-hero.jpg') center / cover no-repeat;
}

.hero-copy {
  max-width: var(--content-width);
  margin: 64px auto 0;
  padding: 0 var(--outer-gutter);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: 'Cormorant', serif;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.subtext {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

main {
  padding: 60px 0 110px;
}

body:has(.support-hero) main {
  padding-top: 34px;
}

.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--outer-gutter);
}

.section + .section {
  margin-top: 40px;
}

.intro {
  margin-top: 0;
  text-align: center;
}

.intro p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.04rem;
}

.section-heading {
  font-family: 'Cormorant', serif;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.pathways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 28px;
}

.path {
  position: relative;
  display: inline-block;
  padding: 10px 0;
  text-align: center;
  font-size: 1.02rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.path::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 36px;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%) scaleX(1);
  transform-origin: center;
}

.path.option-b::after {
  transition: transform 180ms ease, background 180ms ease;
}

.path.option-b:hover,
.path.option-b:focus-visible {
  transform: translateY(-1px);
}

.path.option-b:hover::after,
.path.option-b:focus-visible::after {
  transform: translateX(-50%) scaleX(1.5);
  background: #cfc5b7;
}

.feature {
  margin-top: 86px;
}

.feature h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 18px;
  text-align: center;
}

.feature-card {
  padding: 28px 0 30px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-card p {
  max-width: 560px;
  margin: 0 auto 14px;
  color: var(--muted);
}

.text-link {
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.site-footer {
  max-width: var(--content-width);
  margin: 90px auto 0;
  padding: 26px var(--outer-gutter) 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.support-section + .support-section {
  margin-top: 54px;
}

.support-section p {
  text-align: left;
}

.support-section p + p {
  margin-top: 10px;
}

.support-section p:has(.button-link) {
  text-align: center;
}

.support-progress-block {
  max-width: 560px;
  margin-top: 42px;
}

.support-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}

.support-title {
  font-family: 'Cormorant', serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}

.support-percentage {
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.support-progress-track {
  width: 100%;
  height: 12px;
  background: #b1c1dd;
  border-radius: 999px;
  overflow: hidden;
}

.support-progress-fill {
  width: 0;
  height: 100%;
  background: #3357a3;
  border-radius: 999px;
  animation: fillSupportBar 1.6s ease forwards;
}

@keyframes fillSupportBar {
  from {
    width: 0;
  }

  to {
    width: 96%;
  }
}

.button-link {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #cfc5b7;
  border-radius: 2px;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button-link:hover,
.button-link:focus-visible {
  background: #b1c1dd;
  border-color: #3357a3;
  color: #1f2d4a;
  transform: translateY(-1px);
}

.button-link-secondary {
  background: transparent;
}

@media (max-width: 760px) {
  .nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero-image {
    aspect-ratio: 16 / 10.5;
  }

  .hero-copy {
    margin-top: 42px;
  }

  main {
    padding-top: 46px;
  }

  .pathways {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 52px;
  }

  .feature {
    margin-top: 68px;
  }
}