@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
    --paper: #F9F8F3;
    --ink: #1D211B;
    --muted: #6F756A;
    --line: #D9DDD1;
    --lime: #C7F36B;
    --lime-dark: #9CBD37;
    --soft-blue: #DCEAF4;
    --soft-pink: #F4DCE0;
    --soft-yellow: #F4E7B2;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Manrope', Arial, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
button, input, select { font: inherit; }
button, a, input, select { outline-color: var(--lime-dark); outline-offset: 3px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(249,248,243,.96); position: relative; z-index: 4; }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 18px 28px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-weight: 700; letter-spacing: -.03em; }
.brand-mark { width: 17px; height: 17px; background: var(--lime); border: 1px solid var(--ink); border-radius: 50%; display: inline-block; }
.nav-links { display: flex; gap: 22px; align-items: center; color: var(--muted); font-size: 13px; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.header-search { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink); padding: 4px 0; min-width: 220px; }
.header-search input { border: 0; background: transparent; width: 100%; color: var(--ink); }
.header-search input:focus { outline: 2px solid var(--lime-dark); outline-offset: 3px; }

.portal-main { max-width: 1240px; margin: 0 auto; padding: 48px 28px 88px; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
.page-title { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; margin: 12px 0 20px; max-width: 820px; }
.page-intro { max-width: 660px; color: var(--muted); font-size: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-top: 1px solid var(--ink); padding-top: 14px; margin: 64px 0 18px; }
.section-head h2 { margin: 0; font: 500 clamp(1.7rem, 3vw, 2.8rem)/1 var(--serif); letter-spacing: -.04em; }
.section-head a { color: var(--muted); font-size: 13px; }

.wayfinding { border: 1px solid var(--ink); background: white; padding: 12px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, .45fr)) auto; gap: 10px; margin: 28px 0 24px; }
.wayfinding input, .wayfinding select { border: 0; background: var(--paper); min-height: 46px; padding: 0 14px; color: var(--ink); }
.wayfinding select { padding-inline-end: 38px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.lime-button { background: var(--lime); border: 1px solid var(--ink); color: var(--ink); min-height: 46px; padding: 0 20px; font-weight: 700; cursor: pointer; transition: transform 180ms var(--ease), background 180ms var(--ease); }
.lime-button:hover, .lime-button:focus-visible { background: #d6fb8a; transform: translateY(-2px); }

.mosaic { display: grid; grid-template-columns: 1.35fr .82fr .82fr; grid-template-rows: 220px 220px; gap: 12px; }
.mosaic-tile { position: relative; overflow: hidden; min-height: 220px; border: 1px solid var(--ink); background: #ddd; }
.mosaic-tile.featured { grid-row: span 2; min-height: 452px; }
.mosaic-tile img { height: 100%; transition: transform 420ms var(--ease); }
.mosaic-tile:hover img, .mosaic-tile:focus-within img { transform: scale(1.045); }
.tile-overlay { position: absolute; inset: auto 0 0; padding: 32px 18px 16px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.tile-overlay h3 { margin: 5px 0 0; font: 500 clamp(1.25rem, 2vw, 2.1rem)/1.02 var(--serif); }
.tile-overlay p { margin: 0; font-size: 12px; opacity: .86; }
.tile-tag { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; }

.event-list, .venue-list, .neighborhood-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.event-card, .venue-card, .neighborhood-card, .guide-card { border-top: 1px solid var(--ink); padding-top: 12px; }
.event-card img, .venue-card img, .neighborhood-card img, .guide-card img { aspect-ratio: 1.45; margin-bottom: 13px; }
.event-card h3, .venue-card h3, .neighborhood-card h3, .guide-card h3 { font: 500 1.45rem/1.04 var(--serif); margin: 5px 0 7px; }
.meta { color: var(--muted); font-size: 12px; }
.card-dek { color: var(--muted); margin: 0; font-size: 13px; }
.pastel-card { padding: 18px; border: 1px solid var(--ink); min-height: 180px; }
.pastel-card:nth-child(3n+1) { background: var(--soft-blue); }
.pastel-card:nth-child(3n+2) { background: var(--soft-pink); }
.pastel-card:nth-child(3n) { background: var(--soft-yellow); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 44px; align-items: start; }
.detail-cover { aspect-ratio: 1.25; border: 1px solid var(--ink); }
.detail-copy h1 { font: 500 clamp(2.8rem, 6vw, 6.5rem)/.94 var(--serif); margin: 12px 0 18px; letter-spacing: -.05em; }
.detail-copy p { max-width: 680px; font-size: 17px; }
.detail-aside { border-top: 1px solid var(--ink); padding-top: 14px; }
.detail-aside dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; font-size: 13px; }
.detail-aside dt { color: var(--muted); }

.site-footer { border-top: 1px solid var(--ink); padding: 28px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 860px) {
    .header-inner { grid-template-columns: 1fr auto; gap: 16px; }
    .nav-links { grid-column: 1 / -1; grid-row: 2; order: 3; justify-content: space-between; }
    .header-search { min-width: 150px; }
    .wayfinding { grid-template-columns: 1fr 1fr; }
    .wayfinding input { grid-column: 1 / -1; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
    .mosaic-tile.featured { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
    .event-list, .venue-list, .neighborhood-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .header-inner, .portal-main { padding-left: 18px; padding-right: 18px; }
    .header-inner { display: flex; flex-wrap: wrap; }
    .header-search { order: 2; flex: 1 1 100%; }
    .nav-links { width: 100%; order: 3; }
    .wayfinding { grid-template-columns: 1fr; }
    .wayfinding input { grid-column: auto; }
    .mosaic { display: flex; flex-direction: column; }
    .mosaic-tile, .mosaic-tile.featured { min-height: 260px; }
    .event-list, .venue-list, .neighborhood-grid, .guide-grid { grid-template-columns: 1fr; }
    .section-head { margin-top: 46px; }
    .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; }
}