/* Habit of Light v3: founding-page layout. Sunset gold + sand only.
   DM Serif Display for headings, DM Sans for everything else. */
@font-face {
  font-family: "DM Serif Display";
  src: url("fonts/dm-serif-display.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  --gold: #D7A44A;        /* sunset gold: buttons, marks */
  --deep-gold: #B9852E;   /* gold on light backgrounds */
  --honey: #E9C77D;       /* hover, wordmark on dark */
  --glow: #FFF4D8;        /* the light in the sweep */
  --pale-gold: #F4E3B7;
  --sand: #D8C6A7;        /* rules */
  --light-sand: #F1E8DA;  /* alternate sections */
  --chalk: #FBF8F1;       /* page */
  --paper: #FFFDF8;       /* letter card */
  --ink: #3B3025;         /* text, warm dark band */
  --ink-soft: #6A5C4C;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(72px, 10vw, 128px);
  --btn-radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chalk); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.nw { white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.tone-sand { background: var(--light-sand); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--chalk); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Type scale */
.eyebrow {
  font: 600 13px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  margin: 0 0 18px; color: var(--chalk);
}
.eyebrow-dark { color: var(--ink); }
.h-display { font-size: clamp(34px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -0.005em; margin-bottom: 20px; }
.h-small { font-size: clamp(22px, 2vw, 26px); line-height: 1.25; margin-bottom: 28px; }

/* Light sweep across the wordmark (gold lettering, a soft band of light passes every few seconds) */
.shine {
  color: var(--honey);
  background: linear-gradient(100deg,
    var(--honey) 0%, var(--honey) 38%, var(--glow) 47%, #FFFFFF 50%, var(--glow) 53%, var(--honey) 62%, var(--honey) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sweep 6s ease-in-out 1s infinite;
}
@keyframes sweep {
  0% { background-position: 100% 0; }
  35%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .shine { animation: none; background: none; -webkit-text-fill-color: var(--honey); color: var(--honey); }
}
@media (forced-colors: active) {
  .shine { background: none; -webkit-text-fill-color: currentColor; }
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border: 1px solid var(--gold); border-radius: var(--btn-radius);
  background: var(--gold); color: var(--ink);
  font: 500 17px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: var(--honey); border-color: var(--honey); }
.btn-ghost { background: transparent; color: var(--chalk); border-color: rgba(251, 248, 241, .85); }
.btn-ghost:hover { background: rgba(251, 248, 241, .14); border-color: var(--chalk); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.text-link { display: inline-block; font-size: 15px; text-decoration: underline; text-decoration-color: rgba(251, 248, 241, .7); }
.text-link-dark { font-size: 16px; text-decoration: none; padding: 0 0 8px; border-bottom: 1px solid var(--ink); min-width: 170px; }
.text-link-dark span { float: right; margin-left: 24px; }

/* Header, sitting over the hero */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; max-width: none; }
.wordmark { font-family: var(--serif); font-size: 32px; line-height: 1.1; text-decoration: none; margin: 0; letter-spacing: .005em; }
.header-link { color: var(--chalk); font-size: 16px; text-decoration: none; }
.header-link:hover { text-decoration: underline; text-decoration-color: var(--honey); }

/* 1. Hero */
.hero { position: relative; min-height: max(620px, min(100svh, 900px)); display: grid; place-items: center; text-align: center; color: var(--chalk); overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 55% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(48, 34, 20, .50) 0%, rgba(48, 34, 20, .30) 34%, rgba(48, 34, 20, .36) 70%, rgba(48, 34, 20, .52) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 120px var(--gutter) 72px; max-width: 900px; }
.hero h1 { color: var(--chalk); font-size: clamp(50px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 26px; text-shadow: 0 2px 28px rgba(40, 28, 16, .35); }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); margin-bottom: 30px; text-shadow: 0 1px 12px rgba(40, 28, 16, .45); }
.hero-note, .hero .text-link, .hero .eyebrow { text-shadow: 0 1px 10px rgba(40, 28, 16, .45); }
.hero-note { font-size: 15px; margin: 34px 0 6px; opacity: .92; }

/* 2. Overview and cards */
.overview-head { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.overview-line { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 34em; margin: 0; }
.overview-aside { font-size: 15px; color: var(--ink-soft); max-width: 280px; }
.overview-aside p { margin-bottom: 14px; }
.overview-aside .text-link-dark { color: var(--ink); }
.rule { border: 0; border-top: 1px solid var(--sand); margin: 56px 0 52px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card picture img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.card details { border-bottom: 1px solid var(--sand); }
.card summary, .benefits summary, .faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.card summary::-webkit-details-marker, .benefits summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.card summary::after, .benefits summary::after, .faq summary::after { content: "+"; font-size: 20px; font-weight: 300; line-height: 1; }
.card details[open] summary::after, .benefits[open] summary::after, .faq details[open] summary::after { content: "\2212"; }
.card summary { font-size: 17px; padding: 16px 0 14px; }
.card details p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }

.formats { margin-top: 72px; }
.format-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.format-list li { border-top: 1px solid var(--sand); padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.format-time { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--deep-gold); }
.format-name { font-weight: 600; font-size: 16px; margin-top: 6px; }
.format-text { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* 3. Letter */
.letter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.letter h2.eyebrow { font-family: var(--sans); }
.letter-card { background: var(--paper); padding: clamp(28px, 4vw, 44px); font-size: 16px; line-height: 1.8; box-shadow: 0 1px 0 rgba(59, 48, 37, .04); }
.letter-card p { margin-bottom: 1.1em; }
.sign-off { margin-top: 1.6em; }
.signature { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--deep-gold); margin: 6px 0 0 !important; }
.invite { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.invite img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink); }
.invite-rule { display: block; width: 64px; height: 2px; background: var(--deep-gold); margin-bottom: 26px; }
.invite-word { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 72px); line-height: 1; margin: 0 0 14px; }
.invite-small { font: 600 13px/1.6 var(--sans); letter-spacing: .24em; text-transform: uppercase; margin: 0; }

/* 4. Inside the studio */
.inside .h-display { margin-bottom: 48px; }
.wide-photo { --edge: max(0px, calc(var(--gutter) - 32px)); position: relative; margin: 0 auto; max-width: calc(var(--wrap) + 64px + 2 * var(--edge)); padding: 0 var(--edge); }
.wide-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wide-photo figcaption {
  position: absolute; left: var(--edge); right: var(--edge); bottom: 0;
  padding: 120px clamp(24px, 4vw, 48px) clamp(24px, 3vw, 40px); color: var(--chalk);
  background: linear-gradient(180deg, rgba(48, 34, 20, 0) 0%, rgba(48, 34, 20, .72) 100%);
}
.wide-photo figcaption h3 { font-size: clamp(32px, 3.4vw, 42px); color: var(--chalk); margin-bottom: 8px; }
.wide-photo figcaption p { margin: 0; max-width: 36em; }
.pillar-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; padding-top: 72px; padding-bottom: 56px; }
.pillar-row h3, .pillar-pair h3 { font-size: clamp(32px, 3.4vw, 42px); line-height: 1.1; }
.pillar-row p { margin: 6px 0 0; max-width: 34em; }
.pillar-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 64px; }
.pillar-pair > div { border-top: 1px solid var(--sand); padding-top: 28px; }
.pillar-pair h3 { margin-bottom: 14px; }
.pillar-pair p { margin: 0; }

/* 5. Founding membership */
.founding-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 88px); align-items: start; }
.founding-intro { padding-top: 26px; }
.founding-note { color: var(--ink-soft); max-width: 24em; margin: 8px 0 0; }
.panel { border-top: 1px solid var(--sand); padding-top: 26px; }
.tiers { list-style: none; margin: 4px 0 18px; padding: 0; }
.tier { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; color: var(--ink-soft); font-size: 16px; }
.tier + .tier { border-top: 1px dashed var(--sand); }
.tier-price { white-space: nowrap; }
.tier .amount { font-family: var(--serif); font-size: 28px; color: var(--ink); margin-right: 2px; }
.tier-first { color: var(--ink); }
.tier-first .amount { font-size: 46px; line-height: 1; }
.panel-line { margin: 0 0 6px; }
.benefits { border-bottom: 1px solid var(--sand); margin-bottom: 22px; }
.benefits summary { padding: 14px 0; }
.benefits ul { margin: 0 0 16px; padding-left: 20px; font-size: 15px; color: var(--ink-soft); }
.deposit-text { font-size: 15px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 22px; }
.deposit-text strong { color: var(--ink); font-weight: 600; }
.panel .btn { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.panel .btn:hover { background: #4E4033; border-color: #4E4033; }

/* 6. Email list */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 88px); align-items: center; }
.join-grid > div > p:last-child { margin: 0; color: var(--ink-soft); max-width: 28em; }
.fields { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px 2px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--sand); border-radius: var(--btn-radius);
  background: var(--paper); color: var(--ink); font: 400 17px/1.2 var(--sans);
}
.field input:hover { border-color: #C4AE88; }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: #9A5A1C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 16px; margin: 12px 0 0; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #8A4B14; }
.signup.is-done .fields, .signup.is-done button, .signup.is-done .fine { display: none; }
.signup.is-done .form-msg { background: var(--paper); padding: 20px 22px; border-left: 3px solid var(--gold); margin: 0; }
.thanks-title { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-bottom: 4px; }
.fine { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; }

/* 7. FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 48px; }
.faq-list details { border-top: 1px solid var(--sand); }
.faq-list details:last-child { border-bottom: 1px solid var(--sand); }
.faq summary { padding: 20px 0; font-size: 18px; }
.faq details p { color: var(--ink-soft); margin: 0 0 22px; max-width: 40em; }

/* Footer: warm dark band so the gold sweep reads as light */
.site-footer { background: var(--ink); color: #E8DCCB; padding: 80px 0 48px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; }
.wordmark-large { font-size: clamp(44px, 6vw, 72px); margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: end; justify-items: end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--honey); }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid rgba(232, 220, 203, .2); padding-top: 24px; font-size: 13px; color: #BFAF98; max-width: 60em; }
.footer-fine p { margin-bottom: .6em; }

/* Tablet */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .letter-grid, .founding-grid, .join-grid, .faq-grid { grid-template-columns: 1fr; }
  .invite { aspect-ratio: 4 / 3; }
  .overview-head { grid-template-columns: 1fr; gap: 28px; }
  .format-list { grid-template-columns: 1fr; gap: 20px; }
  .pillar-row { grid-template-columns: 1fr; gap: 10px; padding-top: 56px; padding-bottom: 40px; }
  .pillar-pair { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
}

/* Phone */
@media (max-width: 600px) {
  .header-inner { height: 76px; }
  .wordmark { font-size: 26px; }
  .header-link { font-size: 14px; }
  .hero-copy { padding-top: 110px; }
  .hero .btn { width: 100%; max-width: 340px; }
  .rule { margin: 40px 0 36px; }
  .card summary { font-size: 16px; }
  .wide-photo img { aspect-ratio: 4 / 5; }
  .wide-photo figcaption { padding-top: 90px; }
  .fields { grid-template-columns: 1fr; }
  .tier-first .amount { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-items: start; }
}

/* v4: hero "what it is" line, struck full price */
.hero-what { font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; margin: -6px auto 14px; font-weight: 500; text-shadow: 0 1px 12px rgba(40, 28, 16, .5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.full-price { font-family: var(--serif); font-size: 20px; color: var(--ink-soft); opacity: .7; margin-right: 8px; text-decoration-thickness: 1.5px; text-decoration-color: var(--deep-gold); }
.panel-full { color: var(--ink-soft); font-size: 15px; }

/* v5: headshot, terms, tagline */
[hidden] { display: none !important; }
.tagline { font-weight: 500; }
.site-footer .tagline { color: #F1E6D4; font-size: 17px; margin-bottom: 4px; }
.signup-inline .fields { grid-template-columns: 1fr 1.35fr auto; align-items: end; margin-bottom: 0; }
.signup-inline .btn { min-height: 52px; white-space: nowrap; }
.signup.is-done.signup-inline .fields { display: none; }
.headshot { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 0 22px; }
.headshot-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: var(--light-sand); border: 1px dashed var(--deep-gold); color: var(--deep-gold);
  font-size: 13px; line-height: 1.3;
}
.panel-terms { font-size: 14px; margin: 16px 0 0; color: var(--ink-soft); }
.terms-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 48px; }
.terms-list { margin: 0; }
.terms-list > div { display: grid; grid-template-columns: 11em 1fr; gap: 8px 32px; border-top: 1px solid var(--sand); padding: 18px 0; }
.terms-list > div:last-child { border-bottom: 1px solid var(--sand); }
.terms-list dt { font-weight: 600; }
.terms-list dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 900px) {
  }
@media (max-width: 600px) {
  .signup-inline .fields { grid-template-columns: 1fr; }
  .signup-inline .btn { width: 100%; }
  .terms-list > div { grid-template-columns: 1fr; gap: 4px; }
}
.terms { padding-top: 0; }
.terms-grid { border-top: 1px solid var(--sand); padding-top: clamp(48px, 6vw, 72px); }

/* v6: email signup in the hero, blended into the photo */
.signup-hero { max-width: 640px; margin: 22px auto 0; }
.signup-hero .fields { grid-template-columns: 1fr 1.3fr auto; align-items: end; gap: 10px; margin: 0; }
.signup-hero .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup-hero .field input {
  min-height: 50px; background: rgba(255, 244, 216, .12); color: var(--chalk);
  border: 1px solid rgba(255, 244, 216, .45); border-radius: var(--btn-radius);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.signup-hero .field input::placeholder { color: rgba(251, 248, 241, .78); }
.signup-hero .field input:hover { border-color: var(--honey); }
.signup-hero .field input:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; border-color: var(--honey); background: rgba(255, 244, 216, .2); }
.signup-hero .field input[aria-invalid="true"] { border-color: #F3C27A; }
.hero .btn-hero-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.hero .btn-hero-primary:hover { background: var(--honey); border-color: var(--honey); }
.hero .btn-hero-submit { min-height: 50px; white-space: nowrap; background: rgba(251, 248, 241, .1); border-color: rgba(251, 248, 241, .85); color: var(--chalk); width: auto; }
.hero .btn-hero-submit:hover { background: rgba(251, 248, 241, .2); border-color: var(--chalk); }
.hero-form-line { font-size: 15px; margin: 12px 0 0; opacity: .92; text-shadow: 0 1px 10px rgba(40, 28, 16, .5); }
.signup-hero .form-msg.is-error { color: var(--glow); }
.signup-hero.is-done .hero-form-line { display: none; }
.signup-hero.is-done .form-msg { background: rgba(255, 244, 216, .14); color: var(--chalk); border-left-color: var(--honey); text-align: left; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .hero-note { margin-top: 22px; }
@media (max-width: 600px) {
  .signup-hero .fields { grid-template-columns: 1fr; }
  .hero .btn-hero-submit { width: 100%; max-width: none; }
}
.terms-list > div:first-child { border-top: 0; padding-top: 0; }
.nowrap { white-space: nowrap; }

.footer-links .social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-links .social-link svg { color: var(--honey); flex: none; }

/* Founding switch: waitlist form shown in place of the deposit button when full */
.founding-waitlist .waitlist-line { margin: 0 0 14px; }
.founding-waitlist .fields { margin-bottom: 12px; }
[data-deposit][hidden], .founding-waitlist[hidden] { display: none; }
.founding-waitlist.is-done .waitlist-line { display: none; }
