/* getcardclub.app — matches the Card Club design system (tokens from src/lib/theme.ts). */
:root {
  --bg: #EDEBE1;          /* paper */
  --ink: #171717;
  --mute: #5C5A53;
  --rule: #CFCCC0;
  --surf: #F5F3EA;
  --red: #FF492D;         /* vermilion: a fill, never small text on paper */
  --olive: #B9C0AA;
  --kraft: #D9C9A8;
  --radius-sm: 3px;
  --radius-md: 4px;
  --shadow-cta: 4px 4px 0 #171717;
  --shadow-card: 0 10px 14px rgba(0,0,0,0.28);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* type */
.display { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.95; letter-spacing: 0; }
.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.09em; font-size: 11px; color: var(--mute); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; line-height: 1.15; }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--ink);
}
.wordmark { font-family: var(--font-display); font-size: 24px; text-decoration: none; text-transform: uppercase; line-height: 1; }
.nav { display: flex; gap: 22px; }
.nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* buttons: cut paper, not pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; color: var(--ink); background: transparent;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:active { transform: translateY(2px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-big { min-height: 60px; padding: 0 26px; font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 0; }
.btn-red { background: var(--red); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-cta); }
.btn-red:active { box-shadow: none; transform: translate(2px, 2px); }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
  padding: 64px 0 88px;
}
.hero .kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.label-box { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 6px 10px; }
.hero h1 { font-size: clamp(64px, 10vw, 128px); }
.hero .tagline { font-size: clamp(30px, 3.6vw, 42px); margin: 14px 0 20px; }
.hero .lede { max-width: 440px; font-size: 18px; color: var(--mute); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

/* card stack: real 340:208 business card proportions */
.stack { position: relative; height: 440px; }
.card {
  position: absolute; width: 340px; height: 208px; border-radius: 4px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.card-front { background: var(--surf); padding: 20px; }
.card-front .co { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.4px; text-transform: uppercase; }
.card-front .name { font-family: var(--font-display); font-size: 34px; line-height: 1.05; text-transform: uppercase; }
.card-front .role { font-size: 12px; }
.card-back { background: var(--ink); color: var(--bg); padding: 18px; }
.card-back .note { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.2px; color: #A9A79E; text-transform: uppercase; }
.card-back .lines { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; }
.card-back .brand { font-family: var(--font-display); font-size: 22px; color: var(--red); }
.member { background: var(--olive); padding: 24px; }
.member::before, .member::after { content: ""; position: absolute; border: 1px solid var(--ink); pointer-events: none; }
.member::before { inset: 8px; }
.member::after { inset: 12px; }
.member .top { display: flex; justify-content: space-between; align-items: flex-start; }
.member .num { font-family: var(--font-mono); font-weight: 700; font-size: 18px; letter-spacing: 2px; }
.member .mono { color: var(--ink); font-size: 9px; }
.c1 { top: 0; left: 18%; transform: rotate(-7deg); }
.c2 { top: 118px; left: 0; transform: rotate(4deg); }
.c3 { top: 226px; left: 14%; transform: rotate(-2deg); }

.stamp {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 3px solid var(--red); color: var(--red);
  font-family: var(--font-mono); font-weight: 700; font-size: 9.5px; letter-spacing: 1.1px; line-height: 1.4; text-align: center;
}
.stamp-round { width: 86px; height: 86px; border-radius: 50%; }
.stack .stamp { right: 4%; bottom: 6px; transform: rotate(-14deg); background: var(--bg); }

/* sections */
.section { padding: 80px 0; border-top: 1px solid var(--ink); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.section h2 { font-size: clamp(44px, 6vw, 72px); }
.section-head p { max-width: 380px; color: var(--mute); }

.features { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); border-radius: var(--radius-sm); }
.feature { padding: 22px 22px 28px; }
.feature + .feature { border-left: 1px solid var(--ink); }
.feature h3 { font-family: var(--font-display); font-weight: 400; font-size: 36px; text-transform: uppercase; line-height: 1; margin: 34px 0 10px; }
.feature p { font-size: 15.5px; color: var(--mute); }

/* banner */
.banner {
  background: var(--ink); color: var(--bg); border-radius: var(--radius-md);
  padding: 56px 48px; margin: 0 0 80px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
}
.banner h2 { font-size: clamp(44px, 6vw, 80px); }
.banner h2 span { color: var(--red); }
.banner .serif { font-size: 24px; margin-top: 10px; color: var(--bg); }
.banner .btn-red { box-shadow: 4px 4px 0 var(--bg); }
.banner .btn-red:active { box-shadow: none; }

/* footer */
.site-footer {
  border-top: 1px solid var(--ink); padding: 20px 0 40px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* legal + support pages */
.page { max-width: 720px; padding: 56px 0 88px; }
.page h1 { font-size: clamp(56px, 8vw, 88px); margin-bottom: 14px; }
.page .updated { margin-bottom: 40px; }
.page h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 26px; line-height: 1; margin: 40px 0 12px; }
.page p, .page li { color: #2A2926; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 22px; margin-top: 10px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.contact-card {
  position: relative; background: var(--surf); border: 1px solid var(--ink); border-radius: var(--radius-md);
  padding: 26px; margin: 8px 0 24px;
}
.contact-card a.email { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(24px, 6.6vw, 34px); text-transform: uppercase; text-decoration: none; color: var(--ink); margin-top: 6px; line-height: 1; }
.contact-card p { margin-top: 12px; font-size: 15px; color: var(--mute); }
.contact-card .stamp { right: 20px; top: -22px; transform: rotate(8deg); padding: 5px 9px; background: var(--bg); font-size: 10px; }

details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
details:first-of-type { border-top: 1px solid var(--ink); }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 28px; align-items: center; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--font-mono); font-weight: 700; font-size: 18px; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 44px 0 56px; gap: 28px; }
  .stack { height: 420px; max-width: 400px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--ink); }
  .section-head { flex-direction: column; align-items: start; }
  .banner { flex-direction: column; align-items: start; padding: 40px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .card { width: 290px; height: 177px; }
  .card-front { padding: 17px; }
  .card-front .name { font-size: 29px; }
  .c2 { top: 104px; }
  .c1 { left: 6%; }
  .c3 { top: 200px; left: 4%; }
  .stack .stamp { right: 0; }
  .stack { height: 390px; }
  .features { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--ink); }
  .feature h3 { margin-top: 18px; }
  .section { padding: 56px 0; }
}
