:root {
  color-scheme: light;
  --bg: #f4efe6;        /* warm off-white ground */
  --surface: #fffdf9;   /* cards / strips */
  --ink: #201e1c;       /* near-black text */
  --clay: #c75f3a;      /* single accent */
  --line: rgba(32, 30, 28, 0.26); /* hairline rules */
  --line-soft: rgba(32, 30, 28, 0.12);
  --mute: rgba(32, 30, 28, 0.55);
  --faint: rgba(32, 30, 28, 0.3);
  --page-font: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --display-font: "Patrick Hand", "Nunito Sans", system-ui, cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--page-font);
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}

/* ---------- Layout shell ---------- */
.splash {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero {
  width: min(92vw, 60rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 1.8rem);
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}

.hero--home {
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
}

.kicker {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
}

.logo {
  display: block;
  width: min(80vw, 34rem);
  height: auto;
}

.hero--home .logo {
  width: min(70vw, 26rem);
}

h1 {
  max-width: 20ch;
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.1rem, 5.4vw, 5rem);
  line-height: 1.02;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.subline {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(0.98rem, 1.7vw, 1.12rem);
  line-height: 1.6;
  color: var(--mute);
}

/* ---------- Calendar grid ---------- */
.calendar {
  width: min(92vw, 62rem);
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: clamp(0.45rem, 1.2vw, 0.8rem);
}

.cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Live cells: thumbnail with a clean caption strip on the bottom edge. */
.cell--live a {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--ink);
}

.cell--live:hover {
  border-color: var(--ink);
}

.cell-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wide / logo thumbnails: show the whole mark, letterboxed. */
.cell-thumb--contain {
  object-fit: contain;
  padding: 14%;
  background: var(--surface);
}

.cell-meta {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem 0.45rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cell-num {
  font-family: var(--display-font);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
}

.cell-title {
  font-family: var(--display-font);
  font-size: 0.82rem;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Locked cells: flat, number top-left, label bottom-left. */
.cell--locked {
  justify-content: space-between;
  padding: 0.55rem 0.6rem;
  background: transparent;
  border-color: var(--line-soft);
}

.cell--locked .cell-num {
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--faint);
}

.cell--locked .cell-title {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

/* The single next day to drop. */
.cell--next {
  border-color: var(--ink);
}

.cell--next .cell-num {
  color: var(--ink);
}

.cell--next .cell-title {
  color: var(--clay);
}

/* ---------- Day page ---------- */
.day {
  width: min(92vw, 50rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.day-nav .back {
  font-family: var(--display-font);
  font-size: 1.05rem;
  color: var(--clay);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.day-nav .back:hover {
  text-decoration: underline;
}

.day-count {
  font-family: var(--display-font);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.day-head {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.day-head .kicker {
  color: var(--mute);
  letter-spacing: 0.14em;
  text-align: left;
}

.day-head h1 {
  margin: 0.3rem 0 0;
  max-width: none;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.day-head .subline {
  margin-top: 0.5rem;
  max-width: 38rem;
}

.piece {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shot {
  margin: 0;
}

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--mute);
}

.sketch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sketch-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sketch-fallback {
  margin: 0;
  font-size: 0.85rem;
}

.sketch-fallback a {
  color: var(--clay);
}

.prose {
  max-width: 38rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink);
}

.prose p {
  margin: 0 0 1.1rem;
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  padding: clamp(1.2rem, 3vw, 1.6rem) 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--display-font);
  font-size: clamp(0.95rem, 1.7vw, 1.1rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

@media (max-width: 680px) {
  .logo,
  .hero--home .logo {
    width: min(88vw, 24rem);
  }

  h1 {
    max-width: 14ch;
  }

  .subline {
    max-width: 26rem;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }

  .cell-title {
    display: none;
  }

  .footer {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}
