:root {
  --indigo-deep: #071525;
  --indigo: #0c2340;
  --indigo-mid: #16375c;
  --maroon: #9b1b30;
  --maroon-deep: #6b1020;
  --gold: #c4a35a;
  --cream: #f7f0e4;
  --cream-soft: #efe6d4;
  --ink: #1a1520;
  --muted: #5c534c;
  --line: rgba(196, 163, 90, 0.28);
  --max: 72rem;
  --pad: clamp(1.1rem, 3.5vw, 2rem);
  --font-display: "Fraunces", "Noto Serif", Georgia, serif;
  --font-body: "Figtree", "Noto Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(155, 27, 48, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 5%, rgba(196, 163, 90, 0.16), transparent 50%),
    linear-gradient(165deg, var(--indigo-deep) 0%, var(--indigo) 48%, #0a1c34 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cream);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 21, 37, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.nav a {
  color: rgba(247, 240, 228, 0.78);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold);
}

.hero {
  padding: clamp(2.5rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: rgba(247, 240, 228, 0.82);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.2rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cream);
  color: var(--indigo-deep);
}

.btn-primary:hover {
  background: #fff;
  color: var(--indigo-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.hero-visual {
  justify-self: center;
  width: min(100%, 22rem);
  aspect-ratio: 1;
  border-radius: 1.6rem;
  overflow: hidden;
  background: rgba(7, 21, 37, 0.45);
  box-shadow:
    0 0 0 1px var(--line),
    0 28px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.9s ease both;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy {
  animation: rise 0.75s ease both;
}

.section {
  padding: 1.5rem 0 3.5rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: var(--cream);
}

.section p {
  margin: 0;
  color: rgba(247, 240, 228, 0.78);
  max-width: 40rem;
}

.link-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .link-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.link-card {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 0.9rem;
  background: rgba(30, 69, 99, 0.42);
  border: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.link-card:hover {
  border-color: var(--gold);
  background: rgba(30, 69, 99, 0.62);
  color: var(--cream);
}

.link-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0.3rem;
  color: var(--gold);
}

.link-card span {
  color: rgba(247, 240, 228, 0.72);
  font-size: 0.94rem;
}

.page-hero {
  padding: 2.4rem 0 1.2rem;
}

.page-hero .meta {
  margin: 0.65rem 0 0;
  color: rgba(247, 240, 228, 0.55);
  font-size: 0.92rem;
}

.prose {
  padding: 0 0 3.5rem;
}

.prose-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1rem;
  background: rgba(30, 69, 99, 0.38);
  border: 1px solid var(--line);
}

.prose h2 {
  margin: 1.75rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: rgba(247, 240, 228, 0.86);
}

.prose p {
  margin: 0.55rem 0;
}

.prose ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.prose ol {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.25rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(7, 21, 37, 0.7);
}

.footer-inner {
  padding: 1.4rem 0 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: rgba(247, 240, 228, 0.55);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.footer-links a {
  color: rgba(247, 240, 228, 0.7);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--gold);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--pad);
  top: 0.5rem;
  z-index: 50;
  background: var(--cream);
  color: var(--indigo-deep);
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
}
