:root {
  --ink: #f7f2ff;
  --muted: #cbbfe2;
  --background: #171123;
  --surface: #241936;
  --surface-raised: #302147;
  --accent: #be8cff;
  --accent-strong: #d7b7ff;
  --line: #4b3867;
  --page-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at top right, #3b235d 0, var(--background) 42rem);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.55;
}

a { color: var(--accent-strong); }
a:hover { color: #fff; }

.page-width { width: min(calc(100% - 2.5rem), var(--page-width)); margin: 0 auto; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(23, 17, 35, .9); }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.75rem; }
.site-name { color: var(--ink); font-size: 1.35rem; font-weight: bold; text-decoration: none; white-space: nowrap; }
.site-name span, .eyebrow { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1rem; }
nav a { font-family: Arial, sans-serif; font-size: .9rem; font-weight: bold; text-decoration: none; }

.hero { padding: 6rem 0 5rem; max-width: 780px; margin-left: max(1.25rem, calc((100% - var(--page-width)) / 2)); }
.eyebrow { margin: 0 0 .35rem; font-family: Arial, sans-serif; font-size: .75rem; font-weight: bold; letter-spacing: .14em; }
h1, h2, h3 { line-height: 1.15; }
h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { margin: 0 0 .5rem; font-size: 1.3rem; }
.hero-copy { max-width: 42rem; color: var(--muted); font-size: 1.2rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button { display: inline-block; padding: .7rem 1rem; color: #1d102f; background: var(--accent); border-radius: .3rem; font-family: Arial, sans-serif; font-weight: bold; text-decoration: none; }
.button:hover { color: #1d102f; background: #dbc2ff; }
.button-secondary { color: var(--ink); background: transparent; border: 1px solid var(--accent); }
.button-secondary:hover { color: var(--ink); background: var(--surface-raised); }

.content-section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 1.5rem; }
.card-grid, .resource-grid { display: grid; gap: 1rem; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .resource-group { padding: 1.4rem; background: rgba(36, 25, 54, .9); border: 1px solid var(--line); border-radius: .4rem; }
.card p, .resource-group p { color: var(--muted); }
.card a { font-family: Arial, sans-serif; font-weight: bold; }
.resource-callout { padding: 3.5rem 0; background: #301d4a; }
.callout-content { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-footer { padding: 1.5rem 0; color: var(--muted); font-family: Arial, sans-serif; font-size: .85rem; }

.page-intro { padding: 4.5rem 0 2.5rem; }
.page-intro p:last-child { max-width: 44rem; color: var(--muted); font-size: 1.1rem; }
.resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.resource-group ul { margin: .75rem 0 0; padding-left: 1.15rem; }
.resource-group li { margin: .45rem 0; }
.historical { margin-top: 3rem; border-color: #82629d; background: rgba(48, 33, 71, .85); }
.historical h2 { font-size: 1.7rem; }
.link-note { color: var(--muted); font-size: .9rem; }

@media (max-width: 700px) {
  .header-content, .callout-content { align-items: flex-start; flex-direction: column; padding: 1rem 0; }
  nav { justify-content: flex-start; }
  .hero { margin-left: auto; padding: 4rem 0; }
  .two-columns, .three-columns, .resource-grid { grid-template-columns: 1fr; }
}

/* Compact homepage: intentionally close to the scale and simplicity of the old site. */
.home-page {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: var(--background);
}

.compact-width { width: min(calc(100% - 2rem), 900px); margin: 0 auto; }
.compact-header { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.compact-header .compact-width { display: flex; justify-content: space-between; align-items: center; }
.compact-header a { font-size: 13px; }
.compact-site-name { color: var(--ink); font-weight: bold; text-decoration: none; }
.home-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding: 2rem 0; }
.quick-links { padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); }
.quick-links h1 { margin: 0 0 .55rem; font-size: 14px; }
.quick-links ul { margin: 0; padding-left: 1.1rem; }
.quick-links li { margin: .55rem 0; }
.site-destinations { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .75rem; }
.site-button { display: inline-block; min-width: 130px; padding: .65rem .9rem; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--accent); border-radius: .2rem; font-size: 13px; font-weight: bold; text-align: center; text-decoration: none; }
.site-button:hover { color: var(--ink); background: #4a326b; }
@media (max-width: 600px) {
  .home-layout { grid-template-columns: 1fr; gap: 1rem; }
  .site-button { flex: 1 1 140px; }
}

.resources-page {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: var(--background);
}

.resources-main { padding: 1.25rem 0 2rem; }
.resources-main > h1 { margin: 0 0 1rem; font-size: 16px; }
.resources-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.resource-list { padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); }
.resource-list h2 { margin: 0 0 .45rem; font-size: 14px; }
.resource-list ul { margin: 0; padding-left: 1.1rem; }
.resource-list li { margin: .38rem 0; }
.historical-list { margin-top: .9rem; background: #2a1d3d; }

@media (max-width: 600px) {
  .resources-layout { grid-template-columns: 1fr; }
}
