/* Cafe-Vibes — quiet elegance in cream, espresso and warm café colors. */

@font-face { font-family: "Syne"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/syne-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Syne"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/syne-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #f8eadd;
  --paper-2: #efddca;
  --field: #fffaf5;
  --ink: #3e2723;
  --mute: #755c51;
  --rule: #d7b899;
  --signal: #c56f4e;
  --signal-text: #8f452f;
  --sage: #8f9f7e;
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 0.9rem; border-radius: 4px; z-index: 50;
  text-decoration: none; font-size: 0.9rem;
}
.skip:focus { top: 1rem; }

/* ---------- shared ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.5rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }

.lede {
  color: var(--mute);
  font-size: clamp(1.0625rem, 1.2vw, 1.125rem);
  line-height: 1.6;
  max-width: 42ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: #583b32; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.wide { width: 100%; }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 26%; }
.brand span { white-space: nowrap; }

.top-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; }
.top-nav a { text-decoration: none; color: var(--mute); }
.top-nav a:hover { color: var(--ink); }
.top-nav .top-cta {
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.top-nav .top-cta:hover { background: var(--ink); color: var(--paper); }
.top-nav a:not(.top-cta) { display: none; }

@media (min-width: 720px) {
  .top { min-height: 76px; }
  .top-nav a:not(.top-cta) { display: inline; }
}

/* ---------- hero ---------- */
.hero {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 8vw, 7rem);
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy { animation: rise 0.6s var(--ease) both; }

h1 {
  font-weight: 700;
  font-size: clamp(2.5rem, 3.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 18ch;
}

.hero .lede { margin-top: 1.6rem; }
.hero .btn { margin-top: 2.2rem; }

.where {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--mute);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }

.hero-photo { margin: 0; animation: rise 0.7s var(--ease) 0.08s both; }
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 65%;
  border-radius: 8px;
  background: var(--paper-2);
}

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: clamp(3rem, 6vw, 5rem); }
  .hero-photo img { aspect-ratio: 4 / 5; max-height: 600px; object-position: 50% 50%; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- how ---------- */
.how {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px;
}
.how-head, .steps {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}
.how-head { padding-top: clamp(3.5rem, 7vw, 6rem); }
h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  max-width: 16ch;
}

.steps {
  list-style: none;
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.steps li { display: grid; gap: 0.55rem; align-content: start; }
.num { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--mute); font-weight: 500; }
.steps h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.steps p { color: var(--mute); max-width: 34ch; }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .steps li { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
}

/* ---------- join ---------- */
.join {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7rem);
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
  scroll-margin-top: 80px;
}

.join .lede { margin-top: 1.4rem; }
.axes { margin-top: 1.4rem; max-width: 42ch; }

.rules {
  list-style: none;
  margin-top: 2.5rem;
  max-width: 42ch;
  border-top: 1px solid var(--rule);
}
.rules li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--mute);
}
.rules li span { color: var(--ink); font-weight: 500; }

@media (min-width: 960px) {
  .join { grid-template-columns: 0.95fr 1.05fr; gap: clamp(3rem, 7vw, 6rem); }
  .join-copy { position: sticky; top: 100px; }
}

/* ---------- form ---------- */
.panel {
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 560px;
}

.panel-title { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 1.6rem; }

.field { border: 0; margin-bottom: 1.35rem; min-width: 0; }
.field > label, .field > legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.field > label small { color: var(--mute); font-weight: 400; font-size: 0.85rem; }

input[type="email"], textarea {
  width: 100%;
  min-height: 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease);
}
input[type="email"]:focus, textarea:focus { border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--signal); }
textarea { resize: vertical; min-height: 5.5rem; }
::placeholder { color: var(--mute); opacity: 1; }

.count { margin-top: 0.4rem; font-size: 0.8rem; color: var(--mute); text-align: right; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.choices.three { grid-template-columns: 1fr; }
@media (min-width: 480px) { .choices.three { grid-template-columns: repeat(3, 1fr); } }

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 0.925rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice:has(input:focus-visible),
.choice:has(input[aria-invalid="true"]:focus) { outline: 2px solid var(--ink); outline-offset: 3px; }

.form-msg { margin-top: 0.9rem; font-size: 0.925rem; min-height: 1.4em; }
.form-msg.err { color: var(--signal-text); }
.form-msg.ok { color: var(--ink); }

.helper { margin-top: 0.9rem; font-size: 0.85rem; color: var(--mute); }

/* success panel — same footprint as the form */
.done {
  background: var(--field);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: rise 0.45s var(--ease) both;
}
.done img { width: 40px; height: 40px; margin-bottom: 1.4rem; border-radius: 26%; }
.done h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 0.9rem; }
.done p { color: var(--mute); max-width: 36ch; }
.done .who { margin-top: 1.4rem; color: var(--ink); font-weight: 500; word-break: break-all; }
.done .meta { margin-top: 0.3rem; font-size: 0.875rem; }
.done .again {
  margin-top: 1.6rem;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.done .again:hover { color: var(--ink); }

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--rule);
  padding: 2.5rem var(--gutter) 3.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--mute);
}
.foot-brand { font-family: var(--display); font-weight: 700; color: var(--ink); }

/* ---------- honeypot ---------- */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .hero-photo, .done { animation: none; }
  .btn, .choice, .top-cta, input, textarea { transition: none; }
}


/* waitlist → invite funnel (2026-09-07) */
.hero-invite {
  margin-top: 1rem;
  max-width: 38ch;
  font-size: 0.9rem;
  color: var(--mute);
  line-height: 1.5;
}
.invite-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.invite-link:hover { color: var(--signal-text); }
.invite-aside { margin-top: 1.4rem; max-width: 42ch; }
.done .invite-next {
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--mute);
  max-width: 32ch;
}
.foot-preview {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--mute);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.foot-preview:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
