/* pvktlc.org — one stylesheet for every page.
   Phone first: everything below works on a narrow screen;
   the @media block at the end only adds room on wide screens. */

:root {
  --ink: #2b2620;          /* text */
  --soft: #6b6157;         /* secondary text */
  --paper: #faf6ef;        /* warm off-white background */
  --card: #ffffff;         /* rows */
  --line: #e4dccf;         /* borders */
  --accent: #8a4b2a;       /* links and headings */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

/* The reading column */
header, main, footer {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Site name + nav, the same on every page */
header { padding-top: 1rem; }
.site { font-weight: 700; color: var(--ink); text-decoration: none; }
nav ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
nav a { color: var(--accent); }
nav a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; color: var(--accent); }
a { color: var(--accent); }
.note { color: var(--soft); font-size: 1rem; }

/* Big tap rows: the whole row is the link */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { margin: 0 0 0.5rem; }
.rows a, .rows .row {
  display: block;
  min-height: 4rem;            /* about 64px: an easy thumb target */
  padding: 0.6rem 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  color: var(--ink);
  text-decoration: none;
}
.rows a:hover, .rows a:focus { border-color: var(--accent); }
.rows strong { display: block; }
.rows span { display: block; color: var(--soft); font-size: 0.95rem; }
.rows .time { display: inline; font-weight: 700; color: var(--accent); margin-right: 0.4rem; }

/* Folded sections */
details { margin: 0.5rem 0 1rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 0.4rem 0; }
details .rows { margin-top: 0.5rem; }

blockquote {
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--line);
  font-style: italic;
}

.memory { margin-top: 2rem; color: var(--soft); }

/* Quick finder cards: name, usual days and times, seven day buttons */
.cards { list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.6rem;
}
.card .name { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.card .meta { display: block; color: var(--soft); font-size: 0.95rem; }
.card .meta a { color: var(--accent); }
.days { display: flex; gap: 4px; margin: 0.5rem 0; max-width: 22rem; }
.d {
  flex: 1;
  height: 2.6rem;                    /* big enough for a thumb */
  display: grid;
  place-items: center;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  background: var(--paper);
  color: var(--soft);
}
a.d { font-weight: 700; }
a.d:hover, a.d:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.d.l1 { background: #f1e1d6; color: var(--ink); }
.d.l2 { background: #d9a283; color: var(--ink); }
.d.l3 { background: var(--accent); color: #fff; }

/* Morning Crew: one card, a row of day buttons per host */
.host { margin-top: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--line); }
.host > a { font-weight: 700; color: var(--ink); }
.host .meta { display: inline; }
.host .meta + .meta::before { content: " · "; }

/* Simple bar list: each row is year · bar · number (no images, no scripts) */
.bars { list-style: none; margin: 0.5rem 0 1rem; padding: 0; }
.bars li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2rem;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.bars .bar {
  display: block;
  height: 0.9rem;
  min-width: 2px;
  justify-self: start;
  background: var(--accent);
  border-radius: 0 4px 4px 0;   /* rounded at the data end, square at the baseline */
}
.bars .yr { color: var(--soft); }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.95rem;
}

/* Wider screens: a little more breathing room, nothing else changes */
@media (min-width: 48rem) {
  h1 { font-size: 2.25rem; }
  header { padding-top: 2rem; }
}
