
:root {
  /* Color Story: Blush & Stone (Dark Premium) */
  --ground: #EDE6E4;
  --surface-dark: #221E20;
  --surface-card: #2D282A;
  --surface-card-hover: #363032;
  --surface-light: #F7F2F0;
  --surface-alt: #E3DBD8;

  --ink-dark: #1A1617;
  --ink-light: #F5EFEB;
  --ink-muted: #786E70;
  --ink-muted-light: #A89E9F;

  --accent: #E0897A;
  --accent-hover: #EC9A8C;
  --accent-active: #CF7A6C;
  --accent-soft: rgba(224, 137, 122, 0.15);
  --accent-border: rgba(224, 137, 122, 0.45);

  --border-dark: #433C3E;
  --border-dark-subtle: #332D2F;
  --border-light: #D6CCC9;
  --border-light-strong: #BCB0AC;

  --focus-ring: #C4786A;

  --error: #B83A3A;
  --error-bg: rgba(184, 58, 58, 0.12);
  --success: #3A8A5A;

  /* Typography Families */
  --focu-a7f: "Cinzel", Georgia, "Times New Roman", serif;
  --focu-e10: "Source Serif 4", Georgia, "Times New Roman", serif;
  --focu-d44: "JetBrains Mono", "Courier New", monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --text-md: clamp(1.125rem, 1.06rem + 0.35vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.16rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.34rem + 0.8vw, 1.875rem);
  --text-2xl: clamp(1.85rem, 1.6rem + 1.25vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.9rem + 1.8vw, 3.25rem);
  --text-hero: clamp(2.5rem, 2.1rem + 2.4vw, 4.25rem);

  /* Spacing Scale */
  --space-2xs: clamp(0.25rem, 0.22rem + 0.15vw, 0.375rem);
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
  --space-sm: clamp(0.75rem, 0.68rem + 0.35vw, 1rem);
  --space-md: clamp(1.25rem, 1.1rem + 0.6vw, 1.75rem);
  --space-lg: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);
  --space-xl: clamp(3rem, 2.5rem + 2vw, 4.5rem);
  --space-2xl: clamp(4.5rem, 3.8rem + 3vw, 6.5rem);

  --container-max: 1240px;
  --container-narrow: 860px;
  --gutter: clamp(1.25rem, 0.95rem + 1.5vw, 2.5rem);

  /* Motion Tokens */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-expressive: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 140ms;
  --duration-medium: 220ms;
  --duration-slow: 400ms;

  /* Line Heights */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
}

/* Base Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--ground);
  color: var(--ink-dark);
}

body {
  font-family: var(--focu-e10);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background-color: var(--ground);
  color: var(--ink-dark);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;

  flex-direction: column;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* Media Elements */
img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

svg { fill: currentColor; }

/* Fluid display headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--focu-a7f);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: inherit;
  letter-spacing: -0.015em;
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h4 { font-size: var(--text-lg); }

h5 { font-size: var(--text-md); }

h6 {
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Paragraphs & Reading measure */
p {
  margin-block-end: var(--space-sm);
  max-width: 72ch;
}

p:last-child { margin-block-end: 0; }

strong,
b { font-weight: 600; }

small { font-size: var(--text-xs); }

/* Links */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard),
              text-decoration-color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Lists */
ul,
ol {
  list-style-position: outside;
  padding-inline-start: 1.35em;
  margin-block-end: var(--space-sm);
}

li { margin-block-end: 0.35em; }

li:last-child { margin-block-end: 0; }

code,
pre,
kbd,
samp,
.mono-val,
.spec-value,
.price-figure,
.ledger-code {
  font-family: var(--focu-d44);
  font-size: 0.92em;
  font-feature-settings: "tnum" 1, "zero" 1;
  min-width: 0;
}

.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Stacked full-width colour blocks (Blueprint core) */
.block-section {
  width: 100%;
  border-block-end: 2px solid var(--border-dark);
  padding-block: var(--space-2xl);
  position: relative;
}

.block-ground {
  background-color: var(--ground);
  color: var(--ink-dark);

  border-block-end-color: var(--border-light-strong);
}

.block-dark {
  background-color: var(--surface-dark);
  color: var(--ink-light);
  border-block-end-color: var(--border-dark);
}

.block-card-tone {
  background-color: var(--surface-card);
  color: var(--ink-light);
  border-block-end-color: var(--border-dark);
}

.block-blush-light {
  background-color: var(--surface-light);
  color: var(--ink-dark);
  border-block-end-color: var(--border-light-strong);
}

/* Questions as Headings composition */
.question-heading {
  font-family: var(--focu-a7f);
  font-size: var(--text-2xl);
  line-height: var(--leading-tight);
  margin-block-end: var(--space-md);
  max-width: 32ch;
  color: inherit;
}

.answer-lead {
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  margin-block-end: var(--space-md);
  max-width: 66ch;
}

.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 {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.65rem 1.25rem;
  background-color: var(--surface-dark);
  color: var(--ink-light);
  font-family: var(--focu-d44);
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1px solid var(--accent);
  transform: translateY(-160%);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced Motion Safeguard */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
