/* Coffee Club — shared styles. Mobile-first. */
:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --card: #fffdf8;
  --ink: #191612;
  --ink-2: #3d372f;
  --ink-3: #7a7266;
  --line: #d9d1c0;
  --red: #c8401f;
  --red-2: #a63316;
  --jade: #1f6f5c;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 18px;
  --shadow: 0 1px 0 rgba(25,22,18,.04), 0 12px 40px -18px rgba(25,22,18,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { /* paper grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; font-variation-settings: 'opsz' 144, 'SOFT' 30; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.eyebrow { font: 700 12px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.serif-i { font-family: var(--display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .2s, color .2s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(25,22,18,.6); }
.btn:active { transform: translateY(0); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: var(--red-2); border-color: var(--red-2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--paper) 80%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark b { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; font-variation-settings: 'opsz' 60; }
.wordmark span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.nav-links { display: none; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--red); }
@media (min-width: 820px) { .nav-links { display: flex; } .wordmark span { display: inline; } }
@media (max-width: 819px) { .wordmark span { display: none; } }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s } .reveal.d2 { animation-delay: .18s } .reveal.d3 { animation-delay: .3s } .reveal.d4 { animation-delay: .42s } .reveal.d5 { animation-delay: .56s }
@keyframes rise { to { opacity: 1; transform: none; } }
.io { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.io.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .io { animation: none; opacity: 1; transform: none; transition: none; } }

/* Forms (shared with join page) */
.field { display: grid; gap: 8px; }
.field label, .field .lbl { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--ink-3); margin-top: -4px; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; min-height: 52px; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(25,22,18,.08); }
.field.err .input, .field.err .select { border-color: var(--red); }
.select { background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23191612' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-weight: 600; font-size: 15px; transition: all .18s var(--ease); user-select: none;
}
.chip span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: all .18s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:checked + span::before { background: var(--red); box-shadow: 0 0 0 3px rgba(200,64,31,.35); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(25,22,18,.15); }
.chips.big { display: grid; gap: 10px; grid-template-columns: 1fr; }
.chips.big .chip span { width: 100%; min-height: 64px; border-radius: 14px; padding: 14px 18px; align-items: flex-start; flex-direction: column; gap: 2px; }
.chips.big .chip span::before { display: none; }
.chips.big .chip small { font-weight: 500; font-size: 14px; opacity: .75; }
.chips.big .chip input:checked + span { box-shadow: inset 0 0 0 1.5px var(--red); }
@media (min-width: 560px) { .chips.big { grid-template-columns: 1fr 1fr; } }
.field.err .chips .chip span { border-color: var(--red); }
.errmsg { color: var(--red); font-size: 14px; font-weight: 600; display: none; }
.field.err .errmsg { display: block; }
