:root {
  --navy: #11264a;
  --navy-light: #1d467d;
  --maroon: #771f2f;
  --gold: #c9a55a;
  --paper: #fff;
  --ink: #1e2938;
  --muted: #5a6678;
  --line: #d9dfe8;
  --warning: #fff4d8;
  --warning-line: #e4b94f;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(17, 38, 74, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 2%, rgba(201, 165, 90, 0.14), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, #eff3f7 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: #174d91;
  text-underline-offset: 0.17em;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.9rem;
  color: #fff;
  background: var(--maroon);
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.notice {
  margin: 0;
  padding: 0.78rem 1rem;
  color: #4d3504;
  background: var(--warning);
  border-bottom: 1px solid var(--warning-line);
  font-weight: 700;
  text-align: center;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: #fff;
  background: rgba(17, 38, 74, 0.97);
  box-shadow: 0 4px 20px rgba(8, 18, 36, 0.2);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 2rem));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  flex: 0 0 auto;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.55rem 0.7rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.primary-nav a {
  display: block;
  padding: 0.7rem 0.65rem;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 7px;
  font-size: 0.82rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff;
  background: var(--maroon);
}

.hero {
  padding: clamp(3.5rem, 8vw, 6.2rem) 1rem clamp(5rem, 9vw, 7rem);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(17, 38, 74, 0.98), rgba(29, 70, 125, 0.91)),
    linear-gradient(45deg, #11264a, #771f2f);
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: #ecd79f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 930px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 4.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.hero .lead {
  max-width: 740px;
  margin: 1.15rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.byline {
  margin: 1.2rem 0 0;
  color: #ecd79f;
  font-family: Georgia, "Times New Roman", serif;
}

main {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-card {
  position: relative;
  margin-top: -2.5rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  background: var(--paper);
  border: 1px solid rgba(17, 38, 74, 0.08);
  border-top: 5px solid var(--maroon);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro-card h2,
.section-heading h2,
.disclaimer h2 {
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.6rem);
  line-height: 1.2;
}

.intro-card p:last-child {
  margin-bottom: 0;
}

.section {
  padding-top: clamp(3.8rem, 8vw, 6rem);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 1.8rem;
}

.section-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.card-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.card,
.resource-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 1.45rem 1.45rem 1.35rem 1.7rem;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 7px 20px rgba(17, 38, 74, 0.055);
  overflow: hidden;
}

.card::before,
.resource-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--maroon);
  content: "";
}

.card h3,
.resource-card h3 {
  margin: 0 0 0.6rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.25;
}

.card p,
.resource-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.card li + li {
  margin-top: 0.45rem;
}

.actions {
  margin-top: auto;
  padding-top: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0.58rem 0.8rem;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.button-link:hover {
  color: #fff;
  background: var(--maroon);
}

.button-link.secondary {
  color: var(--navy);
  background: #edf2f8;
  border: 1px solid #c7d1df;
}

.button-link.secondary:hover {
  color: var(--maroon);
  background: #fff;
}

.file-type {
  padding: 0.15rem 0.32rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
}

.secondary .file-type {
  background: transparent;
}

.callout {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  color: #513404;
  background: var(--warning);
  border: 1px solid var(--warning-line);
  border-radius: 12px;
}

.callout h3 {
  margin: 0 0 0.45rem;
  color: #4a3100;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.prose {
  padding: clamp(1.4rem, 4vw, 2.25rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.prose h2 {
  margin: 2.2rem 0 0.6rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

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

.prose h3 {
  margin: 1.6rem 0 0.4rem;
  color: var(--maroon);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.prose p {
  max-width: 78ch;
}

.prose ul {
  max-width: 75ch;
  padding-left: 1.4rem;
}

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

.disclaimer {
  margin-top: clamp(3.8rem, 8vw, 6rem);
  padding: clamp(1.35rem, 4vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--maroon);
  border-radius: 14px;
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

.site-footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 2.5rem 1rem 5.5rem;
  color: #dbe3ef;
  background: #0b1b35;
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  margin-bottom: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1rem;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 0.6rem 0.85rem;
  color: #fff;
  background: var(--maroon);
  border-radius: 999px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex: 1 0 100%;
    margin: 0;
  }

  .primary-nav[data-open="true"] {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.25rem 0 0.5rem;
  }

  .primary-nav a {
    padding: 0.75rem;
    text-align: left;
  }
}

@media (max-width: 700px) {
  .card-grid,
  .resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  main,
  .nav-wrap {
    width: min(100% - 1.25rem, 1080px);
  }

  .brand {
    font-size: 0.94rem;
  }

  .primary-nav ul {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .card,
  .resource-card {
    padding: 1.25rem 1.15rem 1.2rem 1.4rem;
  }

  .actions,
  .button-link {
    width: 100%;
  }

  .button-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
