:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f7eee4;
  background: #1c1b1c;
  --serif: Georgia, 'Times New Roman', serif;
  --paper: #f7eee4;
  --muted: #d0c4be;
  --blush: #e2afb6;
  --wine: #733745;
  --line: #4c4245;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 24%, #35272d 0, transparent 55%), #1c1b1c;
}
button, a { font: inherit; }
:focus-visible { outline: 2px solid #f0b1a6; outline-offset: 4px; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.topbar {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.brand { font: 1.2rem/1.15 var(--serif); }
.top-link { font-size: .875rem; color: var(--muted); text-underline-offset: 5px; }
.top-link:hover { color: var(--paper); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .83fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(24px, 4.4vw, 68px);
  padding-block: clamp(29px, 4.3vw, 58px);
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--blush);
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font: 400 clamp(2.75rem, 4.65vw, 5rem)/.98 var(--serif);
  letter-spacing: -.056em;
}
h1 em { color: var(--blush); font-weight: 400; }
.lede, .calendar > p, .post-body {
  color: var(--muted);
  font-size: 1.025rem;
  line-height: 1.62;
}
.lede { max-width: 36ch; margin: 19px 0 20px; }
.count { display: flex; align-items: center; gap: 15px; margin-bottom: 21px; }
.number {
  min-width: 57px;
  padding: 3px 9px 6px;
  border: 1px solid #815563;
  border-radius: 4px;
  background: #473039;
  color: #f5d1d0;
  font: 2.65rem/.95 var(--serif);
  text-align: center;
  font-variant-numeric: lining-nums;
}
.count-copy { font-size: .96rem; }
.count-copy small { display: block; color: var(--muted); font-size: .875rem; }
.primary {
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid #9b5563;
  border-radius: 4px;
  color: #fff3e8;
  background: var(--wine);
  font-weight: 650;
  cursor: pointer;
}
.primary:hover { background: #894757; }
.poster {
  min-width: 0;
  margin: 0;
  padding: 7px;
  border: 1px solid #5a4e4e;
  border-radius: 5px;
  background: #242122;
  box-shadow: 0 18px 58px #0f0a0c90;
}
.poster img { display: block; width: 100%; height: auto; border-radius: 2px; background: #4d4949; }
.calendar { padding-block: 26px 47px; border-top: 1px solid var(--line); }
.calendar h2 { margin: 0; font: 400 clamp(1.95rem, 3.1vw, 2.8rem)/1.1 var(--serif); letter-spacing: -.035em; }
.calendar > p { margin: 7px 0 19px; }
.cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 17px 9px;
  border: 1px solid #534a4b;
  border-radius: 5px;
  list-style: none;
  background-color: #121112;
}
.filmstrip {
  background-image: repeating-linear-gradient(90deg, transparent 0 8px, #57494b 8px 20px, transparent 20px 26px), repeating-linear-gradient(90deg, transparent 0 8px, #57494b 8px 20px, transparent 20px 26px);
  background-size: 100% 5px;
  background-position: left 5px, left bottom 5px;
  background-repeat: no-repeat;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 94px;
  padding: 10px 12px;
  border: 1px solid #494045;
  border-radius: 3px;
  background: #2b2628;
  color: var(--muted);
  text-align: left;
}
.card time { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 5px; }
.card time b { font: 2rem/.91 var(--serif); letter-spacing: -.07em; }
.card time span { font-size: .875rem; }
.card-status { font-size: .875rem; }
.card.final-card { border-color: #825563; }
button.card { cursor: pointer; color: var(--paper); border-color: #95616a; }
button.card:hover { background: #4a3038; }
.card[aria-current='date'] { background: #6b3644; border-color: #b57680; color: #fff2e7; }
.card[aria-current='date']:hover { background: var(--wine); }
dialog {
  width: min(100% - 36px, 515px);
  max-height: calc(100dvh - 36px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid #a16e78;
  border-radius: 6px;
  color: var(--paper);
  background: #2d2328;
  box-shadow: 0 18px 75px #0c080be0;
}
dialog::backdrop { background: #131014c7; }
dialog[open] { animation: reveal .22s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } }
dialog.with-photo { width: min(100% - 36px, 690px); }
.with-photo .post-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .57fr); align-items: center; gap: 23px; }
.post-heading { margin: 0 34px 13px 0; font: 400 clamp(1.95rem, 4.8vw, 2.7rem)/1.08 var(--serif); letter-spacing: -.04em; }
.post-body { margin: 0 0 19px; }
.signature { margin: 0; color: var(--blush); font: italic 1.15rem/1.4 var(--serif); }
.post-photo { width: 100%; height: auto; display: block; border: 3px solid #99737c; border-radius: 3px; }
.close {
  position: absolute;
  right: 11px;
  top: 11px;
  width: 44px;
  height: 44px;
  border: 1px solid #895968;
  border-radius: 4px;
  color: var(--paper);
  background: #4a2e3a;
  font-size: 1.45rem;
  cursor: pointer;
}
.close:hover { background: #603d48; }
@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .card time { align-items: start; flex-direction: column; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .topbar { min-height: 58px; }
  .brand { font-size: 1rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  h1 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .poster { padding: 4px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards > li:last-child { grid-column: 1 / -1; }
  .final-card { flex-direction: row; align-items: center; min-height: 61px; }
  .final-card time { flex-direction: row; align-items: baseline; }
}
@media (max-width: 510px) {
  .with-photo .post-content { grid-template-columns: minmax(0, 1fr); }
  .post-photo { width: min(100%, 190px); }
}
@media (prefers-reduced-motion: reduce) {
  dialog[open] { animation: none; }
}
