:root {
  --paper: #EDF0EE;
  --card: #FAFBFA;
  --cacao: #4A2C1B;
  --cacao-dark: #33261E;
  --chestnut: #8A5A3B;
  --teal: #2E8C8C;
  --teal-deep: #1F6B6B;
  --ink: #33261E;
  --ink-soft: #6B5C54;
  --hairline-card: rgba(74, 44, 27, 0.14);
  --hairline-rule: rgba(74, 44, 27, 0.16);
  --hairline-chip: rgba(74, 44, 27, 0.2);
  --hairline-signature: rgba(74, 44, 27, 0.35);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  color: var(--cacao);
}

a:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 2px;
}

/* Header */

.site-header {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--cacao);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--teal-deep);
}

/* Main */

.page-main {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 28px 0; /* was 80px; photo now sits close under the header */
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 64px;
}

/* Welcome photo above the hero. Fixed band height (the photo is mostly
   empty wall); object-position keeps the vase in view at every width.
   Border + radius match the member cards, so its pale bottom edge doesn't
   melt into the page background. */
.home-banner {
  display: block;
  width: 100%;
  margin-bottom: -24px; /* 40px to the heading instead of the 64px section gap */
}
.home-banner img {
  display: block;
  width: 100%;
  height: clamp(200px, 38vw, 320px);
  object-fit: cover;
  object-position: 78% 62%;
  border: 1px solid var(--hairline-card);
  border-radius: 14px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
  margin: 0;
  color: var(--cacao);
}

.hero p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

/* Members grid */

/* The intro line ("…the members of the 5fifi family.") leads straight into
   the cards: 40px instead of the 64px gap between the other sections. */
.hero + .members-grid {
  margin-top: -24px;
}

.members-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}

.member-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--hairline-card);
  border-radius: 14px;
  color: var(--ink);
  transition: transform 150ms ease, border-color 150ms ease;
}

.member-card:hover {
  transform: translateY(-2px);
}

.member-card--flow:hover {
  border-color: rgba(46, 140, 140, 0.55);
}

.member-card--blog:hover {
  border-color: rgba(74, 44, 27, 0.45);
}

.member-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-card__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.member-card--flow .member-card__dot {
  background: var(--teal);
}

.member-card--blog .member-card__dot {
  background: var(--chestnut);
}

.member-card__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.member-card__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  color: var(--cacao);
}

.member-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}

.member-card__link {
  font-size: 14px;
  font-weight: 600;
}

.member-card--flow .member-card__link {
  color: var(--teal-deep);
}

.member-card--blog .member-card__link {
  color: var(--chestnut);
}

/* Connect */

.connect {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.connect__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chip {
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline-chip);
  background: var(--card);
  color: var(--cacao);
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.chip:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.chip--highlight {
  background: var(--cacao);
  border-color: var(--cacao);
  color: var(--paper);
}

.chip--highlight:hover {
  background: var(--cacao-dark);
  border-color: var(--cacao-dark);
  color: var(--paper);
}

/* Support 5fifi */

.support {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  scroll-margin-top: 24px;
}

.support__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.support-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  text-align: left;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--hairline-card);
  border-radius: 14px;
}

.support-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--teal-deep);
  margin-bottom: 4px;
}

.support-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  color: var(--cacao);
}

.support-card__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  flex: 1;
}

.support-card__btn {
  display: inline-block;
  margin-top: 6px;
}

.btn--primary:hover {
  color: var(--paper);
}

/* Closing note */

.closing {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline-rule);
}

.closing__quote {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(22px, 3.1vw, 32px);
  line-height: 1.4;
  color: var(--teal-deep);
  margin: 0;
  white-space: nowrap;
}

.closing__wish {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.6;
  color: var(--cacao);
}

.closing__signature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.closing__rule {
  width: 26px;
  height: 1px;
  background: var(--hairline-signature);
}

.closing__signature-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.closing__wave {
  display: block;
  width: 100%;
  max-width: 840px;
  height: auto;
  margin-top: 10px;
}

/* Footer */

.site-footer {
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 64px 28px 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
}

.site-footer a {
  color: var(--ink-soft);
  transition: color 150ms ease;
}

.site-footer a:hover {
  color: var(--teal-deep);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.footer-links__coffee {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-links__button {
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

.footer-links__button:hover {
  color: var(--teal-deep);
}

/* Consent banner */

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--card);
  border-top: 1px solid var(--hairline-card);
  box-shadow: 0 -4px 16px rgba(74, 44, 27, 0.08);
}

.consent-banner__inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-banner__text {
  margin: 0;
  flex: 1 1 380px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.consent-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn--primary {
  background: var(--cacao);
  border: 1px solid var(--cacao);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--cacao-dark);
  border-color: var(--cacao-dark);
}

.btn--outline {
  background: var(--card);
  border: 1px solid var(--hairline-chip);
  color: var(--cacao);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
}

@media (max-width: 520px) {
  .consent-banner__inner {
    padding: 16px 20px;
  }

  .consent-banner__actions {
    width: 100%;
  }

  .btn {
    flex: 1;
  }
}

/*
 * The hero subtitle and the closing quote are one line (white-space:
 * nowrap) per the design spec, which asked them to shrink rather than wrap
 * on narrow screens. Measured 2026-10-01: that can't work on phones -- at
 * 13px the subtitle is 418px wide and the quote 331-361px, while the phone
 * column is 264-374px, so both ran off-screen and the whole page scrolled
 * sideways on every phone. Fitting one line would need ~9-10px text. So
 * below 600px (the members-grid breakpoint) they wrap into balanced lines
 * at a readable size instead. Desktop keeps the one-line spec.
 */
@media (max-width: 600px) {
  .page-main {
    padding-top: 24px;
  }

  /* Shorter photo on phones so the first member card's title reaches the
     first screen (vase still fully visible). */
  .home-banner img {
    height: 150px;
  }

  .hero + .members-grid {
    margin-top: -32px; /* 32px on phones */
  }

  .hero p {
    font-size: 15px;
    white-space: normal;
    text-wrap: balance;
  }

  .closing__quote {
    font-size: 20px;
    white-space: normal;
    text-wrap: balance;
  }

  .closing__wish {
    text-wrap: balance; /* no lone "ahead." on the last line */
  }
}
