/* A4 magazines page (2026-11-11, second design: owner "this page looks horrendous ... have them featured on a wall").
   A wall of covers: each title is its cover, large, with the title, a chip per text and one line (pages, price, one button)
   for the chosen text. Phone width: two covers a row, 16 px gutter, no horizontal scroll. Colours follow the shop's theme. */
.mag-page { padding: 40px 16px 96px; max-width: 1360px; margin: 0 auto; box-sizing: border-box; }
.mag-page *, .mag-page *::before, .mag-page *::after { box-sizing: border-box; }
.mag-head { max-width: 760px; }
.mag-page .mag-head h1 { font-size: clamp(44px, 8vw, 84px); line-height: .95; margin: 0 0 20px; }
.mag-lede, .mag-ship { margin: 0 0 6px; max-width: 62ch; line-height: 1.5; }
.mag-ship { color: var(--tb-muted, inherit); font-size: 14px; }
.mag-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 32px 0 0; padding: 16px 0; border-top: 1px solid var(--tb-line, currentColor); border-bottom: 1px solid var(--tb-line, currentColor); }
.mag-search { flex: 1 1 220px; max-width: 320px; }
.mag-search input { width: 100%; min-height: 44px; padding: 0 16px; font: inherit; font-size: 15px; border: 1px solid var(--tb-line, currentColor); border-radius: 999px; background: transparent; color: inherit; }
.mag-search input:focus-visible { outline: 2px solid var(--tb-fg, currentColor); outline-offset: 2px; }
.mag-pick, .mag-texts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.mag-page .mag-chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--tb-line, currentColor); border-radius: 999px; background: transparent; color: inherit; font: 600 12px/1 var(--tb-ui, system-ui, sans-serif); letter-spacing: .04em; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.mag-page .mag-pick .mag-chip { min-height: 44px; padding: 0 18px; font-size: 13px; }
.mag-page .mag-chip:hover { border-color: var(--tb-fg, currentColor); }
.mag-page .mag-chip[aria-pressed="true"] { background: var(--tb-fg, #111); border-color: var(--tb-fg, #111); color: var(--tb-bg, #fff); }
.mag-page .mag-chip:focus-visible, .mag-page .mag-add:focus-visible { outline: 2px solid var(--tb-fg, currentColor); outline-offset: 2px; }
.mag-only { display: inline-flex; align-items: center; min-height: 32px; font: 600 12px/1 var(--tb-ui, system-ui, sans-serif); letter-spacing: .04em; color: var(--tb-muted, inherit); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mag-status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; }
.mag-group { margin: 40px 0 0; }
.mag-group[hidden] { display: none; }
.mag-page .mag-group h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; margin: 0 0 24px; }
.mag-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 48px 28px; }
.mag-card { display: flex; flex-direction: column; min-width: 0; }
.mag-card[hidden] { display: none; }
.mag-frame { margin: 0 0 16px; }
.mag-cover { display: block; width: 100%; height: auto; aspect-ratio: 480 / 679; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 14px 28px -12px rgba(0,0,0,.45); transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s cubic-bezier(.2,.7,.2,1); }
.mag-card:hover .mag-cover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 24px 36px -14px rgba(0,0,0,.5); }
.mag-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 10px; }
.mag-page .mag-body h3 { font-size: 22px; line-height: 1.1; margin: 0; }
.mag-opt { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mag-opt[hidden] { display: none; }
.mag-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; font-size: 14px; }
.mag-pages { color: var(--tb-muted, inherit); }
.mag-price { font-weight: 600; font-size: 16px; }
.mag-page .mag-add { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--tb-fg, currentColor); border-radius: 999px; background: transparent; color: inherit; font: 600 14px/1 var(--tb-ui, system-ui, sans-serif); cursor: pointer; transition: background-color .16s, color .16s; }
.mag-page .mag-add:hover { background: var(--tb-fg, #111); color: var(--tb-bg, #fff); }
@media (max-width: 520px) {
  .mag-page { padding-top: 24px; }
  .mag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .mag-page .mag-body h3 { font-size: 19px; }
  .mag-search { max-width: none; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .mag-cover, .mag-page .mag-chip, .mag-page .mag-add { transition: none; } .mag-card:hover .mag-cover { transform: none; } }
