/* Brochure v3: the badge at page scale. Type still leads. */

:root {
  --ink: #1a2b22;
  --hole: #e7f0e8;
  --mute-dark: #9aaf9e;
  --paper: #f3f5f2;
  --wash: #e4ebe6;
  --mute: #5e6f66;
  --teal: #14b8a6;
  --teal-deep: #0d9488;
  --font-display: "Archivo Narrow", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 68rem;
  --px: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.55;
}

a { color: inherit; }
a:hover { color: var(--teal-deep); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 2;
  background: var(--paper);
  padding: 0.35rem 0.6rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--hole);
  overflow: hidden;
}
.hero a:hover { color: var(--teal); }
.hero-glow {
  position: absolute;
  right: -12%;
  bottom: -20%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 62%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  left: clamp(-2rem, 2vw, 2rem);
  top: 62%;
  transform: translateY(-50%);
  width: 9rem;
  height: 26rem;
  background: radial-gradient(circle, rgba(231, 240, 232, 0.16) 0 2.15rem, transparent 2.2rem);
  background-size: 9rem 8.7rem;
  background-repeat: repeat-y;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.5rem var(--px) 3.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  color: var(--hole);
}
.brand img {
  display: block;
  width: 56px;
  height: 56px;
}
.top nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1rem;
}
.top nav a:not(.btn) {
  text-decoration: none;
  color: var(--mute-dark);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  background: var(--hole);
  color: var(--ink);
  padding: 0.45rem 1rem;
}
.btn:hover {
  background: var(--teal);
  color: var(--ink);
}
.btn.invert {
  background: var(--ink);
  color: var(--hole);
}
.btn.invert:hover {
  background: var(--teal-deep);
  color: #fff;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: 4rem 0 2rem;
}

.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.kicker::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--teal);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
  margin: 0 0 1.15rem;
  max-width: 9ch;
}

.deck {
  max-width: 34rem;
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--mute-dark);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
}
.text-link {
  color: var(--mute-dark);
  text-decoration: none;
  font-size: 0.98rem;
}
.text-link:hover { color: var(--teal); }

.board {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board li {
  display: grid;
  grid-template-columns: 4.8rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 1.1rem;
}
.board li + li {
  border-top: 1px solid rgba(231, 240, 232, 0.12);
}
.board li.claimed {
  background: rgba(20, 184, 166, 0.12);
  box-shadow: inset 3px 0 0 var(--teal);
}
.handle {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--mute-dark);
}
.board li.claimed .handle { color: var(--teal); }
.row { min-width: 0; }
.title {
  display: block;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--hole);
}
.meta {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute-dark);
}

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 4.5rem var(--px) 2rem;
}

section {
  margin: 0 0 4rem;
}
section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 1rem;
}
section p {
  max-width: 42rem;
  margin: 0 0 1rem;
}
section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}
.lede {
  font-size: 1.12rem;
  max-width: 42rem;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.25rem;
  margin: 1.75rem 0 1.5rem;
}
.ways {
  grid-template-columns: 1fr 1fr 1fr;
}
.points p { margin: 0; max-width: none; }

.band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 3.5rem max(var(--px), calc((100vw - var(--wrap)) / 2 + var(--px)));
  background: var(--wash);
}

code, pre { font-family: var(--font-mono); }
code { font-size: 0.88em; }
pre {
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  background: var(--ink);
  color: var(--hole);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}
.band pre {
  background: var(--ink);
}

.caption {
  font-size: 0.88rem;
  color: var(--mute);
  margin: 0 0 1.25rem;
}

footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--px) 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--mute);
}
.parent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.parent svg { display: block; }

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

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1,
  .hero-copy .deck,
  .hero-copy .hero-actions,
  .board {
    animation: rise 0.75s ease both;
  }
  .hero-copy .deck { animation-delay: 0.08s; }
  .hero-copy .hero-actions { animation-delay: 0.14s; }
  .board { animation-delay: 0.18s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 70rem) {
  .hero-dots { opacity: 0.55; }
}
@media (max-width: 52rem) {
  .hero-grid,
  .points {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-grid { padding-top: 3rem; }
  h1 { max-width: none; }
  .hero-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

body.inner {
  background: var(--paper);
  color: var(--ink);
}
body.inner .brand { color: var(--ink); }
body.inner .brand img { width: 40px; height: 40px; }
.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 1.25rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bar nav a { text-decoration: none; color: var(--mute); }
.narrow {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem var(--px) 4rem;
}
.inner h1 {
  max-width: none;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1;
}
.stack {
  display: grid;
  gap: 1.1rem;
  margin: 1.5rem 0;
}
.stack label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}
.stack label.choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400;
}
.stack input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--teal-deep);
}
.stack input[type="text"],
.stack input[type="email"],
.stack input[type="number"],
.stack input:not([type]) {
  font: inherit;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--wash);
  background: #fff;
  color: var(--ink);
}
.hint { font-size: 0.85rem; font-weight: 400; color: var(--mute); }
.banner {
  background: #fde8e8;
  color: #7f1d1d;
  padding: 0.7rem 0.85rem;
}
.banner.ok {
  background: var(--hole);
  color: var(--ink);
}
.token {
  word-break: break-all;
  user-select: all;
}
fieldset {
  border: 1px solid var(--wash);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.45rem;
}
legend { font-weight: 600; padding: 0 0.3rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}
.inner .hero-actions { margin-top: 1.5rem; }
.inner .text-link { color: var(--mute); }
.later {
  margin: 1.4rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--wash);
  background: #fff;
}
.later summary {
  cursor: pointer;
  font-weight: 500;
}
.later summary code { font-weight: 400; }
.later p { margin: 0.7rem 0 0.5rem; }
