/* Split City's pages: the front page (index.html) and each diagram's page (src/gen.py). */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }   /* iPhone Safari: no enlarging of some lines' text */
/* The tour bus's look, from its hero picture: the charcoal of the garage wall, cream cards like the title's letters,
   brown ink, and the title's stacked orange-and-brown shadows under every card and button; headings in Caprasimo, the
   title's 1970s face. */
:root { --page: #3a3a3c; --paper: #fff6e4; --ink: #2a1a12; --accent: #e8781e; --yellow: #f6b53a; --deep: #6b2a14;
  --line: #ecd8b6; --link: #a8401e; }
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--ink); font: 17px/1.6 Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: radial-gradient(ellipse at 50% 0%, #4a4a4d 0%, var(--page) 60%) var(--page) no-repeat; }
a { color: var(--link); font-weight: 700; }
h1, h2, .ask a.button { font-family: Caprasimo, Rubik, serif; font-weight: 400; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 48px); }

/* the header: a strip of the coach with its title */
.top { padding-top: clamp(16px, 3vw, 32px); padding-bottom: 8px; text-align: center; }
.top img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.top h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* a card: cream, a brown edge, and the title's stacked shadow, orange then brown, pushed down and right */
.card { background: var(--paper); border: 3px solid var(--deep); border-radius: 16px;
  box-shadow: 5px 5px 0 var(--accent), 10px 10px 0 var(--deep); }

.ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 0; }
.ask a.button { display: inline-block; background: var(--accent); color: var(--paper); text-decoration: none;
  font-size: 21px; letter-spacing: 0.02em; padding: 10px 26px; border: 3px solid var(--deep); border-radius: 999px;
  box-shadow: 4px 4px 0 var(--deep); transition: transform 0.12s, box-shadow 0.12s; }
.ask a.button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--deep); }
.ask .address { font-size: 15px; }

/* the front page: every entry on the left; in the middle the hero, what the site is with the search, and the newest
   entries; on a phone, the middle comes first */
.home { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr); grid-template-areas: "all drama";
  gap: clamp(24px, 3vw, 40px); align-items: start; margin-top: clamp(28px, 4vw, 48px); }
.home h2 { color: var(--deep); margin: 0 0 12px; line-height: 1.1; }
.middle { grid-area: drama; }
.middle .top { padding: 0 0 clamp(20px, 2.5vw, 30px); }
.drama { padding: clamp(20px, 3vw, 34px) clamp(20px, 3vw, 36px); }
.drama h2 { font-size: clamp(34px, 4vw, 52px); }
.drama p { font-size: 18px; line-height: 1.55; margin: 0 0 20px; }
.search label { display: block; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--deep); margin: 0 0 6px; }
.search input { width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: #fff; padding: 12px 18px;
  border: 3px solid var(--deep); border-radius: 999px; box-shadow: 3px 3px 0 var(--accent); }
.search input:disabled { background: #fbf3e3; color: #8a7a6a; cursor: not-allowed; }

/* the newest, under the search: three cards in a row, the diagram's picture over its name, years and the opener's
   first sentence */
.newest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: clamp(32px, 4vw, 44px); }
.newest > h2 { grid-column: 1 / -1; font-size: 26px; color: var(--paper); margin: 0; }
a.entry { display: block; padding: 12px 12px 16px; color: var(--ink); font-weight: 400; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s; }
a.entry:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--accent), 7px 7px 0 var(--deep); }
a.entry img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 8px;
  border: 2px solid var(--deep); margin: 0 0 10px; }
a.entry .name { font-family: Caprasimo, Rubik, serif; font-size: 22px; color: var(--deep); line-height: 1.15; }
a.entry .years { font-weight: 500; font-size: 14px; color: var(--link); white-space: nowrap; }
a.entry .blurb { display: block; font-size: 15px; line-height: 1.45; margin-top: 6px; }

/* every entry, by name */
.all { grid-area: all; padding: 20px 22px 14px; }
.all h2 { font-size: 24px; }
.all ul { list-style: none; margin: 0; padding: 0; }
.all li { padding: 7px 0; border-top: 2px solid var(--line); line-height: 1.3; }
.all li a { text-decoration: none; }
.all li a:hover { text-decoration: underline; }
.all .years { display: block; font-size: 13px; font-weight: 500; color: #7a6a5a; }

@media (max-width: 1000px) {
  .newest { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .home { grid-template-columns: 1fr; grid-template-areas: "drama" "all"; }
  .newest { grid-template-columns: 1fr; }
  .drama p { font-size: 16px; }
}

footer { text-align: center; padding: 56px 16px 48px; font-size: 14px; color: #c9c2b6; }
footer p { margin: 4px 0; }
footer a { color: var(--yellow); }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .card { box-shadow: 4px 4px 0 var(--accent), 8px 8px 0 var(--deep); border-radius: 14px; }
}

/* a diagram's own page: the logo small, then the diagram and everything on it as text */
.top.small { padding-bottom: 0; }
.top.small img { width: min(100%, 960px); }
.detail { margin: 12px auto 0; padding: clamp(18px, 3vw, 36px) clamp(18px, 3.5vw, 44px); }
.detail .crumbs { font-size: 14px; margin: 0 0 6px; }
.detail .crumbs a { text-decoration: none; }
.detail h1 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin: 0 0 14px; color: var(--deep); }
.detail h1 .years { white-space: nowrap; }
.detail .lede { font-size: 19px; line-height: 1.5; max-width: 900px; margin: 0 0 20px; }
.detail h2 { font-size: 26px; color: var(--deep); margin: 34px 0 10px; padding-top: 18px;
  border-top: 3px solid var(--line); }
.detail p, .detail ul { max-width: 1000px; }
.detail li { margin: 4px 0; }
figure.diagram { margin: 0; }
figure.diagram > a { display: block; border-radius: 10px; overflow: hidden; outline: 2px solid var(--line); outline-offset: -2px; }
figure.diagram img { display: block; width: 100%; height: auto; }
figure.diagram figcaption { font-size: 15px; margin: 10px 2px 0; }
.scroll { overflow-x: auto; }
table.albums { width: 100%; border-collapse: collapse; font-size: 15px; }
table.albums th { text-align: left; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--deep);
  padding: 8px 12px 8px 0; border-bottom: 3px solid var(--deep); }
table.albums td { padding: 8px 12px 8px 0; border-bottom: 2px solid var(--line); vertical-align: top; }
table.albums td.album { font-weight: 700; min-width: 180px; }
table.albums td.album a { text-decoration: none; }
table.albums td.date, .events .date { white-space: nowrap; color: var(--link); font-weight: 500; }
table.albums .peak { color: var(--link); font-weight: 700; }
table.albums .note { display: block; font-weight: 400; font-size: 13px; }
.events { list-style: none; padding: 0; }
.events .date { display: inline-block; min-width: 110px; }
