:root {
  --navy: #19324a;
  --navy-deep: #102435;
  --red: #a83f3f;
  --gold: #c99435;
  --paper: #f4efe5;
  --paper-light: #fbf8f1;
  --ink: #1c2c36;
  --muted: #5e6b70;
  --line: rgba(25, 50, 74, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

.site-bar {
  align-items: center;
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  font: 700 0.71rem/1 Arial, sans-serif;
  justify-content: space-between;
  letter-spacing: 0.13em;
  padding: 18px max(22px, calc((100vw - 1240px) / 2));
  text-transform: uppercase;
}

.site-bar a {
  text-decoration: none;
}

.site-actions {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-actions button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  padding: 9px 13px 8px;
  text-transform: inherit;
}

.site-actions a:hover,
.site-actions a:focus-visible,
.site-actions button:hover,
.site-actions button:focus-visible {
  color: #f5cf83;
}

.cover {
  display: grid;
  gap: clamp(34px, 6vw, 90px);
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 770px;
  padding: clamp(72px, 9vw, 130px) 24px 82px;
}

.cover-copy {
  align-self: center;
  max-width: 650px;
}

.eyebrow {
  color: var(--red);
  font: 700 0.72rem/1.4 Arial, sans-serif;
  letter-spacing: 0.17em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2 {
  color: var(--navy);
  font-weight: normal;
  letter-spacing: -0.055em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(4rem, 8.5vw, 7.6rem);
  line-height: 0.84;
}

.dek {
  color: #43545d;
  font-size: clamp(1.25rem, 2.1vw, 1.72rem);
  line-height: 1.45;
  margin: 34px 0 0;
  max-width: 580px;
}

.date-line {
  color: var(--navy);
  font: 700 0.78rem/1 Arial, sans-serif;
  letter-spacing: 0.14em;
  margin: 25px 0 0;
  text-transform: uppercase;
}

.read-link {
  align-items: center;
  border-bottom: 1px solid var(--navy);
  display: inline-flex;
  font: 700 0.7rem/1 Arial, sans-serif;
  gap: 16px;
  letter-spacing: 0.14em;
  margin-top: 40px;
  padding-bottom: 7px;
  text-decoration: none;
  text-transform: uppercase;
}

.cover-photo {
  align-self: center;
  margin: 0;
}

.cover-photo img {
  background: #e6e0d4;
  border: 10px solid var(--paper-light);
  box-shadow: 0 22px 55px rgba(25, 50, 74, 0.18);
  margin: 0 auto;
  max-height: 680px;
  object-fit: contain;
  width: auto;
}

figcaption {
  color: var(--muted);
  font: 0.76rem/1.5 Arial, sans-serif;
  letter-spacing: 0.025em;
  margin-top: 11px;
}

.day-nav {
  background: var(--navy);
  color: #fff;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  margin: 0;
  overflow-x: auto;
  padding: 0 max(18px, calc((100vw - 1240px) / 2));
}

.day-nav a {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font: 700 0.67rem/1.25 Arial, sans-serif;
  letter-spacing: 0.09em;
  min-width: 90px;
  padding: 22px 12px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.day-nav a:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.day-nav a:hover,
.day-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.day-nav span {
  color: #e7bf71;
  display: block;
  margin-top: 4px;
}

.day {
  margin: 0 auto;
  max-width: 1180px;
  padding: 116px 24px 130px;
  scroll-margin-top: 20px;
}

.day + .day {
  border-top: 1px solid var(--line);
}

.day:nth-child(even) {
  position: relative;
}

.day:nth-child(even)::before {
  background: rgba(255, 255, 255, 0.34);
  content: "";
  bottom: 0;
  left: 50%;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  z-index: -1;
}

.day-header {
  display: grid;
  gap: 32px;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-bottom: 66px;
}

.day-number {
  color: var(--gold);
  font: 700 2.35rem/1 Arial, sans-serif;
  letter-spacing: -0.06em;
  margin: 2px 0 0;
}

h2 {
  font-size: clamp(3rem, 6vw, 5.7rem);
  line-height: 0.94;
}

.day-summary {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.34rem);
  line-height: 1.55;
  margin: 25px 0 0;
  max-width: 780px;
}

.prose {
  margin: 0 auto;
  max-width: 760px;
}

.prose > p {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.82;
  margin: 0 0 1.55em;
}

.day:first-child .prose > p:first-child::first-letter {
  color: var(--red);
  float: left;
  font-size: 5.5rem;
  line-height: 0.72;
  margin: 0.1em 0.12em 0 0;
}

.photo-gallery {
  align-items: start;
  display: grid;
  gap: 22px;
  margin: 66px 50% 76px;
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 48px));
}

.photos-1 {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.photos-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photos-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-gallery figure {
  align-self: start;
  margin: 0;
  min-width: 0;
}

.photo-gallery img {
  background: #e8e2d6;
  border-radius: 3px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  width: 100%;
}

.closing {
  background: var(--navy-deep);
  color: #fff;
  min-height: 480px;
  padding: 100px 24px;
  place-items: center;
  text-align: center;
  display: grid;
}

.closing div {
  max-width: 850px;
}

.closing .eyebrow {
  color: #e7bf71;
}

.closing p:not(.eyebrow) {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin: 0 0 40px;
}

.closing a {
  font: 700 0.7rem/1 Arial, sans-serif;
  letter-spacing: 0.14em;
  text-underline-offset: 7px;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .cover {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 72px;
  }

  .cover-copy {
    max-width: 100%;
  }

  .cover-photo {
    justify-self: center;
  }

  .day-nav {
    grid-template-columns: repeat(9, 92px);
    justify-content: start;
  }

  .photos-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-bar {
    padding: 16px 15px;
  }

  .site-actions {
    gap: 12px;
  }

  .site-actions > a {
    display: none;
  }

  .cover {
    padding: 58px 15px 65px;
  }

  h1 {
    font-size: clamp(3.65rem, 19vw, 5.6rem);
  }

  .cover-photo img {
    border-width: 6px;
    max-height: none;
    width: 100%;
  }

  .day {
    padding: 78px 15px 92px;
  }

  .day-header {
    gap: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    margin-bottom: 45px;
  }

  .day-number {
    font-size: 1.35rem;
  }

  h2 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

  .prose > p {
    font-size: 1.04rem;
    line-height: 1.72;
  }

  .photo-gallery,
  .photos-2,
  .photos-3 {
    grid-template-columns: 1fr;
    margin-bottom: 58px;
    margin-top: 50px;
    width: calc(100vw - 30px);
  }

  .photo-gallery img {
    max-height: none;
    width: 100%;
  }
}

@media print {
  @page {
    margin: 0.6in;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    background: #fff;
    color: #172b36;
  }

  .site-bar,
  .day-nav,
  .read-link,
  .closing a {
    display: none !important;
  }

  .cover {
    break-after: page;
    display: grid;
    gap: 0.3in;
    grid-template-columns: 1fr 2.2in;
    min-height: 0;
    padding: 0;
  }

  .cover-photo img {
    border: 0;
    box-shadow: none;
    max-height: 6.4in;
  }

  h1 {
    font-size: 44pt;
  }

  .dek {
    font-size: 14pt;
    margin-top: 0.22in;
  }

  .day {
    break-before: page;
    border: 0 !important;
    margin: 0;
    max-width: none;
    padding: 0 0 0.35in;
  }

  .day:nth-child(even)::before {
    display: none;
  }

  .day-header {
    break-after: avoid-page;
    gap: 0.14in;
    grid-template-columns: 0.38in 1fr;
    margin-bottom: 0.28in;
  }

  .day-number {
    font-size: 18pt;
  }

  h2 {
    font-size: 29pt;
  }

  .day-summary {
    font-size: 10.5pt;
    margin-top: 0.12in;
  }

  .prose {
    max-width: none;
  }

  .prose > p {
    font-size: 10.3pt;
    line-height: 1.42;
    margin-bottom: 0.13in;
    orphans: 3;
    widows: 3;
  }

  .photo-gallery,
  .photos-2,
  .photos-3 {
    break-inside: avoid-page;
    gap: 0.14in;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.26in 0 0.3in;
    transform: none;
    width: 100%;
  }

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

  .photo-gallery figure {
    break-inside: avoid-page;
  }

  .photo-gallery img {
    background: none;
    height: auto;
    max-height: 3.2in;
    object-fit: contain;
    width: auto;
  }

  .photos-1 img {
    max-height: 5.4in;
  }

  figcaption {
    font-size: 7.6pt;
    margin-top: 0.05in;
  }

  .closing {
    break-before: page;
    color: var(--navy);
    min-height: 0;
    padding: 0;
  }
}

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