/* Ten-Foot Shelf */
:root {
  --putty: #ece2d0;
  --paper: #f7f0e2;
  --ink: #2a2238;
  --ink-soft: #564a63;
  --tomato: #c8462a;
  --teal: #1d6f6c;
  --amber: #e9a34a;
  --bezel: #211b2c;
  --bezel-tile: #322941;
  --cream: #f3e7cf;
  --rule: #cdbfa3;
  --say: "Seravek", "Gill Sans Nova", "Ubuntu", "Calibri", "Segoe UI", "DejaVu Sans", sans-serif;
  --mark: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", "DejaVu Sans", sans-serif;
  --dial: ui-monospace, "SF Mono", "Cascadia Mono", "Menlo", "DejaVu Sans Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lounge {
  margin: 0;
  background: var(--putty);
  color: var(--ink);
  font: 1.0625rem/1.62 var(--say);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--tomato); }

/* the TV frame at the top */
.bezel {
  background: var(--bezel);
  color: var(--cream);
  padding: 1.1rem clamp(1rem, 4vw, 3rem) 1.4rem;
  border-bottom: 6px solid var(--tomato);
}
.set-name { margin: 0 0 1rem; font-family: var(--mark); font-size: 1.05rem; letter-spacing: .02em; }
.set-name a { color: var(--cream); font-weight: 700; font-size: 1.6rem; text-decoration: none; margin-right: .6rem; }
.set-tag { color: #b9aec8; font-family: var(--dial); font-size: .82rem; text-transform: lowercase; }
.channels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.channels a {
  display: block;
  background: var(--bezel-tile);
  color: var(--cream);
  text-decoration: none;
  border-radius: 12px;
  padding: .55rem .7rem .6rem;
  font-family: var(--mark);
  font-size: 1.02rem;
  line-height: 1.2;
  border: 3px solid transparent;
}
.channels a:hover { border-color: #6d6080; color: #fff; }
.channels a[aria-current="page"] { background: var(--tomato); border-color: var(--cream); box-shadow: 0 0 0 4px rgba(243, 231, 207, .18); }
.ch-num { display: block; font-family: var(--dial); font-size: .74rem; color: var(--amber); }
.channels a[aria-current="page"] .ch-num { color: var(--cream); }

/* room = article + side dial */
.room {
  max-width: 76rem;
  margin: 2.2rem auto 0;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: 2.6rem;
  align-items: start;
}
.panel {
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(1.2rem, 4vw, 3rem);
  box-shadow: 0 1px 0 #d8cbb2, 0 18px 40px -28px rgba(42, 34, 56, .55);
}
.panel > * { max-width: 42rem; }
.lowerthird {
  font-family: var(--dial);
  color: var(--teal);
  font-size: 1rem;
  margin: 0 0 .4rem;
  letter-spacing: .03em;
}
.panel h1 { font-family: var(--mark); font-size: clamp(2rem, 5vw, 3rem); line-height: 1.04; margin: 0 0 1.2rem; letter-spacing: -.01em; }
.panel h2 { font-family: var(--mark); font-size: 1.55rem; line-height: 1.15; margin: 2.2rem 0 .6rem; color: var(--ink); }
.panel h2::before { content: ""; display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; background: var(--amber); margin-right: .55rem; vertical-align: .05em; }
.panel p, .panel li { font-size: 1.0625rem; }
.panel ul.presses { padding-left: 1.1rem; }
.panel ul.presses li { margin-bottom: .45rem; }
.panel ul.presses b { font-family: var(--mark); }

.still { margin: 1.8rem 0; }
.still img { border-radius: 14px; border: 6px solid var(--bezel); }
.still figcaption { font-size: .95rem; color: var(--ink-soft); margin-top: .55rem; }
.still.flat img { border: 0; border-radius: 10px; }

.row-of-tiles { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: .9rem; }
.tile { background: #fffaf0; border-radius: 14px; padding: .9rem 1rem 1rem; border-top: 7px solid var(--teal); }
.tile:nth-child(2) { border-top-color: var(--tomato); }
.tile:nth-child(3) { border-top-color: var(--amber); }
.tile:nth-child(4) { border-top-color: #7c5c99; }
.tile a { font-family: var(--mark); font-size: 1.2rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.tile-cap { margin: .3rem 0 0; }

.guide { list-style: none; padding: 0; border-left: 3px solid var(--rule); }
.guide-slot { padding: .2rem 0 .8rem 1rem; position: relative; }
.guide-slot::before { content: ""; position: absolute; left: -9px; top: .55rem; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--tomato); }
.slot-time { display: block; font-family: var(--dial); font-size: .9rem; color: var(--tomato); }

.dial { position: sticky; top: 1.2rem; font-size: 1rem; }
.dial h2 { font-family: var(--dial); font-size: .9rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); margin: .4rem 0 .6rem; }
.dial ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.dial li { margin-bottom: .35rem; }
.remark { background: var(--bezel); color: var(--cream); border-radius: 14px; padding: .9rem 1rem; font-size: 1rem; margin: 0; }
.remark b { color: var(--amber); }

.fineprint {
  max-width: 76rem;
  margin: 3rem auto 0;
  padding: 1.4rem clamp(1rem, 4vw, 3rem) 2.4rem;
  border-top: 2px dashed var(--rule);
  font-size: .92rem;
  color: var(--ink-soft);
}
.fineprint p { margin: 0 0 .4rem; }

/* standby page */
.standby { max-width: 46rem; margin: 2.5rem auto; padding: 0 1rem; text-align: center; }
.standby h1 { font-family: var(--mark); font-size: clamp(2rem, 6vw, 3rem); margin: 1.2rem 0 .6rem; }
.standby p { font-size: 1.0625rem; }
.standby img { margin: 0 auto; }
.standby .other-channels { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; }

@media (max-width: 60em) {
  .room { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .dial { position: static; }
  .channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 26em) {
  .set-tag { display: block; margin-top: .2rem; }
  .channels a { font-size: .95rem; padding: .45rem .5rem; }
  .panel { border-radius: 16px; }
}
