/* ============================================
   Alphabetish - static page styles
   Amber Terminal design system
   ============================================ */

:root {
  --surface: #131313;
  --surface-container: #201f1f;
  --surface-container-high: #2a2a2a;
  --on-surface: #e5e2e1;
  --on-surface-variant: #dac2ad;
  --amber: #ff9d00;
  --amber-soft: #ffc485;
  --outline: #544433;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* --- Top bar --- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--outline);
  margin-bottom: 40px;
}

.topbar a.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--on-surface);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar a.brand em { font-style: italic; }

.topbar a.play {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: var(--amber);
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

.topbar a.play:hover { box-shadow: 0 0 8px rgba(255, 157, 0, 0.6); }

/* --- Typography --- */

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--outline);
  margin-bottom: 8px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 32px 0;
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin: 48px 0 12px 0;
  color: var(--amber-soft);
}

h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  margin: 32px 0 8px 0;
}

p { margin: 0 0 16px 0; }

ul, ol { margin: 0 0 16px 0; padding-left: 22px; }
li { margin-bottom: 8px; }

a { color: var(--amber); }
a:hover { color: var(--amber-soft); }

strong { color: #fff; font-weight: 700; }

/* --- Tiles (for worked examples) --- */

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px 0;
}

.tile {
  width: 34px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-container-high);
  border: 1px solid var(--outline);
  border-radius: 4px;
  color: var(--amber);
  font-weight: 700;
  font-size: 18px;
}

/* --- Callout box --- */

.note {
  background: var(--surface-container);
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  padding: 16px 18px;
  margin: 0 0 24px 0;
}

.note p:last-child { margin-bottom: 0; }

/* --- Act lists (decade pages) --- */

.act-list {
  columns: 2;
  column-gap: 32px;
  padding-left: 20px;
  margin: 0 0 24px 0;
}

.act-list li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.act-list .genre {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--outline);
  margin-left: 6px;
}

/* --- Decade index (hub page) --- */

.decade-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.decade-list li {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--surface-container);
  border-left: 3px solid var(--outline);
  border-radius: 4px;
  transition: border-color 0.15s;
}

.decade-list li:hover {
  border-left-color: var(--amber);
}

.decade-list a {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 4px;
}

.decade-list .meta {
  display: block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

@media (max-width: 600px) {
  .act-list { columns: 1; }
}

/* --- Footer --- */

footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  font-size: 12px;
  color: var(--on-surface-variant);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

/* --- Mobile --- */

@media (max-width: 600px) {
  h1 { font-size: 30px; }
  h2 { font-size: 20px; }
  .tile { width: 28px; height: 38px; font-size: 15px; }
}