@font-face {
  font-family: 'Spectral';
  src: url('/fonts/spectral-latin-300-normal.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/fonts/spectral-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/fonts/spectral-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/fonts/spectral-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('/fonts/cormorant-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #e7efea;
  --color-wedge: #d6e3db;
  --color-text: #2c3a34;
  --color-muted: #5e6f67;
  --color-accent: #3f7567;
  --color-accent-dark: #2f5a4f;
  --color-rule: #cfdfd7;
  /* Display headings use Cormorant; body copy uses Spectral. Both serif. */
  --font-serif: 'Cormorant', ui-serif, Georgia, 'Times New Roman', serif;
  --font-sans: 'Spectral', Georgia, 'Times New Roman', ui-serif, serif;
  --max-width: 42rem;
}

* {
  box-sizing: border-box;
}

/* Visually hidden, but available to screen readers. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until focused, then anchored top-left. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 100;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 0.875rem;
  border-radius: 4px;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0.5rem;
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-accent);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-rule);
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.site-header .brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  color: var(--color-muted);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

.nav-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.nav-link--button {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-form {
  margin: 0;
  display: inline-flex;
}

.site-footer {
  border-top: 1px solid var(--color-rule);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

/* Long-form content pages (About, Privacy, Terms) */
.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin: 2rem 0 0.5rem;
}

.prose p {
  max-width: 38rem;
}

.about-cta {
  margin-top: 2rem;
}

.credits-list {
  max-width: 38rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.credits-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-rule, rgba(0, 0, 0, 0.08));
}

.credits-list li:last-child {
  border-bottom: none;
}

.credits-license {
  color: var(--color-muted);
  font-size: 0.95rem;
}

.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.muted {
  color: var(--color-muted);
  font-style: italic;
}

/* Buttons & links acting as buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem 1.75rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  outline: none;
}

.btn-primary:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.3);
}

/* Forms */
.start-form fieldset {
  border: 0;
  border-top: 1px solid var(--color-rule);
  padding: 1.5rem 0;
  margin: 0;
}

.start-form fieldset:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.start-form legend {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  padding: 0;
}

.fieldset-hint {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-field input[type='email'],
.form-field input[type='text'] {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  background: #f3f7f3;
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  color: var(--color-text);
}

.form-field input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.15);
}

.start-form .option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.625rem;
  border: 1px solid var(--color-rule);
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.start-form .option:hover {
  border-color: var(--color-accent);
}

.start-form .option:has(input:checked) {
  border-color: var(--color-accent);
  background: var(--color-wedge);
}

.start-form .option input {
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.option-text {
  display: flex;
  flex-direction: column;
}

.option-label {
  font-weight: 500;
}

.option-detail {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.start-form button[type='submit'] {
  margin-top: 1.5rem;
}

.error-banner {
  background: #f4e0dc;
  border-left: 4px solid #a14b3a;
  color: #6b2f24;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

/* Session summary placeholder */
.session-summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0;
}

.session-summary dt {
  font-weight: 500;
  color: var(--color-muted);
}

.session-summary dd {
  margin: 0;
}

/* Wide layout for the session view so the wheel has room */
.container--wide {
  max-width: 68rem;
}

/* Session layout. Mobile: natural stack (wheel → reading/journal →
   controls → mute). Desktop: two columns via grid areas — wheel,
   controls and mute in the left column, reading + journal on the right —
   without changing DOM order, so the mobile stack stays sensible. */
@media (min-width: 900px) {
  .session-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas:
      'wheel    read'
      'controls read'
      'mute     read';
    column-gap: 3.5rem;
    align-items: start;
  }

  .session-layout .wheel-stage {
    grid-area: wheel;
  }

  .session-layout .session-body {
    grid-area: read;
    max-width: none;
    margin: 0;
    text-align: left;
    padding-top: 1rem;
  }

  .session-layout .scripture-refs {
    justify-content: flex-start;
  }

  .session-layout .session-controls {
    grid-area: controls;
    padding-top: 0;
  }

  .session-layout .session-utility {
    grid-area: mute;
    padding-top: 0;
  }
}

/* The wheel */
.wheel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}

.wheel {
  display: block;
  width: 100%;
  max-width: 44rem;
  height: auto;
}

.wedges {
  transform-box: view-box;
  transform-origin: 300px 300px;
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 1200ms ease;
}

.wheel-marker {
  fill: var(--color-accent);
}

.wedge-shape {
  fill: var(--color-wedge);
  stroke: var(--color-bg);
  stroke-width: 2;
  transition:
    fill 600ms ease,
    stroke 600ms ease;
}

.wedge--active .wedge-shape {
  fill: var(--color-accent);
  animation: wedge-breathe 6s ease-in-out infinite;
}

@keyframes wedge-breathe {
  0%,
  100% {
    opacity: 0.92;
  }
  50% {
    opacity: 1;
  }
}

.wedge-label {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  fill: var(--color-text);
  pointer-events: none;
  transition: fill 600ms ease;
}

.wedge--active .wedge-label {
  fill: var(--color-bg);
}

.wheel-hub {
  fill: var(--color-bg);
  stroke: var(--color-rule);
  stroke-width: 1.5;
}

.wheel-hub-time {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  fill: var(--color-text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.wheel-caption {
  color: var(--color-muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Session body: narrower than the wheel for comfortable reading */
.session-body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 0 2rem;
  text-align: center;
}

.segment-pip {
  color: var(--color-muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.segment-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  color: var(--color-accent);
  margin: 0.25rem 0 1rem;
}

.segment-prompt {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.scripture-refs {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.scripture-refs li {
  display: inline-flex;
}

.scripture-ref {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--color-accent);
  background: var(--color-wedge);
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease-out, color 120ms ease-out;
}
.scripture-ref:hover,
.scripture-ref:focus-visible {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

/* Session controls */
.session-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0 2rem;
}

.session-controls .btn-primary {
  min-width: 9rem;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  outline: none;
}

.btn-secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.2);
}

/* Quiet utility button (mute toggle) */
.session-utility {
  display: flex;
  justify-content: center;
  padding: 0 0 1.5rem;
}

.btn-utility {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.btn-utility:hover,
.btn-utility:focus-visible {
  color: var(--color-text);
  background: rgba(63, 117, 103, 0.05);
  outline: none;
}

.btn-utility[aria-pressed='true'] {
  color: var(--color-text);
}

/* Sing segment YouTube embed */
.sing-embed {
  margin: 1.5rem 0;
}

.sing-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.sing-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sing-embed-caption {
  color: var(--color-muted);
  font-size: 0.9375rem;
  margin: 0.75rem 0 0;
  text-align: center;
}

.sing-empty {
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--color-rule);
  border-radius: 4px;
  margin: 1.5rem 0;
}

.sing-now-playing {
  margin: 1.5rem 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--color-surface, rgba(0, 0, 0, 0.02));
  border: 1px solid var(--color-rule, rgba(0, 0, 0, 0.08));
  border-radius: 6px;
}

.sing-now-playing-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.sing-now-playing-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.2;
}

.sing-now-playing-artist {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Journal */
.journal {
  margin-top: 1.5rem;
  text-align: left;
}

.journal-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

trix-editor.journal-trix {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: #f3f7f3;
  border: 1px solid var(--color-rule);
  border-radius: 0 0 4px 4px;
  padding: 0.75rem 0.875rem;
  min-height: 6rem;
}

trix-editor.journal-trix:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.15);
}

trix-editor.journal-trix h1 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

/* Trim the Trix toolbar to the formatting a journal needs:
   bold, italic, heading, and bullet list. */
trix-toolbar [data-trix-attribute='strike'],
trix-toolbar [data-trix-action='link'],
trix-toolbar [data-trix-attribute='quote'],
trix-toolbar [data-trix-attribute='code'],
trix-toolbar [data-trix-attribute='number'],
trix-toolbar [data-trix-action='attachFiles'] {
  display: none;
}

trix-toolbar .trix-button-group {
  border-color: var(--color-rule);
}

.journal-save {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.6rem 0 0;
}

.btn-save {
  display: inline-block;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  cursor: pointer;
}

.btn-save:hover,
.btn-save:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  outline: none;
}

.btn-save:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.2);
}

.btn-save:disabled {
  cursor: default;
  opacity: 0.6;
}

.journal-save-status {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.journal-save-status.is-unsaved {
  color: var(--color-accent);
}

/* Home page CTA row */
/* Home hero — editorial two-column (text + slowly turning wheel motif) */
.home-hero {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 1;
  margin: 0;
  max-width: 100%;
  color: var(--color-text);
  overflow-wrap: break-word;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.hero-lede {
  max-width: min(30rem, 100%);
  margin: 1.5rem 0 0;
  color: var(--color-muted);
  font-style: normal;
}

.home-cta {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* Pill CTA — the rounded variant of the primary button */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1rem 2.1rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 200ms ease,
    transform 200ms ease;
}

.btn-pill:hover,
.btn-pill:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  outline: none;
}

.btn-pill:focus-visible {
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.3);
}

.btn-arrow {
  transition: transform 200ms ease;
}

.btn-pill:hover .btn-arrow {
  transform: translateX(3px);
}

.home-print {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* The turning wheel motif */
.hero-wheel {
  width: clamp(220px, 60vw, 360px);
}

.home-wheel {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(47, 90, 79, 0.16));
}

.home-wheel-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: home-wheel-turn 240s linear infinite;
}

.home-wedge {
  fill: var(--color-wedge);
  stroke: var(--color-bg);
  stroke-width: 2.5;
}

.home-wedge--active {
  fill: var(--color-accent);
}

.home-wheel-hub {
  fill: #f1f6f2;
  stroke: var(--color-rule);
  stroke-width: 1.5;
}

.home-wheel-dot {
  fill: var(--color-accent);
}

@keyframes home-wheel-turn {
  to {
    transform: rotate(360deg);
  }
}

/* Wide: text left, wheel right */
@media (min-width: 900px) {
  .home-hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 4rem;
  }

  .hero-text {
    align-items: flex-start;
    flex: 1;
  }

  .hero-lede {
    margin-left: 0;
  }

  .home-cta {
    justify-content: flex-start;
  }

  .hero-wheel {
    width: min(40vw, 400px);
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-wheel-spin {
    animation: none;
  }

  .btn-pill,
  .btn-arrow,
  .btn-primary,
  .start-form .option {
    transition: none;
  }
}

/* Start (pre-flight) — threshold screen echoing the home hero.
   Layout/typography here is scoped under .start-hero so the shared
   .start-form / .option styles (also used by the signup page) are left intact. */
.start-hero {
  flex: 1;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
}

.start-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.start-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: 1.05;
  margin: 0;
  color: var(--color-text);
}

.start-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.start-blurb {
  max-width: min(26rem, 100%);
  margin: 1.25rem 0 0;
  color: var(--color-muted);
  font-size: 1.125rem;
  font-style: italic;
}

.start-wheel {
  width: clamp(150px, 42vw, 230px);
  margin-top: 1.75rem;
}

.start-wheel .home-wheel {
  filter: drop-shadow(0 14px 26px rgba(47, 90, 79, 0.14));
}

.start-choices {
  width: 100%;
  max-width: 30rem;
}

.start-hero .start-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.75rem;
}

.start-hero .start-form legend {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.85rem;
  padding: 0;
}

.start-hero .fieldset-hint {
  font-style: italic;
  margin: -0.4rem 0 0.85rem;
}

/* Duration: a horizontal pair of selectable cards */
.duration-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.start-hero .duration-pair .option {
  position: relative;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1.25rem 0.75rem;
  margin: 0;
  border-radius: 14px;
}

/* The radio itself is hidden; the whole card is the control. */
.start-hero .duration-pair .option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Keyboard focus must stay visible even though the radio is hidden. */
.start-hero .duration-pair .option:has(input:focus-visible) {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(63, 117, 103, 0.3);
}

.duration-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--color-text);
}

.start-hero .duration-pair .option:has(input:checked) .duration-num {
  color: var(--color-accent);
}

.duration-unit {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.duration-detail {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

/* Audio: compact stacked rows */
.start-hero .audio-list .option {
  align-items: center;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.start-hero .audio-list .option input {
  margin-top: 0;
}

.start-submit {
  display: flex;
  justify-content: center;
}

@media (min-width: 900px) {
  .start-hero {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 4rem;
  }

  .start-text {
    align-items: flex-start;
    flex: 1;
  }

  .start-wheel {
    width: min(34vw, 300px);
    margin-top: 2.5rem;
  }

  .start-choices {
    flex-shrink: 0;
  }

  .start-submit {
    justify-content: flex-start;
  }
}

/* Completion */
.completion {
  text-align: center;
  padding: 2rem 0;
  max-width: 38rem;
  margin: 0 auto;
}

.completion h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin: 0 0 0.75rem;
}

.summary {
  margin: 2rem 0;
  text-align: left;
}

.summary h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-align: center;
}

.summary-entry {
  border-top: 1px solid var(--color-rule);
  padding: 1rem 0;
}

.summary-entry h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
}

.summary-entry-content {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* Journal list + detail */
.back-link {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.back-link a {
  color: var(--color-muted);
  text-decoration: none;
}

.back-link a:hover,
.back-link a:focus-visible {
  color: var(--color-accent);
  outline: none;
}

.journal-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--color-rule);
}

.journal-list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-rule);
}

.journal-list-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0.5rem;
  text-decoration: none;
  color: var(--color-text);
}

.journal-delete-form {
  margin: 0;
  flex-shrink: 0;
}

/* Quiet, humble destructive action: neutral until hovered/focused,
   then a muted clay red to signal it's irreversible. */
.btn-delete {
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.btn-delete:hover,
.btn-delete:focus-visible {
  border-color: #a14b3a;
  color: #a14b3a;
  outline: none;
}

.btn-delete:focus-visible {
  box-shadow: 0 0 0 3px rgba(161, 75, 58, 0.2);
}

/* "Clear all" sits below the list, right-aligned and set apart. */
.journal-clear {
  margin: 1.5rem 0 0;
  display: flex;
  justify-content: flex-end;
}

/* Delete action on the session detail page. */
.journal-danger {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-rule);
}

.journal-list-link:hover,
.journal-list-link:focus-visible {
  background: rgba(63, 117, 103, 0.05);
  outline: none;
}

.journal-list-date {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 500;
}

.journal-list-meta {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.journal-detail {
  margin: 2rem 0;
}

.journal-entry {
  border-top: 1px solid var(--color-rule);
  padding: 1.5rem 0;
}

.journal-entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.journal-entry-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.journal-entry-content {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 1.0625rem;
}

/* Rich-text journal output (sanitized HTML from the editor). */
.journal-entry-content h1,
.summary-entry-content h1 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.75rem 0 0.25rem;
}

.journal-entry-content ul,
.journal-entry-content ol,
.summary-entry-content ul,
.summary-entry-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.journal-entry-content li,
.summary-entry-content li {
  margin: 0.2rem 0;
}

/* Alpine x-cloak: hide bound markup until Alpine wires it up */
[x-cloak] {
  visibility: hidden;
}

/* Respect reduced motion: degrade transitions to nothing. The wheel does not
   rotate; the active-wedge fill highlight stands in as the cue. */
@media (prefers-reduced-motion: reduce) {
  .wedges {
    transform: none;
    transition: none;
  }

  .wedge-shape,
  .wedge-label {
    transition: none;
  }

  .wedge--active .wedge-shape {
    animation: none;
  }
}
