/*
 * pages.css: the plain pages Google reads (tatertunes.com's front page, the
 * chord progression pages, the famous songs page). Made by build_pages.js.
 * Baked Potato Shrine style: Comic Sans, teal tiles, yellow text, white boxes
 * with hard black shadows. Phones first: one column, wide tables scroll inside
 * their own box.
 */
:root { --comic: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html {
  background: #006699 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23006699" width="100" height="100"/><circle fill="%23009999" cx="50" cy="50" r="30"/></svg>');
}
body { margin: 0 auto; max-width: 1000px; padding: 16px 16px 40px; font-family: var(--comic); color: #ffff00; overflow-x: hidden; line-height: 1.45; }
a { color: #0055cc; }
a:focus-visible { outline: 3px dashed #ff00ff; outline-offset: 2px; }

/* --- header and menu ------------------------------------------------- */
.shrine-header {
  background: linear-gradient(to bottom, #ff6600, #ff0000);
  border: 5px ridge #ffd700;
  box-shadow: 5px 5px 0 #000;
  padding: 14px 12px;
  text-align: center;
}
.site-name { margin: 0; font-weight: 700; }
.site-name a { color: #ffff99; text-decoration: none; text-shadow: 1px 1px #000; }
h1 {
  margin: 6px 0;
  color: #ffff00;
  font-size: clamp(30px, 7vw, 50px);
  line-height: 1.1;
  text-shadow: 3px 3px #ff0000, 5px 5px #000;
}
.subtitle { margin: 0; color: #00ffff; font-weight: 700; font-size: clamp(14px, 3.4vw, 20px); text-shadow: 2px 2px #000; }
.menu { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0 18px; }
.menu a {
  padding: 6px 10px;
  background: #000; color: #ffff66;
  border: 2px outset #444;
  text-decoration: none; font-weight: 700; font-size: 14px;
}
.tot-ico { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }   /* small tater tot picture */

/* --- content boxes -------------------------------------------------------- */
main { display: grid; gap: 18px; }
.panel { background: #fff; color: #000; border: 3px solid #000; box-shadow: 5px 5px 0 #000; padding: 16px; min-width: 0; }
h2 { margin: 0 0 10px; color: #ff0000; font-size: 22px; text-decoration: underline; }
.modes h2 { color: #fff; text-decoration: none; text-shadow: 2px 2px #000; text-align: center; font-size: clamp(20px, 5vw, 28px); }
h3 { margin: 14px 0 4px; font-size: 17px; }
.lead { margin: 0; font-size: 18px; }
.note { color: #444; font-size: 14px; margin: 10px 0 0; }
.note.center { text-align: center; color: #fff; text-shadow: 1px 1px #000; }
.crumbs { margin: 0; color: #fff; text-shadow: 1px 1px #000; font-size: 14px; }
.crumbs a { color: #ffff99; }

/* --- the three modes ------------------------------------------------------- */
.mode-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 16px 14px;
  border: 3px outset #ddd; box-shadow: 5px 5px 0 #000;
  color: #000; text-decoration: none;
}
.mode-card:active { border-style: inset; box-shadow: 1px 1px 0 #000; transform: translate(4px, 4px); }
.mode-card .icon { font-size: 44px; line-height: 1; }
.mode-card .icon img { width: 48px; height: 48px; }
.mode-card b { font-size: 24px; }
.mode-card ul { text-align: left; margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.mode-card.emo { background: linear-gradient(to bottom, #ffff66, #ff9900); border-color: #ffcc00; }
.mode-card.math { background: linear-gradient(to bottom, #2a2b2f, #15161a); border-color: #38bdf8; color: #eceef2; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mode-card.math b { color: #38bdf8; }
.mode-card.tot { background: linear-gradient(to bottom, #ffe6a8, #ffb347); border-color: #ffcc66; }
.mode-card.tot b { color: #7a3d00; }
.synth-card { background: #fff8e6; }

/* --- progressions ---------------------------------------------------------- */
.prog-list { margin: 12px 0; padding-left: 20px; }
.prog-list li { margin: 10px 0; }
.prog-list.compact li { margin: 6px 0; }
.meta { color: #333; font-size: 14px; }
.chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.chip { display: inline-block; padding: 1px 8px; background: #ffffcc; border: 2px solid #000; font-weight: 700; color: #000; }
.dash { color: #666; }
.big-chips { margin: 12px 0 0; font-size: 20px; font-weight: 700; }
.big-chips .chip { font-size: 22px; padding: 2px 12px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 2px solid #000; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid #999; padding: 6px 8px; text-align: center; white-space: nowrap; }
thead th { background: #000; color: #ffff00; }
tbody th { background: #ffffcc; text-align: left; }
tbody tr:nth-child(even) td { background: #f4faff; }
.songs-table td, .songs-table th { text-align: left; }
.songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.songs li { padding: 10px; border: 2px solid #000; background: #fffdf2; }
.src { display: block; font-size: 12px; color: #555; margin-top: 4px; }
.cta { background: #fff8e6; }
.faq p { margin: 0 0 6px; }

footer { text-align: center; color: #fff; text-shadow: 1px 1px #000; margin-top: 30px; font-size: 14px; }
footer a { color: #ffff66; }
