/* The static pages and the homepage's section under the game (see site/build-site.mjs). Everything is scoped to
   .site so none of it can reach the game. System fonts only: nothing to download, nothing that shifts layout. */

.site {
  --site-bg: #0c0b0a;
  --site-panel: #17140f;
  --site-line: rgba(232, 226, 214, 0.12);
  --site-text: #e8e2d6;
  --site-muted: #b3aa9b;
  --site-accent: #e3a434;
  --site-link: #f1c46a;
  background: var(--site-bg);
  color: var(--site-text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
body.site {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}
.site .wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}
.site a {
  color: var(--site-link);
  text-underline-offset: 2px;
}
.site a:hover {
  color: #ffd98a;
}
.site h1,
.site h2,
.site h3,
.site .brand {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  line-height: 1.25;
  color: #f3ead9;
}
.site h1 {
  font-size: clamp(28px, 6vw, 40px);
  margin: 8px 0 18px;
  color: var(--site-accent);
}
.site h2 {
  font-size: clamp(21px, 4.4vw, 26px);
  margin: 36px 0 10px;
}
.site h3 {
  font-size: 19px;
  margin: 22px 0 6px;
}
.site p,
.site ul,
.site ol,
.site dl {
  margin: 0 0 14px;
}
.site ul,
.site ol {
  padding-left: 22px;
}
.site li {
  margin: 6px 0;
}
.site .lead {
  font-size: 19px;
  color: #f0e8da;
}

/* Header and footer */
.site-header {
  border-bottom: 1px solid var(--site-line);
  background: #100e0c;
}
.site-header .wrap {
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site .brand {
  font-size: 22px;
  letter-spacing: 4px;
  color: var(--site-accent);
  text-decoration: none;
}
.site-nav ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.site-nav {
  flex: 1 1 auto;
  order: 3;
  width: 100%;
  font-size: 15px;
}
.site-nav a,
.site-footer a {
  color: var(--site-muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-footer a:hover,
.site-nav a[aria-current="page"] {
  color: var(--site-text);
  text-decoration: underline;
}
.site-header .play-button {
  margin-left: auto;
}
@media (min-width: 760px) {
  .site-nav {
    order: 0;
    width: auto;
  }
}
.site-main {
  flex: 1 0 auto;
  padding-top: 18px;
  padding-bottom: 40px;
}
.site-footer {
  border-top: 1px solid var(--site-line);
  padding: 22px 0 28px;
  font-size: 15px;
  color: var(--site-muted);
}
.site-footer p {
  margin: 14px 0 0;
}

/* Breadcrumb */
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: var(--site-muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 4px;
  color: rgba(232, 226, 214, 0.35);
}
.breadcrumb a {
  color: var(--site-muted);
}

/* Play buttons */
.site .play-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--site-accent);
  color: #1a1206;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
}
.site .play-button:hover {
  background: #f0b850;
  color: #1a1206;
}
.site-header .play-button {
  padding: 7px 14px;
  font-size: 15px;
}
.site .play-cta {
  margin: 30px 0 10px;
}
.site .see-also {
  color: var(--site-muted);
}

/* FAQ, lists of posts, the practice plan */
.site .faq h3 {
  color: #f3ead9;
}
.site .post-list {
  list-style: none;
  padding: 0;
}
.site .post-list li {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: var(--site-panel);
  border: 1px solid var(--site-line);
  border-radius: 10px;
}
.site .post-list a {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 19px;
}
.site .post-list span {
  display: block;
  color: var(--site-muted);
  margin-top: 4px;
}
.site .plan dt {
  font-weight: 700;
  color: var(--site-accent);
  margin-top: 10px;
}
.site .plan dd {
  margin: 2px 0 0;
}
.site .updated {
  color: var(--site-muted);
  font-size: 15px;
}

/* Reserved for a future ad (AdSense). Hidden until the ad code goes in; the min-height then holds the space so the
   page doesn't jump when the ad loads. Outside the play area only. */
.site .ad-space {
  min-height: 100px;
  margin: 24px auto;
  max-width: 728px;
}
.site .ad-space[hidden] {
  display: none;
}

/* The homepage's section under the game */
.site-home {
  border-top: 1px solid var(--site-line);
}
.site-home .back-to-game {
  display: inline-block;
  margin: 18px 0 0;
  font-size: 15px;
}
