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

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4eee3;
  --paper-bright: #faf6ee;
  --paper-deep: #ebe2d2;
  --ink: #17251e;
  --ink-soft: #4b584f;
  --ink-faint: #626c64;
  --line: rgba(23, 37, 30, 0.17);
  --line-strong: rgba(23, 37, 30, 0.36);
  --orange: #d9542f;
  --orange-deep: #b84122;
  --orange-bright: #ef6a3f;
  --green: #18392c;
  --green-soft: #2d5b4c;
  --gold: #d9a441;
  --focus: #1459c7;
  --focus-light: #ffd29c;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --radius: 16px;
  --wrap: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-width: 280px;
  background-color: var(--paper);
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(23, 37, 30, 0.045) 0.6px,
    transparent 0.7px
  );
  background-size: 5px 5px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 84, 47, 0.14);
}

a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(217, 84, 47, 0.14);
}

::selection {
  background: var(--orange);
  color: var(--paper-bright);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.browse-tools :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--focus-light);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--wrap), calc(100% - 80px));
  margin-inline: auto;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 238, 227, 0.86);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transform-origin: left center;
  transition: transform 180ms ease;
}

.brand:hover {
  transform: rotate(-1deg) scale(1.01);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-name em {
  color: var(--orange);
  font-style: italic;
}

.header-note {
  margin: 0 0 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.header-note span {
  display: block;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.header-jump svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.header-jump:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.header-jump:hover svg {
  transform: translateX(3px);
}

/* Hero */

.hero {
  padding: 38px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.hero-copy {
  padding-block: 8px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.105em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--orange);
}

.eyebrow-sep {
  color: var(--ink-faint);
}

.eyebrow-rule {
  display: inline-block;
  width: 30px;
  height: 1px;
  flex: none;
  background: var(--ink);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(60px, 6.7vw, 100px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.89;
}

.hero h1 > span {
  display: block;
}

.hero h1 em {
  display: inline-block;
  color: var(--orange);
  font-style: italic;
  letter-spacing: -0.055em;
  transform: translateY(0.025em);
}

.hero-lede {
  max-width: 500px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 26px;
}

.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--orange);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.primary-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease;
}

.primary-cta:hover {
  background: var(--green);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--orange);
}

.primary-cta:hover svg {
  transform: translateY(2px);
}

.hero-facts {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.hero-facts strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-art {
  position: relative;
  align-self: stretch;
  min-height: 448px;
}

.hero-sun {
  position: absolute;
  top: 4%;
  left: 4%;
  width: min(48%, 285px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(23, 37, 30, 0.08);
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(78%, 420px);
  height: 435px;
  margin: 0 4% 0 auto;
  border-radius: 210px 210px 20px 20px;
  background: var(--paper-deep);
  box-shadow: 0 28px 55px rgba(23, 37, 30, 0.2);
  overflow: hidden;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(24, 57, 44, 0.04) 45%,
    rgba(17, 31, 24, 0.64) 100%
  );
  pointer-events: none;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 55%;
  filter: saturate(0.78) sepia(0.08) contrast(0.96);
}

.hero-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: rgba(250, 246, 238, 0.8);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.hero-date-card {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 18px;
  width: 228px;
  padding: 18px 20px 20px;
  border: 1px solid rgba(250, 246, 238, 0.24);
  border-radius: 3px;
  background: var(--green);
  color: var(--paper-bright);
  box-shadow: 10px 12px 0 rgba(217, 84, 47, 0.86);
  transform: rotate(-3.5deg);
}

.hero-date-kicker {
  margin: 0 0 8px;
  color: rgba(250, 246, 238, 0.7);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-date-days {
  margin: 0;
  font-family: var(--serif);
  font-size: 55px;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.hero-date-month {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-date-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 14px 0 10px;
  background: rgba(250, 246, 238, 0.28);
}

.hero-date-note {
  margin: 0;
  color: rgba(250, 246, 238, 0.76);
  font-size: 11px;
}

.hero-stamp {
  position: absolute;
  z-index: 4;
  top: 2px;
  right: 0;
  width: 112px;
  height: 112px;
  transform: rotate(9deg);
}

.stamp-text {
  fill: var(--ink);
  font-family: var(--mono);
  font-size: 8.1px;
  letter-spacing: 0.09em;
}

/* Browse */

.browse {
  padding: 42px 0 76px;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.34);
  scroll-margin-top: 16px;
}

.browse-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.browse-heading .eyebrow {
  margin-bottom: 10px;
}

.browse-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.browse-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 5px;
}

#results-count {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.text-button {
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.text-button:hover {
  color: var(--ink);
}

.browse-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1.55fr) minmax(175px, 0.8fr) auto auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 18px;
  background-color: var(--green);
  background-image: radial-gradient(
    circle at 10% -30%,
    rgba(255, 255, 255, 0.16),
    transparent 52%
  );
  color: var(--paper-bright);
  box-shadow: 0 14px 30px rgba(23, 37, 30, 0.13);
}

.control {
  min-width: 0;
}

.control label,
.control-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(250, 246, 238, 0.68);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.input-shell,
.select-shell {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid rgba(250, 246, 238, 0.16);
  border-radius: 8px;
  background: var(--paper-bright);
  color: var(--ink);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--focus-light);
  box-shadow: 0 0 0 1px var(--focus-light);
}

.input-shell svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-left: 14px;
  color: var(--ink-faint);
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  /* The visible focus ring is drawn by .input-shell:focus-within. */
  outline: none;
}

.input-shell input::placeholder {
  color: var(--ink-faint);
  opacity: 1;
}

.input-shell input::-webkit-search-cancel-button {
  cursor: pointer;
}

.select-shell select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 13px;
  border: 0;
  border-radius: 8px;
  background-color: var(--paper-bright);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  /* The visible focus ring is drawn by .select-shell:focus-within. */
  outline: none;
  appearance: none;
}

.select-shell svg {
  position: absolute;
  right: 13px;
  width: 16px;
  height: 16px;
  color: var(--ink);
  pointer-events: none;
}

.day-chips {
  display: flex;
  gap: 4px;
  height: 48px;
  padding: 4px;
  border: 1px solid rgba(250, 246, 238, 0.18);
  border-radius: 8px;
  background: rgba(250, 246, 238, 0.06);
}

.day-chip {
  min-width: 56px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: rgba(250, 246, 238, 0.75);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.day-chip:hover {
  border-color: rgba(250, 246, 238, 0.3);
  color: var(--paper-bright);
}

.day-chip.is-active {
  background: var(--paper-bright);
  color: var(--ink);
}

.saved-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid rgba(250, 246, 238, 0.3);
  border-radius: 8px;
  background: transparent;
  color: var(--paper-bright);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.saved-filter svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.saved-filter:hover {
  border-color: var(--paper-bright);
  background: rgba(250, 246, 238, 0.1);
}

.saved-filter[aria-pressed="true"] {
  border-color: var(--orange-bright);
  background: var(--orange-deep);
  color: var(--paper-bright);
}

.saved-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: rgba(250, 246, 238, 0.16);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.saved-filter[aria-pressed="true"] .saved-count {
  background: rgba(23, 37, 30, 0.22);
}

/* Event cards */

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.event-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  overflow: hidden;
  scroll-margin-top: 110px;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--paper-bright);
  box-shadow: 0 18px 36px rgba(23, 37, 30, 0.1);
}

.event-open {
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  width: 100%;
  min-height: 246px;
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) - 1px);
  background: transparent;
  color: inherit;
  text-align: left;
}

.event-open:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -4px;
}

.event-media {
  position: relative;
  min-height: 100%;
  background: var(--paper-deep);
  overflow: hidden;
}

.event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(23, 37, 30, 0.02) 45%,
    rgba(23, 37, 30, 0.3) 100%
  );
  pointer-events: none;
}

.event-media img {
  width: 100%;
  height: 100%;
  min-height: 246px;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.08);
  transition:
    transform 420ms ease,
    filter 300ms ease;
}

.event-card:hover .event-media img {
  transform: scale(1.025);
  filter: saturate(0.85) sepia(0.04);
}

.saved-flag {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px 5px 7px;
  border-radius: 999px;
  background: var(--orange-deep);
  color: var(--paper-bright);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 3px 9px rgba(23, 37, 30, 0.18);
}

.saved-flag svg {
  width: 10px;
  height: 10px;
}

.event-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px 17px;
}

.event-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.category-chip {
  --cat: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cat);
  font-weight: 400;
}

.category-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.cat-art {
  --cat: #b4492d;
}
.cat-film {
  --cat: #3b5366;
}
.cat-food {
  --cat: #8a5a2b;
}
.cat-literature {
  --cat: #6a4c74;
}
.cat-music {
  --cat: #2d5b4c;
}
.cat-outdoors {
  --cat: #5c6e3a;
}
.cat-walks {
  --cat: #2b6b75;
}

.event-time {
  color: var(--ink-faint);
}

.event-kicker .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-faint);
}

.event-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.03;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.event-venue {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.4;
}

.event-summary {
  display: -webkit-box;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.event-cost {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.035em;
  line-height: 1.3;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.event-cost span {
  color: var(--ink-faint);
}

.open-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition:
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.open-arrow svg {
  width: 14px;
  height: 14px;
}

.event-card:hover .open-arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-bright);
  transform: rotate(-45deg);
}

/* Empty state */

.empty-state {
  margin-top: 26px;
  padding: 58px 24px 54px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(250, 246, 238, 0.56);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-art {
  width: 138px;
  height: auto;
  margin: 0 auto 14px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.empty-state p {
  max-width: 38ch;
  margin: 10px auto 20px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.secondary-button {
  min-height: 45px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-bright);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--orange);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.secondary-button:hover {
  background: var(--ink);
  color: var(--paper-bright);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--orange);
}

/* Footer */

.site-footer {
  padding: 44px 0 calc(46px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--green);
  color: var(--paper-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.25fr;
  align-items: start;
  gap: 42px;
}

.footer-brand p {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer-brand em {
  color: var(--orange-bright);
  font-style: italic;
}

.footer-brand span,
.footer-detail p,
.footer-fine {
  color: rgba(250, 246, 238, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

.footer-label {
  margin: 0 0 6px !important;
  color: rgba(250, 246, 238, 0.62) !important;
  font-family: var(--mono);
  font-size: 9px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-detail p {
  margin: 0;
}

.footer-fine {
  max-width: 40ch;
  margin: 0;
  justify-self: end;
}

/* Detail dialog */

.detail-dialog {
  width: min(980px, calc(100vw - 48px));
  max-width: none;
  max-height: min(91vh, 920px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(250, 246, 238, 0.2);
  border-radius: 20px;
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 36px 90px rgba(10, 18, 14, 0.48);
  overflow: hidden;
  overscroll-behavior: contain;
}

.detail-dialog::backdrop {
  background: rgba(14, 24, 19, 0.68);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.detail-dialog[open] {
  animation: dialog-in 200ms ease both;
}

.detail-dialog[open]::backdrop {
  animation: backdrop-in 200ms ease both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-close {
  position: absolute;
  z-index: 10;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23, 37, 30, 0.16);
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(23, 37, 30, 0.15);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.detail-close svg {
  width: 20px;
  height: 20px;
}

.detail-close:hover {
  background: var(--ink);
  color: var(--paper-bright);
  transform: rotate(4deg);
}

.detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  max-height: min(91vh, 920px);
}

.detail-media {
  position: relative;
  min-height: 100%;
  background: var(--paper-deep);
  overflow: hidden;
}

.detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(23, 37, 30, 0) 58%,
    rgba(23, 37, 30, 0.35) 100%
  );
  pointer-events: none;
}

.detail-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  filter: saturate(0.74) sepia(0.06);
}

.detail-image-note {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(250, 246, 238, 0.88);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-content {
  max-height: min(91vh, 920px);
  padding: 44px 46px 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.detail-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.detail-kicker .category-chip {
  font-weight: 400;
}

.detail-title {
  max-width: 17ch;
  margin: 0;
  padding-right: 42px;
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.detail-lead {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.62;
  text-wrap: pretty;
}

.detail-save-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-bright);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.save-button svg {
  width: 17px;
  height: 17px;
}

.save-button:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.save-button[aria-pressed="true"] {
  border-color: var(--orange-deep);
  background: var(--orange-deep);
  color: var(--paper-bright);
}

.save-button[aria-pressed="true"] svg path {
  fill: currentColor;
}

.save-hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 11px;
  line-height: 1.4;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fact-grid > div {
  min-width: 0;
  padding: 13px 15px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact-grid dt {
  margin-bottom: 4px;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.access-block {
  margin-top: 22px;
  padding: 17px 18px 16px;
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: var(--paper-deep);
}

.access-block h3 {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.access-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.access-block p + p {
  margin-top: 8px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition:
    color 160ms ease,
    border-color 160ms ease;
}

.detail-back svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.detail-back:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.detail-back:hover svg {
  transform: translateX(-3px);
}

/* Responsive */

@media (max-width: 1120px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 56px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 38px;
  }

  .hero-photo {
    height: 410px;
  }

  .hero-art {
    min-height: 424px;
  }

  .browse-tools {
    grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.7fr) auto;
  }

  .saved-control {
    grid-column: 1 / -1;
  }

  .saved-filter {
    justify-content: flex-start;
    width: auto;
    min-width: 155px;
    padding-inline: 14px;
  }

  .footer-grid {
    grid-template-columns: 1.1fr 0.8fr 1.2fr;
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .header-note {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-art {
    width: min(100%, 590px);
    min-height: 380px;
    margin-inline: auto;
  }

  .hero-photo {
    width: min(70%, 400px);
    height: 380px;
  }

  .hero-date-card {
    left: 1%;
    bottom: 10px;
  }

  .event-grid {
    grid-template-columns: 1fr;
  }

  .event-open {
    grid-template-columns: 34% minmax(0, 1fr);
    min-height: 232px;
  }

  .event-media img {
    min-height: 232px;
  }

  .detail-dialog {
    width: min(760px, calc(100vw - 40px));
    max-height: 92vh;
    overflow: hidden;
  }

  .detail-shell {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: 92vh;
  }

  .detail-media {
    height: 250px;
    min-height: 0;
  }

  .detail-media img {
    min-height: 0;
    height: 250px;
  }

  .detail-content {
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding: 32px 32px 34px;
  }

  .detail-title {
    max-width: 22ch;
    padding-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-fine {
    grid-column: 1 / -1;
    justify-self: start;
    max-width: 56ch;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .site-header {
    background: var(--paper);
  }

  .header-inner {
    min-height: 64px;
    gap: 16px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 22px;
  }

  .header-jump {
    padding: 7px 0;
    font-size: 11px;
  }

  .header-jump svg {
    width: 14px;
    height: 14px;
  }

  .hero {
    padding: 26px 0 42px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(50px, 14.5vw, 70px);
    line-height: 0.9;
  }

  .hero-lede {
    margin-top: 19px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
  }

  .primary-cta {
    min-height: 48px;
    font-size: 13px;
  }

  .hero-art {
    min-height: 236px;
  }

  .hero-sun {
    top: 8%;
    left: 2%;
    width: 150px;
  }

  .hero-photo {
    width: min(78%, 300px);
    height: 232px;
    border-radius: 120px 120px 14px 14px;
  }

  .hero-photo figcaption {
    right: 12px;
    bottom: 10px;
    left: 12px;
    font-size: 7px;
  }

  .hero-date-card {
    left: 0;
    bottom: 0;
    width: 156px;
    padding: 12px 14px 13px;
    box-shadow: 6px 7px 0 rgba(217, 84, 47, 0.86);
  }

  .hero-date-kicker {
    margin-bottom: 5px;
    font-size: 7px;
  }

  .hero-date-days {
    font-size: 37px;
  }

  .hero-date-month {
    font-size: 8px;
  }

  .hero-date-rule {
    margin: 9px 0 6px;
  }

  .hero-date-note {
    font-size: 9px;
  }

  .hero-stamp {
    top: -16px;
    right: 3px;
    width: 78px;
    height: 78px;
  }

  .stamp-text {
    font-size: 8.5px;
  }

  .browse {
    padding: 34px 0 56px;
  }

  .browse-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .browse-heading h2 {
    font-size: 36px;
  }

  .browse-meta {
    width: 100%;
    justify-content: space-between;
    padding: 0;
  }

  .browse-tools {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
  }

  .search-control,
  .select-control {
    grid-column: 1 / -1;
  }

  .day-control,
  .saved-control {
    grid-column: auto;
  }

  .saved-filter {
    width: 100%;
    min-width: 0;
    padding-inline: 9px;
    font-size: 11px;
  }

  .saved-filter svg {
    width: 15px;
    height: 15px;
  }

  .saved-filter span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .day-chip {
    min-width: 0;
    flex: 1;
    padding-inline: 5px;
    font-size: 9px;
  }

  .input-shell,
  .select-shell,
  .day-chips,
  .saved-filter {
    height: 46px;
  }

  .event-grid {
    gap: 14px;
    margin-top: 18px;
  }

  .event-open {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .event-media {
    height: 190px;
    min-height: 0;
  }

  .event-media img {
    min-height: 0;
    height: 190px;
  }

  .event-body {
    padding: 16px 17px 15px;
  }

  .event-title {
    font-size: 27px;
  }

  .event-summary {
    margin-bottom: 12px;
    font-size: 12.5px;
  }

  .detail-dialog {
    width: calc(100vw - 24px);
    max-height: 92vh;
    border-radius: 16px;
  }

  .detail-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  .detail-media,
  .detail-media img {
    height: 200px;
  }

  .detail-content {
    padding: 26px 20px 30px;
  }

  .detail-title {
    font-size: clamp(34px, 10vw, 43px);
  }

  .detail-lead {
    margin-top: 15px;
    font-size: 14.5px;
  }

  .detail-save-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 18px;
  }

  .save-button {
    width: 100%;
  }

  .fact-grid {
    margin-top: 18px;
  }

  .fact-grid > div {
    padding: 11px 12px 12px;
  }

  .access-block {
    margin-top: 18px;
    padding: 15px 15px 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-fine {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 20px;
  }

  .header-jump {
    font-size: 10px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-facts {
    font-size: 11px;
  }

  .browse-heading h2 {
    font-size: 32px;
  }

  .saved-filter .saved-count {
    display: none;
  }

  .saved-filter {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .detail-dialog[open],
  .detail-dialog[open]::backdrop {
    animation: none !important;
  }
}
