/* ============================================================
   Falcons' Court — main.css
   Dark medieval tokens, reset, typography, layout primitives
   ============================================================ */

:root {
  /* Brand palette — dark medieval */
  --black:           #000000;
  --black-soft:      #0d0a06;    /* used for subtle alt sections */
  --gold:            #c9a030;
  --gold-text:       #d4aa40;
  --gold-bright:     #e8c050;
  --gold-dark:       #8a6610;
  --parchment:       #d4b483;
  --parchment-pale:  #f0e4c0;
  --parchment-dark:  #9a7a35;
  --ink:             #1a1205;
  --text-on-dark:    #e8d8b8;
  --text-muted-dark: #9a8565;
  --deco-border:     #4a3c18;

  /* Layout */
  --sidebar-width: 220px;
  --container: 1080px;
  --container-narrow: 720px;

  /* Type */
  --serif-display: "Cinzel Decorative", Georgia, "Times New Roman", serif;
  --serif:         "Cinzel", Georgia, "Times New Roman", serif;
  --serif-body:    "IM Fell English", Georgia, "Times New Roman", serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.05rem;
  --fs-md:   1.2rem;
  --fs-lg:   1.5rem;
  --fs-xl:   1.875rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  3.75rem;

  /* Spacing scale (8pt grid) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);

  --transition: 180ms ease;
}

/* ---------- Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  font-family: var(--serif-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text-on-dark);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

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

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

a {
  color: var(--gold-text);
  text-decoration: underline;
  text-decoration-color: rgba(212, 170, 64, 0.4);
  text-underline-offset: 3px;
  transition: color var(--transition);
}
a:hover { color: var(--gold-bright); text-decoration-color: var(--gold-bright); }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h1 { font-size: var(--fs-3xl); letter-spacing: 0.06em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--fs-4xl); }
  h2 { font-size: var(--fs-3xl); }
  h3 { font-size: var(--fs-2xl); }
}

p {
  max-width: 68ch;
  color: var(--text-on-dark);
}

strong, b { color: var(--gold-text); font-weight: 600; }
em, i { color: var(--text-on-dark); }

.eyebrow {
  font-family: var(--serif);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-2);
}

.lead {
  font-size: var(--fs-md);
  color: var(--text-on-dark);
  max-width: 60ch;
  line-height: 1.6;
  font-style: italic;
}

/* ---------- Layout primitives ---------- */

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

@media (min-width: 768px) {
  .container { padding-inline: var(--space-4); }
}

.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-5); }

@media (min-width: 768px) {
  .section { padding-block: var(--space-6); }
}

.section--alt {
  background: var(--black-soft);
}

.section--dark {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(74, 60, 24, 0.18), transparent 70%),
    var(--black);
}

.stack > * + * { margin-top: var(--space-3); }
.stack-lg > * + * { margin-top: var(--space-4); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Accessibility ---------- */

.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;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
  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;
  }
}
