:root {
  --ink: #1b241f;
  --muted: #5c6a62;
  --paper: #f3eee4;
  --card: #fffaf2;
  --line: #e2d8c8;
  --pine: #1b3a32;
  --pine-2: #2a5a4c;
  --clay: #c46a3a;
  --gold: #d7a15c;
  --ok: #2d6a4f;
  --shadow: 0 16px 40px rgba(27, 36, 31, 0.08);
  --radius: 28px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 420px at 0% 0%, #efe4cc 0%, transparent 55%),
    radial-gradient(800px 380px at 100% 0%, #dcebe4 0%, transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
}
body.kitchen {
  min-height: 100dvh;
  padding: 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
}
.clock { text-align: right; }
.time {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}
.date { color: var(--muted); font-weight: 600; margin-top: 4px; }

.next-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--pine), var(--pine-2));
  color: #fff;
  text-decoration: none;
  border-radius: 22px;
  padding: 18px 22px;
  min-height: 88px;
  box-shadow: var(--shadow);
}
.next-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.8;
  white-space: nowrap;
}
.next-banner strong {
  flex: 1;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 650;
}
.next-go {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 22px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tile h2 {
  margin: 4px 0 8px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
}
.tile p { margin: 0; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.tile-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pine-2);
}
.tile.pics { background: #fff6ea; }
.tile.schedules { background: #eaf4ef; }
.tile.recipes { background: #f8ece3; }
.tile.life { background: #eef1f6; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 40px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pine);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  font-size: 1.05rem;
}
.page h1 {
  margin: 10px 0 8px;
}
.lead { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); font-weight: 550; }
.big-link {
  display: block;
  margin-top: 14px;
  background: var(--pine);
  color: #fff !important;
  text-decoration: none;
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 1.15rem;
  text-align: center;
}

@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .bar { flex-direction: column; align-items: flex-start; }
  .clock { text-align: left; }
}
@media (pointer: coarse) {
  .tile { min-height: 210px; }
  .next-banner { min-height: 100px; }
}

.tile.pics {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #2a241c;
}
.tile.pics::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,12,0.15), rgba(20,16,12,0.72)),
    var(--pic, #2a241c) center/cover no-repeat;
  z-index: 0;
}
.tile.pics > * { position: relative; z-index: 1; }
.tile.pics .tile-kicker, .tile.pics p { color: rgba(255,255,255,0.86); }

.cal-page { max-width: 1120px; }
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  min-width: 52px;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 12px;
}
.leg { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.leg i { width: 12px; height: 12px; border-radius: 99px; display: inline-block; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
}
.day {
  min-height: 72px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  font: inherit;
  text-align: left;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.day.empty { visibility: hidden; }
.day .dn { font-weight: 800; }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.day.is-today { outline: 2px solid var(--pine-2); }
.day.is-sel { background: #eaf4ef; }
.agenda-title { margin: 22px 0 10px; font-size: 1.2rem; }
.agenda { display: flex; flex-direction: column; gap: 8px; }
.ag-row {
  display: grid;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--pine);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.ag-when { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.ag-meta { font-size: 0.88rem; color: var(--muted); }

.stream-body {
  margin: 0;
  background: #120f0c;
  min-height: 100dvh;
  overflow: hidden;
}
.stream {
  position: fixed;
  inset: 0;
  background: #120f0c;
}
.stream img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
  transform: scale(1.06);
}
.stream img.on { opacity: 1; }
.stream-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 3;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  background: rgba(0,0,0,0.4);
  padding: 10px 14px;
  border-radius: 999px;
}
.stream-cap {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.stream-cap h1 { color: #fff; margin: 0; }
.stream-cap .kicker { color: rgba(255,255,255,0.8); }
.paused .stream-cap::after { content: " paused"; }
