/* Two Days — a city weekend programme
   Palette, type, and rules are deliberate: printed programme, not card UI. */

@font-face {
  font-family: "Oswald";
  src: url("assets/oswald.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f2f2e9;
  --paper-raised: #f9f9f2;
  --paper-deep: #e6e7d9;
  --ink: #14251d;
  --forest: #153a2c;
  --forest-deep: #0d291f;
  --butter: #efc94c;
  --butter-soft: #f8e7ad;
  --lilac: #cbbde3;
  --sage: #a9b8ac;
  --muted: #5c6a5f;
  --line: #c6caba;
  --line-dark: rgba(242, 242, 233, 0.28);
  --focus: #1d5b45;
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Literata", Georgia, "Times New Roman", serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--butter);
  color: var(--forest-deep);
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

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

.masthead :focus-visible,
.footer :focus-visible,
.detail :focus-visible {
  outline-color: var(--butter);
}

.wrap {
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--butter);
  color: var(--forest-deep);
  border: 2px solid var(--forest-deep);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  transform: translateY(-180%);
}

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

/* Masthead */

.masthead {
  background: var(--forest);
  color: var(--paper);
  border-bottom: 4px solid var(--butter);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 17px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--butter);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.masthead-date {
  margin: 0;
  color: #dce5d8;
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  align-items: end;
  gap: clamp(36px, 6vw, 80px);
  padding-block: clamp(40px, 3.6vw, 54px) clamp(30px, 2.8vw, 40px);
}

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

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-deck {
  max-width: 51ch;
  margin: 0 0 22px;
  color: #3d4b41;
  font-size: 17px;
  line-height: 1.63;
}

.hero-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--forest);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-link:hover {
  background: var(--butter-soft);
  text-decoration-thickness: 3px;
}

/* The weekend slab: the page's one loud gesture, built from real dates. */

.weekend-slab {
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  border: 2px solid var(--forest);
  background: var(--forest);
  color: var(--forest-deep);
}

.slab-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "day number"
    "foot number";
  align-items: center;
  gap: 2px 16px;
  min-height: 152px;
  padding: 20px 24px 18px;
}

.slab-band--sat {
  background: var(--butter);
}

.slab-band--sun {
  background: var(--lilac);
  border-top: 2px solid var(--forest);
}

.slab-day {
  grid-area: day;
  align-self: end;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.slab-num {
  grid-area: number;
  align-self: center;
  justify-self: end;
  font-family: var(--font-display);
  font-size: clamp(82px, 9.5vw, 118px);
  font-weight: 500;
  line-height: 0.72;
  letter-spacing: -0.035em;
}

.slab-foot {
  grid-area: foot;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* Filter bench */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper-deep);
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--forest);
}

.toolbar-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 196px 176px auto;
  align-items: end;
  gap: 14px;
  padding-block: 15px 17px;
}

.field {
  min-width: 0;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 6px;
  color: #435146;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1.5px solid var(--forest);
  border-radius: 0;
  background: var(--paper-raised);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
}

.field input::placeholder {
  color: #667266;
  opacity: 1;
}

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2314251d' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
}

.field input:hover,
.field select:hover {
  background-color: #fffef8;
}

.saved-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1.5px solid var(--forest);
  border-radius: 0;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.saved-filter:hover {
  background: var(--butter-soft);
}

.saved-filter[aria-pressed="true"] {
  background: var(--butter);
}

.star-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.saved-filter[aria-pressed="true"] .star-icon,
.save-item[aria-pressed="true"] .star-icon {
  fill: currentColor;
}

.saved-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 5px;
  border: 1px solid currentColor;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.saved-filter[aria-pressed="true"] .saved-count {
  background: var(--forest);
  color: var(--butter);
  border-color: var(--forest);
}

/* Results */

.browse-body {
  padding-bottom: 36px;
}

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 18px;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.results-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.clear-filters {
  padding: 3px 0;
  border: 0;
  border-bottom: 1.5px solid var(--forest);
  background: transparent;
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.clear-filters:hover {
  background: var(--butter-soft);
}

/* Day groups and event rows */

.day-group {
  margin-bottom: 56px;
}

.day-group:last-child {
  margin-bottom: 0;
}

.day-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-block: 23px 15px;
}

.day-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1.5px solid var(--forest);
  color: var(--forest-deep);
}

.day-mark--sat {
  background: var(--butter);
}

.day-mark--sun {
  background: var(--lilac);
}

.day-mark-num {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.day-mark-month {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}

.day-heading-text h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
}

.day-sub {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.day-count {
  margin: 0 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
}

.event-list {
  border-top: 2px solid var(--forest);
}

.event {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 124px;
  align-items: start;
  gap: 26px;
  padding-block: 26px 28px;
  border-bottom: 1px solid var(--line);
}

.event-time {
  margin: 1px 0 0;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

.time-start {
  display: block;
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.time-end {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.event-main {
  min-width: 0;
}

.event-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 20px;
}

.cat-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.cat-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sage);
}

.cat--art { background: #b58acb; }
.cat--film { background: #7d96d6; }
.cat--food { background: #d98a4e; }
.cat--literature { background: #c2a24a; }
.cat--music { background: #d47777; }
.cat--outdoors { background: #6fa57a; }
.cat--walks { background: #5fa7a0; }

.saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: var(--butter);
  color: var(--forest-deep);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
}

.saved-badge svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.event-title {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.event-summary {
  max-width: 63ch;
  margin: 0 0 13px;
  color: #39473d;
  font-size: 16px;
  line-height: 1.55;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.event-meta li + li {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.free-tag {
  display: inline-block;
  padding: 1px 6px 2px;
  background: var(--butter);
  color: var(--forest-deep);
  font-weight: 600;
  line-height: 1.3;
}

.event-action {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.open-item {
  min-height: 44px;
  padding: 0 17px;
  border: 1.5px solid var(--forest);
  border-radius: 0;
  background: transparent;
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.015em;
}

.open-item:hover {
  background: var(--forest);
  color: var(--paper);
}

/* Empty, loading, and error states */

.loading-state {
  margin: 0;
  padding-block: 64px;
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding-block: 64px;
  border-top: 2px solid var(--forest);
  border-bottom: 1px solid var(--line);
}

.state-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
}

.state-copy {
  max-width: 52ch;
  margin: 0;
  color: #455349;
  font-size: 16px;
  line-height: 1.6;
}

.state-action {
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--forest);
  border-radius: 0;
  background: var(--forest);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.state-action:hover {
  background: var(--butter);
  color: var(--forest-deep);
}

/* Footer */

.footer {
  margin-top: 28px;
  background: var(--forest);
  color: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 40px;
  padding-block: 46px 52px;
}

.footer-brand {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}

.footer-copy {
  max-width: 62ch;
  margin: 0;
  color: #cad7cc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-note {
  margin: 0;
  align-self: end;
  color: #aab9ad;
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-note a {
  text-underline-offset: 3px;
}

/* Detail programme sheet */

.detail {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--forest);
  color: var(--paper);
  overflow: auto;
  overscroll-behavior: contain;
}

.detail::backdrop {
  background: rgba(7, 24, 17, 0.76);
}

.detail[open] {
  display: block;
}

.detail-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px clamp(20px, 4.5vw, 48px);
  background: var(--forest-deep);
  border-bottom: 1px solid rgba(242, 242, 233, 0.22);
}

.detail-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.close-detail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1.5px solid rgba(242, 242, 233, 0.55);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.close-detail svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.close-detail:hover {
  background: var(--paper);
  color: var(--forest-deep);
}

.detail-content {
  padding: clamp(30px, 5vw, 56px) clamp(20px, 5vw, 64px) clamp(36px, 6vw, 64px);
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--butter);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.detail-title {
  max-width: 16ch;
  margin: 0;
  color: #fbfbf3;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.2vw, 64px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.detail-when {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(242, 242, 233, 0.24);
  color: #dce6d8;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.detail-when span + span {
  padding-left: 18px;
  border-left: 1px solid rgba(242, 242, 233, 0.3);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.65fr);
  align-items: start;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 38px;
}

.detail-body p {
  max-width: 58ch;
  margin: 0 0 22px;
  color: #e4ebe0;
  font-size: 17px;
  line-height: 1.72;
}

.detail-body .detail-lede {
  color: #f0f3eb;
  font-size: 19px;
  line-height: 1.65;
}

.detail-body .detail-note {
  margin: 30px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(242, 242, 233, 0.24);
  color: #ccd8cb;
  font-size: 15.5px;
  line-height: 1.65;
}

.detail-facts {
  padding-top: 17px;
  border-top: 2px solid var(--butter);
}

.save-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--butter);
  border-radius: 0;
  background: var(--butter);
  color: var(--forest-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.save-item:hover {
  background: var(--butter-soft);
}

.save-item[aria-pressed="true"] {
  background: transparent;
  color: var(--paper);
}

.save-item[aria-pressed="true"]:hover {
  background: rgba(239, 201, 76, 0.14);
}

.fact-list {
  margin: 22px 0 0;
}

.fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(242, 242, 233, 0.2);
}

.fact dt {
  color: var(--sage);
  font-size: 12.5px;
  line-height: 1.55;
}

.fact dd {
  margin: 0;
  color: #f0f3eb;
  font-size: 14.5px;
  line-height: 1.45;
}

/* Responsive */

@media (max-width: 1100px) {
  .toolbar-inner {
    grid-template-columns: minmax(200px, 1fr) 180px 166px auto;
    gap: 12px;
  }

  .saved-filter {
    font-size: 16px;
    padding-inline: 12px;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 48px 44px;
  }

  .hero h1 {
    max-width: 18ch;
  }

  .weekend-slab {
    justify-self: stretch;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .slab-band {
    min-height: 136px;
  }

  .slab-band--sun {
    border-top: 0;
    border-left: 2px solid var(--forest);
  }

  .slab-num {
    font-size: clamp(68px, 11vw, 100px);
  }

  .toolbar {
    position: static;
  }

  .toolbar-inner {
    grid-template-columns: 1fr 1fr;
    gap: 13px 14px;
    padding-block: 16px 18px;
  }

  .field--search {
    grid-column: 1 / -1;
  }

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

  .saved-filter {
    min-height: 46px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .detail-facts {
    order: -1;
  }

  .fact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }

  .fact {
    grid-template-columns: 86px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }

  .masthead-inner {
    padding-block: 15px;
  }

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

  .masthead-date {
    max-width: 150px;
    font-size: 12px;
  }

  .hero {
    padding-block: 40px 38px;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(44px, 12.4vw, 58px);
  }

  .hero-deck {
    font-size: 16px;
    line-height: 1.62;
    margin-bottom: 23px;
  }

  .weekend-slab {
    grid-template-columns: 1fr 1fr;
  }

  .slab-band {
    min-height: 124px;
    padding: 15px 14px 14px;
    gap: 2px 8px;
  }

  .slab-day {
    font-size: 17px;
  }

  .slab-num {
    font-size: clamp(58px, 17vw, 76px);
  }

  .slab-foot {
    display: block;
    font-size: 11.5px;
  }

  .slab-foot span {
    display: block;
  }

  .slab-foot span + span {
    margin-top: 2px;
  }

  .toolbar-inner {
    padding-block: 14px 16px;
  }

  .field input,
  .field select {
    height: 46px;
    font-size: 15px;
  }

  .results-bar {
    padding-block: 19px 14px;
  }

  .results-hint {
    display: none;
  }

  .day-heading {
    gap: 13px;
    padding-block: 20px 12px;
  }

  .day-mark {
    width: 54px;
    height: 54px;
  }

  .day-mark-num {
    font-size: 25px;
  }

  .day-mark-month {
    font-size: 9.5px;
  }

  .day-heading-text h2 {
    font-size: 30px;
  }

  .day-sub {
    font-size: 12.5px;
  }

  .day-count {
    font-size: 12.5px;
  }

  .event {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time action"
      "main main";
    gap: 10px 14px;
    padding-block: 22px 24px;
  }

  .event-time {
    grid-area: time;
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
  }

  .time-start {
    font-size: 23px;
  }

  .time-end {
    display: inline;
    margin: 0;
    font-size: 13px;
  }

  .time-end::before {
    content: "–";
    margin-right: 7px;
  }

  .event-main {
    grid-area: main;
  }

  .event-action {
    grid-area: action;
    align-self: start;
  }

  .open-item {
    min-height: 40px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .event-title {
    margin-top: 5px;
    font-size: 25px;
    line-height: 1.1;
  }

  .event-summary {
    font-size: 15.5px;
  }

  .event-meta {
    font-size: 13px;
  }

  .state {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 48px;
  }

  .state-action {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 38px 42px;
  }

  .footer-note {
    align-self: start;
  }

  .detail {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    max-width: 100vw;
    border-radius: 0;
  }

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

  .detail-title {
    font-size: clamp(34px, 10.5vw, 44px);
    max-width: 18ch;
  }

  .detail-when {
    font-size: 16px;
    gap: 6px 12px;
  }

  .detail-when span + span {
    padding-left: 12px;
  }

  .detail-layout {
    margin-top: 28px;
  }

  .fact-list {
    display: block;
  }

  .fact {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .detail-body .detail-lede {
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .masthead-date {
    max-width: 126px;
    font-size: 11.5px;
  }

  .slab-num {
    font-size: 54px;
  }

  .day-count {
    display: none;
  }
}

@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;
  }
}
