/* ==========================================================================
   PIFJ — Pacific Islanders for Jesus
   Shared stylesheet. Mobile first.
   Source of truth for colour, type and logo rules: brand/BRAND.md
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand colours (BRAND.md §4) */
  --charcoal: #262521;
  --cream:    #F2F0E4;
  --sand:     #C7C3A8;
  --stone:    #5F5E59;

  /* Tints derived from the palette */
  --cream-deep:    #E6E3D2;                    /* cream + a little sand: elevated light surface */
  --line-on-light: rgba(38, 37, 33, 0.16);     /* charcoal hairline on cream */
  --line-on-dark:  rgba(242, 240, 228, 0.14);  /* cream hairline on charcoal */

  /* Type */
  --font-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* Type scale: mobile (BRAND.md §5) */
  --text-display:    2.5rem;     /* 40px */
  --text-h2:         2rem;       /* 32px */
  --text-h3:         1.375rem;   /* 22px */
  --text-body-large: 1.125rem;   /* 18px */
  --text-body:       1rem;       /* 16px */
  --text-eyebrow:    0.8125rem;  /* 13px */

  /* Spacing scale */
  --space-1: 0.25rem;  /*   4px */
  --space-2: 0.5rem;   /*   8px */
  --space-3: 1rem;     /*  16px */
  --space-4: 1.5rem;   /*  24px */
  --space-5: 2rem;     /*  32px */
  --space-6: 3rem;     /*  48px */
  --space-7: 4.5rem;   /*  72px */
  --space-8: 7rem;     /* 112px */

  /* Layout */
  --container: 75rem;            /* 1200px */
  --gutter: var(--space-4);
  --section-pad: var(--space-7);

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 56.25em) { /* 900px */
  :root {
    --text-display:    5rem;      /* 80px */
    --text-h2:         3.25rem;   /* 52px */
    --text-h3:         1.75rem;   /* 28px */
    --text-body-large: 1.25rem;   /* 20px */
    --text-body:       1.125rem;  /* 18px */
    --text-eyebrow:    0.875rem;  /* 14px */

    --gutter: var(--space-6);
    --section-pad: var(--space-8);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 125%;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* On charcoal sections the focus ring flips to sand */
.site-header :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sand);
}

/* ---------- Shared pieces ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Eyebrow: Hanken Grotesk 600, caps, wide tracking (BRAND.md §5).
   Stone on cream by default; sand on charcoal. */
.eyebrow,
.verse figcaption,
.hero__place {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--sand);
}

/* Button: cream on charcoal sections */
.button {
  display: inline-block;
  border: 0;
  cursor: pointer;
  padding: var(--space-3) var(--space-5);
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: var(--text-body);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 220ms var(--ease-spring);
}

.button:hover {
  background: var(--sand);
  transform: translateY(-3px);
}

.button:active {
  background: var(--sand);
  transform: translateY(0) scale(0.97);
}

/* ---------- Header (charcoal, dark logo) ---------- */
.site-header {
  background: var(--charcoal);
  color: var(--cream);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.site-header__logo {
  flex: none;
  display: block;
  width: 4.5rem; /* 72px: above the 48px minimum in BRAND.md */
  transition: transform 220ms var(--ease-spring);
}

.site-header__logo:hover {
  transform: scale(1.05);
}

.site-header__logo:active {
  transform: scale(0.97);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: var(--space-3);
}

.site-nav a,
.site-footer__nav a {
  position: relative;
  display: inline-block;
  padding-block: 0.75rem; /* ~44px tap target */
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

/* Underline that grows from the left on hover; solid for the current page */
.site-nav a::after,
.site-footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  height: 2px;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}

.site-nav a:hover::after,
.site-footer__nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:active,
.site-footer__nav a:active {
  opacity: 0.7;
}

@media (min-width: 56.25em) {
  .site-header__inner {
    padding-block: var(--space-3);
  }

  .site-header__logo {
    width: 5.5rem; /* 88px */
  }

  .site-nav__list {
    column-gap: var(--space-5);
  }

  .site-nav a {
    font-size: 1rem;
  }
}

/* ---------- Hero (charcoal, dark logo) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  padding-block: var(--space-5) var(--section-pad);
}

/* Beams of light behind the hero text (drawn by js/hero-beams.js).
   Masked so they sit behind the words only and fade out before the logo:
   BRAND.md says the logo never goes on a gradient or busy background. */
.hero__beams {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  filter: blur(28px);
  pointer-events: none;
  /* Phones: logo on top, so the beams start below it */
  -webkit-mask-image: linear-gradient(to bottom, transparent 21rem, #000 28rem, #000 80%, transparent);
          mask-image: linear-gradient(to bottom, transparent 21rem, #000 28rem, #000 80%, transparent);
}

@media (min-width: 56.25em) {
  /* Desktop: logo on the right, so the beams stay on the left */
  .hero__beams {
    -webkit-mask-image:
      linear-gradient(to right, #000 30%, transparent 54%),
      linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to right, #000 30%, transparent 54%),
      linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
            mask-composite: intersect;
  }
}

.hero__inner {
  display: grid;
  justify-items: start;
}

.hero__logo {
  width: min(100%, 20rem); /* 320px on phones */
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.hero__title {
  margin-bottom: var(--space-4);
}

.hero__mission {
  max-width: 34rem;
  font-size: var(--text-body-large);
  line-height: 1.6;
}

.hero__place {
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  border-top: 2px solid var(--sand);
  color: var(--sand);
}

@media (min-width: 56.25em) {
  .hero {
    padding-block: var(--space-6) var(--section-pad);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-areas:
      "title   logo"
      "mission logo"
      "place   logo";
    grid-template-rows: auto auto 1fr;
    column-gap: var(--space-6);
    align-items: start;
  }

  .hero__title   { grid-area: title; align-self: end; }
  .hero__mission { grid-area: mission; }
  .hero__place   { grid-area: place; }

  .hero__logo {
    grid-area: logo;
    align-self: center;
    width: 100%;
    max-width: 28rem; /* placeholder PNG is only 373px wide; swap for SVG before launch */
    margin-bottom: 0;
  }
}

/* One page-load moment: the logo settles, then the words follow. */
@media (prefers-reduced-motion: no-preference) {
  .hero__logo,
  .hero__title,
  .hero__mission,
  .hero__place {
    animation: rise 700ms var(--ease-out) both;
  }

  .hero__title   { animation-delay: 80ms; }
  .hero__mission { animation-delay: 160ms; }
  .hero__place   { animation-delay: 240ms; }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Why (cream) ---------- */
.why {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.why__inner {
  display: grid;
  gap: var(--space-5);
}

.why__intro .eyebrow {
  margin-bottom: var(--space-3);
}

.why__body {
  max-width: 38rem; /* ~65 characters */
}

.why__body > p + p {
  margin-top: var(--space-4);
}

.why__body > p:last-child {
  font-weight: 700;
}

.verse {
  margin: var(--space-5) 0 0;
  padding-left: var(--space-4);
  border-left: 4px solid var(--charcoal);
}

.verse blockquote {
  margin: 0;
}

.verse blockquote p {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.verse figcaption {
  margin-top: var(--space-3);
}

@media (min-width: 56.25em) {
  .why__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: start;
  }

  .verse {
    margin-top: var(--space-6);
    padding-left: var(--space-5);
  }

  /* Line the first paragraph up with the heading, not the eyebrow */
  .why__body {
    padding-top: calc(var(--text-eyebrow) * 1.4 + var(--space-3));
  }

  .verse blockquote p {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}

/* ---------- The plan (elevated cream surface) ---------- */
.plan {
  background: var(--cream-deep);
  padding-block: var(--section-pad);
}

.plan .eyebrow {
  margin-bottom: var(--space-3);
}

.plan__steps {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.plan__step {
  position: relative;
  padding-top: var(--space-3);
  border-top: 2px solid var(--charcoal);
}

.plan__number {
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--stone);
}

.plan__step h3 {
  margin-bottom: var(--space-2);
}

.plan__step p {
  max-width: 30rem;
}

@media (min-width: 56.25em) {
  .plan__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-7);
  }

  .plan__step {
    padding-top: var(--space-4);
  }

  .plan__number {
    margin-bottom: var(--space-5);
    font-size: 4.5rem;
  }

  /* Arrow from one step to the next */
  .plan__step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: var(--space-4);
    right: 0;
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 4.5rem;
    color: var(--stone);
  }
}

/* ---------- Get involved (charcoal, rays) ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
}

/* Rays from the logo: six lines converging on one point, just above the heading */
.cta__rays {
  width: min(100% - var(--gutter) * 2, 32rem);
  height: 9rem;
  margin-inline: auto;
}

.cta__rays line {
  stroke: var(--sand);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.55;
}

.cta__inner {
  padding-block: var(--space-4) var(--section-pad);
}

.cta__inner > p {
  max-width: 30rem;
  margin: var(--space-3) auto var(--space-5);
  font-size: var(--text-body-large);
  line-height: 1.6;
}

@media (min-width: 56.25em) {
  .cta__rays {
    height: 14rem;
  }

  .cta__inner {
    padding-top: var(--space-5);
  }
}

/* ---------- Inner pages: title band (charcoal) ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
  padding-block: var(--space-5) var(--space-7);
}

/* Same beams as the homepage hero, fainter, fading out at the top and bottom edges */
.page-hero__beams {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  filter: blur(28px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}

.page-hero p {
  max-width: 38rem;
  margin-top: var(--space-4);
  font-size: var(--text-body-large);
  line-height: 1.6;
}

@media (min-width: 56.25em) {
  .page-hero {
    padding-block: var(--space-6) var(--space-7);
  }
}

/* Placeholder for content that isn't confirmed yet */
.tbc {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border: 1px dashed var(--stone);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--stone);
}

/* Photo slot: a plain sand block marking where a real photo will go (CLAUDE.md).
   Swap each one for an <img> with the same class once the photo exists. */
.photo-slot {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: var(--space-4);
  background: var(--sand);
  color: var(--charcoal);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.photo-slot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.photo-slot--spaced {
  margin-top: var(--space-6);
}

@media (min-width: 56.25em) {
  .photo-slot--wide {
    aspect-ratio: 21 / 9;
    margin-top: var(--space-6);
  }

  .photo-slot--spaced {
    margin-top: var(--space-7);
  }
}

/* Short list with a dash marker */
.dash-list li {
  position: relative;
  padding-left: var(--space-4);
}

.dash-list li + li {
  margin-top: var(--space-2);
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.75rem;
  height: 2px;
  background: var(--charcoal);
}

/* ---------- The Plan page: steps in detail (cream) ---------- */
.plan-detail {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.plan-detail__list {
  display: grid;
  gap: var(--space-6);
}

.plan-detail__step {
  padding-top: var(--space-3);
  border-top: 2px solid var(--charcoal);
}

.plan-detail__step h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.plan-detail__body {
  max-width: 38rem;
}

.plan-detail__body > * + * {
  margin-top: var(--space-3);
}

.plan-detail__body > .tbc {
  margin-top: var(--space-4);
}

@media (min-width: 56.25em) {
  .plan-detail__list {
    gap: var(--space-7);
  }

  .plan-detail__step {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr) minmax(0, 1.5fr);
    column-gap: var(--space-5);
    align-items: start;
    padding-top: var(--space-4);
  }

  .plan-detail__step .plan__number {
    margin-bottom: 0;
  }

  .plan-detail__step h2 {
    margin-bottom: 0;
    padding-top: var(--space-3);
  }

  .plan-detail__body {
    padding-top: var(--space-3);
  }
}

/* ---------- The Plan page: where it's heading (elevated cream) ---------- */
.goal {
  background: var(--cream-deep);
  padding-block: var(--section-pad);
}

.goal__statement {
  max-width: 44rem;
  margin-block: var(--space-4) var(--space-5);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

@media (min-width: 56.25em) {
  .goal__statement {
    font-size: 2.25rem;
    line-height: 1.2;
  }
}

/* ---------- What we believe: statement of faith (cream) ---------- */
.beliefs {
  background: var(--cream);
  padding-block: var(--space-6) var(--section-pad);
}

.belief {
  padding-block: var(--space-4) var(--space-5);
  border-top: 1px solid var(--charcoal);
}

.belief:first-child {
  border-top-width: 2px;
}

.belief__number {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: var(--text-h3);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--stone);
}

.belief h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.belief p {
  max-width: 38rem;
}

@media (min-width: 56.25em) {
  .beliefs {
    padding-top: var(--space-7);
  }

  .belief {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.5fr);
    column-gap: var(--space-5);
    align-items: start;
    padding-block: var(--space-5) var(--space-6);
  }

  .belief__number,
  .belief h2 {
    margin-bottom: 0;
  }

  .belief:last-child {
    padding-bottom: 0;
  }
}

/* ---------- Who we are: mission (cream) ---------- */
.mission {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.mission__inner {
  display: grid;
  gap: var(--space-5);
}

.mission__statement {
  margin-top: var(--space-4);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.mission__body {
  max-width: 38rem;
}

.mission__body > p + p {
  margin-top: var(--space-4);
}

@media (min-width: 56.25em) {
  .mission__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: start;
  }

  .mission__statement {
    margin-top: var(--space-5);
    font-size: 2.25rem;
    line-height: 1.2;
  }

  .mission__body {
    padding-top: var(--space-2);
  }
}

/* ---------- Who we are: values (elevated cream) ---------- */
.values {
  background: var(--cream-deep);
  padding-block: var(--section-pad);
}

.values__inner {
  display: grid;
  gap: var(--space-5);
}

.values__list li {
  padding-block: var(--space-3);
  border-top: 1px solid var(--charcoal);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.values__list li:first-child {
  border-top-width: 2px;
}

.values__list li:last-child {
  border-bottom: 1px solid var(--charcoal);
}

@media (min-width: 56.25em) {
  .values__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: start;
  }

  .values__list li {
    padding-block: var(--space-4);
  }
}

/* ---------- Who we are: team (cream) ---------- */
.team {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.team__inner {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 56.25em) {
  .team__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--space-7);
    align-items: start;
  }
}

.team__intro {
  max-width: 38rem;
  margin-block: var(--space-4);
  font-size: var(--text-body-large);
  line-height: 1.6;
}

/* ---------- Get involved: four ways (cream) ---------- */
.ways {
  background: var(--cream);
  padding-block: var(--section-pad);
}

.ways__list {
  display: grid;
  gap: var(--space-6);
}

.way {
  padding-top: var(--space-4);
  border-top: 2px solid var(--charcoal);
}

.way h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.way p {
  max-width: 32rem;
}

.way p + p {
  margin-top: var(--space-3);
}

.way p + .tbc {
  margin-top: var(--space-4);
}

@media (min-width: 56.25em) {
  .ways__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
  }
}

/* Placeholder on a charcoal section: sand, never stone (BRAND.md contrast rule) */
.cta .tbc {
  border-color: var(--sand);
  color: var(--sand);
}

/* ---------- Get involved: sign-up form (on charcoal) ---------- */
.signup {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  max-width: 34rem;
  margin: var(--space-2) auto 0;
  text-align: left;
}

.field {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label,
.field > legend {
  display: block;
  margin-bottom: var(--space-2);
  padding: 0;
  font-weight: 600;
  line-height: 1.4;
}

.field__hint {
  font-weight: 400;
  color: var(--sand);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  padding: 0.75rem var(--space-3);
  background: rgba(242, 240, 228, 0.06); /* cream tint: raised surface on charcoal */
  border: 1px solid var(--sand);
  border-radius: 6px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px minimum stops iOS zooming in on focus */
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:hover,
.field textarea:hover {
  background: rgba(242, 240, 228, 0.1);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 2px;
  border-color: var(--cream);
}

.field > .check {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0;
  padding-block: 0.625rem; /* ~44px tap target */
  font-weight: 400;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0;
  accent-color: var(--sand);
  cursor: pointer;
}

.check:hover {
  color: var(--sand);
}

.check:active {
  opacity: 0.8;
}

.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup .button {
  margin-top: var(--space-2);
}

.signup .button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Shown if sending fails */
.signup__error {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--sand);
  border-radius: 6px;
  color: var(--sand);
  font-weight: 600;
  line-height: 1.5;
}

/* Thank-you message that replaces the form once it has sent */
.signup__done {
  max-width: 34rem;
  margin: var(--space-2) auto 0;
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--sand);
  border-radius: 6px;
  background: rgba(242, 240, 228, 0.06);
}

.signup__done:focus {
  outline: none;
}

.signup__done p {
  margin-top: var(--space-2);
}

/* The hidden attribute always wins, even over display rules above */
[hidden] {
  display: none !important;
}

/* ---------- Footer (charcoal, dark logo) ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  border-top: 1px solid var(--line-on-dark);
  padding-block: var(--space-6) var(--space-5);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-5);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__brand img {
  flex: none;
  width: 5rem; /* 80px */
}

.site-footer__brand p {
  font-weight: 600;
  line-height: 1.5;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--space-4);
}

.site-footer__small {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.875rem;
  color: var(--sand);
}

@media (min-width: 56.25em) {
  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .site-footer__small {
    grid-column: 1 / -1;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
