@font-face {
  font-family: Fraunces; src: url(fonts/fraunces.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: DM Sans; src: url(fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 1000; font-display: swap;
}

:root {
  --forest: #142a26;
  --deep: #10211e;
  --cream: #f7f3e9;
  --ivory: #fffdf6;
  --gold: #efcc97;
  --moss: #4a6259;
  --muted: #46564f;
  --line: #ded8c9;
  --gutter: clamp(18px, 5vw, 72px);
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; color: var(--forest); background: var(--cream); font: 16px/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; }
:focus-visible { outline: 2px solid #a35436; outline-offset: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .home-hero :focus-visible, .night-feature :focus-visible { outline-color: var(--gold); }
.wrap { width: min(100%, 1380px); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 8px 18px; background: var(--ivory); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 535; letter-spacing: -.042em; line-height: 1.07; }
h1 { font-size: clamp(2.6rem, 6.4vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 4.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
p { margin: 0; }
.tag { color: var(--moss); font-size: .79rem; letter-spacing: .15em; font-weight: 800; }
.section-space { padding-block: clamp(47px, 8vw, 108px); }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--deep); color: var(--ivory); border-bottom: 1px solid #ffffff27; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; text-decoration: none; font: 575 1.26rem/1.1 var(--display); }
.brand img { border-radius: 6px; }
#primary-nav { display: flex; align-items: center; gap: clamp(9px, 1.75vw, 26px); }
#primary-nav a { padding-block: 10px; white-space: nowrap; text-decoration: none; font-size: .89rem; font-weight: 650; }
#primary-nav a:hover, #primary-nav a[aria-current] { color: var(--gold); text-decoration: underline; }
.menu-toggle { display: none; padding: 0; border: 1px solid #d6bd93; border-radius: 5px; background: none; color: var(--gold); width: 44px; height: 44px; }
.menu-icon, .menu-icon::before, .menu-icon::after { width: 19px; height: 2px; background: currentColor; display: block; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.home-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(540px, 76svh, 790px); background: var(--deep); color: var(--ivory); }
.home-hero picture, .home-hero::before { position: absolute; inset: 0; }
.home-hero picture { z-index: -2; }
.home-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.home-hero::before { content: ""; z-index: -1; background: linear-gradient(90deg, #10211ef2 0%, #10211ed6 27%, #10211e8a 47%, #10211e0c 83%), linear-gradient(0deg,#101d1c55,transparent 37%); }
.hero-inner { padding-block: clamp(65px, 10vw, 148px); }
.home-hero h1 { font-size: clamp(3.2rem, 7.6vw, 8.2rem); line-height: .96; margin: 17px 0 24px; }
.home-hero .tag, .night-feature .tag { color: var(--gold); }
.home-lede { max-width: 39ch; font-size: clamp(1rem, 1.5vw, 1.23rem); color: #fff8e9; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-block; padding: 11px 20px; border: 1px solid transparent; border-radius: 5px; font-size: .94rem; font-weight: 780; text-align: center; text-decoration: none; }
.button:hover { box-shadow: inset 0 0 0 1px currentColor; }
.button-gold { color: var(--deep); background: var(--gold); }
.button-outline { color: var(--ivory); background: #10211e75; border-color: #fff9; }
.button-dark { background: var(--forest); color: var(--ivory); }

.section-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: 20px clamp(25px, 6vw, 84px); }
.section-heading .tag { margin-bottom: 8px; }
.section-heading > p { max-width: 55ch; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 30px); margin-top: clamp(22px, 4vw, 46px); }
.card { background: var(--ivory); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card > a:focus-visible { outline-offset: -4px; }
.card picture { display: block; overflow: hidden; }
.card img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; transition: transform .24s ease; }
.card > a:hover img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 9px; padding: clamp(17px, 2.3vw, 32px); flex: 1; }
.card-body .tag { text-transform: uppercase; }
.card-body p { color: var(--muted); }
.card-link { display: block; margin-top: auto; padding-top: 10px; text-decoration: underline; font-weight: 750; }
.night-feature { padding-block: clamp(35px, 7vw, 83px); background: var(--forest); color: var(--ivory); }
.night-feature .section-heading { align-items: center; }
.night-feature .button { margin-top: 15px; }

.page-intro { padding-block: clamp(34px, 6vw, 85px); background: #eae8db; border-bottom: 1px solid var(--line); }
.intro-grid > div:first-child { max-width: 850px; }
.with-photo .intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 60px); align-items: center; }
.intro-photo img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; border-radius: 8px; }
.crumb { display: inline-block; margin-bottom: 19px; color: var(--moss); font-weight: 750; }
.page-intro h1 { margin-top: 8px; text-wrap: balance; }
.page-lede { max-width: 59ch; margin-top: 16px; font-size: clamp(1rem, 1.5vw, 1.22rem); color: var(--muted); }
.inner-layout.has-panel { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: clamp(23px, 6vw, 94px); align-items: start; }
.editorial { max-width: 780px; }
.editorial-narrow { max-width: 710px; }
.editorial-section { padding-block: 21px; border-top: 1px solid var(--line); }
.editorial-section:first-child { padding-top: 0; border-top: 0; }
.editorial-section:last-child { padding-bottom: 0; }
.editorial-section h2, .callout h2 { font-size: clamp(1.5rem, 2.85vw, 2.5rem); margin-bottom: 10px; }
.editorial-section p, .callout p, .callout li { color: var(--muted); }
.callout { background: var(--ivory); border: 1px solid var(--line); border-top: 4px solid var(--moss); border-radius: 8px; padding: clamp(18px, 2.5vw, 32px); }
.callout ul { padding-left: 1.1rem; margin: 0; }
.callout li + li { margin-top: 8px; }
.callout .button { margin-top: 16px; overflow-wrap: anywhere; }
.next-guide { background: #eae8db; padding-block: 26px; }
.next-guide .wrap { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.next-guide span { font: 535 1.35rem var(--display); }
.not-found { padding-block: clamp(52px, 10vw, 130px); }
.not-found p { max-width: 56ch; margin: 13px 0 21px; }

.site-footer { background: var(--deep); color: #eae8db; padding-block: 46px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-grid > div p { font-size: .95rem; max-width: 31ch; margin-top: 13px; }
.footer-grid nav { display: grid; gap: 5px; align-content: start; justify-items: start; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-title { color: var(--gold); margin-bottom: 6px; font-weight: 760; }

@media (max-width: 760px) {
  .header-inner { min-height: 62px; }
  .menu-toggle { display: grid; place-items: center; }
  #primary-nav { display: none; position: absolute; inset: 100% 0 auto; padding: 8px var(--gutter) 16px; background: var(--deep); max-height: calc(100dvh - 62px); overflow: auto; border-bottom: 1px solid #ffffff32; }
  #primary-nav.is-open { display: grid; gap: 2px; }
  #primary-nav a { font-size: 1rem; }
  .home-hero { min-height: 580px; align-items: end; }
  .home-hero img { object-position: 58% center; }
  .home-hero::before { background: linear-gradient(0deg,#10211efc 3%,#10211ed9 39%,#10211e4d 76%,#10211e15 100%); }
  .hero-inner { padding-block: 155px 48px; }
  .section-heading, .with-photo .intro-grid, .inner-layout.has-panel { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div { grid-column: 1/-1; }
}

@media (max-width: 500px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .actions .button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img { transition: none; }
}
