/* Colors and fonts from OpenMTM2 (styles/base.css). */
:root {
  --bg: #0d1013;
  --panel: #171c21;
  --panel-edge: #2a323a;
  --text: #e8e4d8;
  --muted: #9aa3ab;
  --accent: #f2a516;
  --accent-text: #1a1206;
  color-scheme: dark;
}

/* League Spartan (SIL OFL 1.1, fonts/OFL.txt), for headings only. */
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/league-spartan-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "League Spartan"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/league-spartan-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); }
a:hover { color: #ffc24d; }
img { max-width: 100%; height: auto; display: block; }
code { font-size: 0.95em; color: var(--muted); }
.muted { color: var(--muted); }

h1, h2, h3 {
  font-family: "League Spartan", "Arial Black", Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
h2 {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 1.6rem;
  margin: 2.2em 0 0.6em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--panel-edge);
}

/* Header and menu bar */
.top { background: var(--panel); border-bottom: 1px solid var(--panel-edge); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 16px; }
.top h1 { margin: 0; color: var(--accent); font-size: clamp(2rem, 6vw, 2.8rem); }
.top .tag { margin: 2px 0 0; color: var(--muted); }

.bar { background: #11161a; border-bottom: 1px solid var(--panel-edge); }
.bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; font-size: 0.95rem; }
.bar a { color: var(--text); text-decoration: none; }
.bar a:hover { color: var(--accent); text-decoration: underline; }

/* Hero and play button */
.hero { margin: 24px 0 0; }
.hero img { border: 1px solid var(--panel-edge); }

.play { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0 0; }
.button {
  display: inline-block;
  padding: 0.6em 1.4em;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: bold;
  text-decoration: none;
}
.button:hover { background: #ffb933; color: var(--accent-text); }

.features { padding-left: 1.2em; }
.features li { margin: 0.35em 0; }

/* Screenshots */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { border: 1px solid var(--panel-edge); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 4px; }

/* Other projects */
.projects { width: 100%; border-collapse: collapse; }
.projects td { vertical-align: top; padding: 14px 0; border-top: 1px solid var(--panel-edge); }
.projects tr:first-child td { border-top: 0; }
.projects .thumb { width: 200px; padding-right: 18px; }
.projects .thumb img, .noimg {
  width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--panel-edge);
}
.noimg {
  display: grid; place-items: center;
  background: var(--panel); color: var(--muted);
  font: 600 1rem "League Spartan", Arial, sans-serif; text-decoration: none;
}
.projects h3 { margin: 0 0 4px; font-size: 1.25rem; }
.projects h3 a { color: var(--text); text-decoration: none; }
.projects h3 a:hover { color: var(--accent); }
.projects p { margin: 0 0 6px; }
.projects .links { font-size: 0.9rem; }

.list-head { margin: 1.8em 0 0.2em; font-size: 1.25rem; }
.small { font-size: 0.9rem; margin: 0 0 6px; }
.plain { padding-left: 1.2em; margin: 0; }
.plain li { margin: 0.35em 0; }

footer { margin-top: 48px; background: var(--panel); border-top: 1px solid var(--panel-edge); color: var(--muted); font-size: 0.9rem; }
footer .wrap { padding-top: 12px; padding-bottom: 16px; }

@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .projects .thumb { width: 120px; padding-right: 12px; }
  .projects .thumb img, .noimg { width: 120px; }
}
