:root {
  color-scheme: dark;
  --ink: #020604;
  --ink-2: #06100b;
  --ink-3: #0a1710;
  --emerald-950: #04110b;
  --emerald-900: #062117;
  --emerald-800: #0a3b28;
  --emerald-600: #0aa866;
  --emerald-400: #32e99a;
  --gold-900: #6b4318;
  --gold-700: #a8722f;
  --gold-500: #d9a84e;
  --gold-300: #f0d38a;
  --gold-100: #fff1c5;
  --ivory: #f7f2e7;
  --muted: #b7b9b3;
  --muted-2: #8f948e;
  --line: rgba(222, 175, 83, 0.32);
  --line-strong: rgba(240, 197, 107, 0.66);
  --glass: rgba(4, 11, 8, 0.72);
  --glass-strong: rgba(3, 9, 6, 0.9);
  --focus: #f6d984;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-gold: 0 0 0 1px rgba(242, 199, 107, 0.06), 0 18px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(196, 133, 45, 0.08);
  --shadow-emerald: 0 20px 64px rgba(0, 0, 0, 0.5), 0 0 46px rgba(23, 221, 136, 0.12);
  --font-display: "Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --content: 1080px;
  --transition: 180ms cubic-bezier(.2,.8,.2,1);
}

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

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(42, 132, 88, 0.11), transparent 38rem),
    linear-gradient(180deg, #030806 0%, #010302 100%);
  color: var(--ivory);
  font-family: var(--font-ui);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

::selection {
  background: rgba(216, 169, 76, 0.32);
  color: #fff8e7;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #08110c;
  color: var(--gold-100);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition);
}

.skip-link:focus { transform: translateY(0); }

.page-backdrop {
  position: fixed;
  z-index: -4;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(1, 5, 3, 0.5) 0%, rgba(1, 4, 3, 0.78) 48%, rgba(1, 3, 2, 0.92) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45)),
    url('../img/chapman-marble.jpg');
  background-position: center;
  background-size: cover;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.015);
}

.page-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 6%, rgba(219, 165, 67, 0.13), transparent 25rem),
    repeating-linear-gradient(120deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 5px);
  opacity: 0.85;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  z-index: -3;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.09;
  pointer-events: none;
}

.ambient-glow--one { top: 8vh; left: -18rem; background: #00d77e; }
.ambient-glow--two { right: -20rem; top: 45vh; background: #e0a74f; }

.noscript-card {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 12, 8, 0.82);
  color: var(--muted);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
