/* ═══════════════════════════════════════════════
   ASTERION RECOVERY — DESIGN TOKENS
   Ink-black · Bone text · Antique gold accent
   ═══════════════════════════════════════════════ */

:root {
  --text-xs:   clamp(0.72rem,  0.68rem + 0.2vw,  0.825rem);
  --text-sm:   clamp(0.85rem,  0.78rem + 0.3vw,  0.95rem);
  --text-base: clamp(0.975rem, 0.9rem  + 0.3vw,  1.075rem);
  --text-lg:   clamp(1.1rem,   0.95rem + 0.7vw,  1.4rem);
  --text-xl:   clamp(1.4rem,   1.1rem  + 1.2vw,  2.1rem);
  --text-2xl:  clamp(1.8rem,   1.1rem  + 2.2vw,  3.2rem);
  --text-hero: clamp(2rem,     1rem    + 3vw,     3.75rem);

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-7:  1.75rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --t-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
  --t-base: 280ms cubic-bezier(0.16, 1, 0.3, 1);

  --content-wide: 1240px;

  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
}

:root,
[data-theme='dark'] {
  --color-bg:            #0b0c0e;
  --color-surface:       #111317;
  --color-surface-2:     #161a1f;
  --color-surface-3:     #1c2128;

  --color-border:        #232932;
  --color-border-strong: #2e3640;
  --color-divider:       #1a1f25;

  --color-text:          #ecebe5;
  --color-text-strong:   #ffffff;
  --color-text-muted:    #9aa0a6;
  --color-text-faint:    #60676f;

  --color-accent:        #c9a96a;
  --color-accent-hover:  #d8bc81;
  --color-accent-soft:   rgba(201, 169, 106, 0.12);
  --color-accent-line:   rgba(201, 169, 106, 0.25);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg:  0 20px 56px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px rgba(201,169,106,0.18), 0 10px 36px rgba(201,169,106,0.07);

  --color-header-bg: rgba(11, 12, 14, 0.88);
}

/* ═══════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-feature-settings: 'cv11', 'ss01', 'kern';
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -8%,  rgba(201,169,106,0.055) 0%, transparent 100%),
    radial-gradient(ellipse 70% 45% at 50% 108%, rgba(201,169,106,0.035) 0%, transparent 100%);
  background-attachment: fixed;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.1; font-weight: 500; }
p, li, figcaption { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--color-accent-soft); color: var(--color-text-strong); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button { cursor: pointer; background: none; border: none; }

a, button, input, textarea, select {
  transition: color var(--t-fast), background var(--t-fast),
    border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ═══════════════════════════════════════════════
   LAYOUT PRIMITIVES
   ═══════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 5vw, var(--space-10));
}

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-24));
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.07;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-bottom: var(--space-5);
}
.section-title em { font-style: italic; color: var(--color-accent); }

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 58ch;
  line-height: 1.7;
}

.section-head { margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #1a130a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 6px 20px rgba(201,169,106,0.2);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 10px 28px rgba(201,169,106,0.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  border-color: var(--color-accent-line);
  color: var(--color-text-strong);
}

.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-block { width: 100%; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-accent-line);
  color: var(--color-accent);
  background: var(--color-accent-soft);
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
.cta-pill:hover {
  background: var(--color-accent);
  color: #1a130a;
  border-color: var(--color-accent);
}
