/* Bipedal Press
   Palette comes from the logo: cream paper, alien gray-beige, ink black,
   plus one oxblood accent. The gilded night-sky look is reserved for the fantasy card. */

:root {
  --cream: #FFF1D3;       /* matches the logo background exactly */
  --cream-deep: #F6E4BC;
  --alien: #CDC5B4;       /* the alien's skin */
  --alien-line: #8E846B;  /* the Vitruvian circle and glyph tone */
  --ink: #15130E;
  --ink-soft: #3B362B;
  --accent: #6B1F2A;       /* oxblood */
  --accent-light: #D9959C; /* oxblood on dark backgrounds */
  --night: #161322;        /* fantasy card */
  --gilt: #DEBA60;

  /* Display type: the vintage face, for headings and decorative touches */
  --serif: "IM Fell DW Pica", "Iowan Old Style", Georgia, "Times New Roman", serif;
  /* Reading type: a clean sans-serif for body text */
  --text: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif-sc: "IM Fell DW Pica SC", "IM Fell DW Pica", Georgia, serif;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 9vw, 8rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--cream); padding: 0.6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 0.6em; }
h1 { font-size: clamp(3rem, 2rem + 5.2vw, 6.2rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.2em; line-height: 1.45; }
.section-intro { color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: var(--cream);
  padding: 0.75em 1.4em;
  font-family: var(--serif-sc); font-size: 1.15rem; letter-spacing: 0.03em; font-weight: 400;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--cream); color: var(--accent); }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-quiet:hover { background: var(--accent); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--alien-line) 35%, transparent);
}
.brand {
  display: flex; align-items: center; gap: 0.7rem; text-decoration: none;
  font-family: var(--serif-sc); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.03em;
}
.brand img { border-radius: 4px; flex-shrink: 0; }
.site-header nav {
  display: flex; align-items: center; gap: clamp(0.8rem, 2.2vw, 1.9rem);
  font-family: var(--serif-sc); font-size: 1.15rem; letter-spacing: 0.03em;
}
.site-header nav a { text-decoration: none; }
.site-header nav a:not(.nav-cta):hover,
.site-header nav a[aria-current="page"]:not(.nav-cta) { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-short { display: none; }
.nav-cta { border: 2px solid var(--accent); color: var(--accent); border-radius: 999px; padding: 0.2em 0.9em; }
.nav-cta:hover, .nav-cta[aria-current="page"] { background: var(--accent); color: var(--cream); }

/* ---------- Glyphs (the alphabet spells "bipedal"; CSS recolors the mask) ---------- */
.glyph-divider {
  width: min(18rem, 60%); aspect-ratio: 1400 / 279;
  margin: clamp(2rem, 5vw, 4rem) auto;
  background: var(--alien-line);
  -webkit-mask: url(images/glyph-h.png) center / contain no-repeat;
          mask: url(images/glyph-h.png) center / contain no-repeat;
}
.glyph-divider-sm { width: min(11rem, 50%); margin: 0 auto 1.25rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) var(--section);
  max-width: 82rem; margin: 0 auto;
}
.hero-art { margin: 0; }
.hero-art img { width: 100%; max-height: 82vh; object-fit: contain; margin-inline: auto; animation: float 9s ease-in-out infinite alternate; }
.hero-copy > * { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }

@keyframes rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-12px); } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--accent); color: var(--cream);
  overflow: hidden; white-space: nowrap;
  padding: 0.85rem 0;
  font-family: var(--serif-sc); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); letter-spacing: 0.06em;
}
.ticker-track { display: inline-flex; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: inline-flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.ticker i { display: block; flex: none; width: 0.65em; height: 0.65em; border: 2px solid currentColor; border-radius: 50%; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Quote ---------- */
.quote { background: var(--alien); padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.quote blockquote { margin: 0 auto; max-width: 52rem; }
.quote p {
  font-family: var(--serif);
  max-width: none; margin: 0;
  font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.6rem);
  font-style: italic; font-weight: 400; line-height: 1.2; text-wrap: balance;
}
.quote footer { margin-top: 1.25rem; font-size: 1.1rem; color: var(--ink-soft); }
.quote cite { font-style: italic; }

/* ---------- Shared section frame ---------- */
.why, .books, .about, .newsletter, .terms-section, .academia, .lookingfor, .how, .after, .inhouse, .origin, .faq {
  max-width: 82rem; margin: 0 auto;
  padding: var(--section) var(--gutter);
}

/* ---------- Sub-page intro ---------- */
.page-intro {
  max-width: 82rem; margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(1rem, 3vw, 2rem);
}
.page-intro h1 { font-size: clamp(2.8rem, 2rem + 4vw, 5.2rem); }
.page-intro p { max-width: 40rem; }

/* ---------- Why ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2rem, 4vw, 3.5rem) 0;
}
.why-grid > div { border-top: 3px solid var(--accent); padding-top: 1rem; }
.why-grid p { margin: 0; }
.why-close { padding-top: 1rem; }
.why-close p:not(.actions) { font-size: 1.15em; }
.why-close .actions { margin-top: 1.75rem; }

/* ---------- Plain terms ---------- */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.term { background: var(--cream-deep); border: 2px solid var(--ink); border-radius: 6px; padding: 1.5rem 1.5rem 1.25rem; }
.term h3 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.8rem); line-height: 1; color: var(--accent); margin-bottom: 0.4em; }
.term p { margin: 0; }
.terms-inline { margin: clamp(2rem, 4vw, 3.5rem) 0; }

/* ---------- What we publish ---------- */
.books { border-top: 1px solid color-mix(in srgb, var(--alien-line) 45%, transparent); }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: end; }
.shelf article {
  position: relative; overflow: hidden;
  background: var(--alien);
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 4px 4px 0 0;
  border-bottom: 6px solid var(--accent);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.shelf article > * { position: relative; z-index: 1; }
.shelf p { margin: 0; }
/* Different heights, like books of different sizes on a shelf */
.genre-lit  { min-height: 23rem; }
.genre-spec { min-height: 25rem; }
.genre-dark { min-height: 24rem; }
.genre-uncl { min-height: 24rem; }

/* Fantasy card: the alien, gilded, under a night sky */
.shelf .genre-spec {
  background:
    linear-gradient(to top, rgba(22,19,34,1) 0%, rgba(22,19,34,0.96) 50%, rgba(22,19,34,0) 88%),
    var(--night) url(images/fantasy-alien.webp) center top / cover no-repeat;
  color: #F6EBCB;
  border-bottom-color: var(--gilt);
}
.shelf .genre-spec h3 { color: var(--gilt); }

/* Dark academia card: the alien by candlelight, in a library */
.shelf .genre-dark {
  background:
    linear-gradient(to top, rgba(27,14,17,1) 0%, rgba(27,14,17,0.96) 50%, rgba(27,14,17,0) 88%),
    #1B0E11 url(images/dark-academia-alien.webp) center top / cover no-repeat;
  color: #F6EBCB;
  border-bottom-color: var(--gilt);
}
/* The whole card is a link to its explanation on the What we publish page */
.shelf .genre h3 { position: static; }
.shelf .genre p { pointer-events: none; }
.genre h3 a { color: inherit; text-decoration: none; }
.genre h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.genre h3 a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.genre h3 a:focus-visible { outline: none; }
.genre h3 a:focus-visible::after { outline: 3px solid var(--accent); outline-offset: -6px; }
.shelf .genre-spec h3 a:focus-visible::after, .shelf .genre-dark h3 a:focus-visible::after { outline-color: var(--gilt); }

/* Literary card: the alien as a two-color print, a little off-register */
.shelf .genre-lit {
  background:
    linear-gradient(to top, rgba(243,230,198,1) 0%, rgba(243,230,198,0.96) 50%, rgba(243,230,198,0) 88%),
    #F3E6C6 url(images/literary-alien.webp) center top / cover no-repeat;
  color: var(--ink);
}
.shelf .genre-lit h3 { color: var(--accent); }

/* Unclassifiable card: upside down, in riso colors */
.shelf .genre-uncl {
  background:
    linear-gradient(to top, rgba(255,233,166,1) 0%, rgba(255,233,166,0.96) 50%, rgba(255,233,166,0) 88%),
    #FFE9A6 url(images/unclassifiable-alien.webp) center top / cover no-repeat;
  color: var(--ink);
  border-bottom-color: #E0457B;
}
.shelf .genre-uncl h3 { color: #3B1D8F; }

/* ---------- Fair pay band ---------- */
.fairpay {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}
.fairpay-inner { position: relative; z-index: 1; max-width: 82rem; margin: 0 auto; }
.fairpay h2 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5.4rem); line-height: 1; max-width: 12ch; }
.fairpay p { max-width: 32rem; }
.fairpay::after {
  content: ""; position: absolute; z-index: 0;
  right: clamp(1rem, 9vw, 9rem); top: 50%; height: 170%; aspect-ratio: 279 / 1400;
  transform: translateY(-50%);
  background: var(--cream); opacity: 0.13;
  -webkit-mask: url(images/glyph-v.png) center / contain no-repeat;
          mask: url(images/glyph-v.png) center / contain no-repeat;
}

/* ---------- Made in-house ---------- */
.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.craft {
  background: var(--cream-deep); border: 2px solid var(--ink); border-radius: 6px;
  padding: 1.5rem; transition: box-shadow 0.2s;
}
.craft:hover { box-shadow: 6px 6px 0 var(--accent); }
.craft svg { width: 2.4rem; height: 2.4rem; color: var(--accent); margin-bottom: 1rem; }
.craft h3 { font-size: 1.5rem; }
.craft p { margin: 0; font-size: 0.97em; }

/* ---------- Newsletter card ---------- */
.newsletter { padding-top: calc(var(--section) * 0.5); padding-bottom: calc(var(--section) * 0.5); }
.news-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  background: var(--cream-deep);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--accent);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.news-copy h2 { margin-bottom: 0.4em; }
.news-copy p { margin-bottom: 0.8em; }
.news-alt { font-size: 0.95em; color: var(--ink-soft); }
.news-frame { display: block; width: 100%; height: 320px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; }

/* ---------- About ---------- */
.origin {
  display: grid; grid-template-columns: minmax(5rem, 9rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 6rem); align-items: start;
  padding-top: clamp(1rem, 3vw, 2rem);
}
.origin-glyph { position: sticky; top: 6.5rem; }
.origin-glyph div {
  width: 100%; aspect-ratio: 279 / 1400; max-height: 78vh; margin-inline: auto;
  background: var(--accent);
  -webkit-mask: url(images/glyph-v.png) center / contain no-repeat;
          mask: url(images/glyph-v.png) center / contain no-repeat;
}
.origin-story h2 { margin-bottom: 0.8em; }
.origin-story p { font-size: 1.15em; max-width: 36rem; margin-bottom: 1.1em; }
.origin-story .lead { font-family: var(--serif); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1.25; }
.origin-story h3 { margin-top: 2.4rem; }
.origin-story a { color: var(--accent); }
.origin-story .origin-note { font-size: 0.95em; color: var(--ink-soft); font-style: italic; margin-top: 2rem; }

.about { padding-top: clamp(1.5rem, 4vw, 3rem); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 4px; }
.person.mascot img { object-fit: contain; background: var(--cream); }
.person figcaption { padding-top: 1.1rem; }
.person p { margin-bottom: 0.4em; }
.person .who { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.about-cta { background: var(--alien); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter); }
.about-cta-inner { max-width: 82rem; margin: 0 auto; }
.about-cta .btn:hover { background: var(--alien); }

/* ---------- How to submit ---------- */
.how { padding-top: 0; }
.how-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); margin-top: 1.5rem; }
.how ul { padding-left: 1.2rem; margin: 0 0 1.25rem; max-width: var(--measure); }
.how li { margin-bottom: 0.35em; }
.how a, .faq-body a { color: var(--accent); }

/* ---------- What we mean by dark academia ---------- */
.academia { padding-top: 0; }
.academia-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: 1.5rem; align-items: start; }
.academia-lede { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); line-height: 1.3; color: var(--accent); }
.academia-text p { max-width: var(--measure); }
.academia-books { border-left: 4px solid var(--accent); padding-left: clamp(1.25rem, 3vw, 2rem); }
.academia-books h3 { margin-bottom: 0.75rem; }
.academia-books ul { list-style: none; margin: 0; padding: 0; }
.academia-books li { padding: 0.7rem 0; border-top: 1px solid var(--alien-line); }
.academia-books li:last-child { border-bottom: 1px solid var(--alien-line); }
.academia-books cite { display: block; font-style: normal; font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; }
.academia-books span { color: var(--ink-soft); }

/* ---------- What we publish page ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.75rem 0.9rem; margin-top: 2rem; max-width: 62rem; font-family: var(--serif-sc); font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: 0.03em; }
.jump a {
  display: inline-block; color: var(--accent); text-decoration: none;
  border: 2px solid var(--accent); border-radius: 999px; padding: 0.3em 1em; line-height: 1.25;
}
.jump a:hover, .jump a:focus-visible { background: var(--accent); color: var(--cream); }
.genre-sec { max-width: 82rem; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) var(--gutter) clamp(2.5rem, 5vw, 4rem); }
.genre-sec h2 { border-top: 2px solid var(--ink); padding-top: 1.25rem; margin-bottom: 0.25rem; }
.lookingfor { padding-top: 0; }
.lookingfor .section-intro a { color: var(--accent); }

/* ---------- What happens after you submit ---------- */
.after { padding-top: 0; }
.after-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.after-steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1rem; }
.after-steps h3 { margin-bottom: 0.4em; }
.after-steps h3::before { content: counter(step) ". "; color: var(--accent); }
.after-steps p { margin: 0; }

/* ---------- What we're not looking for ---------- */
/* A dark, boxed panel with an X beside each item, so it never reads like the other lists */
.notfor { max-width: 82rem; margin: 0 auto; padding: 0 var(--gutter) var(--section); }
.notfor-box {
  background: #1B0E11; color: #F3E6C8;
  border: 2px solid var(--gilt); outline: 1px solid var(--gilt); outline-offset: 6px;
  overflow: hidden;
}
.notfor-body { padding: clamp(1.75rem, 4vw, 3.25rem); }
.notfor-body h2 { color: var(--gilt); margin: 0 0 0.5rem; }
.notfor-intro { margin: 0 0 1.5rem; color: #E3D3AE; }
.notfor-list { list-style: none; margin: 0; padding: 0; }
.notfor-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 1rem 0; border-top: 1px dashed rgba(222, 186, 96, 0.45);
}
.notfor-list .x { flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; color: var(--accent-light); }
.notfor-list strong {
  display: block; margin-bottom: 0.2rem;
  font-family: var(--serif); font-weight: 400; color: #FFF1D3;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.25;
}
.notfor-list span { color: #E3D3AE; }
.notfor-list a { color: var(--gilt); }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq-list { margin-top: 2rem; max-width: 62rem; }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  font-family: var(--serif);
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0;
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.7em; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 0 1.4rem; }
.faq-body p { margin: 0; }
.faq details[open] .faq-body { animation: faqin 0.35s ease; }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Submit (dark band) ---------- */
.submit { background: var(--ink); color: var(--cream); padding: var(--section) var(--gutter); }
.submit-inner { max-width: 46rem; margin: 0 auto; }
.submit .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.submit .btn:hover { background: transparent; color: var(--cream); }
.submit :focus-visible { outline-color: var(--cream); }
.ai-note {
  margin-top: 3rem; padding: 1.5rem 1.75rem;
  border: 1px solid var(--alien-line); border-left: 6px solid var(--accent-light);
  border-radius: 4px;
}
.ai-note h3 { margin-top: 0; }
.ai-note p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem var(--gutter); text-align: center; font-size: 0.95rem; }
.site-footer p { margin: 0 auto; max-width: none; }
.site-footer .footer-contact { margin-bottom: 0.5rem; }
.site-footer a { color: var(--accent); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin-bottom: 1rem; font-family: var(--serif-sc); font-size: 1.15rem; letter-spacing: 0.03em; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 10vw, 7rem) var(--gutter); text-align: center; }
.notfound img { margin: 0 auto 1.5rem; }
.notfound p { margin-inline: auto; }
.notfound .actions { justify-content: center; }

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-group > * { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.5s ease; }
html.js .reveal-group.in > * { opacity: 1; transform: none; }
html.js .reveal-group.in > :nth-child(2) { transition-delay: 0.1s; }
html.js .reveal-group.in > :nth-child(3) { transition-delay: 0.2s; }
html.js .reveal-group.in > :nth-child(4) { transition-delay: 0.3s; }
html.js .reveal-group.in > .genre:hover { transform: translateY(-6px); transition-delay: 0s; }
html.js .reveal-group.in > .craft:hover { transition-delay: 0s; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
  .craft-grid, .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-height: 60vh; }
  .why-grid, .shelf, .about-grid, .terms, .how-grid, .after-steps, .academia-grid { grid-template-columns: 1fr; }
  .news-card { grid-template-columns: 1fr; box-shadow: 6px 6px 0 var(--accent); }
  .shelf article { padding-top: 2.5rem; }
  .genre-lit, .genre-uncl, .genre-dark, .genre-spec { min-height: 25rem; }
  .origin { grid-template-columns: 1fr; }
  .origin-glyph { display: none; }
  .fairpay::after { height: 130%; right: -1rem; opacity: 0.1; }
}

@media (max-width: 800px) {
  .nav-news { display: none; }
}

@media (max-width: 680px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .site-header nav { font-size: 1.05rem; gap: 0.7rem; }
}

@media (max-width: 380px) {
  .site-header nav { font-size: 1rem; gap: 0.5rem; }
  .nav-cta { padding: 0.2em 0.7em; }
}

@media (max-width: 560px) {
  .craft-grid { grid-template-columns: 1fr; }
}



/* ---------- Reduced motion: everything visible, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .craft { transition: none; }
  .hero-art img, .hero-copy > *, .faq details[open] .faq-body { animation: none; }
  .ticker-track { animation: none; }
  .ticker { text-align: center; }
  .ticker-set + .ticker-set, .ticker-track > .ticker-set:nth-child(n+2) { display: none; }
  html.js .reveal, html.js .reveal-group > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Privacy ---------- */
.privacy { max-width: 82rem; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem) var(--gutter) var(--section); }
.privacy > * { max-width: 48rem; }
.privacy h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem); margin: 2.2rem 0 0.5rem; }
.privacy h2:first-child { margin-top: 0; }
.privacy p { margin: 0 0 1em; }
.privacy a { color: var(--accent); }
.privacy-co { margin-top: 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.page-intro .updated { color: var(--ink-soft); font-size: 0.95rem; }
