:root {
  --ink: #231f20;
  --muted: #625d5d;
  --paper: #fffdf8;
  --soft: #f4eee4;
  --line: #e3d8ca;
  --burgundy: #822328;
  --burgundy-dark: #5f161b;
  --gold: #d7a550;
  --blue: #375f91;
  --teal: #2f7372;
  --white: #fff;
  --shadow: 0 18px 45px rgba(35, 31, 32, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: .75rem 1rem;
}

.skip:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 250, 246, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.utility {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: .55rem 1.25rem;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
}

.utility-actions {
  display: flex;
  gap: 1rem;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: .85rem 1.25rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 280px;
}

.brand-logo {
  width: 86px;
  height: 42px;
  object-fit: contain;
  background: var(--white);
}

.brand strong,
.brand small { display: block; }

.brand strong {
  color: var(--burgundy);
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: .65rem .9rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.nav-menu > a,
.nav-group > button {
  border: 0;
  background: transparent;
  padding: .75rem .72rem;
  color: var(--ink);
  font: inherit;
  font-size: .93rem;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: normal;
  text-transform: none;
  cursor: pointer;
}

.nav-cta {
  background: var(--burgundy) !important;
  color: var(--white) !important;
  padding-inline: 1rem !important;
}

.nav-group {
  position: relative;
}

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 255px;
  padding: .5rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: .16s ease;
}

.mega.wide { min-width: 310px; }

.mega a {
  display: block;
  padding: .75rem .8rem;
  color: var(--ink);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.mega a:hover,
.nav-menu > a:hover,
.nav-group > button:hover {
  background: var(--soft);
}

.nav-group:hover .mega,
.nav-group:focus-within .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

main { min-height: 75vh; }

.hero {
  min-height: 62vh;
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(95, 22, 27, .92), rgba(130, 35, 40, .58) 48%, rgba(55, 95, 145, .18)),
    url("https://images.unsplash.com/photo-1564399580075-5dfe19c205f3?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: left;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .08em;
  font-size: .78rem;
}

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

h1 {
  max-width: 760px;
  margin-inline: 0;
  color: inherit;
  font-size: clamp(2.7rem, 5.8vw, 5rem);
  font-weight: 700;
}

.hero p {
  max-width: 760px;
  margin-inline: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.6rem;
  justify-content: flex-start;
}

.button,
button {
  border: 1px solid transparent;
  background: var(--burgundy);
  color: var(--white);
  padding: .85rem 1rem;
  font-weight: 750;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.button.secondary,
button.secondary {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--line);
}

.hero .button {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, .95);
  color: var(--burgundy-dark);
  border-color: var(--white);
}

.hero .button:hover,
.hero .button:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.band {
  padding: 4rem 1.25rem;
}

.band.soft { background: var(--soft); }
.band.dark { background: #681b1f; color: var(--white); }
.band.tight { padding-block: 3rem; }

.band.tight .section-head {
  align-items: center;
}

.band.tight .button {
  align-self: center;
  margin-top: .75rem;
}

.inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: none;
  text-align: left;
  margin: 0 0 2.2rem;
}

.section-head h2,
.page-title h1 {
  color: #4a4545;
  font-size: clamp(2.1rem, 3.8vw, 3.35rem);
  font-weight: 700;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.dark .section-head p,
.dark .muted { color: rgba(255,255,255,.86); }

.dark .section-head h2 {
  color: var(--white);
}

.dark .eyebrow {
  color: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
  min-height: 180px;
  border-radius: 8px;
}

.card.image-card {
  padding: 0;
  overflow: hidden;
}

.card.image-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body { padding: 1.25rem; }

.card h3 {
  font-size: 1.45rem;
  margin-bottom: .6rem;
  color: inherit;
}

.card p,
.copy p,
.copy li {
  color: var(--muted);
  line-height: 1.62;
}

.card a,
.text-link {
  color: var(--burgundy);
  font-weight: 800;
}

.pathfinder-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 980px;
  margin-inline: auto;
}

.path-card {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    linear-gradient(rgba(35, 31, 32, .12), rgba(35, 31, 32, .12)),
    var(--path-image) center/cover;
  box-shadow: 0 8px 20px rgba(35, 31, 32, .14);
  outline: 0;
}

.path-card h3 {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: .85rem 1rem;
  background: var(--blue);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  text-align: center;
}

.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, .74);
  opacity: 0;
  transition: opacity .18s ease;
}

.path-overlay {
  position: relative;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: .55rem;
  padding: 4.25rem 1.4rem 1.4rem;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  transform: translateY(8px);
}

.path-overlay a {
  color: var(--white);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}

.path-overlay a:hover,
.path-overlay a:focus-visible {
  color: var(--gold);
}

.path-card:hover::after,
.path-card:focus-within::after,
.path-card:focus::after,
.path-card:hover .path-overlay,
.path-card:focus-within .path-overlay,
.path-card:focus .path-overlay {
  opacity: 1;
  transform: translateY(0);
}

.begin-prompt {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.begin-prompt h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: inherit;
  font-weight: 700;
}

.begin-prompt p {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: 1.2rem;
}

.text-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .14em;
}

.begin-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.begin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 32, .72);
}

.begin-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  min-height: 420px;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--white);
  border: 10px solid var(--teal);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.begin-dialog h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: inherit;
  font-weight: 700;
}

.begin-dialog p {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.5;
  border-bottom: 2px solid var(--line);
  padding-bottom: .8rem;
}

.begin-close {
  position: absolute;
  top: -22px;
  right: -22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--teal);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 0;
}

.begin-options {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}

.begin-options button {
  position: relative;
  width: 100%;
  padding: 1rem 1rem 1rem 2.8rem;
  background: var(--blue);
  color: var(--white);
  text-align: left;
  font-size: 1.04rem;
  line-height: 1.45;
}

.begin-options button::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.22rem;
  width: .8rem;
  height: .8rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--white);
}

.begin-options button:hover,
.begin-options button:focus-visible {
  background: var(--burgundy);
}

.begin-results {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}

.begin-results a {
  border: 1px solid var(--line);
  padding: 1rem;
  background: var(--soft);
  color: var(--burgundy);
  font-weight: 850;
}

.begin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.3rem;
}

.begin-back {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--line);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(95, 22, 27, .9), rgba(55, 95, 145, .42)),
    var(--page-image, url("https://images.unsplash.com/photo-1577083552431-6e5fd01aa342?auto=format&fit=crop&w=1800&q=80")) center/cover;
  color: var(--white);
  padding: 7rem 1.25rem 4rem;
  text-align: left;
  border-bottom: 0;
}

.page-title {
  max-width: 1120px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  margin-bottom: 1.1rem;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
}

.copy h2 {
  margin-top: 2.5rem;
  font-size: 2.25rem;
  color: inherit;
  font-weight: 700;
}

.story-feature {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  background: var(--soft);
  border: 0;
}

.story-feature img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.story-feature div { padding: 1.5rem; }

.sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.side-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.25rem;
  border-radius: 8px;
}

.side-panel strong {
  display: block;
  margin-bottom: .35rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

label {
  display: grid;
  gap: .35rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  padding: .85rem;
  font: inherit;
  color: var(--ink);
  border-radius: 0;
}

.full { grid-column: 1 / -1; }

.footer {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding: 2rem 1.25rem;
  background: #171d1a;
  color: rgba(255,255,255,.82);
}

.footer > * {
  max-width: 1120px;
}

.disclaimer {
  margin: 0;
  line-height: 1.55;
  font-size: .86rem;
}

.question-drawer {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
}

.drawer-button {
  background: var(--burgundy);
}

.drawer-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .6rem);
  width: min(360px, calc(100vw - 2rem));
  display: none;
  gap: .8rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.question-drawer.open .drawer-panel {
  display: grid;
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav-shell { align-items: flex-start; }
  .nav-menu {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 100%;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem;
    align-items: stretch;
    flex-direction: column;
  }
  .nav-menu.open { display: flex; }
  .nav-group > button,
  .nav-menu > a { width: 100%; text-align: left; }
  .mega {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    min-width: 0;
    padding-left: 1rem;
  }
  .grid,
  .grid.two,
  .grid.four,
  .pathfinder-tiles,
  .page-layout,
  .story-feature,
  .footer {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .path-card {
    aspect-ratio: 1 / 1;
  }
  .path-card::after,
  .path-overlay {
    opacity: 1;
    transform: none;
  }
  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 1rem;
  }
}

@media (max-width: 560px) {
  .utility { display: none; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { min-height: 70vh; padding-top: 4.5rem; }
  h1 { font-size: 3rem; }
  .begin-dialog {
    border-width: 7px;
    padding: 1.4rem;
  }
  .begin-close {
    right: -16px;
    top: -16px;
  }
}
