@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/ArchivoExpanded-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --field-top: #4e3928;
  --field-mid: #3a2818;
  --field-bottom: #2c1e11;
  --ink: #f7f1e7;
  --rule: rgba(247, 241, 231, 0.22);
  --surface: #4a3423;
  --surface-strong: #5a422f;
  --accent: #f0553f;
  --accent-text: #ff8a70;
  --content-width: 72rem;
  --text-width: 42rem;
  --radius: 1.25rem;
  font-family: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--field-bottom);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 64% 12%, rgba(255, 200, 138, 0.2), rgba(255, 180, 116, 0.06) 26rem, transparent 46rem),
    linear-gradient(180deg, var(--field-top), var(--field-mid) 48%, var(--field-bottom));
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: rgba(247, 241, 231, 0.45);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: var(--accent-text);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--field-bottom);
  transform: translateY(-150%);
}

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

.site-header,
.site-footer,
.page-shell,
.section-shell {
  width: min(var(--content-width), calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-text);
}

.hero {
  display: grid;
  min-height: calc(100dvh - 4.5rem);
  grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.hero h1 {
  max-width: 19ch;
  font-size: clamp(3rem, 5.5vw, 4.9rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.lede {
  max-width: 35rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.5;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--field-bottom);
  font-weight: 500;
  text-decoration: none;
  transition: transform 180ms ease-out, background-color 180ms ease-out;
}

.button:hover {
  background: #fffdf7;
  text-decoration: none;
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover {
  background: var(--surface);
}

.object-stage {
  position: relative;
  display: grid;
  width: min(100%, 27rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: end;
}

.ring {
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 214, 166, 0.23);
  border-radius: 50%;
}

.ring:last-of-type {
  width: 94%;
  opacity: 0.58;
}

.curb-object {
  position: relative;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 29.5%;
  background: linear-gradient(145deg, #fffefb, #f7f3ea 46%, #dcd3bf);
  box-shadow:
    inset 3px 3px 0 rgba(255, 255, 255, 0.66),
    0 3.5rem 3.2rem rgba(10, 5, 0, 0.44);
}

.curb-object::after {
  position: absolute;
  top: 61%;
  left: 50%;
  width: 10.7%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8c7c64;
  content: "";
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: no-preference) {
  .ring {
    animation: breathe 3.6s ease-out infinite;
  }

  .ring:last-of-type {
    animation-delay: -1.8s;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.24; transform: scale(0.93); }
  50% { opacity: 0.72; transform: scale(1); }
}

.section-shell {
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-rule {
  border-top: 1px solid var(--rule);
}

.section-intro {
  max-width: var(--text-width);
}

.section-intro p {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  font-size: 1.12rem;
}

.steps {
  display: grid;
  margin-top: clamp(3rem, 7vw, 6rem);
  grid-template-columns: 0.8fr 1.1fr;
  column-gap: clamp(3rem, 10vw, 9rem);
}

.step {
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(7rem, 0.45fr) 1fr;
  gap: 2rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.step:first-child {
  border-top: 1px solid var(--rule);
}

.step strong {
  font-family: "Archivo Expanded", "Archivo", sans-serif;
  font-weight: 500;
}

.step p {
  margin: 0;
}

.principles {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.principle-stack {
  display: grid;
  gap: 1rem;
}

.principle {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.principle:nth-child(2) {
  margin-left: clamp(0rem, 5vw, 4rem);
  background: var(--surface-strong);
}

.principle p {
  margin: 0.7rem 0 0;
}

.closing {
  display: grid;
  min-height: 72vh;
  place-items: center start;
}

.closing h2 {
  max-width: 11ch;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.page-shell {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.page-heading {
  max-width: 52rem;
  padding-bottom: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--rule);
}

.page-heading h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.page-heading p {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  font-size: 1.12rem;
}

.prose {
  max-width: var(--text-width);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.prose h2 {
  max-width: none;
  margin-top: 3.5rem;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 2rem;
}

.prose p,
.prose ul,
.prose ol {
  margin-block: 1rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.prose a {
  color: var(--accent-text);
}

.callout {
  margin-block: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.callout p {
  margin: 0;
}

.support-options {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.support-contact {
  position: sticky;
  top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.support-contact p {
  margin: 0.6rem 0 1.25rem;
}

.fallback-shell {
  display: grid;
  min-height: calc(100dvh - 9rem);
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}

.fallback-shell h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.small-object .object-stage {
  width: min(100%, 23rem);
}

@media (max-width: 760px) {
  .site-header {
    min-height: 4.2rem;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero,
  .principles,
  .support-options,
  .fallback-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 2.5rem;
    padding-block: 2.5rem;
  }

  .hero-copy {
    order: 1;
  }

  .object-stage {
    width: min(56vw, 14rem);
    justify-self: center;
    order: 0;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 3.35rem);
  }

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

  .step {
    grid-column: 1;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .principle:nth-child(2) {
    margin-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .support-contact {
    position: static;
  }

  .small-object {
    order: -1;
  }
}

@media (max-width: 430px) {
  .site-header,
  .site-footer,
  .page-shell,
  .section-shell {
    width: min(100% - 2rem, var(--content-width));
  }

  .site-nav {
    gap: 0.9rem;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
