/* GlamBon listing pages: homepage, sections, authors, topics.
   Fonts and the nav/footer come from gb-chrome.css. */
:root {
  --s-porcelain: #F4F2F6;
  --s-ink:       #1D1430;
  --s-ink-2:     #5B5168;   /* secondary text on porcelain: 7.4:1 */
  --s-rose:      #D4637A;
  --s-rose-deep: #B4485F;   /* rose for small text: 4.9:1 on porcelain */
  --s-blush:     #F7DDE2;
  --s-plum:      #2E1A3D;
  --s-line:      rgba(29, 20, 48, .12);
  --s-display: 'Bricolage Grotesque', 'Outfit', system-ui, sans-serif;
  --s-text:    'Outfit', system-ui, sans-serif;
  --s-gutter: clamp(1.25rem, 4vw, 3.5rem);
  --s-max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--s-porcelain); color: var(--s-ink); font: 400 1rem/1.6 var(--s-text); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--s-rose); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--s-max); margin: 0 auto; padding: 0 var(--s-gutter); }

.media { display: block; background: var(--s-blush); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
a:hover .media img { transform: scale(1.035); }

.tag { display: inline-flex; align-items: center; gap: .5em; font: 500 .82rem/1 var(--s-text); color: var(--tag, var(--s-rose-deep)); }
.tag::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
a.tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.tag-note { color: var(--s-ink-2); font-weight: 400; }
.meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .82rem; color: var(--s-ink-2); }

.section-title { font: 700 clamp(1.7rem, 3vw, 2.4rem)/1.05 var(--s-display); letter-spacing: -.02em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p { color: var(--s-ink-2); font-size: .95rem; }
.section-head a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--s-rose); }
.block { padding: 0 0 clamp(4rem, 8vw, 6.5rem); }

/* ── Cover: big image with an overlapping copy panel (homepage + section lead) ── */
.cover { padding: clamp(6rem, 11vw, 8.5rem) 0 clamp(3rem, 6vw, 5rem); }
.cover-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: end; }
.cover-media { grid-column: 1 / 9; grid-row: 1; align-self: stretch; min-height: clamp(520px, 78vh, 860px); width: 100%; border-radius: 0 0 0 clamp(48px, 9vw, 140px); }
.cover-copy { grid-column: 7 / 13; grid-row: 1; align-self: end; margin-top: clamp(4rem, 9vw, 8rem); position: relative; z-index: 2; background: var(--s-porcelain);
              padding: clamp(1.5rem, 3vw, 2.75rem) 0 clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 2.75rem); border-radius: clamp(20px, 3vw, 40px) 0 0 0; }
.cover-title { font: 800 clamp(2.3rem, 4.6vw, 4.4rem)/.96 var(--s-display); letter-spacing: -.035em; margin: 1rem 0 1.25rem; font-variation-settings: 'opsz' 96; text-wrap: balance; }
.cover-title a:hover { color: var(--s-rose-deep); }
.cover-dek { font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; color: var(--s-ink-2); max-width: 46ch; margin-bottom: 1.25rem; }
.cover-read { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.75rem; padding: .85rem 1.4rem; border-radius: 999px;
              background: var(--s-ink); color: var(--s-porcelain); font: 500 .95rem/1 var(--s-text); transition: background .25s; }
.cover-read:hover { background: var(--s-rose-deep); }
.cover-more { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(2rem, 4vw, 3rem); padding-top: clamp(1.5rem, 3vw, 2rem); border-top: 1px solid var(--s-line); }
.mini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 1rem; align-items: start; }
.mini .media { aspect-ratio: 1; border-radius: 14px; }
.mini h3 { font: 700 1.08rem/1.2 var(--s-display); letter-spacing: -.01em; margin-top: .45rem; }
.mini:hover h3 { color: var(--s-rose-deep); }
@media (prefers-reduced-motion: no-preference) {
  .cover-media img { animation: gb-unveil 1.2s cubic-bezier(.2,.7,.2,1) both; }
  .cover-copy > * { animation: gb-rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .cover-copy > :nth-child(2) { animation-delay: .08s; } .cover-copy > :nth-child(3) { animation-delay: .16s; }
  .cover-copy > :nth-child(4) { animation-delay: .24s; } .cover-copy > :nth-child(5) { animation-delay: .32s; }
  .cover-copy > :nth-child(6) { animation-delay: .4s; }
  @keyframes gb-unveil { from { clip-path: inset(0 0 100% 0); transform: scale(1.08); } to { clip-path: inset(0); transform: scale(1); } }
  @keyframes gb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ── Story cards ── */
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2.25rem); }
.story { display: block; }
.story h3 { font: 700 1.35rem/1.15 var(--s-display); letter-spacing: -.015em; margin: .7rem 0 .55rem; text-wrap: balance; }
.story:hover h3 { color: var(--s-rose-deep); }
.story p { color: var(--s-ink-2); font-size: .95rem; line-height: 1.6; margin-bottom: .75rem; }
.story .media { margin-bottom: .95rem; }
.story-wide { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.25rem, 3vw, 2.75rem); align-items: center; }
.story-wide .media { aspect-ratio: 16 / 10; border-radius: 0 clamp(28px, 5vw, 72px) 0 0; margin: 0; }
.story-wide h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.02; letter-spacing: -.03em; }
.story-wide p { font-size: 1.05rem; max-width: 46ch; }
.story-med { grid-column: span 6; }
.story-third { grid-column: span 4; }
.story-med .media, .story-third .media { aspect-ratio: 3 / 2; border-radius: 18px; }
.compact-list { grid-column: span 12; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 2.5vw, 2.25rem); border-top: 1px solid var(--s-line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--s-line); align-items: start; }
.row .media { aspect-ratio: 1; border-radius: 12px; }
.row h3 { font: 600 1.02rem/1.25 var(--s-display); margin-top: .45rem; }
.row:hover h3 { color: var(--s-rose-deep); }
.row .meta { margin-top: .5rem; font-size: .78rem; }

/* ── Page header for sections, authors, topics ── */
.page-head { padding: clamp(6.5rem, 12vw, 9rem) 0 clamp(2rem, 4vw, 3rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--s-ink-2); margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.crumbs a:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--s-line); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.page-title { font: 800 clamp(3rem, 9vw, 7.5rem)/.9 var(--s-display); letter-spacing: -.045em; font-variation-settings: 'opsz' 96; }
.page-title .dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--accent, var(--s-rose)); margin-left: .06em; vertical-align: baseline; }
.page-kicker { font: 500 .9rem/1 var(--s-text); color: var(--accent-text, var(--s-rose-deep)); margin-bottom: 1rem; display: inline-flex; gap: .5em; align-items: center; }
.page-tagline { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--s-ink-2); max-width: 52ch; margin-top: 1.25rem; }
.page-facts { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; font-size: .9rem; color: var(--s-ink-2); text-align: right; }
.page-facts strong { font: 800 2.2rem/1 var(--s-display); color: var(--s-ink); letter-spacing: -.03em; }
.page-facts a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--s-rose); }
.page-head .chips { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* ── Chips ── */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--s-line);
        font: 500 .95rem/1 var(--s-text); transition: background .2s, color .2s, border-color .2s; }
.chip small { font-size: .8rem; color: var(--s-ink-2); font-weight: 400; }
.chip:hover { background: var(--s-ink); color: var(--s-porcelain); border-color: var(--s-ink); }
.chip:hover small { color: #CFC2DA; }
.chip.series { background: var(--s-blush); border-color: transparent; }

/* ── Plum band (manifesto / about this section) ── */
.band { background: var(--s-plum); color: #EFE7F3; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.band blockquote, .band .band-title { font: 500 clamp(1.8rem, 3.6vw, 3.2rem)/1.08 var(--s-display); letter-spacing: -.025em; text-wrap: balance; }
.band blockquote b, .band .band-title b { font-weight: 800; color: #F2A5B5; }
.band p { color: #CFC2DA; font-size: 1rem; line-height: 1.75; max-width: 46ch; }
.band p + p { margin-top: 1rem; }
.band a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #F2A5B5; }
.band .count { color: #fff; font-weight: 500; }

/* ── Newsletter ── */
.letter { padding: 0 0 clamp(4rem, 8vw, 6rem); }
.letter-card { background: var(--s-blush); border-radius: 0 clamp(36px, 6vw, 90px) 0 clamp(36px, 6vw, 90px); padding: clamp(2rem, 5vw, 4rem);
               display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.letter h2 { font: 800 clamp(1.9rem, 3.4vw, 2.9rem)/1 var(--s-display); letter-spacing: -.03em; margin-bottom: .8rem; }
.letter p { color: var(--s-ink-2); max-width: 40ch; }
.letter form { display: flex; gap: .5rem; background: #fff; border-radius: 999px; padding: .4rem; border: 1px solid var(--s-line); }
.letter input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 1rem var(--s-text); color: var(--s-ink); padding: .7rem 1rem; }
.letter input::placeholder { color: #8C8296; }
.letter button { border: 0; border-radius: 999px; background: var(--s-ink); color: var(--s-porcelain); font: 500 .95rem var(--s-text); padding: .8rem 1.4rem; cursor: pointer; }
.letter button:hover { background: var(--s-rose-deep); }
.letter small { display: block; margin-top: .75rem; color: var(--s-ink-2); font-size: .8rem; }

/* ── Pagination ── */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 1rem; border-radius: 999px;
                        border: 1px solid var(--s-line); background: #fff; font: 500 .95rem/1 var(--s-text); transition: background .2s, color .2s; }
.pager a:hover { background: var(--s-ink); color: var(--s-porcelain); border-color: var(--s-ink); }
.pager span[aria-current] { background: var(--s-ink); color: var(--s-porcelain); border-color: var(--s-ink); }

.empty { padding: 3rem 0 5rem; color: var(--s-ink-2); font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .cover-grid { grid-template-columns: 1fr; }
  .cover-media, .cover-copy { grid-column: 1; grid-row: auto; }
  .cover-media { min-height: 0; height: auto; aspect-ratio: 4 / 3; border-radius: 0 0 0 64px; }
  .cover-copy { margin: -4.5rem 0 0 clamp(1rem, 6vw, 4rem); padding-right: 0; align-self: auto; }
  .compact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-third { grid-column: span 6; }
  .story-third:nth-child(3):last-child { grid-column: span 12; }
  .band-grid, .letter-card { grid-template-columns: 1fr; }
  .page-head-grid { grid-template-columns: 1fr; }
  .page-facts { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; text-align: left; }
}
@media (max-width: 680px) {
  .cover { padding-top: 5rem; }
  .cover-media { border-radius: 0 0 0 40px; }
  .cover-copy { margin: -2.5rem 0 0 1rem; padding: 1.4rem 0 0 1.25rem; border-radius: 22px 0 0 0; }
  .cover-more { grid-template-columns: 1fr; }
  .mini { grid-template-columns: 76px minmax(0, 1fr); }
  .story-wide { grid-template-columns: 1fr; }
  .story-med, .story-third, .story-third:nth-child(3):last-child { grid-column: span 12; }
  .compact-list { grid-template-columns: 1fr; }
  .letter form { flex-direction: column; border-radius: 20px; }
  .letter button { width: 100%; }
  .section-head { flex-direction: column; gap: .4rem; }
}
