:root {
    --paper: #f7f3ec;
    --ink: #232126;
    --muted: #746d73;
    --line: #d9d0c9;
    --orange: #ef6a4f;
    --lavender: #c8b8f2;
    --mint: #bce4c8;
    --cream: #fffaf3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select { font: inherit; }
.site-shell { min-height: 100vh; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(247,243,236,.98); position: sticky; top: 0; z-index: 20; }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.05em; display: inline-flex; gap: 10px; align-items: center; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px 8px 8px 2px; background: var(--orange); display: inline-block; transform: rotate(-8deg); }
.main-nav { display: flex; gap: 22px; align-items: center; font-size: .9rem; color: var(--muted); }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.header-search { display: flex; align-items: center; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 0 12px; min-width: 220px; }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 10px 8px; color: var(--ink); }
.header-search button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.page-wrap { max-width: 1240px; margin: 0 auto; padding: 34px 28px 90px; }
.eyebrow { color: var(--orange); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; }
.page-title { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.6rem, 7vw, 6.8rem); line-height: .92; letter-spacing: -.075em; margin: 12px 0 28px; max-width: 800px; }
.section-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin: 52px 0 18px; }
.section-head h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; letter-spacing: -.05em; }
.section-link { color: var(--orange); font-size: .9rem; font-weight: 700; }
.wayfinding { border: 1px solid var(--ink); border-radius: 18px; padding: 14px; display: grid; grid-template-columns: 1.3fr .8fr .8fr auto; gap: 10px; background: var(--cream); margin-bottom: 22px; }
.wayfinding input, .wayfinding select { min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 8px; color: var(--ink); outline: 0; }
.wayfinding select { padding-inline-end: 34px; }
.header-search label, .wayfinding label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-feedback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filter-button { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--orange); color: white; font-weight: 700; cursor: pointer; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
.mosaic-tile { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid rgba(35,33,38,.14); background: var(--lavender); min-height: 150px; }
.mosaic-tile.featured { grid-column: span 2; grid-row: span 2; min-height: 312px; background: var(--orange); }
.mosaic-tile.tall { grid-row: span 2; }
.mosaic-tile img { transition: transform .35s ease; }
.mosaic-tile:hover img, .mosaic-tile:focus-within img { transform: scale(1.04); }
.tile-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(24,20,25,.82) 100%); }
.tile-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; color: white; }
.tile-meta { font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; opacity: .8; }
.tile-title { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; line-height: 1.02; margin-top: 6px; letter-spacing: -.04em; }
.featured .tile-title { font-size: clamp(1.8rem, 4vw, 3.4rem); max-width: 520px; }
.topic-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card, .line-card { border-top: 1px solid var(--line); padding: 18px 0 12px; }
.topic-card:hover { color: var(--orange); }
.topic-card h3, .line-card h3 { margin: 0 0 8px; font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; font-size: 1.3rem; }
.muted { color: var(--muted); }
.card-grid .line-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(255,250,243,.5); }
.card-image { height: 190px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; background: var(--mint); }
.card-image img { transition: transform .35s ease; }
.line-card:hover .card-image img { transform: scale(1.035); }
.card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .78rem; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 34px; align-items: start; }
.detail-image { height: min(62vw, 620px); border-radius: 22px; overflow: hidden; background: var(--mint); }
.detail-aside { border-top: 2px solid var(--ink); padding-top: 16px; }
.detail-aside dl { margin: 0; }
.detail-aside dt { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; margin-top: 18px; }
.detail-aside dd { margin: 4px 0 0; font-size: 1.05rem; }
.rich-copy { font-size: 1.2rem; line-height: 1.65; max-width: 700px; margin-top: 34px; }
.footer { border-top: 1px solid var(--line); padding: 28px; color: var(--muted); }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; }
.footer a:hover { color: var(--ink); }
.empty-state { border: 1px dashed var(--line); border-radius: 16px; padding: 34px; color: var(--muted); }
@media (max-width: 880px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .main-nav { grid-column: 1 / -1; grid-row: 2; order: 3; overflow-x: auto; padding-bottom: 2px; }
    .header-search { min-width: 0; }
    .wayfinding { grid-template-columns: 1fr 1fr; }
    .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mosaic-tile.featured { grid-column: span 2; }
    .topic-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .header-inner, .page-wrap { padding-left: 18px; padding-right: 18px; }
    .header-inner { gap: 14px; }
    .main-nav { gap: 16px; font-size: .82rem; }
    .wayfinding, .topic-grid, .card-grid { grid-template-columns: 1fr; }
    .mosaic { grid-auto-rows: 128px; }
    .mosaic-tile.featured { min-height: 264px; }
    .footer { padding: 22px 18px; }
    .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}