/* Counterpoint landing — upgrade design.
   Source intent: A4a–A4d _ Sage / Stone / Forest / Charcoal variants from
   Claude design canvas exports (1280x800 fixed canvas). This is a fluid
   rewrite that preserves the design language and adds a mode picker that
   switches between four palettes (Day, Dusk, Dark, Dawn). */

/* Day = Sage (lightest). Default palette. */
:root,
:root[data-mode="day"] {
  --bg: rgb(226, 227, 215);
  --ink: rgb(45, 48, 43);
  --accent: rgb(110, 138, 90);
}

/* Dusk = Stone + Indigo. */
:root[data-mode="dusk"] {
  --bg: rgb(184, 188, 176);
  --ink: rgb(20, 22, 26);
  --accent: rgb(46, 76, 130);
}

/* Dark = Forest Night + Gold (darkest). */
:root[data-mode="dark"] {
  --bg: rgb(31, 33, 29);
  --ink: rgb(208, 210, 197);
  --accent: rgb(229, 194, 90);
}

/* Dawn = Charcoal + Ember. */
:root[data-mode="dawn"] {
  --bg: rgb(60, 63, 58);
  --ink: rgb(238, 238, 228);
  --accent: rgb(224, 114, 31);
}

:root {
  --pad-x: clamp(24px, 5vw, 64px);
  --pad-y: clamp(24px, 4vw, 28px);
  --stage-pad-y: clamp(56px, 9vw, 96px);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  letter-spacing: -0.005em;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.ab {
  min-height: 100vh;
  max-width: 1440px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Header + footer "meta" bars. */
.meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: var(--pad-y) var(--pad-x);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.meta .rule {
  flex: 1 1 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.25;
  transition: background 0.25s ease;
}

.meta .version {
  white-space: nowrap;
}

/* Stage. */
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(32px, 6vw, 48px);
  padding: var(--stage-pad-y) var(--pad-x);
}

.wordmark {
  margin: 0;
  font-size: clamp(64px, 14.5vw, 196px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.wordmark .dot {
  color: var(--accent);
  transition: color 0.25s ease;
}

.tag-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}

.tagline {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 18em;
}

.tagline em {
  font-style: italic;
  text-decoration: underline 1.5px var(--accent);
  text-underline-offset: 5px;
  transition: text-decoration-color 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 18px 28px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent);
}

.btn .arrow {
  display: inline-block;
  transform: translateY(-1px);
}

/* Mode picker — inline in the footer, after the rule. */
.mode-picker {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.mode-picker button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  opacity: 0.35;
  cursor: pointer;
  transition:
    opacity 0.18s ease,
    color 0.18s ease;
}

.mode-picker button:hover {
  opacity: 0.7;
}

.mode-picker button.active {
  opacity: 1;
  color: var(--accent);
}

/* Narrow viewports. */
@media (max-width: 640px) {
  .tag-row {
    align-items: flex-start;
  }
  .btn {
    align-self: stretch;
    justify-content: center;
  }
  .meta.bot {
    flex-wrap: wrap;
  }
  .mode-picker {
    flex-basis: 100%;
    justify-content: center;
  }
}
