/* The Dasota Universe site (Tools/Site/site.py). The game's own palette (art_test/make_art.py): steel navy, amber
   lights, cyan tech; the pixel font is the game's dialogue font, drawn as shapes. No fonts or scripts from outside. */
:root {
  --space: #090b16; --hull: #141a2b; --panel: #1b2234; --panel2: #242e46; --line: #303e5c; --line2: #42547a;
  --text: #ecf0f5; --muted: #9ca6bc; --amber: #e8a040; --amber2: #ffde8c; --cyan: #46c8dc; --cyan2: #baf6fa;
  --red: #de4852; --green: #7ac05c; --dania: #c04cc8;
  --wrap: 1120px; --gap: clamp(16px, 3vw, 28px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--space); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
img.pixel, .thumb img, .shotfig img.pixel { image-rendering: pixelated; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--cyan2); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber2); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #1a1206; padding: 8px 14px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* the pixel font */
svg.px { height: calc(9px * var(--s, 2)); width: auto; max-width: 100%; display: block; }
.pxh { margin: 0 0 18px; color: var(--amber2); --s: 4; }
h2.pxh { --s: 3; margin-top: 0; color: var(--text); }
@media (max-width: 640px) { .pxh { --s: 3; } h2.pxh { --s: 2; } }

/* the top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(9, 11, 22, 0.94); border-bottom: 2px solid var(--line); backdrop-filter: blur(6px); }
.bar { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gap); display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.brand { color: var(--amber); display: block; padding: 4px 0; }
.brand:hover { color: var(--amber2); }
.brandmark { --s: 2; }
.brandmark.small { --s: 2; color: var(--amber); }
.top nav { display: flex; gap: 4px; flex: 1 1 auto; flex-wrap: wrap; }
.top nav a {
  color: var(--muted); text-decoration: none; text-transform: uppercase; letter-spacing: 0.09em; font-size: 13px; font-weight: 600;
  padding: 8px 10px; border-bottom: 2px solid transparent;
}
.top nav a:hover { color: var(--text); }
.top nav a[aria-current] { color: var(--amber2); border-bottom-color: var(--amber); }
.top nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .top .btn { display: none; }                 /* the page's own main button is a thumb away */
  .top nav { flex-basis: 100%; gap: 0; }
  .top nav a { padding: 6px 9px 6px 0; margin-right: 6px; letter-spacing: 0.06em; }
  .bar { padding-top: 8px; padding-bottom: 4px; gap: 4px 16px; }
}

/* buttons */
.btn {
  display: inline-block; padding: 12px 20px; border: 2px solid var(--line2); background: var(--panel); color: var(--text);
  text-decoration: none; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 3px 0 #05060c;
}
.btn:hover { border-color: var(--cyan); color: var(--cyan2); }
.btn.primary { background: var(--amber); border-color: var(--amber2); color: #1c1305; }
.btn.primary:hover { background: var(--amber2); color: #1c1305; }
.btn.small { padding: 7px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 10px; }

/* the page */
main { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 5vw, 48px) var(--gap) 64px; }
main.wide { max-width: none; padding: 0 0 64px; }
main.wide > *:not(.hero) { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gap); padding-right: var(--gap); }
main.wide > .pxh:first-child, main.wide > .meta:first-child { margin-top: clamp(24px, 5vw, 48px); }
.lead { font-size: 1.16em; color: #d5dcea; }
.narrow { max-width: 62ch; }
.fine { font-size: 14px; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px;
  border: 1px solid var(--line2); color: var(--muted);
}
.tag.log { border-color: var(--amber); color: var(--amber2); }
.tag.comic { border-color: var(--cyan); color: var(--cyan2); }
.tag.live { border-color: var(--green); color: #b6e39f; }
.tag.draft { border-color: var(--red); color: #ff9aa0; }
.ribbon { margin: 0; padding: 8px var(--gap); background: #4a1620; color: #ffd0d3; text-align: center; font-size: 14px; border-bottom: 2px solid var(--red); }
body.preview .top { border-bottom-color: var(--red); }

/* the hero: the words and the one main button in a column of their own, the key art beside it (never under them);
   on anything narrower than a desktop the art goes on top, whole */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--space); border-bottom: 2px solid var(--line); }
.hero .art { grid-column: 1; grid-row: 1; position: relative; height: clamp(240px, 32vw, 360px); }
.hero .art::before { content: ""; position: absolute; z-index: 1; inset: auto 0 0 0; height: 110px; background: linear-gradient(0deg, var(--space), rgba(9, 11, 22, 0)); }
.heroart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.hero .over { grid-column: 1; grid-row: 2; position: relative; z-index: 1; padding: 0 var(--gap) 30px; margin-top: -44px; max-width: var(--wrap); width: 100%; justify-self: center; }
.hero h1 { margin: 0 0 12px; }
.hero .logo { width: min(340px, 64vw); filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.55)); }
.hero .lead { margin: 0; font-size: 1.06em; max-width: 62ch; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hero .over {
    grid-column: 1; grid-row: 1; align-self: center; margin: 0; max-width: none; justify-self: stretch;
    padding: 30px 16px 30px max(var(--gap), calc((100vw - var(--wrap)) / 2 + var(--gap)));
  }
  .hero .over > * { max-width: 440px; }
  .hero .art { grid-column: 2; grid-row: 1; height: auto; min-height: clamp(440px, 34vw, 540px); }
  .hero .art::before { inset: 0 auto 0 0; width: 120px; height: auto; background: linear-gradient(90deg, var(--space), rgba(9, 11, 22, 0)); }
  .heroart { object-position: 57% 50%; }
}

/* bands and grids */
.band { margin-top: clamp(36px, 6vw, 64px); }
.grid { display: grid; gap: var(--gap); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.more { margin-top: 18px; }
.card { background: var(--panel); border: 2px solid var(--line); padding: 0 0 16px; display: flex; flex-direction: column; }
.card > *:not(.shot) { margin-left: 16px; margin-right: 16px; }
.card .shot { display: block; background: var(--hull); border-bottom: 2px solid var(--line); margin-bottom: 14px; aspect-ratio: 16 / 9; overflow: hidden; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.2em; line-height: 1.25; }
.card h2 a, .card h3 a { color: var(--text); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--amber2); text-decoration: underline; }
.card p { margin: 0 0 8px; color: #cdd5e4; font-size: 15.5px; }
.card .kind { color: var(--muted); font-size: 14px; }
.card:hover { border-color: var(--line2); }
.planned-art {
  width: 100%; height: 100%; display: grid; place-items: center; color: #6f7c9c; --s: 3; padding: 10px;
  background:
    radial-gradient(1px 1px at 12% 22%, #c8d4e8 50%, transparent 51%), radial-gradient(1px 1px at 31% 71%, #8fa0c2 50%, transparent 51%),
    radial-gradient(2px 2px at 57% 34%, #c8d4e8 50%, transparent 51%), radial-gradient(1px 1px at 74% 63%, #8fa0c2 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 18%, #c8d4e8 50%, transparent 51%), radial-gradient(1px 1px at 44% 86%, #8fa0c2 50%, transparent 51%),
    radial-gradient(2px 2px at 20% 52%, #6f7c9c 50%, transparent 51%), radial-gradient(1px 1px at 66% 12%, #c8d4e8 50%, transparent 51%),
    var(--space);
}

/* prose and the two-column pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35em; margin: 1.7em 0 0.4em; color: var(--amber2); line-height: 1.25; }
.prose h2[id] { scroll-margin-top: 84px; }
.prose h3 { font-size: 1.08em; margin: 1.5em 0 0.3em; color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--amber); }

/* ways to follow, and the feeds' addresses (to copy, never to open) */
.ways { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin: 24px 0 8px; }   /* two by two: four ways, none left alone on a row */
.way { background: var(--panel); border: 2px solid var(--line); padding: 2px 18px 14px; }
.way h2 { font-size: 1.15em; margin: 14px 0 6px; color: var(--amber2); }
.way p { margin: 0 0 10px; color: #cdd5e4; }
.prose ul.feeds { list-style: none; padding: 0; margin: 14px 0; }
.feeds li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding: 10px 0; margin: 0; border-top: 1px solid var(--line); }
.feeds .name { font-weight: 700; min-width: 6.5em; }
.feeds code { font: 14px/1.4 ui-monospace, Consolas, "Courier New", monospace; color: var(--cyan2); background: var(--panel); border: 1px solid var(--line); padding: 4px 8px; overflow-wrap: anywhere; user-select: all; }
.feeds button { font: inherit; font-size: 13px; font-weight: 700; padding: 4px 12px; background: var(--panel); color: var(--text); border: 2px solid var(--line2); cursor: pointer; }
.feeds button:hover { border-color: var(--cyan); color: var(--cyan2); }
.cols2 { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); margin-top: clamp(24px, 4vw, 44px); }
@media (min-width: 980px) { .cols2 { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .side { position: sticky; top: 84px; } }
.side { background: var(--panel); border: 2px solid var(--line); padding: 4px 18px 16px; }
.side h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 18px 0 8px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.req { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.req th, .req td { text-align: left; vertical-align: top; padding: 5px 6px 5px 0; border-top: 1px solid var(--line); }
.req thead th { color: var(--muted); font-weight: 600; border-top: 0; }
.req tbody th { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* pictures in a page */
.shotfig { margin: 22px 0; background: var(--panel); border: 2px solid var(--line); }
.shotfig img { width: 100%; }
.shotfig.tall { max-width: 560px; margin-left: auto; margin-right: auto; }   /* a portrait card: a phone's width, not the page's */
.shotfig figcaption { padding: 9px 14px; font-size: 14.5px; color: var(--muted); border-top: 2px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { display: block; border: 2px solid var(--line); background: var(--hull); }
.thumb:hover { border-color: var(--cyan); }
.thumb img { width: 100%; }

/* the comic: the strip at whole multiples of its own pixels */
.striptitle { font-size: 1.2em; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.striptitle time { font-size: 14px; color: var(--muted); font-weight: 400; }
.strip { margin: 14px auto; width: fit-content; max-width: 100%; border: 2px solid var(--line); background: #0b0f1a; }
main.wide > .strip { padding: 0; }
@media (max-width: 400px) { .strip { border-left: 0; border-right: 0; } }   /* a phone shows it edge to edge, at its own pixels */
.strip-img { width: 360px; max-width: 100%; }
@media (min-width: 760px) { .strip-img { width: 720px; } }
@media (min-width: 1140px) { .strip-img { width: 1080px; } }
.stripnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0; }
.stripnav a, .stripnav .off {
  padding: 7px 14px; border: 2px solid var(--line2); background: var(--panel); color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
}
.stripnav a:hover { border-color: var(--cyan); color: var(--cyan2); }
.stripnav .off { color: #55607a; border-color: var(--line); background: transparent; }
.context, .words { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.words { background: var(--panel); border: 2px solid var(--line); padding: 10px 16px; margin-top: 14px; }
.words summary { cursor: pointer; font-weight: 700; }
.words li { margin: 0.5em 0; color: #cdd5e4; }
.archive { list-style: none; padding: 0; max-width: 760px; }
.archive li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.archive a { font-weight: 700; text-decoration: none; color: var(--text); }
.archive a:hover { color: var(--amber2); }
.archive .num { color: var(--amber); margin-right: 6px; }
.archive time { color: var(--muted); font-size: 14px; }

/* news filters (shown by the script) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filters button {
  font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; background: var(--panel); color: var(--muted);
  border: 2px solid var(--line2); cursor: pointer;
}
.filters button[aria-pressed="true"] { color: #1c1305; background: var(--amber); border-color: var(--amber2); }

/* the foot */
.foot { border-top: 2px solid var(--line); background: var(--hull); padding: 34px var(--gap) 28px; }
.foot .cols { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; }
.foot p { margin: 0 0 8px; }
.foot .copy { max-width: var(--wrap); margin: 22px auto 0; }
.brandline { margin-bottom: 10px !important; }

@media (prefers-reduced-motion: no-preference) { .btn, .card, .thumb { transition: border-color 0.12s, color 0.12s, background 0.12s; } }
