/* The Annalog Club — annalogclub.com
   Tokens are the app's, from src/theme/tokens.ts. If the two ever
   disagree, the app is right. */

:root {
  --background: #0b0b0b;
  --surface: #141414;
  --border: #262626;
  --gold: #c69c5d;
  --gold-deep: #a07c47;
  --gold-soft: rgba(198, 156, 93, 0.14);
  --text: #f2eee8;
  --text-muted: #9a958e;
  --text-faint: #5c5953;
  --on-gold: #0b0b0b;

  --display: 'Jost', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;

  --page: 62rem;
  --prose: 38rem;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the mark ------------------------------------------------ */

/* The logo is a drawing, not letters. The mirrored second N is cut into
   the file itself, so no font and no CSS trick can get it wrong. Width
   and height are on the img so nothing jumps while it loads. */

.mark { display: inline-block; line-height: 0; }
.mark img { width: 9.5rem; height: auto; }

.mark-small { width: 7.5rem; height: auto; display: block; margin-bottom: 0.75rem; }



/* ---------- layout -------------------------------------------------- */

.shell { width: min(100% - 2.5rem, var(--page)); margin-inline: auto; }
.prose { max-width: var(--prose); }

section { padding-block: clamp(3.5rem, 9vw, 6rem); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }

/* The line at the top is set like the headings below it: engraved, not
   typed. Gold, because it is the one sentence the club actually says. */
h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h3 { font-size: 1.15rem; letter-spacing: 0.02em; font-weight: 600; }

p { margin: 0 0 1rem; max-width: var(--prose); }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- header and hero ----------------------------------------- */

/* The whole lockup, centred, once. It is the first thing on the page
   and it does not come back further down. */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: clamp(2rem, 5vw, 3rem) 1.75rem;
  text-align: center;
}
.top .mark img { width: min(17rem, 62vw); }
.top nav { display: flex; gap: 1.75rem; font-size: 0.9rem; }
.top nav a { color: var(--text-muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

.hero { padding-block: clamp(2rem, 6vw, 4rem) clamp(3.5rem, 9vw, 6rem); }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2.5rem; }

/* ---------- the waiting list ---------------------------------------- */

.join { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: var(--prose); }
.join input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.join input::placeholder { color: var(--text-faint); }

.button {
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 0;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover { background: var(--gold-deep); }
.button[disabled] { opacity: 0.6; cursor: default; }

.note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.9rem; }
.note[data-state='error'] { color: #c2695c; }
.note[data-state='done'] { color: var(--gold); }

/* ---------- cards ---------------------------------------------------- */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 2.5rem;
}
.card {
  padding: 1.75rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.card .step {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.9rem;
}

.plain { list-style: none; margin: 2rem 0 0; padding: 0; max-width: var(--prose); }
.plain li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.plain li:last-child { border-bottom: 1px solid var(--border); }

/* ---------- footer ---------------------------------------------------- */

footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
footer .rows { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- the written pages ----------------------------------------- */

.page { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(3.5rem, 9vw, 6rem); }
.page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.page h2 {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  margin: 2.75rem 0 0.75rem;
  color: var(--text);
}
.page p, .page li { color: var(--text-muted); }
.page ul { max-width: var(--prose); padding-left: 1.1rem; }
.page li { margin-bottom: 0.4rem; }
.page .updated { color: var(--text-faint); font-size: 0.85rem; }

.fill {
  background: var(--gold-soft);
  border: 1px dashed var(--gold-deep);
  border-radius: 8px;
  padding: 0.1rem 0.45rem;
  color: var(--gold);
  font-size: 0.9em;
}

/* A label the screen reader reads and the eye does not. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
}

/* On a phone the three links jostle the wordmark, so they go underneath. */
@media (max-width: 34rem) {
  .top { gap: 1rem; }
  .top nav { gap: 1.25rem; font-size: 0.85rem; }
  .join .button { width: 100%; }
}


/* ---------- binding the page together --------------------------------
   The sections used to be identical boxes with a hairline between each
   pair, which is a good way to make six things look like six things.
   They are different shapes now, and a band of lighter black does the
   separating where a line used to. */

.band { background: var(--surface); }
.band + .band { padding-top: 0; }

/* A statement, not a section: no label, no heading, just the sentence. */
.statement { padding-block: clamp(3rem, 8vw, 5.5rem); }
.statement p {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  max-width: 34rem;
  color: var(--text);
}
.statement .after {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: var(--prose);
}

/* Where the app goes. Three phones, the middle one standing taller. */
.screens {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: flex-end;
  justify-content: center;
  margin: 2.5rem 0 3rem;
}
.screen { margin: 0; flex: 0 1 13rem; }
.screen img { width: 100%; height: auto; border-radius: 18px; display: block; }
.screen.tall { flex-basis: 15rem; }

.placeholder {
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  border: 1px dashed var(--gold-deep);
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem;
}

/* The three steps read as one list, not three cards floating apart. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: step;
  padding: 1.75rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--border);
}
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 48rem) {
  .steps li { border-left: 0; border-top: 1px solid var(--border); padding-inline: 0; }
  .steps li:first-child { border-top: 0; padding-top: 0; }
}

/* Text on one side, the club's own stamp on the other. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 48rem) {
  .split { grid-template-columns: 1fr; }
  .stampwrap { justify-self: center; }
}

.stamp {
  width: min(14rem, 60vw);
  height: auto;
  color: var(--gold);
  opacity: 0.85;
  transform: rotate(-8deg);
}
.stamp text {
  fill: currentColor;
  font-family: var(--display);
  letter-spacing: 0.18em;
}
.stamp-small { font-size: 15px; }
.stamp-big { font-size: 34px; letter-spacing: 0.1em; }

.events { padding-block: clamp(2.5rem, 6vw, 4rem); }
.events p { font-size: 1.1rem; max-width: 36rem; }

.closing { text-align: center; }
.closing .shell { display: grid; justify-items: center; }
.closing .glyph { width: 4.5rem; height: auto; margin-bottom: 1.5rem; opacity: 0.9; }
.closing h2 { margin-bottom: 0.75rem; }
.closing p { color: var(--text-muted); }
.closing .join { justify-content: center; margin-top: 1.5rem; width: min(100%, 30rem); }
