/* ============================================================
   SIP WITH SOPHIA
   Design system + site styles
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* ---------- brand colors ---------- */

  --burgundy: #6b1e2a;
  --burgundy-deep: #4a1420;
  --burgundy-tertiary: #5c4046;
  --cream: #ede0d4;
  --cream-light: #f6eee6;
  --plum-ink: #2a1216;
  --mauve: #b4808f;

  /* ---------- semantic colors ---------- */

  --surface: var(--cream-light);
  --surface-sunk: var(--cream);

  --text-primary: var(--plum-ink);
  --text-secondary: var(--burgundy-tertiary);

  --accent-text: var(--burgundy);

  --button-fill: var(--burgundy);
  --button-label: var(--cream-light);

  --hairline: rgba(42, 18, 22, 0.18);

  /* ---------- typography ---------- */

  --display: 'Playfair Display', Georgia, serif;
  --body: 'Cormorant Garamond', Georgia, serif;
  --util: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --page-h1-size: 52px;
  --page-h1-leading: 0.98;
  --page-h1-tracking: -0.025em;
  --measure-h1: 14ch;

  --copy-size: 20px;
  --copy-leading: 1.6;
  --measure-copy: 52ch;

  /* ---------- spacing ---------- */

  --space-xs: 6px;
  --space-sm: 12px;
  --space-md: 18px;
  --space-lg: 26px;
  --space-xl: 40px;
  --space-2xl: 64px;

  --section-y: 96px;

  /* ---------- layout ---------- */

  --content-width: 1120px;
  --pad: 20px;
  --header-h: 64px;
  --photo-w: 400px; /* every photo beside text uses this width and ratio */
  --photo-w-sm: 260px; /* the small intro photo on the team page */
  --photo-ratio: 4 / 5;
  --split-text-min: 360px; /* text column wraps the photo/form beneath below this */
  --contact-intro-max: 520px;
  --contact-form-min: 480px;
  --contact-form-max: 620px;

  /* ---------- shape + elevation ---------- */

  --radius: 0;

  /* ---------- hero ---------- */

  --hero-h: calc(100svh - var(--header-h));
  --hero-min: 600px;
  --pour: 100%;
}

@media (min-width: 720px) {
  :root {
    --pad: 64px;
    --hero-min: 660px;
    --page-h1-size: 72px;
    --copy-size: 22px;
  }
}

/* ============================================================
     RESET
     ============================================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ============================================================
     TYPE
     ============================================================ */

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--text-primary);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-weight: 400;
  font-size: 52px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

h1 em {
  font-style: italic;
}

h2 {
  font-weight: 400;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0;
}

h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 0;
}

p {
  margin-bottom: 0;
}

/* ============================================================
     TYPE ROLES
     ============================================================ */

.eyebrow {
  margin: 0;

  font-family: var(--util);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.28em;
  text-transform: uppercase;

  color: var(--accent-text);
}

/* One eyebrow-to-heading gap, used everywhere */
p.eyebrow + :is(h1, h2, h3) {
  margin-top: var(--space-md);
}

.lede {
  max-width: 30ch;

  margin: var(--space-lg) 0 0;

  font-family: var(--body);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.45;

  color: var(--text-primary);
}

.sec-head {
  max-width: 60ch;
  margin-bottom: clamp(var(--space-xl), 5vw, var(--space-2xl));
}

/* :not(.eyebrow) stops this rule from overriding the eyebrow's styles */
.sec-head p:not(.eyebrow) {
  margin-top: var(--space-md);

  font-family: var(--body);
  font-weight: 300;
  font-size: var(--copy-size);
  line-height: var(--copy-leading);

  color: var(--text-secondary);
}

/* Shared paragraph style for body copy outside .sec-head and .lede */
.copy {
  max-width: var(--measure-copy);
  margin: 0;

  font-family: var(--body);
  font-weight: 300;
  font-size: var(--copy-size);
  line-height: var(--copy-leading);

  color: var(--text-secondary);
}

.pull + .copy {
  margin-top: var(--space-md);
}

.cards + .copy {
  margin-top: var(--space-xl);
}

.note {
  margin-top: var(--space-xl);
  font-style: italic;
}

.pull {
  margin: 0;

  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.22;

  color: var(--accent-text);
}

@media (min-width: 720px) {
  body {
    font-size: 21px;
  }

  h1 {
    font-size: clamp(96px, 9vw, 124px);
  }

  h2 {
    font-size: 58px;
  }

  h3 {
    font-size: 27px;
  }

  .lede {
    font-size: 25px;
  }

  .pull {
    font-size: 40px;
  }
}

/* ============================================================
     LAYOUT
     ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* Only top-level sections get section padding; nested sections don't */
main > section {
  padding-block: clamp(var(--space-2xl), 10vw, var(--section-y));
}

/* The first section sits right under the header (main already offsets it),
     so keep its top padding tight. :first-of-type skips the toast divs on the
     contact page. */
main > section:first-of-type {
  padding-top: var(--space-xl);
}

/* Tastings and Wine Club share a background, so don't double the gap */
.club {
  padding-top: 0;
}

/* Alternating band, so the gap between sections reads as intentional */
.tint {
  background: var(--surface-sunk);
}

/* ============================================================
     HEADER
     ============================================================ */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;

  height: var(--header-h);
  padding: 0 var(--pad);

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--cream-light);
  color: var(--text-primary);
}

/* ---------- mark ---------- */

.mark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);

  color: var(--text-primary);
  text-decoration: none;
}

.mark svg {
  width: 26px;
  height: auto;
  flex: none;

  color: var(--text-primary) !important;
}

.mark span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.mark-icon {
  width: 26px;
  height: auto;
}

/* ---------- navigation ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-sm), 2.4vw, var(--space-lg));
}

.nav a {
  padding-block: 4px;

  font-family: var(--util);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;

  color: var(--text-primary);
  opacity: 0.78;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.nav a.btn {
  color: var(--cream-light);
  opacity: 1;
}

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

.nav .nav-hide {
  display: none;
}

@media (min-width: 720px) {
  .nav .nav-hide {
    display: inline;
  }
}

/* ---------- dropdowns ---------- */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-caret {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  padding: 0;

  border: 0;
  background: transparent;
  color: var(--text-primary);
  opacity: 0.78;
  cursor: pointer;
}

.nav-caret::before {
  content: '';

  display: block;
  width: 6px;
  height: 6px;
  margin: -3px auto 0;

  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;

  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-item.is-open .nav-caret::before {
  transform: rotate(-135deg);
}

.nav-menu {
  margin: 0;
  padding: 0;

  list-style: none;
}

.nav-toggle {
  display: none;
}

@media (min-width: 720px) {
  .nav {
    align-self: stretch;
  }

  .nav-item {
    align-self: stretch;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--space-md));

    min-width: 220px;
    padding: var(--space-sm) 0;

    background: var(--cream-light);
    border: 1px solid var(--hairline);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .nav-item.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav .nav-menu a {
    display: block;
    padding: var(--space-sm) var(--space-lg);

    white-space: nowrap;
  }
}

@media (min-width: 720px) and (hover: hover) {
  .nav-item:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-item:hover .nav-caret {
    opacity: 1;
  }
}

/* ---------- mobile menu ---------- */

@media (max-width: 719px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 40px;
    height: 40px;
    padding: 0 9px;

    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 1.5px;

    background: var(--text-primary);

    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .site-head.is-menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .site-head.is-menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-head.is-menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    max-height: calc(100svh - var(--header-h));
    padding: var(--space-xs) var(--pad) var(--space-lg);
    overflow-y: auto;

    background: var(--cream-light);
    border-top: 1px solid var(--hairline);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);

    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s ease;
  }

  .site-head.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav > a,
  .nav-item {
    border-bottom: 1px solid var(--hairline);
  }

  .nav > a {
    padding-block: var(--space-md);
  }

  .nav-item {
    flex-wrap: wrap;
  }

  .nav .nav-link {
    flex: 1;
    padding-block: var(--space-md);
  }

  .nav-caret {
    width: 44px;
    height: 44px;
    margin-left: 0;
  }

  .nav-menu {
    display: none;
    flex-basis: 100%;
    padding-bottom: var(--space-sm);
  }

  .nav-item.is-open .nav-menu {
    display: block;
  }

  .nav .nav-menu a {
    display: block;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  }
}

/* ============================================================
    MAIN
    ============================================================ */

main {
  padding-top: var(--header-h);
}

/* ============================================================
    HERO
    ============================================================ */

.hero {
  position: relative;
  overflow: hidden;

  height: var(--hero-h);
  min-height: var(--hero-min);

  background: var(--surface);
}

/* Sized by its content (no viewport-height centering), so the first section
     never floats below the header */
.page-hero h1 {
  max-width: var(--measure-h1);

  font-size: var(--page-h1-size);
  line-height: var(--page-h1-leading);
  letter-spacing: var(--page-h1-tracking);
}

.hero-layer {
  position: absolute;
  inset: 0;

  width: 100%;
  height: auto;
  min-height: 0;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-inline: var(--pad);
}

.hero-inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--text-primary);
}

/* ---------- burgundy pour ---------- */

.hero-fill {
  overflow: hidden;
  pointer-events: none;

  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-deep) 100%);

  clip-path: inset(100% 0 0 0);
}

.hero.is-ready .hero-fill {
  animation: pour 2.1s cubic-bezier(0.5, 0.05, 0.2, 1) 0.35s forwards;
}

@keyframes pour {
  to {
    clip-path: inset(calc(100% - var(--pour)) 0 0 0);
  }
}

.hero-fill .hero-copy {
  position: absolute;
  inset: 0;

  height: auto;
  min-height: 0;

  color: var(--cream-light);
}

.hero-fill h1,
.hero-fill h2 {
  color: var(--cream-light);
}

/*
  Mauve does not have sufficient contrast for small text
  against burgundy. Use cream on this ground.
  */
.hero-fill .eyebrow {
  color: var(--cream-light);
}

.hero-fill .lede {
  color: var(--cream-light);
}

/* Hero heading and logo */
.hero-heading-row {
  display: flex;
  align-items: center;
  gap: clamp(var(--space-lg), 4vw, var(--space-2xl));
}

.hero-heading-row h1 {
  margin: 0;
}

.hero-logo-pair {
  position: relative;
  display: block;
  flex: 0 0 clamp(120px, 14vw, 210px);
  width: clamp(120px, 14vw, 210px);
  aspect-ratio: 1;
}

.hero-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.6s ease;
}

.hero-logo--dark {
  opacity: 1;
}

.hero-logo--light {
  opacity: 0;
}

.hero-fill .hero-logo--dark {
  opacity: 0;
}

.hero-fill .hero-logo--light {
  opacity: 1;
}

/* Mobile */
@media (max-width: 600px) {
  .hero-heading-row {
    gap: var(--space-sm);
  }

  .hero-logo-pair {
    flex-basis: 76px;
    width: 76px;
  }
}

/* ============================================================
    BUTTONS
    ============================================================ */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);

  margin-top: var(--space-xl);
}

.btn {
  display: inline-block;

  padding: var(--space-md) var(--space-lg);

  border: 1px solid var(--button-fill);
  border-radius: var(--radius);

  background: var(--button-fill);
  color: var(--button-label);

  font-family: var(--util);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--accent-text);
}

/* ---------- hero buttons ---------- */
.hero-copy .btn-ghost {
  background: var(--burgundy);
  color: var(--cream-light);
  border-color: var(--burgundy);
  font-weight: 700;
  transition:
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease;
}

/* Hover before the fill */
.hero-copy .btn-ghost:hover {
  font-weight: 700;
  background: var(--burgundy-deep);
  color: var(--cream-light);
  border-color: var(--burgundy-deep);
}

/* After the fill reaches the button */
.hero-fill .btn-ghost {
  background: var(--cream-light);
  color: var(--burgundy);
  border-color: var(--cream-light);
  font-weight: 700;
}

.hero-fill .btn-ghost:hover {
  background: var(--cream);
  color: var(--burgundy-deep);
  border-color: var(--cream);
  font-weight: 700;
}

/* ============================================================
    ABOUT
    ============================================================ */

.about {
  background: var(--surface-sunk);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
  }
}

.about-photo {
  margin: var(--space-xl) 0 0;

  aspect-ratio: var(--photo-ratio);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.about-copy p + p {
  margin-top: var(--space-md);
}

.about-story {
  margin-top: var(--space-xl);
}

/* ---------- homepage founder story ---------- */

.about-founder {
  display: flow-root;
  margin-top: clamp(var(--space-2xl), 8vw, var(--section-y));
}

.about-founder-photo {
  float: left;
  width: min(42%, 470px);
  margin: 0 clamp(var(--space-xl), 5vw, var(--space-2xl)) var(--space-xl) 0;
  overflow: hidden;
  border-radius: 8px;
}

.about-founder-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--photo-ratio);
  object-fit: cover;
}

.about-founder-copy {
  min-width: 0;
}

.about-founder-copy h2 {
  margin: 0 0 var(--space-sm);
}

/* After the image ends, paragraphs naturally use the full width. */
.about-founder-copy > p:not(.eyebrow):not(.person-creds) {
  max-width: none;
}

/* Mobile */
@media (max-width: 700px) {
  .about-founder-photo {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 0 0 var(--space-xl);
  }
}

/* ============================================================
    TASTINGS
    ============================================================ */

.cards {
  display: grid;

  border-top: 1px solid var(--hairline);
}

.card {
  display: grid;
  grid-template-columns: 1fr;

  gap: var(--space-sm);
  padding-block: var(--space-lg);

  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 720px) {
  .card {
    grid-template-columns:
      minmax(0, 1.05fr)
      minmax(0, 1.35fr)
      auto;

    gap: var(--space-xl);
    padding-block: var(--space-xl);
    align-items: baseline;
  }
}

.card .meta,
.package .meta {
  margin-top: var(--space-xs);

  font-family: var(--util);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--accent-text);
  opacity: 0.85;
}

.card p {
  margin: 0;

  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;

  color: var(--text-secondary);
}

.card .ask {
  padding-bottom: 2px;

  font-family: var(--util);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;

  color: var(--accent-text);

  border-bottom: 1px solid transparent;

  transition: border-color 0.2s ease;
}

.card .ask:hover {
  border-bottom-color: var(--accent-text);
}

@media (max-width: 859px) {
  .card p {
    margin-top: var(--space-sm);
  }
}

/* Cards inside a narrow text column: title above description, one column */
.cards--stack .card {
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding-block: var(--space-md);
}

.cards--stack .card p {
  margin-top: 0;
}

/* ---------- packages (photo + text rows) ---------- */

.packages {
  border-top: 1px solid var(--hairline);
}

.package {
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--hairline);
}

.package + .package {
  margin-top: 0;
}

.package .copy {
  margin-top: var(--space-md);
}

/* ============================================================
    BOOKING
    ============================================================ */

.book {
  background: var(--surface-sunk);
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 720px) {
  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

/* ---------- booking steps ---------- */

.steps {
  margin: 0;
  padding: 0;

  list-style: none;

  counter-reset: s;
}

.steps li {
  position: relative;

  padding: var(--space-md) 0 var(--space-md) var(--space-xl);

  border-bottom: 1px solid var(--hairline);

  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;

  color: var(--text-secondary);

  counter-increment: s;
}

.steps li:first-child {
  border-top: 1px solid var(--hairline);
}

.steps li::before {
  content: counter(s, decimal-leading-zero);

  position: absolute;
  left: 0;
  top: calc(var(--space-md) + 4px);

  font-family: var(--util);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;

  color: var(--accent-text);
}

.steps strong {
  display: block;

  margin-bottom: 2px;

  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;

  color: var(--text-primary);
}

/* ============================================================
     TEAM
     ============================================================ */
.team-intro {
  padding-bottom: var(--space-xl);
}

.team-intro h1 {
  max-width: var(--measure-h1);

  font-size: var(--page-h1-size);
  line-height: var(--page-h1-leading);
  letter-spacing: var(--page-h1-tracking);
}

.team-intro .lede {
  max-width: var(--measure-copy);
}

.team-intro-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xl) var(--space-2xl);
}

.team-intro-copy {
  flex: 1 1 var(--split-text-min); /* text takes the remaining space */
  min-width: 0;
}

.team-intro-photo {
  flex: 0 1 var(--photo-w-sm);
  width: 100%;
  max-width: var(--photo-w-sm);
  margin: 0; /* overrides .about-photo's margin-top */
}

.founder {
  background: var(--surface-sunk);
}

/* ---------- person ---------- */

.person {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);

  scroll-margin-top: calc(var(--header-h) + var(--space-lg));
}

.person + .person {
  margin-top: var(--space-2xl);
}

.sec-head + .person {
  margin-top: 0;
}

@media (min-width: 720px) {
  .person {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-2xl);
    align-items: start;
  }

  .person--reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .person--reverse .person-photo {
    order: 2;
  }
}

.person-photo {
  margin: 0;

  aspect-ratio: var(--photo-ratio);
  overflow: hidden;

  background: var(--surface-sunk);
}

.person-photo img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.founder .person-photo {
  background: var(--surface);
}

.person-body h2,
.person-body h3 {
  margin-bottom: var(--space-sm);
}

.person-creds {
  margin: 0 0 var(--space-lg);

  font-family: var(--util);
  font-weight: 400;
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--accent-text);
}

.person-bio p {
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;

  color: var(--text-secondary);
}

.person-bio p + p {
  margin-top: var(--space-md);
}

/* ---------- founder facts ---------- */

.person-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-xl);

  margin: var(--space-xl) 0 0;
  padding: var(--space-lg) 0 0;

  list-style: none;

  border-top: 1px solid var(--hairline);
}

.person-facts strong {
  display: block;

  margin-bottom: var(--space-xs);

  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;

  color: var(--accent-text);
}

.person-facts span {
  font-family: var(--util);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  color: var(--text-secondary);
}

/* ---------- closing call to action ---------- */

.team-cta {
  background: var(--surface-sunk);
}

.team-cta h2 {
  max-width: 16ch;
}

.team-cta-copy {
  max-width: var(--measure-copy);
  margin-top: var(--space-md);

  font-family: var(--body);
  font-weight: 300;
  font-size: var(--copy-size);
  line-height: var(--copy-leading);

  color: var(--text-secondary);
}

/* ============================================================
     CONTACT
     ============================================================ */

.contact {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--surface);
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-xl) var(--space-2xl);
}

.contact-intro {
  flex: 1 1 var(--split-text-min); /* wraps the form beneath when both can't fit */
  min-width: 0;
  max-width: var(--contact-intro-max);
}

.contact-intro h1 {
  font-size: var(--page-h1-size);
  line-height: var(--page-h1-leading);
  letter-spacing: var(--page-h1-tracking);
}

.contact-intro .lede {
  max-width: 34ch;
  font-size: 22px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* ---------- form ---------- */

.contact-form {
  flex: 1 1 var(--contact-form-min);
  min-width: 0;
  max-width: var(--contact-form-max);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.form-field {
  position: relative;
  margin-bottom: var(--space-lg);
}

.form-field [hidden] {
  display: none;
}

.form-field:has([required]) > :is(label, .form-label)::after {
  content: var(--required-mark);
}

.form-field label,
.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-family: var(--util);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.form-field input,
.form-field textarea,
.form-field select {
  display: block;
  width: 100%;
  padding: var(--space-sm) 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 18, 22, 0.25);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--body);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.35;
  transition:
    border-color 0.25s ease,
    padding 0.25s ease;
}

.form-field textarea {
  min-height: 150px;
  padding-top: var(--space-xs);
  resize: vertical;
}

.form-field select {
  appearance: none;
  cursor: pointer;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.55;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--accent-text);
}

.form-field.is-invalid label,
.form-field.is-invalid .form-label {
  color: var(--burgundy-deep);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
  border-bottom-color: var(--burgundy);
  border-bottom-width: 2px;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: end;
}

.phone-field select {
  width: auto;
  min-width: 4.5ch;
  padding-right: var(--space-sm);
}

.dates-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-lg);
  align-items: end;
}

.dates-add {
  padding: var(--space-sm) 0;
  border: 0;
  border-bottom: 1px solid rgba(42, 18, 22, 0.25);
  background: transparent;
  color: var(--accent-text);
  font-family: var(--util);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.dates-add:hover,
.dates-add:focus {
  outline: none;
  border-bottom-color: var(--accent-text);
}

.ref-field > * + * {
  margin-top: var(--space-xs);
}

.form-field input[type='datetime-local'] {
  color-scheme: light;
  min-height: calc(1.35em + 2 * var(--space-sm));
}

.form-field input[type='datetime-local']:invalid {
  color: rgba(92, 64, 70, 0.55);
}

.form-field input[type='datetime-local']::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
  filter: invert(17%) sepia(42%) saturate(1450%) hue-rotate(325deg) brightness(85%) contrast(92%);
}

.dates-list {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
}

.dates-list:empty {
  display: none;
}

.dates-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.35;
}

.dates-list button {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--accent-text);
  font-family: var(--util);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.dates-list button:hover {
  border-bottom-color: var(--accent-text);
}

@media (max-width: 719px) {
  .dates-field {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .dates-add {
    justify-self: start;
    border-bottom-color: transparent;
    padding-bottom: 0;
  }
}

/* ---------- submit ---------- */

.form-submit {
  display: flex;
  align-items: center;
  margin-top: var(--space-xl);
}

.form-submit .btn {
  min-width: 170px;
  cursor: pointer;
}

/* ============================================================
     TOAST
     ============================================================ */

.toast {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  z-index: 1100;
  width: min(calc(100% - 2 * var(--pad)), 620px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--plum-ink);
  color: var(--cream-light);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -12px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.toast--error {
  background: var(--burgundy);
}

.toast-body {
  flex: 1 1 auto;
}

.toast-title {
  display: block;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.3;
}

.toast-list {
  margin: var(--space-xs) 0 0;
  padding-left: var(--space-md);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
}

.toast-list:empty {
  display: none;
}

.toast button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream-light);
  font-family: var(--util);
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.toast button:hover {
  color: var(--mauve);
}

.toast--error button:hover {
  color: var(--cream);
}

@media (max-width: 719px) {
  .toast {
    width: calc(100% - 2 * var(--space-sm));
  }
}

/* ---------- desktop ---------- */

@media (min-width: 720px) {
  .contact-intro {
    padding-top: var(--space-sm);
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* ---------- smaller screens ---------- */

@media (max-width: 719px) {
  .contact {
    align-items: flex-start;
  }

  .contact-grid {
    padding-top: var(--space-md);
  }

  .contact-form {
    max-width: none;
  }
}

/* ============================================================
    FOOTER
    ============================================================ */

footer {
  padding-block: var(--space-2xl);

  background: var(--plum-ink);
  color: var(--cream);
}

footer .mark {
  color: var(--cream-light);
}

footer .mark svg {
  width: 34px;
  color: var(--cream-light) !important;
}

footer .mark span {
  font-size: 19px;
  color: var(--cream-light);
}

footer .mark-icon {
  width: 34px;
  height: auto;
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);

  justify-content: space-between;
  align-items: flex-end;
}

footer p {
  color: var(--cream-light);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.foot-links a {
  font-family: var(--util);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-decoration: none;

  color: var(--cream-light);
  opacity: 0.85;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.foot-links a:hover {
  opacity: 1;
  color: var(--mauve);
}

.fine {
  margin-top: var(--space-xl);

  font-family: var(--util);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--cream);
  opacity: 0.5;
}

/* ============================================================
    SCROLL REVEALS
    ============================================================ */

.rise {
  opacity: 0;
  transform: translateY(18px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.rise.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
    ACCESSIBILITY
    ============================================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
}

/* ============================================================
    REDUCED MOTION
    ============================================================ */

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

  .hero-fill,
  .hero.is-ready .hero-fill {
    clip-path: inset(calc(100% - var(--pour)) 0 0 0);
    animation: none;
  }

  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
     EVENT IMAGE STYLING
     ============================================================ */

.event-photo {
  position: relative;
  width: 100%;
  aspect-ratio: var(--photo-ratio); /* one ratio for every photo on the site */
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--surface-sunk);
}

.event-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .event-photo:hover img {
    transform: scale(1.025);
  }
}

/* ---------- split layout: text beside a photo ---------- */

.split {
  display: flex;
  flex-wrap: wrap; /* the photo drops below the text when there isn't room */
  align-items: center;
  gap: var(--space-xl) var(--space-2xl);
}

.split + .split {
  margin-top: var(--space-2xl);
}

.split > .split__text {
  flex: 1 1 var(--split-text-min);
  min-width: 0;
}

.split__text > .sec-head:last-child {
  margin-bottom: 0;
}

.split > .event-photo {
  flex: 0 1 var(--photo-w);
  max-width: var(--photo-w);
}

/* Long text column: top-align, and keep the photo in view while it scrolls */
.split--top {
  align-items: flex-start;
}

.split--top > .event-photo {
  position: sticky;
  top: calc(var(--header-h) + var(--space-lg));
}

/* Photo on the left when side by side; text still comes first when stacked */
@media (min-width: 960px) {
  .split--reverse > .event-photo {
    order: -1;
  }
}

/* Mobile */
@media (max-width: 719px) {
  .event-photo img {
    transition: none;
  }
}
