:root {
  color-scheme: light dark;
  --ink: #201c19;
  --muted: #675f58;
  --paper: #fffaf3;
  --paper-raised: #ffffff;
  --brand: #a41624;
  --brand-deep: #78111b;
  --gold: #c96f1b;
  --line: rgba(67, 48, 35, 0.17);
  --shadow: 0 24px 70px rgba(62, 35, 20, 0.13);
}

* {
  box-sizing: border-box;
}

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

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(201, 111, 27, 0.14), transparent 27rem),
    radial-gradient(circle at 94% 18%, rgba(164, 22, 36, 0.09), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--brand-deep);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;
}

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

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border-radius: 999px;
  color: #fff;
  background: var(--brand-deep);
}

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

.site-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.3rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 36px;
  border: 3px solid var(--gold);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  top: -8px;
  width: 23px;
  height: 30px;
  content: "";
  border: 3px solid var(--brand);
  background: var(--paper-raised);
}

.brand-mark::before {
  left: -3px;
  transform: skewY(9deg);
  border-radius: 8px 2px 2px 7px;
}

.brand-mark::after {
  right: -3px;
  transform: skewY(-9deg);
  border-radius: 2px 8px 7px 2px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.nav-list a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-list a[aria-current="page"] {
  color: var(--brand-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: min(680px, calc(100vh - 96px));
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 6.75rem);
  font-weight: 500;
}

.page-title {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 600;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
}

.lede {
  max-width: 62ch;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--brand-deep);
  border-radius: 999px;
  color: #fff;
  background: var(--brand-deep);
  font-weight: 760;
  text-decoration: none;
}

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

.button-secondary {
  color: var(--brand-deep);
  background: transparent;
}

.button-secondary:hover {
  color: var(--brand);
  background: rgba(164, 22, 36, 0.05);
}

.retirement-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
  box-shadow: var(--shadow);
}

.retirement-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.retirement-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: linear-gradient(var(--brand), var(--gold));
}

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

.facts {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.facts div {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
}

.page-main {
  max-width: 900px;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.page-intro {
  margin-bottom: 2rem;
}

.content-card {
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

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

.notice {
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(201, 111, 27, 0.08);
}

.plain-list {
  padding-left: 1.25rem;
}

.plain-list li + li {
  margin-top: 0.65rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 28px, 1160px);
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3rem;
  }

  .retirement-card {
    padding: 1.5rem;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 16px;
  }

  .site-shell {
    width: min(100% - 22px, 1160px);
  }

  .nav-list {
    gap: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f8eee5;
    --muted: #d0c0b4;
    --paper: #171311;
    --paper-raised: #211b18;
    --brand: #ff7c87;
    --brand-deep: #ffadb4;
    --gold: #f2a85f;
    --line: rgba(255, 237, 221, 0.16);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  }

  .button {
    color: #211315;
    background: var(--brand-deep);
  }

  .button:hover {
    color: #211315;
    background: var(--brand);
  }

  .brand-mark::before,
  .brand-mark::after {
    background: var(--paper-raised);
  }
}

@media print {
  .skip-link,
  .nav-list,
  .actions {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .content-card,
  .retirement-card {
    border: 1px solid #bbb;
    box-shadow: none;
  }
}
