/* POP: Culture and Comics — relaunch stylesheet. Colours follow the original Wix theme. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(../fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(../fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(../fonts/poppins-700.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(../fonts/poppins-800.woff2) format("woff2"); }

:root {
  --navy: #1f2f86;
  --blue: #2a4cb0;
  --green: #00e689;
  --green-ink: #007a48;
  --yellow: #ffd400;
  --red: #e1251b;
  --ink: #292f33;
  --muted: #5d666c;
  --line: #e3e6ea;
  --paper: #ffffff;
  --bg: #f3f5f8;
  --radius: 10px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 14px; z-index: 10; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Masthead */
.masthead { background: #2a4ab0 url(../img/pop-header.png) center top / auto 100% repeat-x; }
.banner { display: block; height: clamp(64px, 9vw, 120px); overflow: hidden; text-align: center; }
.banner img { height: 100%; width: auto; max-width: none; position: relative; left: 50%; transform: translateX(-50%); }
.mainnav { background: var(--navy); border-top: 3px solid var(--yellow); }
.navrow { display: flex; align-items: center; gap: 16px; min-height: 52px; flex-wrap: wrap; }
.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; gap: 2px; flex: 1; }
.mainnav ul a { display: block; padding: 13px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.mainnav ul a:hover, .mainnav ul a[aria-current] { color: var(--green); }
.navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.navbutton { display: none; color: #fff; font-weight: 700; text-transform: uppercase; cursor: pointer; padding: 12px 0; }
.navbutton span, .navbutton span::before, .navbutton span::after { display: inline-block; width: 22px; height: 3px; background: currentColor; position: relative; vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.navbutton span::before, .navbutton span::after { content: ""; position: absolute; left: 0; }
.navbutton span::before { top: -7px; } .navbutton span::after { top: 7px; }
.navsearch { display: flex; }
.navsearch input, .bigsearch input { font: inherit; font-size: 15px; border: 0; border-radius: 6px 0 0 6px; padding: 7px 12px; width: 200px; }
.navsearch button, .bigsearch button { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 0 6px 6px 0; padding: 7px 14px; background: var(--green); color: #00321d; cursor: pointer; }
@media (max-width: 860px) {
  .navbutton { display: block; }
  .mainnav ul { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .navtoggle:checked ~ ul { display: flex; }
  .navtoggle:focus-visible + .navbutton { outline: 3px solid var(--yellow); }
  .navsearch { margin-left: auto; }
  .navsearch input { width: 140px; }
}

main { padding: 28px 0 48px; min-height: 60vh; }

/* Cards and grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.grid4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(20, 30, 60, .08), 0 4px 14px rgba(20, 30, 60, .06); display: flex; flex-direction: column; }
.cardimg { display: block; aspect-ratio: 16 / 10; background: var(--navy); overflow: hidden; }
.cardimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .cardimg img { transform: scale(1.04); }
.cardbody { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.excerpt { margin: 0; color: #454d52; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; }
.chip { align-self: flex-start; display: inline-block; background: var(--green); color: #00321d; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; text-decoration: none; }
a.chip:hover { background: var(--yellow); color: #000; }

/* Home */
.lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; margin-bottom: 40px; }
.leadside { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.leadside .excerpt { display: none; }
.card-big h3 { font-size: clamp(22px, 2.6vw, 30px); }
.card-big .excerpt { font-size: 16px; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .leadside { grid-template-columns: 1fr; } }
.catsec { margin: 40px 0; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 4px solid var(--navy); margin-bottom: 18px; flex-wrap: wrap; }
.sechead h2 { margin: 0; padding: 0 14px; background: var(--navy); border-radius: 8px 8px 0 0; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.sechead h2 a { color: #fff; text-decoration: none; line-height: 2.1; }
.sechead .more { font-weight: 600; font-size: 14px; text-decoration: none; }

/* Archive headers */
.pagehead { margin-bottom: 24px; }
.pagehead h1 { margin: 0 0 4px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; font-weight: 800; }
.count { color: var(--muted); margin: 0; font-size: 14px; }
.bigsearch { display: flex; margin: 14px 0; max-width: 640px; }
.bigsearch input { flex: 1; font-size: 17px; padding: 11px 14px; border: 2px solid var(--navy); border-right: 0; min-width: 0; }
.bigsearch button { font-size: 16px; padding: 11px 20px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 36px 0 0; }
.pager a, .pager span { padding: 7px 13px; border-radius: 6px; background: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pager .cur { background: var(--navy); color: #fff; }
.pager .gap { background: none; box-shadow: none; }

/* Post */
.post { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); max-width: 860px; margin: 0 auto; box-shadow: 0 1px 2px rgba(20, 30, 60, .08); }
.posthead h1 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; margin: 10px 0; font-weight: 800; overflow-wrap: anywhere; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.posthead .meta { font-size: 15px; }
.herofig { margin: 24px 0 0; }
.herofig img { width: 100%; border-radius: 8px; }
.prose { margin-top: 24px; font-size: 18px; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.05em; }
.prose h2, .prose h3, .prose h4 { line-height: 1.3; margin: 1.6em 0 .6em; }
.prose figure { margin: 1.4em 0; text-align: center; }
.prose figure img { border-radius: 6px; }
.prose a { color: var(--green-ink); text-decoration-thickness: 2px; text-underline-offset: 2px; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--green); font-size: 1.15em; font-weight: 600; }
.prose hr { border: 0; height: 4px; background: repeating-linear-gradient(90deg, var(--navy) 0 12px, transparent 12px 20px); margin: 2em auto; width: 60%; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.tags a { display: inline-block; padding: 4px 11px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: 14px; color: var(--ink); }
.tags a:hover { border-color: var(--green); }
.postnav { max-width: 860px; margin: 22px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.postnav a { display: block; background: var(--paper); padding: 14px 18px; border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; }
.postnav a span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.postnav .next { text-align: right; }
@media (max-width: 600px) { .postnav { grid-template-columns: 1fr; } .postnav .next { text-align: left; } }
.related { max-width: 1200px; margin: 40px auto 0; }
.related h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }

.authorlist { list-style: none; padding: 0; columns: 3 220px; }
.authorlist li { padding: 6px 0; break-inside: avoid; }
.authorlist span { color: var(--muted); font-size: 14px; }

/* Footer */
.sitefoot { background: var(--navy); color: #d7def7; padding: 30px 0; border-top: 4px solid var(--green); font-size: 14px; }
.sitefoot a { color: #fff; }
.footnav { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footbrand strong { color: var(--yellow); }
.small { font-size: 12.5px; color: #aab6e6; }
