/* The look of the original sacredseasons.com (2011-2012): a black page
   under the painted scene (the original main_bg.png), one 960px column,
   translucent black panels, white text in Myriad Pro / Trebuchet, a bold
   white menu band with a red hover, cyan action links, grey meta text,
   the footer band. ONE sheet for every page of the site (2026-11-13: the
   site grew from one page to three, so the look lives here once and the
   painted scene and the logo are files the browser fetches once).
   tools/site_embed.py can fold the two pictures into the pages again.
   The pages themselves are BUILT by tools/site_build.py from
   site/content.json; the look is edited here. */
:root {
  --ink: #fff;
  --meta: #aaa;
  --line: #666;
  --line-soft: #333;
  --panel: rgba(0, 0, 0, .8);
  --panel-soft: rgba(0, 0, 0, .6);
  --cyan: #2ccce4;
  --red: #d40000;
  --gold: #e9c05c;
  --green: #7ac74f;
  /* the painted scene, named once: the wide layout paints it behind the
     whole page, the narrow layout shows it whole as a banner */
  --scene: url(main_bg.png);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: #000 var(--scene) center top no-repeat;
  color: var(--ink);
  font: 15px/1.5 "Myriad Pro", Myriad, "Trebuchet MS", Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
body > .page { flex: 1 0 auto; }
.page { width: 960px; max-width: 100%; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 0; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.brand img { width: 246px; height: 134px; display: block; }
.brand > span { display: block; padding: 14px 28px; background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, 0) 78%); }
.brand { flex: 1 1 auto; min-width: 0; }
.brand b { display: block; font-size: 30px; line-height: 1.05; letter-spacing: .3px; white-space: nowrap; text-shadow: 0 1px 2px #000, 0 0 10px #000, 0 2px 6px #000; }
.brand span span { display: block; color: #ddd; font-size: 13px; margin-top: 5px; text-transform: uppercase; letter-spacing: .12em; text-shadow: 0 1px 2px #000, 0 0 8px #000; }
.brand:hover { text-decoration: none; }
.status { color: #ddd; font-size: 13px; text-align: right; flex: 0 1 auto; max-width: 230px; background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, 0) 78%); padding: 10px 24px; text-shadow: 0 1px 2px #000; }
.status b { color: #bbb; }
.status b.online { color: var(--green); }
.status b.maintenance { color: var(--gold); }
.status b.offline { color: #e05b52; }
/* the menu band: Home, About, Play, Rules, all on the left and every one
   the same (Ben, 2026-11-13; Discord and YouTube are the buttons further
   down the home page and the footer's links) */
nav { margin: -6px 0 40px; background: var(--panel-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
nav a { display: block; padding: 12px 22px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
nav a:hover, nav a:focus { background: var(--red); text-decoration: none; }
nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
/* the scene's own headline ("An amazing new world awaits!") sits to the
   right under the menu; the original kept a 320px play-now area there
   before its content panel, so the home page's panel starts below it.
   The inner pages keep a shorter gap. */
.hero { height: 300px; }
.hero.short { height: 110px; }
/* the content panel: a solid black backing whose BORDER feathers out
   into the scene (a soft dark halo instead of a hard line) */
main { background: var(--panel); padding: 30px 36px 36px; margin-bottom: 40px; border-radius: 4px; box-shadow: 0 0 22px 14px rgba(0, 0, 0, .78); }
h1 { font-size: 30px; margin: 0 0 6px; line-height: 1.15; }
.submitted { color: var(--meta); font-size: 13px; margin-bottom: 18px; }
p { margin: 0 0 14px; }
/* the image frame under the news: a picture named playtest2-promo.png
   (or .jpg) beside the page appears here by itself */
.frame { margin: 22px 0 6px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04); padding: 8px; }
.frame img { display: block; width: 100%; height: auto; }
/* shown only while previewing on this computer and no picture is there yet */
.frame .ph { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 16 / 9; border: 1px dashed var(--line); color: var(--meta); font-size: 14px; padding: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 8px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 17px; color: #fff; border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.btn.discord { background: #5865f2; }
.btn.youtube { background: var(--red); }
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
h2 { font-size: 20px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
a { color: var(--cyan); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
/* the inner pages (Rules, About): sections under their own headings; a
   link from the game lands on a heading, so each keeps clear of the top */
.lead { color: #ddd; font-size: 16px; margin-bottom: 20px; }
.doc section { margin-top: 30px; scroll-margin-top: 16px; }
.doc section:target h2, .doc .alias:target + h2 { border-bottom-color: var(--red); color: var(--gold); }
/* a second id a section answers to (the game's mail links land on Chat) */
.doc .alias { display: block; height: 0; scroll-margin-top: 16px; }
.doc ul { margin: 0 0 14px; padding-left: 22px; }
.doc li { margin-bottom: 7px; }
.doc li::marker { color: var(--line); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 6px; padding: 12px 16px; list-style: none; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .04); }
.toc li { margin: 0; }
.draft { border: 1px dashed var(--gold); color: var(--gold); padding: 10px 14px; margin: 0 0 20px; font-size: 14px; }
.todo { color: var(--gold); }
.back { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
footer { flex: none; background: rgba(0, 0, 0, .8); border-top: 1px solid var(--line); color: #999; font: 12px/1.6 Verdana, "Myriad Pro", Myriad, "Trebuchet MS", Arial, sans-serif; padding: 18px 0 40px; }
footer .page { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
footer .left { border-right: 1px solid var(--line); padding-right: 20px; }
footer .ecg { font-weight: 700; color: #fff; font-size: 14px; }

/* NARROW SCREENS: phones and tablets (Ben, 2026-11-13: "the banner image,
   when you look on mobile right now, looks pretty terrible"). The scene is
   1214px wide with its headline painted into its right-hand side, so
   behind a narrow page it showed as a cropped middle strip with the
   headline cut in half and a hard bottom edge. Below 1100px the page
   stacks instead: a compact header on black (logo beside the title, the
   status under it), the menu as four equal buttons across the width, then
   the WHOLE scene as a banner the width of the screen, fading into the
   page, with the panel rising over its foot. The inner pages show the
   same whole banner (Ben, 2026-11-13: on About and Rules "it kind of gets
   cut off halfway through"; they had a thin strip of the scene's top). */
@media (max-width: 1099px) {
  body { background-image: none; }
  .page { width: auto; padding: 0; }
  header { flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 12px; }
  .brand { gap: 14px; flex: 1 1 auto; }
  .brand img { width: clamp(112px, 22vw, 190px); height: auto; aspect-ratio: 246 / 134; }
  .brand > span { padding: 0; background: none; }
  .brand b { font-size: clamp(19px, 4.4vw, 28px); white-space: normal; text-shadow: none; }
  .brand span span { font-size: clamp(9.5px, 1.9vw, 12px); letter-spacing: .1em; margin-top: 4px; text-shadow: none; }
  .status { flex: 0 0 auto; max-width: none; padding: 0; background: none; text-shadow: none; font-size: 12px; margin-left: auto; }
  nav { margin: 0; background: #0b0b0b; }
  nav ul { flex-wrap: nowrap; }
  nav li { flex: 1 1 0; }
  nav a { text-align: center; padding: 12px 4px; font-size: 15px; }
  .hero, .hero.short { position: relative; height: auto; aspect-ratio: 1214 / 683; background: #000 var(--scene) center top / 100% auto no-repeat; }
  .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(rgba(0, 0, 0, 0), #000); }
  main { position: relative; margin: -34px 12px 30px; padding: 22px 18px 26px; background: rgba(0, 0, 0, .88); box-shadow: 0 0 14px 6px rgba(0, 0, 0, .8); }
  h1 { font-size: 26px; }
  .cols { grid-template-columns: 1fr; gap: 18px; }
  .actions .btn { flex: 1 1 220px; justify-content: center; }
  footer { padding: 18px 16px 34px; }
  footer .left { border-right: 0; padding-right: 0; }
}
/* tablets keep the two columns under the post */
@media (min-width: 700px) and (max-width: 1099px) {
  main { margin: -60px 24px 36px; padding: 28px 30px 32px; }
  .cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  nav a { font-size: 16px; }
}
/* a narrow phone: the status takes its own line under the title */
@media (max-width: 480px) {
  .status { flex: 1 0 100%; margin-left: 0; }
}
