:root {
  --bg: #18232f;
  --bg-deep: #111922;
  --panel: rgba(244, 236, 216, 0.07);
  --panel-strong: rgba(244, 236, 216, 0.11);
  --text: #f5f0e6;
  --muted: rgba(245, 240, 230, 0.78);
  --accent: #f1c40f;
  --accent-2: #dda15e;
  --border: rgba(245, 240, 230, 0.17);
  --shadow: rgba(0, 0, 0, 0.35);
  --link: #ffe58a;
  --focus: #ffffff;
  --warning-bg: rgba(241, 196, 15, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Lora", Georgia, serif;
  line-height: 1.7;
  background-color: #06111d;
  background-image:
    radial-gradient(circle at top, rgba(241, 196, 15, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(8, 18, 32, 0.34) 0%, rgba(6, 12, 22, 0.72) 100%),
    url("../images/site-background-stars.png");
  background-position: top center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: auto, auto, cover;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: #111922;
  background: #ffffff;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--border);
}

.site-brand {
  color: var(--text);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.page-hero {
  padding: 54px 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
  line-height: 1.25;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  letter-spacing: 0.025em;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.22rem);
}

.content-card {
  margin-top: 22px;
  padding: clamp(22px, 5vw, 42px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 40px var(--shadow);
  backdrop-filter: blur(10px);
}

.content-card section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.content-card a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h2 {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

p,
ul {
  margin-top: 0;
}

ul {
  padding-left: 1.3rem;
}

li + li {
  margin-top: 8px;
}

.notice {
  padding: 16px 18px;
  background: var(--warning-bg);
  border: 1px solid rgba(241, 196, 15, 0.32);
  border-radius: 14px;
}

.attribution {
  padding: 18px;
  background: rgba(0, 0, 0, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.contact-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.small-print {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 40px;
  padding-top: 22px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, 960px);
    padding-top: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
  }

  .site-nav a {
    min-height: 40px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 999px;
  }

  .page-hero {
    padding-top: 32px;
  }

  .content-card {
    margin-top: 16px;
    padding: 20px 16px;
    border-radius: 16px;
  }
}

@media print {
  body {
    color: #111111;
    background: #ffffff;
  }

  .skip-link,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .site-shell {
    width: 100%;
    padding: 0;
  }

  .page-hero {
    padding: 0 0 18px;
  }

  .content-card {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  a {
    color: inherit;
  }
}
