/* Tape Deck's pages on andybateman.github.io. Dark only, as the app is:
   the page's near-black and the tape's yellow. */
:root {
  --bg: #0a0a0a;
  --bg2: #151515;
  --line: #2a2a2a;
  --text: #ececec;
  --dim: #a8a8a8;
  --yellow: #fbca12;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
a { color: var(--yellow); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
nav { border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 56px; flex-wrap: wrap; }
nav .name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
nav .name img { width: 28px; height: 28px; border-radius: 7px; }
nav a:not(.name) { color: var(--dim); text-decoration: none; }
nav a[aria-current="page"], nav a:not(.name):hover { color: var(--text); }

header.hero { text-align: center; padding: 64px 0 32px; }
header.hero .icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 22px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--dim); max-width: 640px; margin: 0 auto 26px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--yellow); color: #000;
}
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.platforms { color: var(--dim); font-size: 15px; margin-top: 16px; }
.shot { margin: 36px 0 8px; }
.caption { color: var(--dim); font-size: 14px; text-align: center; margin: 8px 0 0; }

section { padding: 56px 0 8px; border-top: 1px solid var(--line); margin-top: 48px; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
h2 + p { color: var(--dim); font-size: 19px; margin-top: 0; max-width: 720px; }
h3 { font-size: 19px; margin: 0 0 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-top: 28px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 28px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }
ul.ticks { padding-left: 0; list-style: none; margin: 0; }
ul.ticks li { padding-left: 22px; position: relative; margin: 8px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }

/* The help */
.help h2 { margin-top: 0; }
.help section { padding-top: 40px; margin-top: 36px; }
dl { margin: 18px 0 0; }
dt { font-weight: 700; margin-top: 18px; }
dd { margin: 4px 0 0; color: var(--dim); }
kbd {
  font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: var(--bg2);
}
table.keys { border-collapse: collapse; margin-top: 16px; width: 100%; max-width: 620px; }
table.keys td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
table.keys td:first-child { white-space: nowrap; width: 1%; }
details { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--dim); margin: 10px 0 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; }

footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 48px; color: var(--dim); font-size: 15px; }

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 18px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  header.hero { padding-top: 40px; }
  section { margin-top: 32px; padding-top: 40px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
