/* news.stellarbricks.com — one hand-written stylesheet, no build step.
   (web/ has Tailwind; this site is five templates and must deploy with a
   git pull on a box that has no node.) */
:root {
  color-scheme: light dark;
  --bg: #fafaf7; --fg: #1b1b1f; --muted: #5d5d66; --line: #e3e2dc;
  --card: #ffffff; --accent: #c8102e; --accent-fg: #ffffff; --tag: #f0efe9;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121214; --fg: #ececf0; --muted: #a0a0ab; --line: #2a2a30;
          --card: #1b1b1f; --accent: #ff5468; --accent-fg: #121214; --tag: #25252b; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
main, .top, .foot { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem;
       padding-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -.01em; }
.top nav { display: flex; gap: 1.1rem; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--fg); }
.top nav { align-items: baseline; }
.langmenu { position: relative; }
.langmenu summary { list-style: none; cursor: pointer; color: var(--muted); user-select: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary:hover, .langmenu[open] summary { color: var(--fg); }
.langlist { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 10; display: grid;
            grid-template-columns: repeat(2, max-content); gap: .15rem 1.2rem; padding: .7rem 1rem;
            background: var(--card); border: 1px solid var(--line); border-radius: .6rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.langlist a { white-space: nowrap; padding: .15rem 0; }
.langlist a[aria-current] { color: var(--fg); font-weight: 700; }

.intro h1 { font-size: 2rem; line-height: 1.2; margin: 2rem 0 .3rem; }
.intro p { color: var(--muted); margin: 0 0 1.5rem; }

.crumbs { color: var(--muted); font-size: .85rem; margin: 1.5rem 0 -1.2rem; }
.post .crumbs { margin: 0 0 .6rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.filters { display: grid; gap: .6rem; margin: 0 0 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
        padding: .2rem .8rem; font-size: .88rem; text-decoration: none; }
.chip small { color: var(--muted); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip.on small { color: inherit; opacity: .7; }
.search { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.search input[type=search] { flex: 1 1 14rem; max-width: 24rem; font: inherit; font-size: .95rem; color: inherit;
        background: var(--card); border: 1px solid var(--line); border-radius: .5rem; padding: .4rem .7rem; }
.search button { font: inherit; color: inherit; cursor: pointer; }
.themegrid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); }
.themebox { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; text-decoration: none;
        background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: .7rem .9rem; }
.themebox small { color: var(--muted); }
.themebox:hover { border-color: var(--fg); }
.themebox { flex-wrap: wrap; }
.themebox .logo { flex: 0 0 100%; }
.themelogo { display: block; max-height: 1.6rem; width: auto; background: #fff; border-radius: .3rem; padding: .15rem .35rem; }
.themelogo.big { max-height: 3rem; margin: 2rem 0 -1.4rem; }
.postergrid { display: grid; gap: .9rem; margin: 0 0 1.5rem;
        grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); }
.posterbox { display: block; text-decoration: none; background: var(--card);
        border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; }
.posterbox:hover { border-color: var(--fg); }
.posterbox img { display: block; width: 100%; aspect-ratio: 360 / 564; object-fit: cover; background: #222; }
.posterbox span { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem;
        padding: .45rem .7rem; font-size: .92rem; }
.posterbox small { color: var(--muted); }
.themehead { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.5rem; }
.themehead h1 { margin: 0; }
.themeposter { flex: 0 0 auto; width: 6rem; aspect-ratio: 240 / 376; object-fit: cover; border-radius: .6rem; }
@media (max-width: 30rem) { .themeposter { width: 4.5rem; } }
.offers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.share { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 2rem 0 0;
         padding-top: 1rem; border-top: 1px solid var(--line); }
.share span { color: var(--muted); font-size: .88rem; margin-right: .3rem; }
.offer h3 { font-size: 1.05rem; }
.related { max-width: 68rem; margin: 2.5rem auto 0; }
.related > h2 { font-size: 1.2rem; }
.related > h2 a { text-decoration: none; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .75rem;
        overflow: hidden; display: flex; flex-direction: column; }
/* the picture is taken out of flow: a tall box shot otherwise stretches the
   anchor past its aspect-ratio and the row of cards with it */
.card .shot { display: block; position: relative; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .75rem; }
.card .body { padding: .9rem 1rem 1.1rem; }
.card h2 { font-size: 1.08rem; line-height: 1.35; margin: .2rem 0 .4rem; }
.card h2 a { text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.meta { color: var(--muted); font-size: .85rem; margin: 0 0 .3rem; }
.tag { display: inline-block; background: var(--tag); border-radius: 999px;
       padding: .05rem .6rem; font-size: .8rem; text-decoration: none; margin-left: .3rem; }
.themes .tag, .facts .tag { margin: 0 .25rem .35rem 0; }
.themes { margin: 2.5rem 0 0; }
.themes h2 { font-size: 1.1rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 2rem 0; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: .5rem;
       padding: .5rem 1rem; text-decoration: none; background: var(--card); font-weight: 600; }
.btn.sm { padding: .3rem .7rem; font-size: .88rem; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn:hover { filter: brightness(.95); }

.post { max-width: 46rem; margin: 0 auto; padding: 2rem 0 1rem; }
.post h1 { font-size: 1.9rem; line-height: 1.22; margin: .2rem 0 1rem; }
.post h2 { font-size: 1.25rem; margin-top: 2rem; }
.hero { display: block; width: 100%; background: #fff; border: 1px solid var(--line);
        border-radius: .75rem; padding: 1rem; margin: 1rem 0 1.25rem; }
.disclosure { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--accent);
              padding: .1rem 0 .1rem .75rem; margin: 0 0 1.25rem; }
.facts { border-collapse: collapse; width: 100%; margin: 1.25rem 0; }
.facts th, .facts td { text-align: left; padding: .5rem .25rem; border-bottom: 1px solid var(--line);
                       vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 45%; }
.cta { margin: 1.5rem 0; }
.official blockquote { margin: 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--line);
                       color: var(--muted); font-size: .95rem; }
.official ul { padding-left: 1.1rem; }
.official li { margin: .4rem 0; }
.official .tag { margin: 0 .25rem .35rem 0; }
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); margin: 1.5rem 0 .4rem; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .5rem;
               border: 1px solid var(--line); background: #fff; }
.shotlink { display: block; }
.source { color: var(--muted); font-size: .85rem; margin-top: 2rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); margin: 1.5rem 0; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: .75rem; padding: .9rem; }
.item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff;
            border-radius: .5rem; }
.item h3 { font-size: .98rem; line-height: 1.3; margin: .6rem 0 .25rem; }
.item p { margin: .25rem 0; }

.foot { margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 2rem; border-top: 1px solid var(--line);
        color: var(--muted); font-size: .85rem; }
.langs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin: 0 0 1rem; }
.langs a { text-decoration: none; }
.langs a[aria-current] { color: var(--fg); font-weight: 700; }
.lead { font-size: 1.15rem; }
.foot p { margin: .3rem 0; }

/* the launch calendar: a month, then its days, each a grid of sets */
.calmonth > h2 { margin: 2.2rem 0 .4rem; padding-bottom: .3rem; border-bottom: 2px solid var(--line); }
.calday { margin: 1.4rem 0 0; font-size: 1.05rem; }
.calday small { font-weight: 400; color: var(--muted); margin-left: .35rem; }
.calday + .grid { margin-top: .7rem; }
