/* Vaulted landing page
   Order: tokens, base, layout and section templates, components, sections, privacy page.
   Every color, size and spacing value below the tokens block references a variable. */

/* 1. Tokens */
:root {
  /* Colors */
  --cream: #f8f4eb;
  --cream-deep: #eee8db;
  --paper: #fffdf8;
  --ink: #171a16;
  --green: #0e392c;
  --green-deep: #08271f;
  --gold: #b99127;
  --gold-on-light: #806311; /* eyebrows and numbers on cream and cream-deep; 5.2:1 on cream, 4.6:1 on cream-deep */
  --muted: #686a62;
  --line: #d8d0c0;

  /* Type */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --text-hero: clamp(48px, 7vw, 88px);
  --text-section: clamp(36px, 4.5vw, 56px);
  --text-card: 26px;
  --text-body: 17px;
  --text-small: 13px;
  --text-control: 15px; /* buttons and inputs (brief: button label 15px) */
  --leading-hero: 1;
  --leading-section: 1.05;
  --leading-card: 1.2;
  --leading-body: 1.6;
  --leading-tight: 1.2;
  --tracking-eyebrow: 0.18em;
  --measure: 36em; /* comfortable paragraph width, about 62 characters at body size */

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
  --space-7: 128px;
  --section-pad: var(--space-6);
  --hero-pad: var(--section-pad);

  /* Grid */
  --content-max: 1200px;
  --page-pad: 48px;
  --gutter: 32px;

  /* Components */
  --hairline: 1px;
  --focus-ring: 2px;
  --focus-offset: 3px;
  --button-pad-x: 28px;
  --logo-header: 140px;
  --logo-footer: 120px;
  --hero-image-ratio: 16 / 9;
  --list-number-col: var(--space-5);
  --fade: 600ms;
  --soft-opacity: 0.8;
  --disabled-opacity: 0.6;
  --rule-on-green: color-mix(in srgb, var(--cream) 20%, transparent);
}

@media (max-width: 720px) {
  :root {
    --section-pad: var(--space-5);
    --page-pad: var(--space-3);
    --list-number-col: var(--space-4);
  }
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: var(--hairline);
  text-underline-offset: var(--focus-offset);
}

button,
input {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: var(--focus-ring) solid var(--green);
  outline-offset: var(--focus-offset);
}

.on-green :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 10;
  padding: var(--space-1) var(--space-2);
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: var(--hairline);
  height: var(--hairline);
  margin: calc(var(--hairline) * -1);
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout and the two section templates */
.shell {
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--page-pad));
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

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

.section-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: var(--space-5);
  align-items: start;
}

/* Section header pattern: eyebrow, heading, optional intro. Always first, always left aligned. */
.section-header > * + * {
  margin-top: var(--space-2);
}

.section-header .intro {
  margin-top: var(--space-3);
}

/* Template A: heading top, content below */
.template-a .section-header,
.template-a .section-content {
  grid-column: 1 / -1;
}

/* Template B: heading left (columns 1 to 5), content right (columns 7 to 12) */
.template-b .section-header {
  grid-column: 1 / 6;
  position: sticky;
  top: var(--space-4);
}

.template-b .section-content {
  grid-column: 7 / -1;
}

@media (max-width: 720px) {
  /* Below 720px everything is a single column */
  .section-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .template-b .section-header,
  .template-b .section-content {
    grid-column: 1 / -1;
  }

  .template-b .section-header {
    position: static;
  }
}

/* Backgrounds */
.band-tinted {
  background: var(--cream-deep);
}

.on-green {
  background: var(--green);
  color: var(--cream);
}

/* 4. Components */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold-on-light);
}

.on-green .eyebrow,
.on-green .number {
  color: var(--gold);
}

.section-heading {
  font-family: var(--font-serif);
  font-size: var(--text-section);
  font-weight: 400;
  line-height: var(--leading-section);
}

.hero-heading {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: var(--leading-hero);
  max-width: 7em; /* breaks "Invest in what" / "you love." */
}

.card-heading {
  font-family: var(--font-serif);
  font-size: var(--text-card);
  font-weight: 500;
  line-height: var(--leading-card);
}

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

.intro {
  color: var(--muted);
}

.on-green .intro {
  color: var(--cream);
}

.number {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--gold-on-light);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--button-pad-x);
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--text-control);
  font-weight: 600;
  line-height: var(--leading-tight);
  text-decoration: none;
  white-space: nowrap;
  border: var(--hairline) solid var(--green);
  border-radius: 0;
  cursor: pointer;
  transition: background-color var(--fade) ease, border-color var(--fade) ease;
}

.button:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.button:disabled {
  opacity: var(--disabled-opacity);
  cursor: default;
}

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

.button-secondary:hover {
  background: var(--cream-deep);
  border-color: var(--ink);
}

/* 5. Header */
.site-header {
  padding-block: var(--space-3);
  border-bottom: var(--hairline) solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.brand img {
  width: var(--logo-header);
  height: auto;
}

@media (max-width: 720px) {
  .site-header .button {
    display: none;
  }
}

/* 6. Hero (Template A, own vertical padding, copy and form on top, gallery image and trust strip below) */
.hero {
  padding-block: var(--hero-pad);
}

.hero .section-inner {
  row-gap: var(--space-4);
}

.hero .section-header {
  grid-column: 1 / 8; /* text block limited to 7 of 12 columns */
}

.hero-subhead {
  color: var(--muted);
}

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

.hero-copy p {
  max-width: var(--measure);
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: var(--hero-image-ratio);
  border: var(--hairline) solid var(--line);
  background: var(--paper);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trust strip: not a section, sits tight under the hero image with --space-4 above and below */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin-top: calc(-1 * var(--space-4)); /* cancels the hero grid row gap */
  padding: var(--space-4) 0;
  text-align: center;
}

.trust-strip li {
  padding: 0 var(--space-2);
}

.trust-strip li + li {
  border-left: var(--hairline) solid var(--line);
}

@media (max-width: 720px) {
  .hero .section-header {
    grid-column: 1 / -1;
  }

  /* Hero image runs edge to edge on phones */
  .hero-image {
    width: calc(100% + 2 * var(--page-pad));
    margin-inline: calc(-1 * var(--page-pad));
  }

  .trust-strip li {
    padding: var(--space-1) var(--space-2);
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip li:nth-child(3) {
    border-left: 0;
  }

  .trust-strip li:nth-child(n + 3) {
    border-top: var(--hairline) solid var(--line);
  }
}

/* Why this exists: big number left, heading and body right */
.stat-number {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: var(--leading-hero);
}

.stat-caption {
  font-size: var(--text-small);
  color: var(--muted);
  max-width: var(--measure);
}

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

  .button {
    transition: none;
  }
}

/* 7. How ownership will work (Template A, four cards) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4) var(--gutter);
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-3);
  border-top: var(--hairline) solid var(--line);
}

.card p:not(.number) {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 8. Clear ownership and Have a collection (Template B, paragraph) */
.prose > * + * {
  margin-top: var(--space-3);
}

/* 9. FAQ (Template B, native details and summary) */
.faq details {
  border-top: var(--hairline) solid var(--line);
}

.faq details:last-child {
  border-bottom: var(--hairline) solid var(--line);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-3);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-serif);
  font-size: var(--text-card);
  line-height: var(--leading-card);
  color: var(--gold-on-light);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  padding-bottom: var(--space-3);
  max-width: var(--measure);
}

/* 10. What we hold ourselves to (Template B, numbered list) */
.standards {
  list-style: none;
  padding: 0;
}

.standards li {
  display: grid;
  grid-template-columns: var(--list-number-col) minmax(0, 1fr);
  column-gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: var(--hairline) solid var(--line);
}

.standards li:last-child {
  border-bottom: var(--hairline) solid var(--line);
}

.standards .number {
  padding-top: var(--space-1);
}

.standards p {
  margin-top: var(--space-1);
  color: var(--muted);
}

/* 11. Signup forms (hero and Request early access) */
.signup-form {
  margin-top: var(--space-4);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.field {
  flex: 1 1 14em;
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: var(--space-2);
  background: var(--paper);
  border: var(--hairline) solid var(--line);
  border-radius: 0;
  font-size: var(--text-control);
  line-height: var(--leading-tight);
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:hover {
  border-color: var(--ink);
}

.fine-print {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--muted);
}

.form-status {
  margin-top: var(--space-2);
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

@media (max-width: 720px) {
  .form-row .button {
    width: 100%;
    justify-content: center;
  }
}

/* Thank-you block (replaces a submitted form) */
.thanks {
  margin-top: var(--space-4);
}

.thanks > * + * {
  margin-top: var(--space-2);
}

.thanks .form-row {
  margin-top: var(--space-3);
}

/* Sticky bar: phones only, fixed to the bottom */
.sticky-bar {
  display: none;
}

@media (max-width: 720px) {
  .sticky-bar {
    display: block;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 5;
    padding: var(--space-2) var(--page-pad);
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--green);
  }

  .sticky-bar[hidden] {
    display: none;
  }

  .sticky-bar .button {
    width: 100%;
    justify-content: center;
    background: var(--cream);
    color: var(--green);
    border-color: var(--cream);
  }

  .sticky-bar .button:hover {
    background: var(--cream-deep);
    border-color: var(--cream-deep);
  }

  body.has-sticky-bar {
    padding-bottom: var(--space-6);
  }
}

/* 12. Footer */
.site-footer {
  padding-block: var(--space-5);
  background: var(--green-deep);
  color: var(--cream);
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.footer-brand img {
  width: var(--logo-footer);
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--hairline) solid var(--rule-on-green);
  font-size: var(--text-small);
  opacity: var(--soft-opacity);
}

.footer-legal p {
  max-width: var(--measure);
}

/* 13. Privacy page (Template A) */
.privacy-content {
  max-width: var(--measure);
}

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

.privacy-content .button {
  margin-top: var(--space-4);
}
