:root {
  color-scheme: dark;
  --scene: #1D1A16;
  --scene-ink: #FBF6E6;
  --scene-ink-soft: rgba(251, 246, 230, 0.74);
  --scene-ink-faint: rgba(251, 246, 230, 0.45);
  --scene-glass: rgba(251, 246, 230, 0.16);
  --scene-glass-edge: rgba(251, 246, 230, 0.24);
  --scene-track: rgba(251, 246, 230, 0.2);
  --scene-shade: rgba(0, 0, 0, 0.38);
  --scene-top-light: rgba(251, 246, 230, 0.08);
  --scene-gilt: #3A2E12;
  --scene-ember: #2B1510;
  --scene-dusk: #1F2A3B;
  --scene-lagoon: #14302F;
  --flame-lit: #F1A35E;
  --flame-core: #FBE7A1;
  --butter: #F1D98A;
  --sage: #A9C29B;
  --rose: #E8B4B8;
  --accent: #3F6B4A;
  --ink: #22331F;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --text-display: clamp(2.5rem, 2rem + 2.4vw, 3.75rem);
  --text-title: clamp(1.875rem, 1.6rem + 1.2vw, 2.75rem);
  --text-headline: 1.375rem;
  --text-body: 1rem;
  --text-callout: 0.875rem;
  --text-caption: 0.75rem;
  --text-label: 0.6875rem;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --chip-height: 40px;
  --button-height: 50px;
  --button-edge: 4px;
  --tap-target: 44px;
  --content-width: 680px;
  --dock-width: 440px;
  --gutter-left: max(20px, env(safe-area-inset-left, 0px));
  --gutter-right: max(20px, env(safe-area-inset-right, 0px));
  --scene-transition: 0.7s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--scene);
  color: var(--scene-ink);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--scene-transition);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--scene-top-light), transparent 35%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--butter);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 50;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--scene-ink);
  color: var(--scene);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: calc(env(safe-area-inset-top, 0px) + var(--space-sm));
}

.label {
  font-size: var(--text-label);
  line-height: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--scene-ink-soft);
}

.display {
  font-family: var(--serif);
  font-size: var(--text-display);
  line-height: 1.1;
}

.title {
  font-family: var(--serif);
  font-size: var(--text-title);
  line-height: 1.13;
}

.headline {
  font-family: var(--serif);
  font-size: var(--text-headline);
  line-height: 1.18;
}

.soft {
  color: var(--scene-ink-soft);
  font-size: var(--text-body);
  line-height: 1.5;
}

.callout {
  color: var(--scene-ink-soft);
  font-size: var(--text-callout);
  line-height: 1.43;
}

.site-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: calc(env(safe-area-inset-top, 0px) + var(--space-sm));
  padding-bottom: var(--space-sm);
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  background-color: inherit;
}

.site-top::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: var(--space-lg);
  background-color: inherit;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  min-height: var(--tap-target);
}

.brand img {
  width: 88px;
  height: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  height: var(--chip-height);
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--scene-glass-edge);
  background: var(--scene-glass);
  color: var(--scene-ink);
  font-size: var(--text-callout);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: var(--button-height);
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border-bottom: var(--button-edge) solid var(--scene-shade);
  background: var(--scene-ink);
  color: var(--scene);
  font-size: var(--text-body);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.action-button:active {
  transform: translateY(2px);
}

.action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.faq {
  display: grid;
  gap: var(--space-xs);
}

.faq h2 {
  margin-bottom: var(--space-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--tap-target);
  padding-block: var(--space-sm);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: var(--text-headline);
  line-height: 1;
  color: var(--scene-ink-soft);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding-bottom: var(--space-md);
  color: var(--scene-ink-soft);
  font-size: var(--text-callout);
  line-height: 1.5;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: var(--space-lg);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-lg));
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  font-size: var(--text-caption);
  color: var(--scene-ink-faint);
}

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-target);
  color: var(--scene-ink-soft);
  text-decoration: none;
}

.reading-page {
  display: grid;
  gap: var(--space-xl);
  max-width: var(--content-width);
  margin: 0 auto;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
}

.reading-page header {
  display: grid;
  gap: var(--space-sm);
}

.prose {
  display: grid;
  gap: var(--space-md);
  color: var(--scene-ink-soft);
}

.prose h2 {
  margin-top: var(--space-md);
  font-family: var(--serif);
  font-size: var(--text-headline);
  line-height: 1.18;
  color: var(--scene-ink);
}

.prose strong {
  color: var(--scene-ink);
  font-weight: 500;
}

.prose ul,
.prose ol {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding-left: var(--space-lg);
}

.prose a {
  color: var(--scene-ink);
}

.contact {
  display: grid;
  gap: var(--space-xs);
}

.contact-address {
  font-family: var(--serif);
  font-size: var(--text-title);
  line-height: 1.13;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.status-screen {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-lg);
  max-width: var(--dock-width);
  min-height: calc(100vh - 80px);
  min-height: calc(100svh - 80px);
  margin: 0 auto;
  padding-top: var(--space-xl);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--space-lg));
  padding-left: var(--gutter-left);
  padding-right: var(--gutter-right);
  text-align: center;
}

.status-screen .words {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: auto;
  margin-top: auto;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.flame-body {
  fill: var(--flame-lit);
}

.flame-core {
  fill: var(--flame-core);
}

.club-code {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.2em;
  user-select: all;
  -webkit-user-select: all;
}

.club-store {
  align-self: center;
}
