/*
  On the Tee — shared styles.
  Palette and type mirror the app's "Clubhouse" design language:
  warm parchment pages, deep forest-green chrome, restrained brass accents,
  serif type throughout.

  Contrast rule carried over from the app: --ink / --ink-soft only ever sit on
  light backgrounds, --on-green / --on-green-soft only ever on green. The two
  families never mix.
*/

:root {
  /* Light surfaces — the default canvas. */
  --page: #f4efe3;
  --page-deep: #eae3d2;
  --surface: #fcf9f2;
  --surface-sunken: #efe9da;

  /* Greens — chrome, primary actions, selected states. */
  --green: #0d3b2b;
  --green-mid: #1a5b43;
  --green-tint: #e2ede6;

  /* Brass — accents and hairlines. */
  --gold: #9c7b26;
  --gold-bright: #c9a961;
  --hairline: #d8cdb4;

  /* Text. */
  --ink: #1e1a13;
  --ink-soft: #5b5343;
  --on-green: #f4efe3;
  --on-green-soft: #c3baa4;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --measure: 68ch;
  --shell: 940px;

  /* Local stacks only — no webfont CDN, so no third-party request is made
     just to read the privacy policy. */
  --font-display: "Didot", "Bodoni 72", "Bodoni MT", "Baskerville", Georgia, serif;
  --font-body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-plaque: "Copperplate", "Copperplate Gothic Light", Georgia, serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, var(--page), var(--page-deep));
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Ornaments ---------- */

.plaque {
  display: block;
  font-family: var(--font-plaque);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.plaque--flanked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.plaque--flanked::before,
.plaque--flanked::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(156, 123, 38, 0.55);
}

.rule {
  width: 44px;
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(156, 123, 38, 0.55);
}

/* ---------- Header ---------- */

.masthead {
  background: var(--green);
  border-bottom: 1px solid rgba(201, 169, 97, 0.5);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--on-green);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--gold-bright);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-plaque);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-green-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--on-green);
  background: rgba(244, 239, 227, 0.1);
}

.nav a[aria-current="page"] {
  color: var(--green);
  background: var(--gold-bright);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(48px, 9vw, 88px) 0 clamp(36px, 6vw, 64px);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 11vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero__lede {
  max-width: 34rem;
  margin: 0 auto;
  font-size: clamp(1.05rem, 3.4vw, 1.24rem);
  color: var(--ink-soft);
  line-height: 1.6;
}

.hero__crest {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px var(--page), 0 0 0 9px rgba(201, 169, 97, 0.55);
}

.hero__crest svg {
  width: 56px;
  height: 56px;
  fill: var(--gold-bright);
}

/* ---------- Page headers (privacy / support) ---------- */

.page-head {
  padding: clamp(38px, 7vw, 64px) 0 clamp(20px, 4vw, 32px);
  text-align: center;
}

.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 12px;
}

.page-head p {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--ink-soft);
}

.stamp {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-plaque);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(34px, 6vw, 58px) 0;
}

.section--sunken {
  background: rgba(239, 233, 218, 0.6);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section__head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 38px);
}

.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.section__head p {
  max-width: 34rem;
  margin: 10px auto 0;
  color: var(--ink-soft);
}

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

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

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

/* Numbered "how it works" steps. */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 30px 22px 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--page);
}

.steps h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin: 0 0 6px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Voice list. */
.voices {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.voices li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold-bright);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.voices strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 700;
}

.voices span {
  color: var(--ink-soft);
  font-size: 0.93rem;
}

/* ---------- Prose (policy / support copy) ---------- */

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding-bottom: 20px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 40px 0 6px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.prose h2:first-of-type {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 24px 0 4px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--green-mid);
  text-decoration-color: rgba(26, 91, 67, 0.4);
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--gold);
}

.callout {
  background: var(--green-tint);
  border: 1px solid rgba(26, 91, 67, 0.22);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
  color: var(--ink);
}

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

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: opacity 0.12s ease;
}

.btn:active {
  opacity: 0.85;
}

.btn--primary {
  background: var(--green);
  color: var(--on-green);
  border-color: rgba(201, 169, 97, 0.5);
}

.btn--primary:hover {
  background: var(--green-mid);
}

.btn--secondary {
  background: var(--surface);
  color: var(--green);
  border-color: rgba(13, 59, 43, 0.35);
}

.btn--secondary:hover {
  background: var(--green-tint);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--green);
  color: var(--on-green-soft);
  padding: 34px 0;
  margin-top: clamp(40px, 7vw, 72px);
  text-align: center;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: center;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer a {
  color: var(--on-green);
  text-decoration: none;
  font-family: var(--font-plaque);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer a:hover {
  color: var(--gold-bright);
}

.footer small {
  display: block;
  font-size: 0.85rem;
  color: var(--on-green-soft);
}

/* ---------- Accessibility ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .masthead__inner {
    justify-content: center;
  }

  .card,
  .steps li {
    padding-left: 18px;
    padding-right: 18px;
  }
}
