/* S.S. Khel Dune — site styles
   Colors come from the Phoenician Arts Studio phoenix: violet body, gold flame.
   Fonts are served from this site (no outside requests). Both are SIL Open Font License. */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Extra letters with marks, such as the i with a line over it in one companion novel's title. It only downloads when the page uses one.
   The font has no raised half ring (the mark after "zi" in that title), so that one mark comes from the next font in line. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/big-shoulders-display-latin-ext-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../fonts/literata-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #100b14;      /* page: black, dyed */
  --dye: #1b1124;        /* panels */
  --violet: #35088b;     /* the phoenix */
  --violet-bright: #6a45d4;
  --lilac: #b8a3f5;      /* links and quiet accents */
  --flame: #edc612;      /* the flame: actions only */
  --parchment: #ece3d2;  /* text */
  --ash: #a8a0b0;        /* secondary text */
  --rule: #33253f;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  color: var(--parchment);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--night);
  font: 400 1.125rem/1.65 var(--text);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--lilac); text-underline-offset: 0.2em; }
a:hover { color: var(--parchment); }

:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--flame);
  color: var(--night);
}
.skip:focus { left: 0.75rem; }

/* Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
}
.btn-gold { background: var(--flame); color: var(--night); }
.btn-gold:hover { background: var(--parchment); color: var(--night); }
.btn-line { border-color: var(--ash); color: var(--parchment); }
.btn-line:hover { border-color: var(--parchment); color: var(--parchment); }
/* Violet with a gold border and gold lettering, the reverse of the gold button (his ask, Nov 10: Follow on X).
   The inset shadow doubles the border without changing the button's size, so it matches the gold button. */
.btn-violet { background: var(--violet); border-color: var(--flame); box-shadow: inset 0 0 0 1px var(--flame); color: var(--flame); }
.btn-violet:hover { border-color: var(--parchment); box-shadow: inset 0 0 0 1px var(--parchment); color: var(--parchment); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.9375rem; }

.link {
  color: var(--parchment);
  font-weight: 600;
  text-decoration-color: var(--lilac);
}

/* Top bar ----------------------------------------------------------- */

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.topbar-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--parchment);
  text-decoration: none;
}
.topbar ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar ul a {
  color: var(--parchment);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}
.topbar ul a:hover { color: var(--flame); }

/* Since Nov 9 the menu has a fifth link, Midnight Archives, and it no longer fits beside his name below about 680 px,
   so up to 45rem (720 px) the name hides and the menu is centered (it used to be up to 40rem). */
@media (max-width: 45rem) {
  .topbar { justify-content: center; }
  .topbar-name { display: none; }
}
/* Phones: Midnight Archives gets its own line under the other four links, at every phone width, so the top bar is
   always the same height there (the banner's reach under Hero matches it). */
@media (max-width: 40rem) {
  .topbar ul { flex-wrap: wrap; justify-content: center; row-gap: 0.5rem; }
  .topbar .menu-archives { flex-basis: 100%; text-align: center; }
}
/* The smallest phones: a tighter menu, so "About Me" stays on one line (Nov 5). Only the space between links
   changes (since Nov 9), so the space between the two lines stays the same as on other phones. */
@media (max-width: 22rem) {
  .topbar ul { column-gap: 0.75rem; }
}

/* Hero -------------------------------------------------------------- */

.hero {
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}
/* The studio banner behind the top bar and the hero (his ask, Oct 29). It sits on a layer behind the hero that
   reaches up behind the top bar (5rem is the top bar's height), and the top bar stays above it. The banner's own
   lettering sits low in the picture, so on wide screens the featured book covers it and the fade hides the rest. */
.topbar { position: relative; z-index: 1; }
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -5rem;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    linear-gradient(to bottom, rgba(16, 11, 20, 0.55) 0%, rgba(16, 11, 20, 0.65) 55%, var(--night) 100%),
    url("../img/studio-banner.webp") center top / cover no-repeat;
}
/* Tablets and small laptops: the featured book is narrower than the banner's lettering, so the fade finishes sooner */
@media (max-width: 64rem) {
  .hero::before {
    background:
      linear-gradient(to bottom, rgba(16, 11, 20, 0.55) 0%, rgba(16, 11, 20, 0.65) 50%, var(--night) 72%),
      url("../img/studio-banner.webp") center top / cover no-repeat;
  }
}
/* From 40rem to 45rem the top bar is one line without his name, about 4.375rem tall (since Nov 9). */
@media (max-width: 45rem) {
  .hero::before { top: -4.375rem; }
}
/* Phones: a smaller strip at the top, faded out before the banner's lettering. The top bar is two lines there since
   Nov 9 (Midnight Archives under the other four links), about 6.75rem tall (it was one line, about 4.375rem). */
@media (max-width: 40rem) {
  .hero::before {
    top: -6.75rem;
    background:
      linear-gradient(to bottom, rgba(16, 11, 20, 0.5) 0%, rgba(16, 11, 20, 0.7) 50%, var(--night) 72%) center top / 100% 54vw no-repeat,
      url("../img/studio-banner-small.webp") center top / 100% auto no-repeat;
  }
}
.hero h1 {
  margin-left: -0.035em;
  font-size: clamp(3.25rem, 14.5vw, 11.25rem);
  line-height: 0.82;
}
.genre {
  margin-top: 1.1rem;
  font-style: italic;
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.35;
  color: var(--ash);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--dye);
}
.feature-art { margin: 0; }
.feature-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.feature-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.feature-text h2 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); }
.feature-series { margin-top: 0.75rem; color: var(--ash); }
.feature-when { margin-top: 0.15rem; margin-bottom: 1.5rem; }
/* The Selenic Mandate launch countdown (Nov 14): a second line under the date until launch day.
   The script at the bottom of index.html fills it in and shows it; without the script it stays hidden. */
.feature-countdown:not([hidden]) {
  display: block;
  margin-top: 0.3rem;
  font: 800 1.5rem/1.1 var(--display);
  letter-spacing: 0.03em;
  color: var(--lilac);
}

@media (max-width: 52rem) {
  .feature { grid-template-columns: minmax(0, 1fr); }
}

/* Sections ---------------------------------------------------------- */

.section {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  border-top: 1px solid var(--rule);
}
.section-title { font-size: clamp(2.75rem, 7vw, 5.5rem); }
.lede {
  max-width: 40ch;
  margin-top: 1rem;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--ash);
}

/* The Wolf and the Djinn Universe (his ask, Nov 14): a heading and a lede over The Arithmetic of Survival and
   The Arithmetic of War, like The Dark Star Universe's. It's a short section of its own: the space under the lede
   matches the space above the Dark Star moon picture, and no rule line runs between it and the harbor picture. */
.universe-head { padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.universe-head + .section { border-top: 0; }

/* The Wolf and the Djinn timeline (his ask, Nov 14): the lore, then all the books in story order, in one list.
   Same parts as the Dark Star timeline: a violet line, lilac dots, the "when" in small italics and the names in the
   heading font. Lore gets hollow dots and books get solid ones. Each book has its series under its title, and
   each lore event a short line under its name (his ideas, Nov 14), in the same small lilac type.
   Wider screens show two columns with the first five entries on the left (grid-template-rows: repeat(5, auto));
   the entry that ends the left column has class storyline-end. If an entry is added or taken out, change the 5
   and move that class. Phones show one column. */
.storyline { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.storyline-label { color: var(--lilac); }
.storyline-list {
  --step: 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: var(--step) clamp(2rem, 5vw, 4.5rem);
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.storyline-list li {
  position: relative;
  padding-left: 2rem;
}
/* the dot */
.storyline-list li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lilac);
}
.storyline-list .storyline-lore::before {
  border: 2px solid var(--lilac);
  background: var(--night);
}
/* the line down to the next dot */
.storyline-list li::after {
  content: "";
  position: absolute;
  top: calc(0.3rem + 14px);
  bottom: calc(-1 * var(--step) - 0.3rem);
  left: 6px;
  width: 2px;
  background: var(--violet-bright);
}
.storyline-list li:last-child::after,
.storyline-list .storyline-end::after { display: none; }
.storyline-when {
  display: block;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--ash);
}
.storyline-name {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}
.storyline-series,
.storyline-about {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--lilac);
}
@media (max-width: 52rem) {
  .storyline-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .storyline-list .storyline-end::after { display: block; }
}

/* Draft text the client hasn't approved yet. Remove the class when it's final. */
.stand-in {
  padding-left: 0.85rem;
  border-left: 2px dashed var(--flame);
}

/* The Mandate timeline ---------------------------------------------- */

.eras {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  row-gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.era {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1;
}
.era-when {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--text);
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  color: var(--ash);
}
.era-later { text-align: right; }
.era-line {
  grid-column: 1 / -1;
  position: relative;
  height: 2px;
  margin: 0.6rem 7px;
  background: var(--violet-bright);
}
.era-line::before,
.era-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lilac);
  transform: translateY(-50%);
}
.era-line::before { left: -7px; }
.era-line::after { right: -7px; }
.era-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 0 1rem;
  background: var(--night);
  font-style: italic;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--ash);
  transform: translate(-50%, -50%);
}

/* Series and shelves ------------------------------------------------- */

.series {
  display: grid;
  grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.series-head h3 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
.series-kind { margin-top: 0.6rem; color: var(--lilac); }
.series-about { max-width: 36ch; margin-top: 1.1rem; }

@media (max-width: 52rem) {
  .series { grid-template-columns: minmax(0, 1fr); }
}

/* Dark Star series: an emblem above the title, the same size and spot in both (the Helios Prime seal for the Selenic Mandate,
   the patch for the Telluric Mandate), and the newsletter button under a write-up */
.series-emblem {
  width: 5rem;
  height: 5rem;
  margin-bottom: 1.25rem;
}
.series-cta { margin-top: 1.5rem; }

/* Music: a small player for his album. The YouTube player only loads on a click. */
.music {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22.5rem);
  align-items: center;
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--dye);
}
.music-kicker { color: var(--lilac); }
.music h3 { margin-top: 0.4rem; font-size: clamp(2rem, 3.6vw, 2.75rem); }
.music-about { max-width: 36ch; margin-top: 0.9rem; }
.music-link { display: inline-block; margin-top: 1rem; font-size: 0.9375rem; }
/* YouTube's smallest allowed player is 200 x 200 */
.player-start,
.music-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
}
.music-player iframe { display: block; border: 0; }
.player-start {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  background: radial-gradient(circle at 50% 42%, rgba(106, 69, 212, 0.42), transparent 65%), var(--night);
  outline: 1px solid var(--rule);
  outline-offset: -1px;
  font-size: 0.9375rem;
  color: var(--ash);
  text-decoration: none;
}
.play-icon {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--flame);
}
.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent var(--night);
  transform: translate(-50%, -50%);
}
.player-start:hover { color: var(--parchment); }
.player-start:hover .play-icon { background: var(--parchment); }
@media (max-width: 52rem) {
  .music { grid-template-columns: minmax(0, 1fr); }
}

/* Game: the block for his arcade game, built like the music block, with a picture from the game
   behind the play button. Added Nov 5, 2026. Since that night the link opens the game's own site,
   silicon-djinn.pages.dev, in a new tab, and the picture loads from there (1200 x 630; the 16:9 button
   trims a sliver off its sides).
   The picture ignores the mouse like every picture on the site; the link is a grid, so a click on it still lands. */
/* Blocks like this that follow each other sit closer together: in the Dark Star section the audiobook,
   the game and the album (since Nov 6, 2026; before that only the game and the album). */
.music + .music { margin-top: clamp(1.5rem, 3vw, 2rem); }
.game-start {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: var(--night);
  outline: 1px solid var(--rule);
  outline-offset: -1px;
  font-size: 0.9375rem;
  color: var(--parchment);
  text-decoration: none;
}
.game-start img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.game-label { text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85); }
.game-start:hover img { opacity: 0.8; }
.game-start:hover .play-icon { background: var(--parchment); }

/* Audiobook (added Nov 6, 2026): the play button shows the Cold Boot cover on a blurred, darkened copy of itself,
   the way his YouTube chapter videos look, so the player that loads on a click looks much the same.
   Both pictures are the shelf's cover file (480 x 720), so nothing extra loads. Everything on the button is
   placed by the button's own height, so the cover never runs into the label, on a phone or a computer. */
.player-start.has-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--parchment);
}
.has-cover .player-blur {
  position: absolute;
  top: -16%;
  left: -16%;
  z-index: -2;
  width: 132%;
  max-width: none;
  height: 132%;
  object-fit: cover;
  filter: blur(14px) brightness(0.45);
}
.has-cover .player-cover {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: -1;
  width: auto;
  height: 66%;
  transform: translateX(-50%);
  box-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.6);
}
.has-cover .play-icon {
  position: absolute;
  top: 41%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.has-cover .player-label {
  position: absolute;
  right: 0;
  bottom: 6%;
  left: 0;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr));
  gap: 2.25rem 1.5rem;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shelf-label {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--ash);
  font-style: italic;
}

.book { position: relative; }
.cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  outline: 1px solid rgba(236, 227, 210, 0.1);
  outline-offset: -1px;
}
/* Stand-in cover, until the real one is in the folder */
.cover-type {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.9rem 0.9rem;
  background: var(--violet);
}
.cover-type .ct-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 0.92;
  color: var(--parchment);
}
.cover-type .ct-author {
  font-size: 0.8125rem;
  color: rgba(236, 227, 210, 0.75);
}
.cover-type.is-coming { background: var(--dye); outline: 1px dashed var(--rule); }

.book h4 {
  margin-top: 0.9rem;
  font-size: 1.5rem;
  line-height: 1;
}
.book-meta {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ash);
}
.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.9375rem;
}
/* The book a new reader should start with */
.book.is-start .cover {
  outline: 3px solid var(--flame);
  outline-offset: 4px;
}
.book-start {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--flame);
}

/* Full-width art that opens each series */
.band { margin: 0; }
.band img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
  object-position: 50% 30%;
}
.band-mandate,
.band-hive { margin-top: clamp(3rem, 6vw, 4.5rem); }
.band-mandate img { object-position: 50% 45%; }
/* The moon picture has Earth at the very top and the machines at the very bottom, so its band is taller on wide screens.
   Phones show the whole picture, like every band (the 16 / 9 rule below wins there). */
.band-hive img { aspect-ratio: 2 / 1; object-position: 50% 45%; }
/* The Arithmetic of Survival: his second harbor picture (Nov 9). The tower's masts nearly touch the top edge,
   so wide screens keep the top of the picture. Phones show the whole picture, hovercraft and guns included. */
.band-aos img { object-position: 50% 0%; }
/* The Arithmetic of War: his second picture of the two werewolves (Nov 9). The moon sits near the top and their feet
   near the bottom, so the usual 16 / 6 strip would cut one of them. This band is 16 / 7 on wider screens, which shows
   the moon, the tower and both werewolves from ears to feet. Phones show the whole picture (the 16 / 9 rule below wins there). */
.band-aow img { aspect-ratio: 16 / 7; object-position: 50% 0%; }
/* Where should I start?: his picture of the two worlds with the studio phoenix between them (Nov 1).
   The faces sit high in the picture, so wide screens keep its top edge. */
.band-start img { object-position: 50% 0%; }
.band + .wrap > .series { margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 40rem) {
  .band img { aspect-ratio: 16 / 9; }
}
.after-band { padding-top: clamp(2.5rem, 5vw, 4rem); }
.after-band .series { margin-top: clamp(2rem, 4vw, 3rem); }
.after-band .series-kind { margin-top: 0; }
.section.has-band { padding-top: 0; }

/* Where should I start? --------------------------------------------- */

/* Four cards since Nov 4, when The Arithmetic of War joined. All four sit side by side on wide screens (his ask).
   Below 68rem they go two across, so the titles and buttons don't get squeezed; below 60rem they stack. */
.compare {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
}
.pick {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 1.5rem 1.4rem 1.75rem;
  background: var(--dye);
  border-top: 3px solid var(--rule);
}
.pick.is-first { border-top-color: var(--flame); }
.pick h3 { font-size: 1.9rem; }
.pick-first-note { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--flame); }
.pick dl { margin: 1.25rem 0 0; }
.pick dl div + div { margin-top: 1rem; }
.pick dt { font-size: 0.875rem; color: var(--ash); }
.pick dd { margin: 0.15rem 0 0; font-size: 1rem; line-height: 1.5; }
.pick-go { align-self: end; margin-top: 1.5rem; }

@media (max-width: 68rem) {
  .compare { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 60rem) {
  .compare { grid-template-columns: minmax(0, 1fr); row-gap: 1.25rem; }
  .pick { grid-row: auto; grid-template-rows: none; }
}

/* About ------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 25rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.portrait { margin: 0; }
/* Fade the photo's edges so it sits in the page with no visible box */
.portrait img {
  width: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 16%, #000 84%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.about-text p { max-width: 60ch; }
.about-text p + p { margin-top: 1.1rem; }
.about-text .section-title { margin-bottom: 1.5rem; }

@media (max-width: 52rem) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 22rem; }
}

/* Newsletter and footer --------------------------------------------- */

.newsletter { background: var(--dye); }
.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
}
@media (max-width: 52rem) {
  .newsletter-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
}
/* The newsletter's buttons, stacked and the same width: Follow on X on top, then Subscribe on Substack (Nov 10). */
.newsletter-actions { display: grid; gap: 0.75rem; justify-self: start; text-align: center; }

.site-foot {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  font-size: 0.9375rem;
  color: var(--ash);
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.imprint {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.imprint img { width: 3rem; height: 3rem; }

/* Read-only site (his call, Nov 5, 2026: nothing on the site can be downloaded).
   Text can't be selected, phones get no long-press menu, and pictures ignore the mouse
   and touch, so there's no "Save image" to click and nothing to drag off the page.
   No picture on the site is a link. If one ever becomes a link, make that link
   display: block so a click on the picture still lands on it.
   The script at the end of each page blocks the right-click menu, copying and the Ctrl shortcuts. */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
img {
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Printing (and Save as PDF) shows a note instead of the page.
   Cold Boot's chapter pages (the ones with data-slug) have their own note in reader.css. */
@media print {
  body:not([data-slug]) > * { display: none !important; }
  body:not([data-slug])::after {
    content: "Printing is turned off for this site. Visit kheldune.com.";
    display: block;
    padding: 2rem;
    background: #fff;
    color: #000;
    font: 400 14pt/1.5 Georgia, serif;
  }
}
