@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DM Serif";
  src: url("assets/dm-serif.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f2f0e9;
  --ink: #17251d;
  --forest: #1d3529;
  --orange: #e75e34;
  --sun: #efb93f;
  --line: rgba(23, 37, 29, 0.22);
  --muted: #647068;
  --serif: "DM Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.site-header {
  height: 80px;
  padding: 0 4.5vw;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 32px/1 var(--serif);
  letter-spacing: -1.2px;
}

.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--orange);
  font: italic 24px/1 var(--serif);
  padding-bottom: 4px;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.header-saved {
  justify-self: end;
  height: 42px;
  padding: 0 5px 0 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.header-saved[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.saved-icon { font-size: 20px; line-height: 1; }
.header-saved[aria-pressed="true"] .saved-icon { color: var(--sun); }
.saved-count {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--orange);
  font-size: 12px;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 49% 51%;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(70px, 8vw, 124px) 5vw 70px 8.5vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--orange);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }

h1 {
  margin: 0;
  max-width: 600px;
  font: 74px/.94 var(--serif);
  letter-spacing: -3.2px;
}

h1 em, h2 em { color: var(--orange); font-weight: inherit; }

.hero-intro {
  max-width: 485px;
  margin: 34px 0 31px;
  color: #4d5a52;
  font: 17px/1.62 var(--sans);
}

.hero-link {
  margin-top: auto;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-link span { padding-left: 8px; }

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  margin: 30px 30px 30px 0;
  background: var(--forest);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(16, 28, 21, .52));
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.04);
}

.date-card {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 166px;
  min-height: 172px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  background: var(--sun);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.date-card strong { font: 30px/1 var(--serif); letter-spacing: -1px; }
.photo-caption { position: absolute; z-index: 1; bottom: 20px; left: 23px; margin: 0; color: white; font-size: 11px; letter-spacing: .08em; }

.discovery { padding: 90px 8.5vw 110px; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
}

.section-heading .eyebrow { margin-bottom: 13px; }
h2 { margin: 0; font: 52px/1 var(--serif); letter-spacing: -1.7px; }
.result-count { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.result-count strong { color: var(--ink); font: 27px/1 var(--serif); padding-right: 5px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 280px;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.23);
}

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

.search-field { position: relative; }
.search-field svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.search-field input,
.select-wrap select {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.search-field input { padding: 0 18px 0 51px; }
.search-field input::placeholder { color: #8b938d; }
.select-wrap { position: relative; }
.select-wrap::before { content: "View"; position: absolute; z-index: 1; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; pointer-events: none; }
.select-wrap select { appearance: none; padding: 0 42px 0 66px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 23px, calc(100% - 15px) 23px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.active-state { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.clear-filters { margin-left: 7px; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; cursor: pointer; font-weight: 700; }

.event-list {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 24px;
}

.event-card { min-width: 0; }
.card-open { width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-image-wrap { position: relative; display: block; height: 240px; overflow: hidden; background: #d8d9d1; }
.card-image { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.68); transition: transform .5s ease, filter .5s ease; }
.card-open:hover .card-image { transform: scale(1.035); filter: saturate(.95); }
.card-category { position: absolute; top: 14px; left: 14px; padding: 7px 10px 6px; color: var(--ink); background: var(--paper); font-size: 9px; line-height: 1; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-arrow { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--orange); font-size: 19px; transition: transform .2s ease; }
.card-open:hover .card-arrow { transform: rotate(10deg); }
.card-content { display: block; padding-top: 18px; }
.card-kicker { display: block; margin-bottom: 9px; color: var(--orange); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.card-title { display: block; min-height: 58px; font: 26px/1.05 var(--serif); letter-spacing: -.45px; }
.card-summary { display: block; min-height: 67px; margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card-rule { display: block; margin: 19px 0 12px; border-top: 1px solid var(--line); }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-price { color: var(--orange); white-space: nowrap; }

.empty-state { max-width: 620px; margin: 72px auto 10px; padding: 60px 30px; border: 1px solid var(--line); text-align: center; }
.empty-glyph { color: var(--orange); font: 42px var(--serif); }
.empty-state h3 { margin: 9px 0; font: 34px var(--serif); }
.empty-state p { margin: 0 auto 24px; max-width: 380px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty-reset { padding: 12px 18px; border: 0; color: white; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; }

footer { min-height: 150px; padding: 42px 8.5vw; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: var(--paper); background: var(--ink); }
.footer-brand { color: var(--paper); font-size: 25px; }
.footer-brand .brand-mark { width: 26px; height: 26px; font-size: 20px; }
footer p { margin: 0; color: #b9c0bb; font-size: 11px; letter-spacing: .08em; }
.footer-date { justify-self: end; }

.detail-backdrop { position: fixed; z-index: 20; inset: 0; background: rgba(15, 25, 19, .55); backdrop-filter: blur(3px); }
.detail-sheet { position: fixed; z-index: 21; top: 0; right: 0; width: min(610px, 100%); height: 100dvh; padding: 0; border: 0; overflow: auto; color: var(--ink); background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.17); }
.detail-close { position: absolute; z-index: 3; top: 22px; right: 22px; width: 44px; height: 44px; padding: 11px; border: 0; border-radius: 50%; color: var(--ink); background: var(--paper); cursor: pointer; }
.detail-close svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; }
.detail-image { position: relative; height: 330px; overflow: hidden; background: var(--forest); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }
.detail-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,20,14,.52)); }
.detail-index { position: absolute; z-index: 1; left: 30px; bottom: 25px; color: white; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.detail-content { padding: 38px 46px 54px; }
.detail-category { margin: 0 0 13px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.detail-content h2 { font-size: 48px; line-height: .98; letter-spacing: -1.4px; }
.detail-lede { margin: 24px 0 30px; color: #536057; font: 17px/1.6 var(--sans); }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 30px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.detail-fact { min-height: 95px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-fact dt { margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.detail-fact dd { margin: 0; font-size: 13px; line-height: 1.35; font-weight: 700; }
.detail-note { padding: 20px; border-left: 3px solid var(--sun); background: rgba(239,185,63,.13); }
.detail-note h3 { margin: 0 0 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.detail-note p { margin: 0; color: #536057; font-size: 13px; line-height: 1.55; }
.save-button { width: 100%; height: 55px; margin-top: 26px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--paper); background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.save-button[aria-pressed="true"] { color: var(--ink); background: transparent; }
.save-button .heart { font-size: 20px; color: var(--sun); }
body.detail-open { overflow: hidden; }

@media (max-width: 900px) {
  h1 { font-size: 58px; }
  .hero-copy { padding-left: 5vw; }
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header, footer { padding-left: 5vw; padding-right: 5vw; }
  .discovery { padding-left: 5vw; padding-right: 5vw; }
}

@media (max-width: 640px) {
  .site-header { position: relative; z-index: 2; height: 67px; padding: 0 18px; grid-template-columns: 1fr auto; background: var(--paper); }
  .brand { font-size: 27px; gap: 8px; }
  .brand-mark { width: 27px; height: 27px; font-size: 21px; }
  .header-note { display: none; }
  .header-saved { height: 38px; padding-left: 11px; }
  .saved-label { display: none; }
  .saved-count { min-width: 27px; height: 27px; }
  .hero { min-height: auto; display: flex; flex-direction: column; }
  .hero-copy { min-height: 416px; padding: 55px 24px 42px; }
  .eyebrow { margin-bottom: 18px; font-size: 9px; }
  h1 { font-size: 47px; line-height: .96; letter-spacing: -2px; }
  .hero-intro { margin: 24px 0 27px; font-size: 15px; line-height: 1.55; }
  .hero-link { margin-top: 0; font-size: 10px; }
  .hero-art { min-height: 330px; height: 330px; margin: 0 18px 18px; }
  .date-card { width: 125px; min-height: 126px; padding: 15px; }
  .date-card strong { font-size: 24px; }
  .photo-caption { left: 17px; bottom: 15px; font-size: 9px; }
  .discovery { padding: 69px 18px 80px; }
  .section-heading { display: block; margin-bottom: 30px; }
  h2 { font-size: 39px; letter-spacing: -1.2px; }
  .result-count { margin-top: 18px; }
  .toolbar { grid-template-columns: 1fr; padding: 10px; gap: 8px; }
  .search-field input, .select-wrap select { height: 50px; }
  .select-wrap select { background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; }
  .event-list { margin-top: 32px; grid-template-columns: 1fr; gap: 40px; }
  .card-image-wrap { height: 245px; }
  .card-title { min-height: 0; font-size: 27px; }
  .card-summary { min-height: 0; }
  .empty-state { margin-top: 42px; padding: 40px 20px; }
  footer { padding: 37px 18px; grid-template-columns: 1fr auto; min-height: 125px; }
  footer > p:not(.footer-date) { display: none; }
  .detail-sheet { width: 100%; }
  .detail-image { height: 260px; }
  .detail-content { padding: 31px 23px 45px; }
  .detail-content h2 { font-size: 39px; }
  .detail-lede { font-size: 15px; margin-top: 20px; }
  .detail-fact { min-height: 88px; padding: 14px; }
  .detail-close { top: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
