/* Myxstem — myxstem.com
   Myxstem's own identity inside the Autoriale discipline: Figtree throughout,
   the brand yellow as a surface, black as the accent and the one filled button,
   square artwork in a plain grid. Kept on purpose: yellow ground on the hero,
   black pill buttons (the existing Myxstem button). No gradients, glass,
   icons, scroll animation or hover fades. Dark mode is designed, not inverted. */

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #f4f4f1;
  --panel: #ffffff;
  --ink: #111213;
  --ink-2: #4a4c50;
  --ink-3: #7c7f85;
  --rule: #dcdcd6;
  --yellow: #f7c948;
  --yellow-ink: #111213;
  --accent: #111213;
  --accent-ink: #ffffff;
  --sans: "Figtree", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 36rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101112;
    --panel: #18191b;
    --ink: #ededea;
    --ink-2: #b5b7bc;
    --ink-3: #83868d;
    --rule: #2b2d31;
    --yellow: #f2c443;
    --yellow-ink: #111213;
    --accent: #f2c443;
    --accent-ink: #111213;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-feature-settings: "tnum" 1, "kern" 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--yellow-ink); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.wordmark img { width: 36px; height: 36px; border-radius: 8px; }
.wordmark:hover { text-decoration: none; }
.site-nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; }

/* Hero */
main { flex: 1; }
.hero {
  background: var(--yellow);
  color: var(--yellow-ink);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px 48px;
  align-items: center;
  padding: clamp(40px, 7vh, 88px) var(--gutter);
}
.hero-plain {
  background: none;
  color: var(--ink);
  display: block;
  padding: clamp(56px, 10vh, 120px) var(--gutter) clamp(32px, 6vh, 64px);
}
.hero-art { width: 100%; height: auto; }
.display {
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 12em;
  text-wrap: balance;
}
.lede { font-size: 19px; margin: 20px 0 0; max-width: var(--measure); color: inherit; }
.hero-plain .lede { color: var(--ink-2); }
.hero-actions { margin: 28px 0 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 600; }

.button {
  display: inline-block;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
}
.button:hover, .button:focus-visible { text-decoration: none; background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.hero .button { background: #111213; border-color: #111213; color: #fff; }
.hero .button:hover { background: #2a2c30; border-color: #2a2c30; }

/* Catalog */
.catalog { padding: clamp(40px, 7vh, 80px) var(--gutter) 0; }
.catalog:last-of-type { padding-bottom: clamp(56px, 9vh, 112px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 48px; align-items: baseline; padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 24px; }
.section-title { font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.section-lede { margin: 0; color: var(--ink-2); max-width: var(--measure); }
.section-more { margin: 24px 0 0; }
.section-more a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; font-weight: 500; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 32px 24px; }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: var(--panel); }
.card-wide .card-art img { aspect-ratio: 16 / 9; }
.card-art:hover, .card-art:focus-visible { text-decoration: none; outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.card-body { padding: 12px 0 0; }
.card-title { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.3; letter-spacing: -0.01em; }
.card-sub { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; }
.card-note { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; max-width: 34rem; }
.store {
  display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink);
}
.store:hover, .store:focus-visible { text-decoration: none; background: var(--ink); color: var(--ground); }

/* Prose sections */
.stack { display: grid; gap: 0; padding: 0 var(--gutter) clamp(48px, 8vh, 96px); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 48px; padding: 28px 0; border-top: 1px solid var(--rule); }
.two-col h2 { font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose a, .lede a, .details a, .foot-line a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.figure { margin: 0 var(--gutter) clamp(40px, 7vh, 80px); }
.figure img { width: 100%; border-radius: 12px; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.details { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.contact-primary { font-weight: 700; font-size: clamp(28px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.03em; word-break: break-word; margin: 0; }

/* Conga Chops */
.volume { padding: 32px 0; border-top: 1px solid var(--rule); }
.volume-head { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px 40px; align-items: start; }
.volume-art { width: 100%; border-radius: 10px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 16px 0 0; }
.specs div { border-top: 1px solid var(--rule); padding-top: 8px; }
.specs dt { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.specs dd { margin: 2px 0 0; }
.tracks { margin: 20px 0 0; }
.tracks summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.tracks ol { columns: 2; column-gap: 40px; margin: 8px 0 0; padding-left: 1.4em; color: var(--ink-2); }
.tracks li { break-inside: avoid; padding: 2px 0; }

/* Editions */
.edition h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
.edition-status { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px !important; }
.soon { display: inline-block; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--yellow-ink); }
.figure img[width="640"] { max-width: 960px; }

/* Policy */
.policy { padding: 0 var(--gutter) clamp(48px, 8vh, 96px); max-width: calc(var(--measure) + 2 * var(--gutter)); }
.policy h2 { font-size: 20px; margin: 28px 0 8px; }
.policy p, .policy li { color: var(--ink-2); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px;
  padding: 24px var(--gutter) 28px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-3);
}
.foot-mark { font-weight: 700; color: var(--ink); font-size: 16px; }
.foot-line { margin-top: 2px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .section-head, .two-col, .volume-head { grid-template-columns: 1fr; }
  .volume-head { gap: 16px; }
  .volume-art { max-width: 220px; }
  .tracks ol { columns: 1; }
  .site-nav { gap: 16px; font-size: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .grid-wide { grid-template-columns: 1fr; }
}
@media print { .site-nav, .button, .store { display: none; } body { background: #fff; color: #000; } }
