@font-face { font-family: "Anton"; src: url(/fonts/anton-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Kalam"; src: url(/fonts/kalam-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1C1C1C;
  --teal: #40B7AF;
  --teal-dark: #2B8C86;
  --red: #D63A2F;
  --yellow: #FFE45C;
  --sage: #B7C9A8;
  --cream: #F4EAD7;
  --paper: #FBF6EC;
  --muted: #5B574F;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--yellow); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand span { font-family: var(--display); font-size: 30px; letter-spacing: .5px; line-height: 1; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--cream); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .shop-link { background: var(--red); color: #fff; }
.nav .shop-link:hover { background: #b92e25; }
.menu-btn { display: none; }

@media (max-width: 760px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 15px var(--body); background: var(--cream); color: var(--ink);
    border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 3px solid var(--ink); padding: 10px 20px 16px; flex-direction: column; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 16px var(--body); text-decoration: none;
  padding: 12px 22px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s, box-shadow .08s; cursor: pointer;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.teal { background: var(--teal); }
.btn.red { background: var(--red); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .3px; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 7vw, 76px); }
h2 { font-size: clamp(30px, 4.5vw, 46px); }
h3 { font-size: 26px; }
.hand { font-family: var(--hand); }
.eyebrow { font: 700 13px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.lede { font-size: 20px; color: var(--muted); max-width: 46ch; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 .circled { position: relative; display: inline-block; }
.hero h1 .circled::after {
  content: ""; position: absolute; inset: -6px -14px -2px -14px;
  border: 5px solid var(--red); border-radius: 50%; transform: rotate(-4deg);
}
.hero .descriptor { font-family: var(--hand); font-size: 26px; color: var(--teal-dark); margin: 0 0 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* ---------- Strip frame ---------- */
.strip-card {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: block;
}
.strip-card img { width: 100%; }
.strip-card .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 3px solid var(--ink); }
.strip-card .meta strong { font-family: var(--display); font-weight: 400; font-size: 22px; }
.tag {
  display: inline-block; font: 700 12px var(--body); letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); white-space: nowrap;
}
.tag.teal { background: var(--teal); }
.tag.yellow { background: var(--yellow); }
.tag.sage { background: var(--sage); }
.tag.red { background: var(--red); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.band { background: var(--cream); border-block: 3px solid var(--ink); }
.band.teal { background: var(--teal); }
.band.ink { background: var(--ink); color: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.grid { display: grid; gap: 26px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.strips { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
@media (max-width: 860px) { .grid.three { grid-template-columns: 1fr; } }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.product-card img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.product-card .meta strong { font-size: 20px; line-height: 1.1; }
.product-card .price { font-weight: 700; white-space: nowrap; }
.shop-more { margin-top: 30px; }

/* World cards */
.world-card {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
}
.world-card .faces { display: flex; }
.world-card .faces img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--ink); margin-right: -12px; background: var(--cream); object-fit: cover; }
.world-card h3 { margin: 4px 0 0; }
.world-card p { margin: 0; color: var(--muted); }
.world-card .go { margin-top: auto; font-weight: 700; }
.world-card.teal { border-top: 14px solid var(--teal); }
.world-card.yellow { border-top: 14px solid var(--yellow); }
.world-card.sage { border-top: 14px solid var(--sage); }

/* Schedulers */
.schedulers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; text-align: center; }
.scheduler img { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--ink); margin: 0 auto 14px; background: #fff; box-shadow: var(--shadow); }
.scheduler h3 { margin-bottom: 2px; }
.scheduler p { margin: 0; }
.scheduler .quote { font-family: var(--hand); font-size: 22px; margin-top: 6px; }
@media (max-width: 700px) { .schedulers { grid-template-columns: 1fr; } }

/* Cast */
.cast-world { margin-bottom: 56px; }
.cast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.cast-card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.cast-card img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--ink); flex: none; object-fit: cover; }
.cast-card h3 { font-size: 22px; margin: 0; }
.cast-card .role { font: 700 12px var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 2px 0 6px; }
.cast-card p { margin: 0; font-size: 15px; }
.cast-card.lead { border-width: 4px; box-shadow: var(--shadow); }

/* Filters */
/* Keep the hidden attribute working even when a class sets display */
[hidden] { display: none !important; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.filters button {
  font: 700 15px var(--body); padding: 8px 16px; border-radius: 999px;
  border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Strip page */
.strip-page { padding: 36px 0 56px; }
.strip-page .head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.strip-page .head h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); }
.strip-frame { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-inline: auto; }
.strip-frame.portrait { max-width: 640px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 26px 0; flex-wrap: wrap; }
.about-strip { max-width: 720px; }
.about-strip .punch { font-family: var(--hand); font-size: 24px; }
.strip-notes { margin-bottom: 20px; }
.strip-notes summary { cursor: pointer; font-weight: 700; color: var(--muted); width: fit-content; }
.strip-notes summary:hover { color: var(--ink); }
.strip-notes[open] summary { margin-bottom: 8px; }
.share { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 640px; }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form select, .form textarea {
  font: 16px var(--body); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; }
.form .hint { font-weight: 400; font-size: 14px; color: var(--muted); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; }
.notice { background: var(--yellow); border: 3px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; }

/* Prose */
.prose { max-width: 680px; }
.prose p { margin: 0 0 1em; }

/* Saturday whiteboard (the running gag) */
.whiteboard {
  display: inline-grid; grid-template-columns: repeat(6, auto); gap: 6px;
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; padding: 10px 12px; box-shadow: 3px 3px 0 var(--ink);
  font: 700 12px var(--body); color: var(--ink);
}
.whiteboard .day { display: grid; place-items: center; gap: 4px; padding: 2px 4px; }
.whiteboard .box { width: 24px; height: 22px; border: 2px solid var(--ink); border-radius: 4px; display: grid; place-items: center; color: var(--teal-dark); font-size: 15px; }
.whiteboard .sat .box { width: 58px; border-color: var(--red); color: var(--red); }
.whiteboard .sat { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 44px 0 30px; margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer a { color: var(--paper); text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .tagline { font-family: var(--display); font-size: 28px; margin: 10px 0 4px; }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid #444; padding-top: 18px; font-size: 13px; opacity: .7; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Lightbox-free zoom on strip page */
.zoom-hint { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
