:root {
  --ink: #242320;
  --ink-muted: #464440;
  --ink-faint: #747270;
  --paper: #FCF9F0;
  --paper-card: #F6EFDD;
  --border: #24232026;
  --border-subtle: #24232014;
  --gold: #F7B733;
  --coral: #F17E72;
  --magenta: #D6266E;
  --emerald: #1E8A5B;
  --periwinkle: #4A5FE8;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Vollkorn', serif;
}

::selection { background: var(--ink); color: var(--paper); }

.page {
  max-width: 1280px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header / nav ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px 40px 0;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.wordmark {
  font-family: 'Gloock', serif;
  font-size: clamp(20px, 2.7vw, 26px);
  padding-bottom: 20px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark .dot:nth-child(1) { color: var(--gold); }
.wordmark .dot:nth-child(2) { color: var(--coral); }
.wordmark .dot:nth-child(3) { color: var(--magenta); }
.wordmark .dot:nth-child(4) { color: var(--emerald); }
.wordmark .dot:nth-child(5) { color: var(--periwinkle); }

@keyframes ripple-fade {
  0%, 100% { opacity: 1; }
  35% { opacity: 0.1; }
}

.wordmark:hover .dot:nth-child(1) { animation: ripple-fade .9s ease; }
.wordmark:hover .dot:nth-child(2) { animation: ripple-fade .9s ease .09s; }
.wordmark:hover .dot:nth-child(3) { animation: ripple-fade .9s ease .18s; }
.wordmark:hover .dot:nth-child(4) { animation: ripple-fade .9s ease .27s; }
.wordmark:hover .dot:nth-child(5) { animation: ripple-fade .9s ease .36s; }

.tab-wrap { display: flex; gap: 4px; }

.tab-wrap a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 12px 22px;
  position: relative;
  top: 1px;
  border: 1px solid transparent;
  border-radius: 2px 2px 0 0;
}

/* active tab: outline on top/left/right only — bottom blends into the page so it erases that stretch of the divider */
.tab-wrap a.is-current {
  background: var(--paper);
  border-color: var(--border-subtle);
  border-bottom-color: var(--paper);
  color: var(--ink);
}

.tab-wrap a.is-current::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tab-color, var(--periwinkle));
  border-radius: 2px 2px 0 0;
}

/* hover: outline only, top/left/right — bottom stays transparent so it doesn't double up on the divider beneath it */
.tab-wrap a:not(.is-current):hover {
  color: var(--ink);
  border-color: var(--border-subtle);
  border-bottom-color: transparent;
}

/* hover preview: a thin (1px) version of the tab's own destination color, previewing the thick bar it gets once current */
.tab-wrap a:not(.is-current):hover::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--tab-color, var(--periwinkle));
  border-radius: 2px 2px 0 0;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 40px;
  border-top: 1px solid var(--border-subtle);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  color: var(--ink-faint);
}

.site-footer a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .15s ease;
}

.site-footer a:hover { color: var(--ink); }

/* ---------- Who We Are ---------- */

.home-hero { padding: clamp(48px, 9vw, 88px) 40px 56px; }

.home-hero h1 {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  max-width: 780px;
  margin: 0;
}

.home-about {
  padding: 0 40px 72px;
}

.home-about p {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0;
}

/* The rule above zeroes all margins, so stacked body paragraphs need this to breathe.
   `.home-about p + p` (0,1,2) outranks `.home-about p` (0,1,1), and is itself outranked
   by `.home-about p.next-links` (0,2,1) below — so the link row keeps its own 56px top
   margin rather than collapsing to this 22px. */
.home-about p + p { margin-top: 22px; }

/* `.home-about p { margin: 0 }` above is a class+type selector, which beats a class-only
   selector on specificity — so the override needs to match or exceed that specificity,
   otherwise the top margin silently gets zeroed out regardless of source order. */
.home-about p.next-links {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Bare variant: where the About paragraphs are absent, the 56px above separates the
   link row from nothing, and stacks on the hero's own 56px bottom padding for ~112px
   of dead space under the headline. Zeroing it lets the hero padding alone set that
   gap — the same rhythm the headline had against the first paragraph. Equal specificity
   to the rule above (0,2,1), so it must stay below it. Inert where the paragraphs exist. */
.home-about--bare p.next-links { margin-top: 0; }

.next-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color .15s ease;
}

.next-links a:hover { color: var(--ink); }

.next-links a .arrow {
  display: inline-block;
  color: var(--ink-faint);
  transition: transform .15s ease, color .15s ease;
}

/* only the arrow changes color on hover — the label keeps the ink-faint → ink treatment above.
   Each link gets its own destination-flavored arrow color: gold for What We're Building, coral for Say hello. */
.next-links a:hover .arrow { color: var(--gold); transform: translateX(3px); }
.next-links a.say-hello:hover .arrow { color: var(--coral); }

/* ---------- What We're Building ---------- */

.pursuits { padding: 56px 40px 72px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Single-card variant. The base grid is a hard 3 columns, so one card alone would
   sit marooned in the left third with two-thirds of the row empty. This drops to a
   single column at a comfortable card width — left-aligned, matching the editorial
   alignment used on Home. Equal specificity to `.card-grid`, so it must stay below it.
   Unused where all three cards are present; kept in place so both versions of the
   page share one stylesheet. */
.card-grid--single {
  grid-template-columns: 1fr;
  max-width: 420px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--paper-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  text-decoration: none;
  color: inherit;
}

a.card:hover { border-color: var(--ink-faint); }

.card-status {
  display: flex;
  align-items: center;
  height: 20px;
  margin-bottom: 14px;
}

.status-dots { display: inline-flex; gap: 6px; }

.status-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-dots .dot:nth-child(1) { background: var(--gold); }
.status-dots .dot:nth-child(2) { background: var(--coral); }
.status-dots .dot:nth-child(3) { background: var(--magenta); }
.status-dots .dot:nth-child(4) { background: var(--emerald); }
.status-dots .dot:nth-child(5) { background: var(--periwinkle); }

.tag--soon {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1;
}

.card h3 {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 12px;
  transition: color .15s ease;
}

/* whole card is the hover/click target — mouse anywhere in the box, or keyboard focus, or a finger tap on mobile */
.card--live:hover h3, .card--live:focus-visible h3 { color: var(--periwinkle); }
.card--journal:hover h3, .card--journal:focus-visible h3 { color: var(--coral); }

.card--live:hover .status-dots .dot:nth-child(1), .card--live:focus-visible .status-dots .dot:nth-child(1),
.card--journal:hover .status-dots .dot:nth-child(1), .card--journal:focus-visible .status-dots .dot:nth-child(1) { animation: ripple-fade .9s ease; }
.card--live:hover .status-dots .dot:nth-child(2), .card--live:focus-visible .status-dots .dot:nth-child(2),
.card--journal:hover .status-dots .dot:nth-child(2), .card--journal:focus-visible .status-dots .dot:nth-child(2) { animation: ripple-fade .9s ease .09s; }
.card--live:hover .status-dots .dot:nth-child(3), .card--live:focus-visible .status-dots .dot:nth-child(3),
.card--journal:hover .status-dots .dot:nth-child(3), .card--journal:focus-visible .status-dots .dot:nth-child(3) { animation: ripple-fade .9s ease .18s; }
.card--live:hover .status-dots .dot:nth-child(4), .card--live:focus-visible .status-dots .dot:nth-child(4),
.card--journal:hover .status-dots .dot:nth-child(4), .card--journal:focus-visible .status-dots .dot:nth-child(4) { animation: ripple-fade .9s ease .27s; }
.card--live:hover .status-dots .dot:nth-child(5), .card--live:focus-visible .status-dots .dot:nth-child(5),
.card--journal:hover .status-dots .dot:nth-child(5), .card--journal:focus-visible .status-dots .dot:nth-child(5) { animation: ripple-fade .9s ease .36s; }

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
  flex-grow: 1;
}

.card--quiet h3 { color: var(--ink-faint); font-style: italic; }

/* ---------- Say Hello (contact) ---------- */

.contact-main { padding: 56px 40px 72px; }

.contact-main h1 {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 34px);
  margin: 0 0 40px;
}

.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input, .field textarea {
  font-family: 'Vollkorn', serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-faint);
}

.turnstile-slot { margin-top: -2px; }

/* Button option E: quiet grey outline/text at rest, coral outline + ink text on hover */
.send-btn {
  align-self: flex-start;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--ink-faint);
  border-radius: 2px;
  padding: 13px 32px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}

.send-btn:hover, .send-btn:focus-visible {
  border-color: var(--coral);
  color: var(--ink);
}

.send-btn:disabled {
  opacity: 0.6;
  cursor: default;
  border-color: var(--ink-faint);
  color: var(--ink-faint);
}

.form-status {
  font-family: 'Vollkorn', serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0;
  min-height: 1.4em;
}

.form-status.is-error { color: var(--coral); }

/* ---------- Privacy & Terms ---------- */

.legal-main { padding: 56px 40px 72px; }

.legal-main h1 {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 34px);
  margin: 0 0 8px;
}

.legal-updated {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-faint);
  margin: 0 0 32px;
}

.legal-main h2 {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: 20px;
  margin: 32px 0 10px;
}

.legal-main p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 680px;
  margin: 0 0 14px;
}

.legal-main p strong { color: var(--ink); font-weight: 600; }

.legal-main a { color: var(--ink-muted); }
.legal-main a:hover { color: var(--ink); }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-header { padding: 24px 24px 0; }
  .home-hero { padding: 48px 24px 40px; }
  .home-about { padding: 32px 24px 56px; }
  .pursuits { padding: 40px 24px 56px; }
  .contact-main { padding: 40px 24px 56px; }
  .legal-main { padding: 40px 24px 56px; }
  .site-footer { padding: 24px 24px; }
}
