/* Splitsville's pages: the list (splitsville.html) and each diagram's page (splitsville/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, .bar a, .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 strangequery links, as every page of ours has them, here as cream pills with the title's shadow */
.bar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.bar a { display: inline-block; background: var(--paper); color: var(--deep); text-decoration: none;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 16px; border: 2px solid var(--deep);
  border-radius: 999px; box-shadow: 3px 3px 0 var(--accent); transition: transform 0.12s, box-shadow 0.12s; }
.bar a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
@media (max-width: 700px) { .bar { justify-content: center; gap: 8px; } .bar a { font-size: 11px; padding: 6px 12px; } }

/* the hero: the coach close up, with its title */
.top { padding: clamp(16px, 3vw, 32px) 0 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); }

.intro { max-width: 820px; margin: 8px auto 0; padding: clamp(20px, 3vw, 34px) clamp(20px, 3.5vw, 40px); }
.intro p { margin: 0 0 14px; }
.intro .lede { font-size: 21px; line-height: 1.45; font-weight: 500; }
.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 sample on the front page: one simple diagram, to show what the diagrams are */
.sample { margin: clamp(36px, 4vw, 52px) auto 0; padding: clamp(14px, 2vw, 24px); }
.sample h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--deep); margin: 2px 4px 12px; }
.sample h2 a { text-decoration: none; }
.sample a.view { display: block; border-radius: 10px; overflow: hidden; outline: 2px solid var(--line); outline-offset: -2px; }
.sample img { display: block; width: 100%; height: auto; }
.sample .caption { font-size: 15px; margin: 12px 4px 2px; max-width: 900px; }

/* the list: one row a diagram, its picture opening the full diagram in a new tab */
.list { margin: clamp(40px, 5vw, 56px) auto 0; max-width: 1000px; padding: 8px clamp(10px, 2vw, 20px); }
.list table { width: 100%; border-collapse: collapse; }
.list th { text-align: left; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--deep);
  padding: 12px 12px 10px; border-bottom: 3px solid var(--deep); }
.list td { padding: 10px 12px; border-bottom: 2px solid var(--line); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list td.icon { width: 144px; }
.list td.icon img { display: block; width: 120px; height: 75px; border-radius: 8px; border: 2px solid var(--deep);
  transition: transform 0.12s; }
.list td.icon a:hover img { transform: scale(1.06) rotate(-1deg); }
.list td.name { font-size: 18px; line-height: 1.3; }
.list td.name a { text-decoration: none; }
.list td.name a:hover { text-decoration: underline; }
.list td.years { white-space: nowrap; font-weight: 500; }
.list td.chart { font-size: 14px; }

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; }
  .intro .lede { font-size: 18px; }
  .card { box-shadow: 4px 4px 0 var(--accent), 8px 8px 0 var(--deep); border-radius: 14px; }
  .list td.icon { width: 92px; padding-right: 4px; }
  .list td.icon img { width: 80px; height: 50px; }
  .list td.name { font-size: 16px; }
  .list .chart { display: none; }
  .list td.years { font-size: 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%, 620px); }
.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; }
