@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/OpenSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f1eb;
  --surface: #e8e5de;
  --text: #1a2528;
  --muted: #697375;
  --line: #c9cfca;
  --accent: #a1624d;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111a20;
    --surface: #1b272c;
    --text: #f0eee6;
    --muted: #aeb9b9;
    --line: #344448;
    --accent: #e9a588;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Year overview */
.site-shell { max-width: 1440px; margin: auto; padding: 0 clamp(20px, 5vw, 72px); }
.site-header {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}
.header-label, .back-link {
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.back-link { display: flex; gap: 12px; align-items: center; transition: color .2s; }
.back-link:hover { color: var(--text); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 35px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.site-footer a:hover { text-decoration: underline; }
.home-intro { padding: clamp(80px, 12vw, 165px) 0 clamp(70px, 10vw, 130px); max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 11px; font-weight: 700; color: var(--accent); }
h1 { font-weight: 400; letter-spacing: -.065em; line-height: 1.07; }
.home-intro h1 { font-size: clamp(58px, 9vw, 124px); margin: 25px 0 30px; }
.home-intro h1 em { font-style: normal; color: var(--muted); }
.intro-copy { max-width: 420px; color: var(--muted); line-height: 1.8; font-size: 15px; }
.month-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(16px, 2.6vw, 36px);
  row-gap: clamp(42px, 5vw, 80px);
  padding-bottom: 110px;
}
.month-card { min-width: 0; }
.month-card-image { aspect-ratio: 4 / 5; overflow: hidden; background: var(--accent); position: relative; }
.month-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .6s ease; }
.month-card:hover img, .month-card:focus-visible img { transform: scale(1.045); filter: saturate(1.14); }
.month-card-number {
  position: absolute;
  left: 22px;
  top: 18px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-shadow: 0 1px 8px #0007;
}
.month-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 15px 1px 17px;
  font-size: 14px;
  font-weight: 600;
}
.month-card-meta span:last-child { font-size: 20px; font-weight: 400; transition: transform .2s; }
.month-card:hover .month-card-meta span:last-child { transform: translate(3px, -3px); }

/* Full-screen month */
.month-screen {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #111a20;
  color: #fff;
}
.month-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.video-fallback { z-index: 0; }
.month-video { z-index: 0; background: #111a20; }
.video-failed .month-video { display: none; }
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 30px;
  background: rgba(10, 20, 25, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.video-loading[hidden] { display: none; }
.video-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: video-spin .8s linear infinite;
}
@keyframes video-spin { to { transform: rotate(360deg); } }
.month-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 13, 18, .7) 0%, rgba(5, 13, 18, .19) 36%, rgba(5, 13, 18, .12) 52%, rgba(5, 13, 18, .82) 100%);
  pointer-events: none;
}
.month-hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fff;
}
.month-hotspot-prev { left: 0; justify-content: flex-start; }
.month-hotspot-next { right: 0; justify-content: flex-end; }
.month-hotspot-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(18px, 3vw, 48px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  text-shadow: 0 1px 10px #000b;
  opacity: .8;
  transition: opacity .2s, transform .2s;
}
.month-hotspot-arrow { font-size: 28px; font-weight: 400; line-height: 1; }
.month-hotspot:hover .month-hotspot-label, .month-hotspot:focus-visible .month-hotspot-label { opacity: 1; }
.month-hotspot-prev:hover .month-hotspot-label { transform: translateX(-5px); }
.month-hotspot-next:hover .month-hotspot-label { transform: translateX(5px); }
.month-content {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: clamp(24px, 4vw, 56px) clamp(24px, 6vw, 96px) clamp(24px, 4vw, 52px);
  pointer-events: none;
}
.month-content a, .month-content button { pointer-events: auto; }
.month-header { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.month-header .back-link { color: #fff; text-shadow: 0 1px 10px #0009; }
.month-header .back-link:hover { text-decoration: underline; }
.month-heading { padding-top: clamp(56px, 8vh, 120px); }
.month-kicker {
  margin: 0 0 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #0009;
}
.month-kicker span { opacity: .6; padding: 0 .4em; }
.month-heading h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  text-shadow: 0 2px 24px #0007;
}
.month-bottom-row { display: flex; align-items: end; justify-content: space-between; gap: clamp(28px, 5vw, 80px); }
.description {
  max-width: 650px;
  margin: 0;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.5;
  letter-spacing: -.02em;
  text-shadow: 0 1px 12px #000b;
}
.sound-card {
  flex: 0 0 min(320px, 34vw);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 16px 16px 16px 20px;
  background: rgba(10, 20, 25, .75);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sound-icon { display: flex; align-items: center; gap: 3px; height: 24px; width: 31px; }
.sound-icon span { width: 3px; height: 8px; background: var(--month-accent); border-radius: 3px; }
.sound-icon span:nth-child(2), .sound-icon span:nth-child(4) { height: 17px; }
.sound-icon span:nth-child(3) { height: 23px; }
.sound-card.is-playing .sound-icon span { animation: pulse .8s ease-in-out infinite alternate; }
.sound-card.is-playing .sound-icon span:nth-child(even) { animation-delay: .3s; }
@keyframes pulse { to { transform: scaleY(.45); } }
.sound-info { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.sound-info strong { font-size: 12px; font-weight: 700; }
.sound-info span { font-size: 11px; color: #d5dddc; }
.sound-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111a20;
  cursor: pointer;
  font-size: 11px;
}
.sound-toggle:hover { transform: scale(1.06); }
.sound-mute svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound-mute[aria-pressed="false"] .sound-waves,
.sound-mute[aria-pressed="true"] .sound-slash { display: none; }
.sound-toggle:disabled { cursor: not-allowed; opacity: .5; }
.photo-credit {
  display: inline-block;
  margin-top: 24px;
  color: #e4e8e6;
  font-size: 11px;
  text-shadow: 0 1px 10px #000b;
}
.photo-credit:hover { text-decoration: underline; }
.has-video .month-hotspot { bottom: 72px; }
.has-video .month-bottom { padding-bottom: 64px; }
.overview-screen .header-label { color: #fff; text-shadow: 0 1px 10px #0009; }
.overview-screen .month-heading { padding-top: clamp(56px, 8vh, 120px); }
.overview-scroll {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #0009;
}
.overview-scroll:hover { text-decoration: underline; }
.home-shell .month-grid { padding-top: 60px; }

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .header-label { font-size: 10px; }
  .home-intro { padding: 84px 0 75px; }
  .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 35px; padding-bottom: 75px; }
  .month-card-meta { font-size: 12px; }
  .month-content { gap: 48px; }
  .month-heading { padding-top: 48px; }
  .month-bottom-row { display: block; }
  .sound-card { width: min(100%, 360px); margin-top: 28px; }
  .month-hotspot-label { padding-inline: 18px; font-size: 0; gap: 0; }
  .month-hotspot-arrow { font-size: 34px; }
}
@media (max-width: 480px) {
  .month-grid { gap: 35px 12px; }
  .month-card-number { left: 12px; top: 10px; }
  .home-intro h1 { font-size: clamp(54px, 13vw, 80px); }
  .intro-copy { font-size: 14px; }
  .site-footer { font-size: 10px; }
  .month-content { padding: 24px 22px 25px; }
  .month-header .back-link { font-size: 10px; }
  .month-heading { padding-top: 36px; }
  .month-heading h1 { font-size: clamp(48px, 12vw, 64px); }
  .description { font-size: 17px; }
  .photo-credit { font-size: 10px; }
  .month-hotspot-label { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
