/* Yabot – site styles. Themes: .theme-yabot (sv + en) and .theme-giallo (Giallo e Blu). */

@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Jost"; src: url(../fonts/jost-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url(../fonts/literata-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Literata"; src: url(../fonts/literata-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Literata"; src: url(../fonts/literata-latin-wght-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC; }
@font-face { font-family: "Literata"; src: url(../fonts/literata-latin-ext-wght-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/big-shoulders-display-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Big Shoulders Display"; src: url(../fonts/big-shoulders-display-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Alfa Slab One"; src: url(../fonts/alfa-slab-one-latin-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Alfa Slab One"; src: url(../fonts/alfa-slab-one-latin-ext-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+1E00-1E9F; }

:root {
  --ink: #1d2433;
  --ink-2: #2b3447;
  --paper: #e9e6df;          /* newsprint */
  --paper-2: #f1efe9;        /* lighter newsprint for boxes */
  --mist: #dfdbd2;
  --muted: #5b6577;
  --gold: #c7a55a;          /* logo gold – decoration and large type */
  --gold-ink: #7a5a16;      /* gold that passes contrast on newsprint */
  --sky: #9cc1f0;           /* logo blue – everything that plays */
  --sky-ink: #2c5c9c;
  --hero-bg: var(--mist);
  --band-bg: var(--ink);
  --band-fg: #f4f6fa;
  --display: "Big Shoulders Display", "Oswald", Impact, sans-serif;
  --display-weight: 800;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --ui: "Jost", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 3px;
  --cover-shadow: 0 1px 2px rgba(29, 36, 51, .18), 0 10px 24px -8px rgba(29, 36, 51, .35);
  --line: #bdb8ac;
  color-scheme: light;
}

.theme-giallo {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --ink: #000000;
  --ink-2: #1a1a1a;
  --mist: #fff6cc;
  --line: #ecd77d;
  --muted: #4a4a4a;
  --gold: #f7c51e;
  --gold-ink: #000000;
  --sky: #f7c51e;
  --sky-ink: #1c5fb8;
  --hero-bg: #f7c51e;
  --band-bg: #1c5fb8;
  --band-fg: #ffffff;
  --display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --display-weight: 400;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--ui);
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 3px solid var(--sky-ink); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.kicker { font-family: var(--ui); font-weight: 500; color: var(--gold-ink); margin-bottom: .3em; }
.kicker a { text-decoration: none; }
.lead { font-family: var(--text); font-size: 1.2rem; line-height: 1.55; max-width: 38em; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.logo img { width: 112px; height: auto; }
.theme-giallo .logo img { width: 52px; }
.logo-word { font-family: var(--display); font-size: 1.35rem; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }
.site-nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.lang-switch { gap: .2rem !important; font-size: .8125rem; letter-spacing: .04em; }
.lang-switch a { display: inline-block; padding: .3rem .45rem !important; border: 1px solid transparent !important; border-radius: var(--radius); color: var(--muted); }
.lang-switch a[aria-current] { color: var(--ink); border-color: var(--line) !important; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; width: 44px; height: 44px; border: 0; background: none; position: relative; cursor: pointer; }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s;
  }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { top: -7px; left: 0; }
  .nav-toggle span:first-child::after { top: 7px; left: 0; }
  .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
  .nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(1rem, 4vw, 2rem) 1.2rem; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: .75rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .lang-switch { flex-direction: row !important; margin-top: .8rem; }
  .lang-switch a { font-size: .9375rem; padding: .5rem .8rem !important; }
}

/* ---------- play buttons (the one loud thing) ---------- */
.play, .play-wide, .player-toggle {
  --p: 0;
  border: 0; cursor: pointer; color: var(--ink); background: var(--sky);
  display: inline-grid; place-items: center; font: inherit;
}
.play svg, .play-wide svg, .player-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.ic-pause { display: none; }
.is-playing .ic-play { display: none; }
.is-playing .ic-pause { display: block; }
.play {
  position: absolute; left: .55rem; bottom: .55rem; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
  background: conic-gradient(var(--ink) calc(var(--p) * 1turn), var(--sky) 0);
}
.play::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--sky); }
.play svg { position: relative; }
.play:hover::before { background: #b7d3f6; }
.theme-giallo .play:hover::before { background: #ffd94d; }
.play-wide {
  grid-auto-flow: column; gap: .6rem; padding: .8rem 1.3rem .8rem 1rem; border-radius: 999px; font-weight: 550; font-size: 1rem;
  background: linear-gradient(90deg, #7fb0ee calc(var(--p) * 100%), var(--sky) 0);
}
.theme-giallo .play-wide { background: linear-gradient(90deg, #e0ad00 calc(var(--p) * 100%), var(--sky) 0); }
.play-wide:hover { filter: brightness(1.04); }

/* ---------- buttons ---------- */
.btn, .btn-line {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; font-weight: 550; text-decoration: none; line-height: 1.2;
  border: 1.5px solid var(--ink); font-family: var(--ui); font-size: 1rem; cursor: pointer;
}
.btn { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--ink-2); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: rgba(0, 0, 0, .05); }

/* ---------- hero ---------- */
.hero { background: var(--hero-bg); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero-intro { font-size: 1.0625rem; color: var(--muted); max-width: 34em; margin-bottom: 2.2rem; }
.theme-giallo .hero-intro { color: var(--ink); font-family: var(--text); font-size: 1.15rem; }
.hero-logo { width: 150px; margin-bottom: 1.5rem; }
.hero-series { font-weight: 500; color: var(--gold-ink); margin-bottom: .4rem; }
.hero-series a { text-decoration: none; }
.hero-title { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); margin-bottom: .3em; }
.hero-title a { text-decoration: none; }
.hero-author { font-family: var(--text); font-style: italic; font-size: 1.25rem; margin-bottom: 1.2rem; }
.hero-author a { text-decoration: none; }
.hero-blurb { font-family: var(--text); font-size: 1.125rem; line-height: 1.6; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.6rem; }
.hero-cover { justify-self: center; width: min(100%, 400px); }
.hero-cover img { width: 100%; box-shadow: 0 2px 4px rgba(29, 36, 51, .2), 0 30px 60px -20px rgba(29, 36, 51, .55); border-radius: 2px; }
.theme-giallo .hero-cover img { box-shadow: 14px 14px 0 var(--ink); }
.theme-giallo .play-wide, .theme-giallo .hero .play-wide { background: var(--ink); color: #fff; }
.theme-giallo .hero .btn-line { border-color: var(--ink); }
@media (max-width: 760px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-cover { order: -1; width: 58%; max-width: 260px; justify-self: start; }
}

/* ---------- blocks ---------- */
.block { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.block + .block:not(.listen-band) { padding-top: 0; }
.listen-band + .block { padding-top: clamp(2.5rem, 5vw, 4rem) !important; }
.block-tight { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.more { font-weight: 500; white-space: nowrap; }
.section-h { margin-top: 2.5rem; }

/* ---------- book cards ---------- */
.grid { display: grid; gap: 2rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-row .card:nth-child(n+6) { display: none; }
@media (max-width: 900px) {
  .grid-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .8rem; }
  .grid-row .card:nth-child(n+6) { display: block; }
  .grid-row .card { scroll-snap-align: start; }
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; } .grid-row { grid-template-columns: none; grid-auto-columns: 46%; } }
.card { min-width: 0; }
.card-cover { position: relative; margin-bottom: .75rem; aspect-ratio: 13 / 20; background: var(--mist); border-radius: 2px; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; box-shadow: var(--cover-shadow); }
.card-title { font-family: var(--ui); font-weight: 560; font-size: 1rem; line-height: 1.3; margin: 0 0 .15rem; letter-spacing: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.card-author { font-family: var(--text); font-style: italic; font-size: .9375rem; color: var(--muted); margin: 0; }
.lang-tag { position: absolute; top: .45rem; right: .45rem; background: var(--paper); color: var(--ink); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; padding: .15rem .35rem; border-radius: 2px; }
.badge { display: inline-block; font-size: .8125rem; font-weight: 550; padding: .15rem .55rem; border-radius: 999px; margin-top: .4rem; }
.badge-soon { background: var(--gold); color: #1d1606; }
.badge-gone { background: var(--line); color: var(--muted); }

/* ---------- listening band ---------- */
.listen-band { background: var(--band-bg); color: var(--band-fg); }
.listen-band .more { color: var(--band-fg); }
.tracklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 2.5rem; }
.track { display: grid; grid-template-columns: auto auto 1fr; gap: 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tracklist-full .track { border-bottom-color: var(--line); }
.track .play { position: relative; left: auto; bottom: auto; width: 44px; height: 44px; box-shadow: none; }
.track img { width: 44px; border-radius: 2px; }
.track-meta { min-width: 0; display: flex; flex-direction: column; }
.track-meta a { font-weight: 560; text-decoration: none; }
.track-meta a:hover { text-decoration: underline; }
.track-meta span { font-family: var(--text); font-style: italic; font-size: .9375rem; opacity: .78; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track.is-current .track-meta a { color: var(--sky); }
.tracklist-full .track.is-current .track-meta a { color: var(--sky-ink); }
.theme-giallo .listen-band .play { color: var(--ink); }
@media (max-width: 760px) { .tracklist { grid-template-columns: 1fr; } }

/* ---------- genres ---------- */
.genre-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.genre-cloud a { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 500; }
.genre-cloud a:hover { border-color: var(--ink); }
.genre-cloud span { color: var(--muted); font-weight: 400; margin-left: .15rem; }

/* ---------- news ---------- */
.news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .news-list { grid-template-columns: 1fr; } }
.news-teaser { border-top: 2px solid var(--ink); padding-top: 1rem; }
.news-teaser time, .news-row time { font-size: .875rem; color: var(--muted); }
.news-teaser h3 { margin: .3rem 0 .5rem; font-size: 1.2rem; }
.news-teaser h3 a, .news-row h2 a { text-decoration: none; }
.news-teaser p { font-family: var(--text); font-size: .975rem; color: var(--muted); }
.news-row { padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.news-row h2 { font-size: 1.4rem; margin: .2rem 0 .5rem; }
.news-row p { font-family: var(--text); margin: 0; }

/* ---------- page heads & catalog ---------- */
.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; }
.page-head h1 { margin-bottom: .2rem; }
.count { color: var(--muted); margin: 0; }
.filters { display: grid; gap: 1rem; margin-bottom: 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.search input {
  width: 100%; max-width: 30rem; font: inherit; font-size: 1.0625rem; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.search input:focus { border-color: var(--ink); outline: none; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chips legend { float: left; margin-right: .5rem; font-size: .9375rem; color: var(--muted); }
.chips button { font: inherit; font-weight: 500; font-size: .9375rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chips-small button { padding: .3rem .75rem; font-size: .875rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.toggle { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; font-size: .9375rem; }
.toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.sort { margin-left: auto; font-size: .9375rem; color: var(--muted); display: inline-flex; gap: .5rem; align-items: center; }
.sort select { font: inherit; color: var(--ink); padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card[hidden] { display: none !important; }
.no-results { font-family: var(--text); font-size: 1.1rem; padding: 2rem 0; }

/* ---------- book page ---------- */
.book { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.book-in { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.book-aside { position: sticky; top: 1.5rem; }
.book-cover { width: 100%; border-radius: 2px; box-shadow: 0 2px 4px rgba(29, 36, 51, .2), 0 24px 50px -18px rgba(29, 36, 51, .5); }
.theme-giallo .book-cover { box-shadow: 10px 10px 0 var(--ink); }
.book-listen { margin-top: 1.5rem; }
.book-listen .play-wide { width: 100%; justify-content: center; }
.narrator { font-family: var(--text); font-style: italic; color: var(--muted); margin: .6rem 0 0; text-align: center; font-size: .9375rem; }
.book-series { font-weight: 500; color: var(--gold-ink); margin-bottom: .4rem; }
.book-series a { text-decoration: none; }
.book-series span { color: var(--muted); }
.book-title { margin-bottom: .25rem; }
.book-subtitle { font-family: var(--text); font-size: 1.25rem; }
.book-author { font-family: var(--text); font-style: italic; font-size: 1.3rem; margin-bottom: .6rem; }
.book-author a { text-decoration-color: var(--line); }
.book-text { margin-top: 1.8rem; }
@media (max-width: 760px) {
  .book-in { grid-template-columns: 1fr; }
  .book-aside { position: static; display: grid; grid-template-columns: 40% 1fr; gap: 1.2rem; align-items: end; }
  .book-listen { margin: 0; }
}

.prose { font-family: var(--text); font-size: 1.125rem; line-height: 1.7; max-width: 36em; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose img { margin: 1.5rem 0; border-radius: 2px; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose iframe { max-width: 100%; border: 0; margin: 1rem 0; }
.prose a { text-decoration-color: var(--gold); }

.buy { margin: 2.2rem 0; }
.buy h2, .facts h2 { font-size: 1.25rem; font-family: var(--ui); font-weight: 600; letter-spacing: 0; }
.buy-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.publit { margin-top: 1.2rem; }

.quotes { display: grid; gap: 1.6rem; margin: 2.5rem 0; max-width: 36em; }
.quote { margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--gold); }
.quote blockquote { margin: 0; font-family: var(--text); font-style: italic; font-size: 1.1875rem; line-height: 1.55; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-top: .5rem; font-size: .9375rem; color: var(--muted); }

.facts { margin: 2.5rem 0 1rem; max-width: 40em; }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl > div { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .facts dl > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ---------- authors ---------- */
.author-list { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 2rem; }
.author-list a { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.author-list img, .author-list .initial { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-list .initial { display: grid; place-items: center; background: var(--mist); font-family: var(--display); font-size: 1.25rem; color: var(--gold-ink); }
.author-name { font-weight: 560; }
.author-list .muted { font-size: .875rem; }
.author-list a:hover .author-name { text-decoration: underline; text-decoration-color: var(--gold); }
.author-head-in { display: flex; gap: 1.6rem; align-items: center; }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.author-bio { margin-bottom: 1rem; }
.link-list { list-style: none; padding: 0; display: flex; gap: 1rem; }

/* ---------- articles ---------- */
.article { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 3rem; }
.article time { display: block; margin-bottom: 1.5rem; }
.listen-head .btn { margin-top: .5rem; }
.listen-extra { margin: 3rem 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--mist); margin-top: clamp(3rem, 6vw, 5rem); padding: 3rem 0 6.5rem; font-size: .9375rem; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-in p { margin: 0 0 .4rem; }
.footer-h { font-family: var(--ui); font-size: .9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: .6rem; }
.footer-brand img { width: 96px; margin-bottom: .8rem; }
.footer-name { font-family: var(--display); font-size: 1.4rem; }
@media (max-width: 760px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- player ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #f4f6fa; box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.player[hidden] { display: none; }
.player-in { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding-top: .6rem; padding-bottom: .6rem; }
.player-cover { width: 34px; height: 52px; object-fit: cover; border-radius: 2px; }
.player-toggle { width: 46px; height: 46px; border-radius: 50%; }
.player-meta { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.player-title { font-weight: 560; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-family: var(--text); font-style: italic; font-size: .875rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar { display: flex; gap: .8rem; align-items: center; }
.player-bar input { flex: 1; accent-color: var(--sky); height: 18px; margin: 0; }
.player-time { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: .8; min-width: 5.5em; text-align: right; }
.player-close { background: none; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; width: 44px; height: 44px; cursor: pointer; }
.theme-giallo .player { background: #000; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Giallo e Blu header ---------- */
.theme-giallo .site-header { background: #000; color: #fff; border-bottom: 0; }
.theme-giallo .logo-word { color: var(--gold); }
.theme-giallo .site-nav a:hover { border-bottom-color: var(--gold); }
.theme-giallo .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.theme-giallo .lang-switch a { color: #bdbdbd; }
.theme-giallo .lang-switch a[aria-current] { color: #fff; border-color: #555 !important; }
.theme-giallo .nav-toggle span:first-child, .theme-giallo .nav-toggle span:first-child::before, .theme-giallo .nav-toggle span:first-child::after { background: #fff; }
.theme-giallo .nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
@media (max-width: 860px) { .theme-giallo .site-nav { background: #000; } .theme-giallo .site-nav a { border-bottom-color: #333; } }
.theme-giallo .hero-title { letter-spacing: 0; }
.theme-giallo .site-footer { background: #000; color: #fff; }
.theme-giallo .site-footer a { color: #fff; }
.theme-giallo .footer-name { color: var(--gold); }
@media (max-width: 760px) {
  .book-listen .play-wide { border-radius: 14px; padding: .8rem 1rem; justify-content: start; text-align: left; }
  .theme-giallo .hero-logo { display: none; }
}

/* =====================================================================
   Kiosken – header payoff, masthead and front page
   ===================================================================== */
.theme-yabot .logo { margin-right: 0; }
.payoff {
  margin: 0 auto 0 0; padding-left: 1rem; border-left: 1px solid var(--line);
  font-family: var(--text); font-style: italic; font-size: 1.0625rem; color: var(--ink); white-space: nowrap;
}
.theme-yabot .site-header { border-bottom: 0; }
.theme-yabot .site-nav a { font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: .02em; }
@media (max-width: 860px) { .payoff { font-size: .9375rem; } }
@media (max-width: 420px) { .theme-yabot .logo img { width: 86px; } .payoff { font-size: .8125rem; padding-left: .6rem; } }

.masthead-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); padding-top: .35rem; padding-bottom: .6rem; }
.masthead-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 16vw, 15.5rem); line-height: .8; letter-spacing: -.01em; color: var(--ink); }
.masthead-title .accent { color: var(--gold-ink); }
.masthead-side { text-align: right; padding-bottom: .8rem; }
.masthead-issue { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--gold-ink); }
.masthead-sub { margin: .25rem 0 0; font-family: var(--text); font-style: italic; font-size: 1.125rem; line-height: 1.45; }
.home .site-header + main { margin-top: 0; }

.kiosk-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .9fr); gap: clamp(1.5rem, 3.5vw, 2.8rem);
  align-items: start; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.coverlines { display: flex; flex-direction: column; gap: 1.8rem; padding-top: .6rem; }
.coverline + .coverline { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.coverline-head { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 2.8vw, 2.75rem); line-height: .95; text-transform: uppercase; letter-spacing: .005em; }
.coverline-head a { text-decoration: none; }
.coverline-head a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gold); }
.coverline-gold .coverline-head { color: var(--gold-ink); }
.coverline-sub { margin: .6rem 0 0; font-family: var(--text); font-size: 1rem; line-height: 1.5; }

.cover-story { margin: 0; }
.cover-stack { position: relative; }
.halftone { position: absolute; inset: 26px -22px -22px 26px; background-image: radial-gradient(rgba(199,165,90,.6) 1.1px, transparent 1.3px); background-size: 7px 7px; }
.cover-main { position: relative; display: block; z-index: 2; }
.cover-main img { width: 100%; aspect-ratio: 13 / 20; object-fit: cover; box-shadow: 0 24px 50px -20px rgba(29,36,51,.7); }
.cover-stack.has-fan { padding: 0 14%; }
.fan { position: absolute; top: 8%; width: 46%; aspect-ratio: 13 / 20; object-fit: cover; box-shadow: 0 18px 36px -16px rgba(29,36,51,.7); z-index: 1; }
.fan-0 { left: 0; transform: rotate(-7deg); }
.fan-1 { right: 0; transform: rotate(6deg); }
.sticker { position: absolute; z-index: 3; top: -24px; right: -22px; width: 124px; height: 124px; border-radius: 50%; background: var(--gold); color: var(--ink);
  display: grid; place-items: center; text-align: center; padding: 14px; box-sizing: border-box;
  font-family: var(--display); font-weight: 900; font-size: 1.75rem; line-height: .9; transform: rotate(9deg); }
.cover-story figcaption { position: relative; margin-top: 2rem; }
.cover-series { margin: 0 0 .3rem; font-family: var(--display); font-weight: 700; font-size: 1.4rem; color: var(--gold-ink); }
.cover-series a { text-decoration: none; }
.cover-title { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 4.6vw, 4rem); line-height: .9; }
.cover-title a { text-decoration: none; }
.cover-byline { margin: .6rem 0 .9rem; font-family: var(--text); font-style: italic; font-size: 1.15rem; }
.cover-byline a { text-decoration-color: var(--line); }
.cover-hook { margin: 0 0 .6rem; font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.cover-blurb { margin: 0 0 1.3rem; font-family: var(--text); font-size: 1.0625rem; line-height: 1.6; }
.kiosk-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* Kiosk buttons: square, printed */
.theme-yabot .btn, .theme-yabot .btn-line { border-radius: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em; padding: .7rem 1.3rem; }
.theme-yabot .play-wide { border-radius: 0; font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .02em;
  color: #fff; background: linear-gradient(90deg, #3a4a68 calc(var(--p) * 100%), var(--ink) 0); padding: .8rem 1.4rem .8rem 1.1rem; }
.theme-yabot .play-wide svg { fill: var(--sky); }

.kiosk-list { border: 2px solid var(--ink); background: var(--paper-2); padding: 1.3rem 1.4rem 1.2rem; }
.kiosk-list h2 { margin: 0 0 .7rem; font-size: 2.1rem; font-weight: 900; }
.kiosk-list ol { list-style: none; margin: 0; padding: 0; }
.kiosk-list li { display: grid; grid-template-columns: 4.4rem 1fr; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); line-height: 1.35; }
.kiosk-list li a { font-family: var(--text); font-weight: 600; text-decoration: none; }
.kiosk-list li a:hover { text-decoration: underline; }
.kl-date { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--gold-ink); }
.kl-author { font-family: var(--text); font-style: italic; font-size: .9375rem; }
.kl-all { display: inline-block; margin-top: .8rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

@media (max-width: 1060px) {
  .kiosk-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cover-story { grid-column: 1 / -1; grid-row: 1; max-width: 560px; }
}
@media (max-width: 680px) {
  .kiosk-in { grid-template-columns: 1fr; }
  .masthead-side { text-align: left; }
  .sticker { width: 96px; height: 96px; font-size: 1.35rem; right: -8px; }
}

.rack { background: var(--ink); color: var(--paper); padding: 3.4rem 0 3.8rem; }
.rack-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 1.7rem; }
.rack-head h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 3.5rem); font-weight: 900; color: var(--gold); }
.rack-head p { margin: 0; font-family: var(--text); font-style: italic; font-size: 1.1rem; max-width: 34em; }
.rack-head a { color: var(--paper); }
.rack-row { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 1.4rem; border-bottom: 4px solid var(--gold); padding-bottom: 1.1rem; }
.rack-item { position: relative; }
.rack-item img { width: 100%; aspect-ratio: 13 / 20; object-fit: cover; box-shadow: 0 10px 22px -10px rgba(0,0,0,.6); }
@media (max-width: 900px) { .rack-row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; overflow-x: auto; scroll-snap-type: x mandatory; } .rack-item { scroll-snap-align: start; } }

.footer-mast { font-family: var(--display); font-weight: 900; font-size: 3rem; line-height: .9; margin-bottom: .4rem !important; }

/* Giallo e Blu: the "edicola" */
.theme-giallo .masthead { background: var(--gold); }
.theme-giallo .masthead-in { border-top: 0; border-bottom: 8px solid #000; padding-top: 1.6rem; }
.theme-giallo .masthead-title { font-family: "Alfa Slab One", Rockwell, serif; font-weight: 400; font-size: clamp(4.2rem, 11vw, 10rem); line-height: .9; }
.theme-giallo .masthead-title .accent { color: var(--sky-ink); }
.theme-giallo .masthead-sub { font-size: 1.25rem; }
.edicola { background: var(--gold); }
.edicola-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: 3.5rem; padding-bottom: 4.5rem; }
.edicola-disc { position: relative; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 8px solid #000; display: grid; place-items: center; }
.edicola-disc img { width: 50%; margin: 0 auto; aspect-ratio: 13 / 20; object-fit: cover; box-shadow: 12px 12px 0 #000; }
.edicola-disc a { display: contents; }
.edicola-sticker { position: absolute; bottom: 6%; right: 2%; background: var(--sky-ink); color: #fff; padding: .7rem 1.1rem; font-family: var(--display); font-size: 1.35rem; transform: rotate(-6deg); }
.edicola-series { margin: 0 0 .5rem; font-family: var(--display); font-size: 1.5rem; color: var(--sky-ink); }
.edicola-series a { text-decoration: none; }
.edicola-title { margin: 0; font-size: clamp(3rem, 5.4vw, 4.9rem); line-height: .95; }
.edicola-title a { text-decoration: none; }
.edicola-author { margin: 1rem 0 1.3rem; font-family: var(--text); font-style: italic; font-size: 1.3rem; }
.edicola-hook { margin: 0 0 1rem; font-family: var(--display); font-size: 1.9rem; line-height: 1.1; }
.edicola-blurb { margin: 0 0 1.7rem; font-family: var(--text); font-size: 1.15rem; line-height: 1.6; max-width: 32em; }
.theme-giallo .kiosk-actions .btn { border-radius: 0; font-family: var(--display); background: #000; color: var(--gold); border-color: #000; }
.theme-giallo .kiosk-actions .play-wide { border-radius: 0; font-family: var(--display); font-weight: 400; }
.theme-giallo .rack { background: var(--sky-ink); }
.theme-giallo .rack-head h2 { color: var(--gold); }
@media (max-width: 760px) { .edicola-in { grid-template-columns: 1fr; } .edicola-disc { max-width: 420px; } }

.masthead-long { font-size: clamp(4.2rem, 11.5vw, 11rem); }
.theme-giallo .masthead-long { font-size: clamp(4rem, 10vw, 9.5rem); }
.masthead-side { margin-left: auto; }
.home .site-footer { margin-top: 0; }
.theme-yabot .home .site-footer, .theme-yabot .site-footer { border-top: 6px solid var(--ink); }
