/* What Makes Me Human? — shared styles */
:root {
  --ink: #f4ecff;
  --muted: #c7b8e8;
  --faint: rgba(199, 184, 232, .6);
  --line: rgba(199, 184, 232, .18);
  --deep: #0d0520;
  --night: #150933;
  --violet: #3b1f8f;
  --magenta: #ff2d9b;
  --blue: #2f7bff;
  --paper: #f6f0e6;
  --paper-ink: #2a1f3d;
  --glass: rgba(20, 8, 48, .5);
  --serif: Fraunces, Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --hand: Caveat, "Segoe Print", cursive;
  --gutter: clamp(20px, 5vw, 64px);
  --energy: 0;
  --bass: 0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--deep); color: var(--ink); font-family: var(--sans);
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--deep); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.eyebrow.pink { color: var(--magenta); font-weight: 600; }
.display {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.02em; line-height: .95;
  font-size: clamp(44px, 9vw, 120px); text-wrap: balance;
}
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5.5vw, 68px); line-height: 1; letter-spacing: -.015em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; }
.lede { font-size: clamp(17px, 1.8vw, 21px); color: var(--muted); max-width: 34em; }
.grad {
  font-style: italic; color: transparent;
  background: linear-gradient(100deg, var(--magenta), #b86bff 50%, var(--blue));
  -webkit-background-clip: text; background-clip: text;
}
.hand { font-family: var(--hand); }
.year { font-family: var(--serif); font-variant-numeric: lining-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(120deg, var(--magenta), #a33cf0);
  color: #fff; box-shadow: 0 10px 34px rgba(255, 45, 155, .35);
}
.btn-primary:hover { box-shadow: 0 10px 44px rgba(255, 45, 155, .6); }
.btn-ghost { background: rgba(255, 255, 255, .06); border-color: var(--line); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-quiet { background: none; border: 0; color: var(--muted); padding: 0 8px; min-height: 44px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.btn-quiet:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
section.block { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter);
}
.brand { font-family: var(--serif); font-size: 17px; text-decoration: none; letter-spacing: .01em; }
.brand b { font-weight: 600; }
.nav { display: flex; gap: 22px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav a:not(.nav-keep) { display: none; } }

.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13px; color: var(--muted);
}
.social a:hover { color: var(--ink); border-color: rgba(255, 255, 255, .4); }

.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 13px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

.preview-note {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90;
  font-size: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55);
  color: var(--muted); border: 1px solid var(--line); white-space: nowrap; backdrop-filter: blur(8px);
}

/* ---------- 2026 → 2036 motif ---------- */
.timeline {
  display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px);
}
.timeline .track { position: relative; flex: 1; min-width: 60px; height: 1px; background: linear-gradient(90deg, var(--magenta), var(--blue)); }
.timeline .track::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px var(--magenta), 0 0 24px var(--blue);
  animation: travel 4.5s cubic-bezier(.6, 0, .4, 1) infinite;
}
@keyframes travel { 0% { left: 0; opacity: 0 } 10% { opacity: 1 } 90% { opacity: 1 } 100% { left: calc(100% - 7px); opacity: 0 } }

/* ---------- countdown ---------- */
.countdown { display: flex; gap: clamp(10px, 2vw, 22px); align-items: flex-end; }
.countdown .unit { text-align: center; min-width: 3ch; }
.countdown .num { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 5vw, 60px); line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.countdown .lbl { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.countdown .sep { font-family: var(--serif); font-size: clamp(28px, 4vw, 48px); color: var(--faint); line-height: 1.1; }

/* ---------- cards ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }

/* The capsule itself: a letter, not a dashboard. */
.letter {
  position: relative; background: var(--paper); color: var(--paper-ink);
  border-radius: 6px; padding: clamp(28px, 5vw, 56px); max-width: 640px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .04);
  background-image:
    radial-gradient(ellipse at top left, rgba(255, 45, 155, .08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(47, 123, 255, .08), transparent 55%);
}
.letter::before { /* postmark */
  content: "2026 → 2036"; position: absolute; top: 22px; right: 22px; transform: rotate(8deg);
  font: 600 11px/1 var(--sans); letter-spacing: .2em; color: #b0306f; border: 1.5px solid #b0306f;
  padding: 8px 10px; border-radius: 999px; opacity: .7;
}
.letter .l-kicker { font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: #7a6a93; }
.letter .l-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 400; margin: 8px 0 4px; }
.letter .l-meta { font-size: 13px; color: #7a6a93; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.letter .l-q { font: 600 11px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #b0306f; margin-top: 28px; }
.letter .l-a { font-family: var(--hand); font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.letter .l-id { margin-top: 32px; padding-top: 18px; border-top: 1px dashed rgba(42, 31, 61, .25); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #5a4a73; }

.sealed {
  text-align: center; padding: clamp(40px, 8vw, 80px) clamp(24px, 5vw, 56px); max-width: 560px; margin: 0 auto;
}
.seal {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 28px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ff7cc4, var(--magenta) 45%, #6b1ec4);
  box-shadow: 0 0 60px rgba(255, 45, 155, .45); font-family: var(--serif); font-size: 15px; letter-spacing: .08em;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field label, .legend { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: 17px; transition: border-color .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: rgba(255, 45, 155, .7); background: rgba(255, 255, 255, .08); }
.select option { color: #111; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--magenta); margin-top: 2px; cursor: pointer; }
.check b { display: block; font-weight: 600; }
.check small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.check.disabled { opacity: .5; cursor: not-allowed; }
.hint { font-size: 14px; color: var(--faint); }
.error { color: #ff8fbf; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- group cards ---------- */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.group-card {
  display: flex; flex-direction: column; gap: 8px; min-height: 190px; padding: 24px; border-radius: 20px;
  text-decoration: none; background: var(--glass); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.group-card:hover { border-color: rgba(255, 45, 155, .6); transform: translateY(-2px); }
.group-card .kind { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--magenta); font-weight: 600; }
.group-card .name { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.group-card .name .tick { font-family: var(--sans); font-size: 13px; color: #b9ceff; margin-left: 6px; vertical-align: 3px; }
.group-card .tag { color: var(--muted); font-size: 15px; font-style: italic; }
.group-card .count { margin-top: auto; font-size: 13px; color: var(--faint); }
.group-card.new { border-style: dashed; justify-content: center; align-items: flex-start; }
.group-card.new .name { font-size: 24px; }
