/* ---------------------------------------------------------------
   OneGoodThought — one affirmation, once. No list, nothing to manage.
   --------------------------------------------------------------- */

:root,
:root[data-theme='dark'] {
  /* warm, near-black scene — never pure black */
  --bg: oklch(17% 0.020 55);
  --bg-deep: oklch(11% 0.016 50);

  --ink: oklch(93% 0.020 75);
  --ink-dim: oklch(74% 0.020 70);
  --ink-faint: oklch(60% 0.018 65); /* 4.8:1 on --bg — AA for the 13px counter/note */

  --ember: oklch(72% 0.135 45);
  --ember-dim: oklch(58% 0.100 45);

  --on-ember: oklch(18% 0.03 45);
  --glow: oklch(30% 0.05 45 / 0.55);
  --hairline: 0.1;
  --border-strength: 0.4;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);

  --font-serif: 'Literata', 'Iowan Old Style', 'Georgia', serif;
  --font-sans: 'Hanken Grotesk', -apple-system, 'Segoe UI', sans-serif;
}

/* Light: daylight on a warm desk. Deliberately past the beige band —
   a cream page is the saturated default this palette avoids. */
:root[data-theme='light'] {
  --bg: oklch(98.5% 0.005 65);
  --bg-deep: oklch(95% 0.008 60);

  --ink: oklch(24% 0.022 50);
  --ink-dim: oklch(40% 0.020 50);
  --ink-faint: oklch(50% 0.018 50);

  --ember: oklch(48% 0.155 40);
  --ember-dim: oklch(60% 0.120 42);

  --on-ember: oklch(99% 0.004 60);
  --glow: oklch(88% 0.045 60 / 0.55);
  --hairline: 0.14;
  --border-strength: 0.5;
}

/* Armenian needs faces the Latin pair does not carry */
:root:lang(hy) {
  --font-serif: 'Noto Serif Armenian', 'Literata', 'Georgia', serif;
  --font-sans: 'Noto Sans Armenian', 'Hanken Grotesk', -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

/* display rules below would otherwise defeat the hidden attribute */
[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* ---------- ambient scene ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 38% 34%, var(--glow), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, var(--bg-deep), transparent 60%),
    var(--bg);
  animation: breathe 9s ease-in-out infinite alternate;
}

.ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes breathe {
  from { opacity: 0.85; transform: scale(1); }
  to   { opacity: 1;    transform: scale(1.035); }
}

/* the scene cools slightly while reviewing — a different room, same house */
body.is-reviewing .ambient {
  background:
    radial-gradient(55% 45% at 42% 30%, color-mix(in oklch, var(--glow) 70%, transparent), transparent 70%),
    radial-gradient(120% 90% at 50% 100%, var(--bg-deep), transparent 60%),
    var(--bg);
}

/* ---------- stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-8);
  padding: var(--space-8) max(var(--space-8), 8vw);
  padding-top: max(var(--space-8), env(safe-area-inset-top));
  padding-bottom: max(var(--space-16), env(safe-area-inset-bottom));
  overflow-y: auto;
  animation: rise 900ms var(--ease-out) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.affirmation {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-serif);
  font-weight: 440;
  font-size: clamp(1.75rem, 4.6vw + 0.7rem, 3.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}

.affirmation.is-swapping {
  opacity: 0;
  transform: translateY(-6px);
  filter: blur(2px);
  transition: opacity 150ms var(--ease-in), transform 150ms var(--ease-in), filter 150ms var(--ease-in);
}

/* ---------- controls ----------
   Three tiers, deliberately far apart so the eye sorts them instantly:
   1. primary  — filled ember, the one lit element on the screen
   2. secondary— outlined, same size, clearly not the main move
   3. nav      — small quiet text, separated by a rule, for leaving this screen
   ------------------------------------------------------------------ */

.controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
  width: 100%;
}

.actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.row {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus {
  outline: none;
}

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

/* --- tier 1 --- */

.btn--primary {
  padding: var(--space-2) var(--space-6);
  background: var(--ember);
  border-color: var(--ember);
  color: var(--on-ember);
}

.btn--primary:hover {
  background: oklch(from var(--ember) calc(l + 0.06) c h);
  border-color: oklch(from var(--ember) calc(l + 0.06) c h);
}

/* --- tier 2 --- */

.btn--secondary {
  padding: var(--space-2) var(--space-5);
  border-color: oklch(from var(--ink) l c h / var(--border-strength));
  color: var(--ink);
}

.btn--secondary:hover {
  border-color: oklch(from var(--ember) l c h / 0.75);
  color: var(--ember);
}

/* kept: filled-in state, marked by a dot as well as colour */
.keep[aria-pressed='true'] {
  border-color: oklch(from var(--ember) l c h / 0.6);
  background: oklch(from var(--ember) l c h / 0.12);
  color: var(--ember);
}

.keep[aria-pressed='true'] span::before {
  content: '';
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--ember);
}

.keep[aria-pressed='true'] span {
  position: relative;
  padding-left: 0.35rem;
}

/* --- tier 3 --- */

.btn--nav {
  min-height: 36px;
  padding: var(--space-1) var(--space-2);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.btn--nav span {
  position: relative;
}

.btn--nav span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}

.btn--nav:hover {
  color: var(--ink);
}

.btn--nav:hover span::after {
  opacity: 0.5;
}

.btn--danger:hover {
  color: oklch(70% 0.14 25);
}

/* the rule is what separates "act on this" from "go elsewhere" */
.nav {
  display: flex;
  align-items: center;
  /* no row-gap: the 44px targets already separate wrapped rows */
  gap: 0 var(--space-4);
  flex-wrap: wrap;
  margin-left: -0.5rem;
  padding-top: var(--space-4);
  border-top: 1px solid oklch(from var(--ink) l c h / var(--hairline));
  width: 100%;
  max-width: 30rem;
}

/* ---------- review navigation ---------- */

.step-btn {
  appearance: none;
  border: 1px solid oklch(from var(--ink) l c h / var(--border-strength));
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-dim);
  position: relative;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

/* 44px touch target without a 44px ring */
.step-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
}

.step-btn svg {
  width: 16px;
  height: 16px;
}

.step-btn:hover:not(:disabled) {
  color: var(--ember);
  border-color: oklch(from var(--ember) l c h / 0.5);
}

.step-btn:active:not(:disabled) {
  transform: scale(0.94);
}

.step-btn:focus {
  outline: none;
}

.step-btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}

.step-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.counter {
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  min-width: 4ch;
  text-align: center;
}

.note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-wrap: pretty;
}

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

.mark {
  position: fixed;
  left: max(var(--space-8), 8vw);
  bottom: var(--space-6);
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

/* ---------- check-in (R10) ---------- */

.checkin,
.thought,
.history,
.gratitude {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
  width: 100%;
}

/* the title belongs to the list under it, not floating above it */
.history > .question,
.gratitude > .question {
  margin-bottom: calc(var(--space-6) * -1 + var(--space-3));
}

.thought {
  gap: var(--space-8);
}

.step-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.question {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-weight: 440;
  font-size: clamp(1.5rem, 3.4vw + 0.7rem, 2.5rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

.question.small {
  font-size: clamp(1.35rem, 2.4vw + 0.7rem, 1.9rem);
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  max-width: 32rem;
}

/* Quiet pill, not a chunky card — the choice should feel light */
.option {
  appearance: none;
  cursor: pointer;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(from var(--ink) l c h / var(--border-strength)); /* 3.3:1 — the pill is the control boundary */
  border-radius: 999px;
  background: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.option:hover {
  color: var(--ink);
  border-color: oklch(from var(--ember) l c h / 0.55);
  background: oklch(from var(--ember) l c h / 0.07);
}

.option:active {
  transform: scale(0.97);
}

.option:focus {
  outline: none;
}

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

/* ---------- the current check-in, above the thought ---------- */

.meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.meta-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: oklch(from var(--ink-faint) l c h / 0.4);
  transition: color 200ms var(--ease-out);
}

.meta-btn:hover {
  color: var(--ember);
}

.meta-btn:focus {
  outline: none;
}

.meta-btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- history (R12) ---------- */

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 24rem;
  max-height: min(46vh, 22rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: var(--space-2);
}

.history-head,
.history-row {
  display: grid;
  /* three labelled columns: a row reads as date / felt / about, so the
     values never have to be guessed at */
  grid-template-columns: 5.5rem 1fr 1fr;
  gap: var(--space-3);
  align-items: baseline;
}

.history-head {
  width: 100%;
  max-width: 24rem;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid oklch(from var(--ink) l c h / calc(var(--hairline) * 2));
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.history-row {
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--ink) l c h / var(--hairline));
}

.history-row:last-child {
  border-bottom: none;
}

.history-date {
  flex: none;
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  white-space: nowrap;
}

.history-felt,
.history-about {
  font-family: var(--font-serif);
  font-size: 1rem;
  min-width: 0;
  text-wrap: pretty;
}

.history-felt {
  color: var(--ink);
}

.history-about {
  color: var(--ink-dim);
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-4) max(var(--space-6), 5vw);
  padding-top: max(var(--space-4), env(safe-area-inset-top));
}

.topbar-utils {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switch {
  display: flex;
  align-items: center;
  border: 1px solid oklch(from var(--ink) l c h / var(--border-strength));
  border-radius: 999px;
  overflow: hidden;
}

.lang-opt {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  min-height: 36px;
  padding: 0 var(--space-3);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.lang-opt.is-active {
  background: oklch(from var(--ember) l c h / 0.16);
  color: var(--ember);
}

.lang-opt:hover:not(.is-active) {
  color: var(--ink);
}

.lang-opt:focus {
  outline: none;
}

.lang-opt:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: -2px;
}

.icon-btn {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid oklch(from var(--ink) l c h / var(--border-strength));
  border-radius: 999px;
  background: none;
  color: var(--ink-dim);
  position: relative;
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.icon-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

.icon-btn:hover {
  color: var(--ember);
  border-color: oklch(from var(--ember) l c h / 0.7);
}

.icon-btn:focus {
  outline: none;
}

.icon-btn:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

/* show the destination, not the current state */
:root[data-theme='dark'] .icon-moon,
:root[data-theme='light'] .icon-sun {
  display: none;
}

/* the stage must clear the fixed bar */
.stage {
  padding-top: max(5.5rem, calc(env(safe-area-inset-top) + 5rem));
}

/* ---------- breadcrumbs ---------- */

.crumbs ol {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.crumbs li {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.crumb-home {
  appearance: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: var(--space-1) 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: oklch(from var(--ink-faint) l c h / 0.4);
  transition: color 180ms var(--ease-out);
}

.crumb-home::before {
  content: '\2039';
  margin-right: 0.35rem;
  text-decoration: none;
  display: inline-block;
}

.crumb-home:hover {
  color: var(--ember);
}

.crumb-home:focus {
  outline: none;
}

.crumb-home:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.crumb-sep {
  color: oklch(from var(--ink) l c h / 0.45);
}

.crumb-current {
  color: var(--ink-dim);
}

/* ---------- the highlighted entry (R13) ---------- */

.btn--feature {
  position: relative;
  padding: var(--space-2) var(--space-5);
  border-color: oklch(from var(--ember) l c h / 0.72); /* 3:1+ — the fill alone is too faint to bound the control */
  background: oklch(from var(--ember) l c h / 0.12);
  color: var(--ember);
  overflow: visible;
}

.btn--feature:hover {
  border-color: oklch(from var(--ember) l c h / 0.8);
  background: oklch(from var(--ember) l c h / 0.16);
}

.feature-label {
  position: relative;
  z-index: 1;
}

.sparks {
  position: absolute;
  inset: -8px -10px;
  width: calc(100% + 20px);
  height: calc(100% + 16px);
  pointer-events: none;
  overflow: visible;
}

.spark {
  fill: var(--ember);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: twinkle 3.6s var(--ease-out) infinite;
}

/* scattered, not symmetrical — and each on its own offset so they never
   pulse in unison, which is what makes a glow read as cheap */
.spark--1 { transform: translate(6px, 2px) scale(0.5); animation-delay: 0s; }
.spark--2 { transform: translate(96px, 22px) scale(0.42); animation-delay: 1.2s; }
.spark--3 { transform: translate(72px, 0px) scale(0.34); animation-delay: 2.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0; }
  6%       { opacity: 0.9; }
  16%      { opacity: 0; }
  22%      { opacity: 0.55; }
  32%      { opacity: 0; }
}

/* ---------- five good things (R13) ---------- */

.gratitude-list {
  list-style: none;
  margin: 0;
  padding: 0 var(--space-2) 0 0;
  width: 100%;
  max-width: 30rem;
  max-height: min(52vh, 26rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  /* must exceed the label-to-underline distance, or each line reads as
     belonging to the prompt below it rather than its own */
  gap: 2.5rem;
}

.g-row {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--space-4);
  /* staggered reveal — the one place this product animates on purpose */
  animation: gRise 520ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}

@keyframes gRise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* the ember marks a filled line — quiet progress, no counter */
.g-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(from var(--ink) l c h / 0.28);
  transition: background-color 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.g-row.is-filled::before {
  background: var(--ember);
  box-shadow: 0 0 0 3px oklch(from var(--ember) l c h / 0.14);
}

.g-prompt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

.g-input {
  appearance: none;
  width: 100%;
  padding: 0 0 var(--space-1);
  border: none;
  border-bottom: 1px solid oklch(from var(--ink) l c h / var(--border-strength)); /* 3.3:1 — an empty field is only its underline */
  background: none;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
  transition: border-color 200ms var(--ease-out);
}

.g-input::placeholder {
  color: transparent;
}

.g-input:hover {
  border-bottom-color: oklch(from var(--ink) l c h / 0.62);
}

.g-input:focus {
  outline: none;
  border-bottom-color: var(--ember);
}

.g-input:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

.saved-note {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-faint);
}

/* ---------- responsive ---------- */

@media (max-width: 30rem) {
  .stage {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    gap: var(--space-6);
  }

  .affirmation {
    max-width: 22ch;
  }

  .row {
    gap: var(--space-4);
  }

  .question {
    max-width: 20ch;
  }

  .options {
    gap: var(--space-2);
  }

  .option {
    padding: var(--space-2) var(--space-3);
    font-size: 0.875rem;
  }

  .history-head,
  .history-row {
    grid-template-columns: 4.5rem 1fr 1fr;
    gap: var(--space-2);
  }

  .history-felt,
  .history-about {
    font-size: 0.9375rem;
  }

  .topbar {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
    gap: var(--space-2);
  }

  .gratitude-list {
    gap: 2.4rem;
    max-height: 52vh;
  }

  .g-input {
    font-size: 1rem;
    line-height: 1.3;
  }

  .mark {
    left: var(--space-6);
  }
}

@media (min-width: 90rem) {
  .stage {
    padding-left: 12vw;
  }
}

/* ---------- motion & input preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .ambient,
  .stage {
    animation: none;
  }

  .affirmation,
  .affirmation.is-swapping {
    transition: opacity 120ms linear;
    transform: none;
    filter: none;
  }

  .g-row {
    animation: none;
  }

  .spark {
    animation: none;
    opacity: 0.55;
  }
}

@media (pointer: coarse) {
  .btn--nav {
    min-height: 44px;
    padding: var(--space-2) var(--space-2);
  }
}
