/*
  Site styles for the themed pages (everything except the two book pages).

  Colours: never write a hex value here. The page template sets these CSS variables from
  Site settings (see core/palette.py):
    --ocean --forest --orange                       the 3 palette colours
    --band --panel --navy --hover                   darker / lighter blues
    --zone-deep --zone-light                        section band backgrounds
    --ocean-tint --ocean-soft --forest-tint --orange-tint   light tints
    --orange-deep                                   button shadow
*/

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: Nunito, system-ui, sans-serif;
  line-height: 1.5;
  color: #FFFFFF;
  background: var(--ocean);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }  /* keeps the footer at the bottom on short pages */
img { max-width: 100%; }
h1, h2, h3, .display {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  margin: 0;
}
a { color: var(--orange-tint); }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: #FFFFFF; color: var(--navy); font-weight: 800;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- Admin preview banner ---------- */
.admin-banner { background: var(--navy); color: var(--ocean-soft); font-size: 14px; }
.admin-banner .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.admin-banner a { font-weight: 800; }

/* ---------- Top band, header and menu ---------- */
.band { background: var(--band); border-radius: 0 0 56px 56px; margin-bottom: 48px; }
.band.tight { margin-bottom: 40px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; transform: rotate(-6deg);
}
.brand-name { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }

.menu { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--ocean); padding: 6px; border-radius: 999px; }
.menu a { padding: 11px 16px; border-radius: 999px; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 15px; }
.menu a:hover { background: var(--hover); color: #FFFFFF; }
.menu a[aria-current="page"] { padding: 11px 18px; background: var(--orange); font-weight: 800; }
.menu a.cart { padding: 11px 18px; background: var(--forest); font-weight: 800; }

/* ---------- Page title area inside the band (inner pages) ---------- */
.page-hero { position: relative; padding-top: 40px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.page-hero h1 { font-size: clamp(56px, 8vw, 96px); letter-spacing: -3.5px; line-height: 0.92; }
.page-hero p { margin: 0; font-size: 21px; line-height: 1.5; color: var(--ocean-soft); max-width: 560px; }

/* ---------- Landing page hero ---------- */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 96px; }
.hero-text { position: relative; flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: 0.95; letter-spacing: -3px; }
.hero-text p { margin: 0; font-size: 21px; line-height: 1.55; color: var(--ocean-soft); max-width: 520px; }
.hero-books { position: relative; flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 8px; }
.hero-books .lift { transform: translateY(-30px); }

/* ---------- Meet the author ---------- */
.about { padding-top: 72px; padding-bottom: 110px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about .photo-wrap { position: relative; flex: 0 1 360px; min-width: 0; }
.about .photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 48% 52% 44% 56% / 40% 42% 58% 60%; background: var(--panel); }
.about .sticker { position: absolute; right: -6px; bottom: 28px; }
.about .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about h2 { font-size: clamp(44px, 6vw, 64px); letter-spacing: -2px; line-height: 1; }
.about p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--ocean-soft); }

/* ---------- Text pages (policies, contact) ---------- */
.prose { max-width: 760px; padding-top: 8px; padding-bottom: 96px; }
.prose h2 { font-size: 30px; letter-spacing: -0.5px; margin: 40px 0 12px; }
.prose p, .prose address { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: var(--ocean-soft); font-style: normal; }
.prose .updated { font-size: 15px; }
.contact-card { padding: 32px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.contact-card h2 { margin: 0 0 4px; font-size: 26px; }

/* ---------- Cart and checkout ---------- */
.cart-hero { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cart-hero-text { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cart-hero .ghost { position: relative; }
.cart-layout { padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cart-messages { flex-basis: 100%; background: var(--navy); border-left: 6px solid var(--orange-tint); border-radius: 16px; padding: 14px 20px; font-weight: 700; }
.cart-messages p { margin: 0; }
.cart-empty { flex: 1 1 100%; padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty h2 { font-size: 34px; }
.cart-empty p { margin: 0; color: var(--ocean-soft); font-size: 18px; }
.cart-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 16px 22px 16px 16px; border-radius: 28px; background: var(--panel); }
.cart-line.has-problem { box-shadow: inset 0 0 0 3px var(--orange-tint); }
.cart-line img { width: 72px; aspect-ratio: 5 / 8; object-fit: cover; border-radius: 6px; box-shadow: 6px 8px 16px rgba(10, 34, 60, 0.55); }
.cart-line-name { flex: 1 1 200px; min-width: 0; }
.cart-line-name p { margin: 0; }
.cart-line-name .display { font-size: 24px; }
.cart-line-name .sub { margin-top: 4px; color: var(--ocean-soft); font-weight: 600; }
.cart-line-name .problem { margin-top: 4px; color: var(--orange-tint); font-weight: 800; }
.cart-qty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.cart-qty label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cart-qty input { width: 70px; padding: 11px 14px; border: none; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; color: #14161A; }
.cart-qty .price { margin: 0; font-weight: 800; font-size: 18px; min-width: 80px; text-align: right; }
.link-button { padding: 10px 14px; border: none; border-radius: 999px; background: transparent; color: var(--orange-tint); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.link-button:hover { color: #FFFFFF; }

.checkout-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.checkout-form h2, .pay-methods legend { font-size: clamp(28px, 4vw, 34px); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 800; font-size: 15px; }
.field input, .field textarea {
  padding: 15px 20px; border: 2px solid transparent; border-radius: 18px; font: inherit; font-size: 16px;
  color: #14161A; background: #FFFFFF; width: 100%;
}
.field textarea { resize: vertical; }
.field.has-error input, .field.has-error textarea { border-color: var(--orange-tint); }
.field-error { margin: 0; color: var(--orange-tint); font-weight: 800; font-size: 14px; }
.field-error ul { margin: 0; padding-left: 18px; }
.small-print { margin: 0; font-size: 13px; color: var(--ocean-soft); line-height: 1.5; }
.pay-methods { border: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pay-methods legend { padding: 0; margin-bottom: 14px; }
.pay-method { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 22px; cursor: pointer; background: var(--navy); }
.pay-method:has(input:checked) { background: var(--hover); box-shadow: inset 0 0 0 3px var(--orange-tint); }
.pay-method input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; }
.pay-method span { display: flex; flex-direction: column; }
.pay-method strong { font-size: 17px; }
.pay-method small { font-size: 14px; color: var(--ocean-soft); }

.cart-summary { position: relative; flex: 1 1 320px; min-width: 0; background: var(--navy); border-radius: 36px; padding: 30px; display: flex; flex-direction: column; gap: 16px; overflow: hidden; }
.cart-summary h2 { position: relative; font-size: 28px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; color: var(--ocean-soft); font-weight: 600; }
.sum-row strong { color: #FFFFFF; font-weight: 800; }
.sum-total { border-top: 2px dashed var(--hover); padding-top: 16px; display: flex; justify-content: space-between; font-family: "Bricolage Grotesque", sans-serif; font-size: 26px; font-weight: 800; }
.pay-button { font-size: 18px; padding: 18px; text-align: center; }

/* Payment and order pages */
.order-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.order-card h2 { font-size: 28px; }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; color: var(--ocean-soft); font-weight: 600; }
.order-items li strong { color: #FFFFFF; }
.test-payment { border: 2px dashed var(--orange-tint); border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Page title with a button on the right (comics, reader) ---------- */
.hero-with-action { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-with-action-text { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-with-action > .pill, .hero-with-action > .ghost { position: relative; }

/* ---------- Comics list ---------- */
.comics-browse { padding-bottom: 64px; display: flex; flex-direction: column; gap: 22px; }
.comics-toolbar { background: var(--panel); border-radius: 32px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.comics-search { flex: 1 1 320px; min-width: 0; position: relative; color: var(--navy); }
.comics-search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.comics-search input { width: 100%; padding: 15px 20px 15px 52px; border: none; border-radius: 999px; font: inherit; font-size: 16px; color: #14161A; }
.comics-sort { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; padding-left: 6px; }
.comics-sort select { padding: 13px 16px; border: none; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); background: #FFFFFF; }
.small-ghost { padding: 11px 20px; font-size: 15px; }
.view-toggle { display: flex; gap: 4px; background: var(--navy); border-radius: 999px; padding: 4px; margin-left: auto; }
.view-toggle a { width: 46px; height: 46px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.view-toggle a[aria-current] { background: var(--orange); }
.comics-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 11px 18px; border-radius: 999px; background: var(--panel); color: #FFFFFF; font-weight: 700; font-size: 15px; text-decoration: none; }
.filter-chip:hover { color: #FFFFFF; background: var(--hover); }
.filter-chip[aria-current] { background: var(--orange); font-weight: 800; }
.comics-count { margin: 0; font-size: 15px; font-weight: 700; color: var(--ocean-soft); }
.comic-grid-fill { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.comic-card .panel-count { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--navy); font-size: 13px; font-weight: 700; color: var(--ocean-soft); }
.thumb > span { font-family: "Bricolage Grotesque", sans-serif; font-size: 40px; font-weight: 800; opacity: 0.6; }
.comics-empty { padding: 56px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.comics-empty p { margin: 0; color: var(--ocean-soft); }
.comics-empty .display { font-size: 28px; color: #FFFFFF; }
.comic-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.comic-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; padding: 12px 22px 12px 12px; border-radius: 24px; background: var(--panel); text-decoration: none; color: #FFFFFF; }
.comic-row:hover { color: #FFFFFF; background: var(--hover); }
.comic-row .mini { flex: 0 0 84px; height: 62px; border-radius: 16px; overflow: hidden; }
.comic-row .mini img { width: 100%; height: 100%; object-fit: cover; }
.comic-row .no { flex: 0 0 60px; font-size: 24px; color: var(--orange-tint); }
.comic-row .name { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.comic-row .name strong { font-size: 19px; }
.comic-row .name small, .comic-row .date { font-size: 14px; color: var(--ocean-soft); }
.comic-row .read { padding: 10px 18px; border-radius: 999px; background: var(--orange); font-weight: 800; font-size: 14px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 16px; }
.pager a { min-width: 48px; padding: 12px 16px; text-align: center; border-radius: 999px; background: var(--panel); color: #FFFFFF; text-decoration: none; font-weight: 800; }
.pager a[aria-current] { background: var(--orange); }

/* Subscribe box */
.subscribe-wrap { padding-top: 16px; padding-bottom: 96px; }
.subscribe-box { position: relative; background: var(--forest); border-radius: 40px; padding: 44px 52px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; overflow: hidden; }
.subscribe-text { position: relative; flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.subscribe-text h2 { font-size: 40px; letter-spacing: -1px; line-height: 1.05; }
.subscribe-text p { margin: 0; font-size: 18px; color: var(--forest-tint); }
.subscribe-text .subscribe-message { color: #FFFFFF; font-weight: 800; }
.subscribe-fields { position: relative; flex: 1 1 400px; min-width: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-fields input[type=email] { flex: 1 1 220px; min-width: 0; padding: 16px 22px; border: none; border-radius: 999px; font: inherit; font-size: 16px; color: #14161A; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Comic reader ---------- */
.reader { max-width: 880px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.reader-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; min-height: 10px; }
.mode-toggle { display: flex; gap: 6px; background: var(--panel); padding: 6px; border-radius: 999px; }
.mode-toggle button { padding: 11px 18px; border-radius: 999px; border: none; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; background: transparent; color: #FFFFFF; }
.mode-toggle button[aria-pressed="true"] { background: var(--orange); font-weight: 800; }
.reader-share { padding: 12px 20px; border-radius: 999px; border: none; background: var(--panel); color: #FFFFFF; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; margin-left: auto; }
.panel-stack { background: var(--panel); border-radius: 36px; padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comic-panel { margin: 0; grid-column: span 2; }
.comic-panel.half { grid-column: span 1; }
.comic-panel img, .panel-pager-frame img { display: block; width: 100%; height: auto; border-radius: 22px; background: #FFFFFF; }
.panel-pager { background: var(--panel); border-radius: 36px; padding: 18px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.panel-pager[hidden], .panel-stack[hidden] { display: none; }
.panel-pager-frame { width: 100%; }
.panel-pager-controls { display: flex; gap: 12px; align-items: center; padding-bottom: 6px; font-weight: 800; }
.panel-pager-controls > span { min-width: 60px; text-align: center; }
.panel-pager-controls button { width: 52px; height: 52px; border-radius: 999px; border: none; background: var(--navy); color: #FFFFFF; font-size: 22px; cursor: pointer; }
.panel-pager-controls button.next { background: var(--orange); box-shadow: 0 4px 0 var(--orange-deep); }
.panel-pager-controls button:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.author-note { position: relative; background: var(--navy); border-radius: 28px; padding: 24px 28px 24px 84px; }
.author-note .brand-mark { position: absolute; left: 22px; top: 22px; }
.author-note p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ocean-soft); }
.author-note .label { margin: 0 0 4px; font-weight: 800; font-size: 14px; color: var(--orange-tint); }
.comic-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.comic-nav > * { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; border-radius: 24px; background: var(--panel); color: #FFFFFF; text-decoration: none; }
.comic-nav > a:hover { color: #FFFFFF; background: var(--hover); }
.comic-nav .next { text-align: right; }
.comic-nav small { font-size: 13px; font-weight: 700; color: var(--ocean-soft); }
.comic-nav strong { font-size: 17px; }
.comic-nav .is-end { background: transparent; border: 2px dashed var(--ocean-tint); }
.comic-nav .is-end strong { color: var(--ocean-soft); }
.reader-subscribe { margin: 0; text-align: center; font-weight: 800; }

/* ---------- Portfolio ---------- */
.pill-icon { display: inline-flex; align-items: center; gap: 10px; }
.gallery-wrap { padding-bottom: 96px; display: flex; flex-direction: column; gap: 26px; }
.art-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.art-tile { padding: 10px 10px 16px; border-radius: 28px; background: var(--panel); color: #FFFFFF; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.art-tile:hover { color: #FFFFFF; transform: translateY(-6px) rotate(-0.5deg); }
.art-tile img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--ocean-tint); }
.art-tile-text { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.art-tile-text strong { font-size: 17px; }
.art-tile-text small { font-size: 14px; font-weight: 600; color: var(--ocean-soft); }
.art-dialog { border: none; padding: 0; background: transparent; color: #FFFFFF; max-width: min(1000px, calc(100vw - 32px)); width: 100%; }
.art-dialog::backdrop { background: color-mix(in srgb, var(--navy) 94%, transparent); }
.art-dialog-inner { background: var(--panel); border-radius: 36px; padding: 20px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.art-dialog-inner img { flex: 999 1 520px; min-width: 0; max-height: 80vh; object-fit: contain; background: #FFFFFF; border-radius: 24px; }
.art-dialog-text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 12px 8px; align-items: flex-start; }
.art-dialog-text h2 { font-size: 34px; letter-spacing: -0.5px; }
.art-dialog-text p { margin: 0; line-height: 1.6; color: var(--ocean-soft); }
.art-dialog-text .meta { font-weight: 600; }
.art-dialog-text form { margin-top: 8px; }
.art-detail { max-width: 1000px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.art-detail img { display: block; width: 100%; height: auto; border-radius: 24px; background: #FFFFFF; }
.art-detail p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--ocean-soft); }

/* Landing page portfolio teaser */
.portfolio-teaser { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.portfolio-teaser .text { position: relative; flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.portfolio-teaser h2 { font-size: clamp(40px, 5vw, 56px); letter-spacing: -1.5px; line-height: 1; }
.portfolio-teaser p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ocean-soft); }
.portfolio-teaser .art-grid { flex: 1 1 440px; min-width: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Doodles ---------- */
.doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; }
.dot { position: absolute; border-radius: 50%; }
.squiggle { color: var(--orange-tint); display: block; }

/* ---------- Chips, badges, stickers ---------- */
.chip { align-self: flex-start; display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--ocean); color: var(--ocean-soft); font-weight: 800; font-size: 14px; }
.chip.on-ocean { background: var(--panel); }
.badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--forest); color: #FFFFFF; font-weight: 800; font-size: 13px; }
.sticker { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--forest); color: #FFFFFF; font-weight: 800; font-size: 15px; transform: rotate(-5deg); }

/* ---------- Buttons ---------- */
.pill {
  display: inline-block; padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--orange); color: #FFFFFF; font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--orange-deep);
  transition: transform .15s ease, box-shadow .15s ease;
}
.pill:hover { color: #FFFFFF; transform: translateY(2px); box-shadow: 0 3px 0 var(--orange-deep); }
.pill.small { padding: 12px 22px; font-size: 15px; box-shadow: 0 4px 0 var(--orange-deep); }
.ghost {
  display: inline-block; padding: 13px 24px; border-radius: 999px; border: 2px solid #FFFFFF;
  background: transparent; color: #FFFFFF; font: inherit; font-weight: 800; font-size: 16px;
  text-decoration: none; cursor: pointer;
}
.ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* ---------- 3D book ---------- */
.book3d { perspective: 1800px; display: flex; justify-content: center; padding: 10px 0 10px var(--spine); }
.book3d .bk { position: relative; width: var(--w); max-width: 100%; aspect-ratio: 5 / 8; transform-style: preserve-3d; transform: rotateY(30deg); transition: transform .4s ease; }
.book3d .front { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0 4px 4px 0; box-shadow: 26px 30px 50px rgba(10, 34, 60, 0.55); }
.book3d .spine { position: absolute; top: 0; left: calc(var(--spine) * -1); width: var(--spine); height: 100%; object-fit: cover; transform-origin: right center; transform: rotateY(-90deg); }

/* ---------- Cards ---------- */
.card { display: block; text-decoration: none; color: #FFFFFF; background: var(--panel); border-radius: 28px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
a.card:hover { color: #FFFFFF; transform: translateY(-6px) rotate(-0.5deg); }
a.card:hover .bk { transform: rotateY(14deg); }
.card.big { border-radius: 36px; }
.thumb { aspect-ratio: 4 / 3; margin: 12px 12px 0; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 700; font-size: 14px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.tint-ocean { background: var(--ocean-tint); }
.tint-orange { background: var(--orange-tint); }
.tint-forest { background: var(--forest-tint); }
.dark-panel { position: relative; background: var(--navy); border-radius: 40px; padding: 56px; overflow: hidden; }

/* Book card: 3D book beside title, blurb and button */
.book-cards { display: flex; flex-wrap: wrap; gap: 28px; }
.book-card { flex: 1 1 440px; min-width: 0; padding: 40px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px; position: relative; }
/* "New" flag on book cards: orange, tilted, like a sticker */
.flag {
  position: absolute; top: -14px; left: 22px; z-index: 2;
  padding: 9px 20px; border-radius: 999px; background: var(--orange); color: #FFFFFF;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 0.5px;
  text-transform: uppercase; transform: rotate(-6deg); box-shadow: 0 4px 0 var(--orange-deep);
}
.book-card .cover { flex: 0 0 210px; }
.book-card .info { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.book-card .title { font-size: 40px; letter-spacing: -1px; line-height: 1; }
.book-card .blurb { font-size: 17px; line-height: 1.5; color: var(--ocean-soft); }
.book-card .pill { margin-top: 10px; align-self: flex-start; }

/* Books page: tall book tiles */
.book-list { padding-bottom: 110px; display: flex; flex-wrap: wrap; gap: 32px; }
.book-tile { flex: 1 1 440px; min-width: 0; padding: 56px 32px 48px; display: flex; flex-direction: column; align-items: center; gap: 30px; position: relative; }
.book-tile .info { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.book-tile .title { font-size: 50px; letter-spacing: -1.5px; line-height: 1; }
.book-tile .blurb { font-size: 18px; line-height: 1.5; color: var(--ocean-soft); max-width: 340px; }
.book-tile .pill { margin-top: 12px; }

/* Comic card: thumbnail with number, series, date and title */
.comic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.comic-card { overflow: hidden; display: flex; flex-direction: column; }
.comic-card .meta { padding: 18px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.comic-card .meta small { font-size: 14px; color: var(--ocean-soft); font-weight: 700; }
.comic-card .meta .display { font-size: 24px; }

/* Artwork tiles */
.art-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.art { aspect-ratio: 1; border-radius: 24px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 700; font-size: 14px; overflow: hidden; }
.art.drop { transform: translateY(24px); }

/* ---------- Sections and section bands ---------- */
.section { padding-top: 48px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.section.first { padding-top: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head h2 { font-size: clamp(40px, 5vw, 56px); letter-spacing: -1.5px; line-height: 1; }
.section-head a { font-weight: 800; font-size: 17px; }

.zone-work { background: var(--ocean); padding-bottom: 40px; }
.zone-work .section + .section { padding-top: 24px; }
.zone-deep { background: var(--zone-deep); padding: 40px 0; }
.zone-light { background: var(--zone-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ocean-soft); font-size: 15px; }
.site-footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .band { border-radius: 0 0 36px 36px; }
  .menu { width: 100%; gap: 0; padding: 4px; }
  .menu a.cart { margin-left: auto; }
  .menu a, .menu a[aria-current="page"] { padding: 10px 9px; font-size: 14px; }
  .menu a.cart { padding: 10px 12px; }
  .hero { padding-top: 24px; padding-bottom: 64px; gap: 40px; }
  .hero h1 { letter-spacing: -2px; }
  .hero-text p { font-size: 18px; }
  .hero-books .book3d .bk { width: calc(var(--w) * 0.75); }
  .about { padding-top: 40px; padding-bottom: 72px; gap: 40px; }
  .page-hero { padding-top: 24px; padding-bottom: 48px; }
  .page-hero h1 { letter-spacing: -2px; }
  .page-hero p { font-size: 18px; }
  .card.big { border-radius: 28px; }
  .book-card { padding: 56px 20px 32px; }
  .book-card .cover { flex-basis: 180px; }
  .art-dialog-inner { padding: 12px; border-radius: 24px; gap: 12px; }
  .art-dialog-inner img { flex-basis: 100%; max-height: 48vh; }
  .subscribe-box { padding: 32px 20px; border-radius: 28px; }
  .subscribe-text h2 { font-size: 32px; }
  .view-toggle { margin-left: 0; }
  .comic-row .date { display: none; }
  .panel-stack, .panel-pager { padding: 10px; border-radius: 24px; gap: 10px; }
  .comic-panel img, .panel-pager-frame img { border-radius: 14px; }
  .author-note { padding: 76px 20px 20px; }
  .cart-line { padding: 14px; gap: 14px; border-radius: 22px; }
  .cart-line img { width: 56px; }
  .cart-qty { flex-basis: 100%; justify-content: space-between; }
  .checkout-form, .cart-summary { padding: 24px 18px; border-radius: 28px; }
  .book-tile { padding: 56px 20px 40px; }
  .book-tile .book3d .bk { width: calc(var(--w) * 0.75); }
  .book-tile .title { font-size: 40px; }
  .dark-panel { padding: 32px 20px 48px; border-radius: 28px; }
}
