/* Animecapes — one stylesheet, no build step */
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");

:root {
  --bg: #0c0c10;
  --bg-2: #15151b;
  --panel: #1b1b23;
  --line: #2c2c37;
  --ink: #f5f3ee;
  --muted: #b4b0a8;
  --accent: #ff6b1a;
  --accent-hot: #ff8a3d;
  --accent-deep: #c94a05;
  --white: #ffffff;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --text: Outfit, system-ui, sans-serif;
  --halftone: radial-gradient(rgba(255, 107, 26, 0.22) 1.2px, transparent 1.6px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 480px at 100% -10%, rgba(255, 107, 26, 0.16), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.4px);
  background-size: auto, 14px 14px;
  font-family: var(--text);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--accent-hot); }
a:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 0.75rem; top: 0.75rem;
  transform: translateY(-160%);
  background: var(--accent); color: #111;
  padding: 0.7rem 0.95rem; min-height: 44px; z-index: 30;
  border-radius: 6px; text-decoration: none; font-weight: 600;
}
.skip:focus { transform: none; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.header-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.25rem 1.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 400; font-style: normal;
  font-size: 1.85rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1;
}
.logo:hover { color: var(--ink); }
.cape-mark {
  width: 2.2rem; height: 1.85rem; display: block; flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(255, 107, 26, 0.45));
  transition: transform 0.3s ease;
}
.cape-mark path { fill: var(--accent); }
.logo:hover .cape-mark { transform: rotate(-8deg) scale(1.08); }
.logo-lockup { display: flex; flex-direction: column; line-height: 1; gap: 0.2rem; }
.tagline {
  font-family: var(--text); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.15rem 0.3rem; }
.nav a {
  font-family: var(--text); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; min-height: 44px;
  padding: 0.5rem 0.85rem; display: inline-flex; align-items: center;
  border-radius: 4px; position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.45rem;
  height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--accent-hot); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--accent-hot); }
/* first nav item reads as the main Shop action */
.nav a:first-child { background: var(--accent); color: #111; }
.nav a:first-child::after { display: none; }
.nav a:first-child:hover { background: var(--accent-hot); color: #111; }

.affiliate-note {
  margin: 0; background: var(--bg-2); color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem; line-height: 1.45; text-align: center; padding: 0.55rem 1.25rem;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--ink); letter-spacing: 0.02em; }
.kicker {
  margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
}
.lede { color: var(--ink); font-size: 1.12rem; }

/* ---------- Guide / prose pages ---------- */
.page-head { padding: 3rem 0 0.6rem; position: relative; }
.page-head h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; max-width: 20ch;
  margin: 0.5rem 0 0.6rem; text-transform: uppercase;
}
.page-head h1::after {
  content: ""; display: block; width: 5rem; height: 6px; margin-top: 0.8rem;
  background: var(--accent); transform: skewX(-20deg);
}
main.wrap { padding-bottom: 4rem; }
.prose { max-width: 44rem; color: #e2dfd8; }
.prose p { margin: 0 0 1rem; }
.prose h2 { font-size: 1.9rem; line-height: 1.1; margin: 2.4rem 0 0.7rem; text-transform: uppercase; }
.prose ul { margin: 0.2rem 0 1.2rem; padding-left: 1.15rem; }
.prose li { margin: 0.45rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--accent); }

.table-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  overflow: auto; margin: 0.4rem 0 1.3rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #24242e; font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }

/* ---------- Shop pages ---------- */
.guides { padding: 1.6rem 0 4rem; }

.crumb {
  margin: 0 0 0.6rem; color: var(--muted);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.crumb a { color: var(--accent); text-decoration: none; }
.crumb a:hover { color: var(--white); }

.intro {
  margin: 0 0 1.6rem; max-width: 46rem; color: var(--muted); font-size: 1rem;
  padding-left: 0.9rem; border-left: 4px solid var(--accent);
}

.card-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  color: var(--ink); transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent), 6px 6px 0 var(--accent-deep);
}

/* Category tiles */
.category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-link { padding: 0; isolation: isolate; }
.category-link img {
  display: block; width: 100%; height: 17rem; object-fit: contain;
  background: var(--white); padding: 1rem;
  transition: transform 0.45s ease;
}
.category-link:hover img { transform: scale(1.06) rotate(-1deg); }
.category-link h2 {
  position: relative; margin: 0; padding: 0.85rem 3.2rem 0.85rem 1rem;
  font-size: 1.9rem; line-height: 1; text-transform: uppercase;
  background:
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    var(--panel);
  border-top: 3px solid var(--accent);
  transition: background 0.25s ease, color 0.25s ease;
}
.category-link h2::after {
  content: "\2192"; position: absolute; right: 1rem; top: 50%;
  transform: translateY(-50%); font-family: var(--text); font-weight: 700;
  font-size: 1.4rem; color: var(--accent); transition: transform 0.25s ease, color 0.25s ease;
}
.category-link:hover h2 { background: var(--accent); color: #111; }
.category-link:hover h2::after { color: #111; transform: translate(6px, -50%); }

/* Product cards */
.card.product { padding: 0 0 1rem; }
.product img {
  display: block; width: 100%; height: 15rem; object-fit: contain;
  background: var(--white); padding: 0.9rem; margin: 0 0 0.9rem;
  border-bottom: 3px solid var(--accent);
  transition: transform 0.4s ease;
}
.product:hover img { transform: scale(1.04); }
.product h2 {
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.3;
  letter-spacing: 0; margin: 0 1rem 0.9rem; color: var(--ink);
}
.shop-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  margin: auto 1rem 0; min-height: 46px; padding: 0.55rem 0.9rem;
  background: var(--accent); color: #111; text-decoration: none;
  font-weight: 800; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 6px; box-shadow: 0 4px 0 var(--accent-deep);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.shop-btn::after { content: "\2197"; font-size: 1rem; }
.shop-btn:hover { background: var(--accent-hot); color: #111; transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent-deep); }
.shop-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); }
.where {
  margin: 0.55rem 1rem 0; color: var(--muted);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
}

/* ---------- Home ---------- */
body.home { min-height: 100vh; display: flex; flex-direction: column; }
body.home main { flex: 1 0 auto; }

body.home .guides {
  position: relative; padding: 2.2rem 0 2.4rem;
  background:
    repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 107, 26, 0.07) 0deg 3deg, transparent 3deg 9deg);
  border-bottom: 1px solid var(--line);
}
body.home .guides::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--halftone); background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
body.home .guides .wrap { position: relative; }
body.home .crumb {
  margin: 0 0 1.2rem; font-family: var(--display); font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 0.95; letter-spacing: 0.01em;
  color: var(--ink); text-transform: uppercase;
}
body.home .crumb::before { content: "Figures. Shirts. "; }
body.home .crumb::after { content: "Posters."; color: var(--accent); text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6); }

body.home .category-link img { height: 24rem; padding: 1.4rem; }
body.home .category-link h2 { font-size: 2.4rem; padding: 1rem 3.5rem 1rem 1.1rem; }

.popular { padding: 2.6rem 0 4rem; }
.rail-head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem;
}
.rail-title {
  margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; text-transform: uppercase;
}
.rail-head::after {
  content: ""; flex: 1; height: 10px; transform: skewX(-25deg);
  background: repeating-linear-gradient(90deg, var(--accent) 0 14px, transparent 14px 22px);
  opacity: 0.85;
}
.popular-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Footer ---------- */
.site-footer {
  background: #08080a; color: var(--ink);
  border-top: 3px solid var(--accent); padding: 1.6rem 0 2.2rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.1rem 0.6rem; }
.site-footer a {
  font-weight: 600; color: var(--ink); text-decoration: none; min-height: 44px;
  padding: 0.55rem 0.75rem 0.55rem 0; display: inline-flex; align-items: center;
}
.site-footer a:hover { color: var(--accent); }
.fine { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.86rem; }
.fine a { min-height: 0; padding: 0; display: inline; color: var(--accent); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid, .popular-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .wrap { padding: 0 1rem; }
  .header-row { gap: 0 0.5rem; padding-top: 0.4rem; padding-bottom: 0.3rem; }
  .logo { font-size: 1.55rem; }
  .nav { width: 100%; justify-content: space-between; gap: 0.25rem; }
  .nav a { padding: 0.45rem 0.6rem; font-size: 0.78rem; letter-spacing: 0.08em; }
  .nav a::after { left: 0.6rem; right: 0.6rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .category-grid { grid-template-columns: 1fr; }
  .category-link img { height: 14rem; }
  .product img { height: 11rem; padding: 0.6rem; }
  .product h2 { font-size: 0.92rem; margin: 0 0.75rem 0.75rem; }
  .shop-btn { margin: auto 0.75rem 0; font-size: 0.74rem; letter-spacing: 0.05em; padding: 0.5rem; }
  .shop-btn::after { display: none; }
  .where { margin: 0.5rem 0.75rem 0; }
  .page-head { padding-top: 2rem; }

  body.home .guides { padding: 1.4rem 0 1.8rem; }
  body.home .category-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  body.home .category-link { flex-direction: row; align-items: stretch; }
  body.home .category-link img { width: 46%; height: 9.5rem; padding: 0.7rem; flex: 0 0 46%; }
  body.home .category-link h2 {
    flex: 1; display: flex; align-items: center; font-size: 2rem;
    border-top: 0; border-left: 4px solid var(--accent); padding: 0.8rem 2.6rem 0.8rem 1rem;
  }

  .popular { padding: 2rem 0 3rem; }
  .popular-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.4rem 0.2rem 1rem;
    margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; scroll-padding-left: 1rem;
  }
  .popular-grid > .card { scroll-snap-align: start; }
}
@media (max-width: 380px) {
  .card-grid:not(.popular-grid):not(.category-grid) { gap: 0.6rem; }
  .logo { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Mobile button fit */
@media (max-width: 800px) {
  .shop-btn { text-align: center; line-height: 1.2; font-size: 0.72rem; letter-spacing: 0.03em; }
}

/* ---------- Label chips ---------- */
.card.product .chip {
  position: absolute; top: 0.6rem; left: 0.6rem; z-index: 2;
  display: inline-block; max-width: calc(100% - 1.2rem);
  padding: 0.28rem 0.6rem 0.26rem;
  background: #111116; color: var(--white);
  border: 1px solid var(--accent); border-left-width: 4px; border-radius: 4px;
  font-family: var(--text); font-size: 0.68rem; font-weight: 800; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
/* New pick gets the solid accent so the newest items pop */
.rail-new .chip,
.card.product .chip.chip-new { background: var(--accent); color: #111; border-color: var(--accent-deep); }

/* ---------- Seasonal switch (no JavaScript) ---------- */
section.season[hidden],
.season[hidden] { display: none !important; }

/* ---------- Home rails: one swipeable row each, never an endless stack ---------- */
body.home .popular { padding: 2rem 0 1.2rem; }
body.home .popular + .popular { border-top: 1px solid var(--line); }
body.home main > .popular:last-of-type { padding-bottom: 3.5rem; }
body.home .popular .intro { margin-bottom: 1.1rem; }
body.home .popular-grid {
  grid-template-columns: none; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 1rem) / 4.25);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 0.2rem;
  padding: 0.5rem 0.2rem 1.1rem;
  scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg-2);
}
body.home .popular-grid > .card { scroll-snap-align: start; }
body.home .popular-grid > .card:hover { transform: translateY(-4px); }
body.home .popular-grid::-webkit-scrollbar { height: 8px; }
body.home .popular-grid::-webkit-scrollbar-track { background: var(--bg-2); border-radius: 8px; }
body.home .popular-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; }
body.home .lane .rail-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

@media (max-width: 1000px) {
  body.home .popular-grid { grid-auto-columns: calc((100% - 2 * 1rem) / 3.25); }
}
@media (max-width: 800px) {
  body.home .popular { padding: 1.5rem 0 0.8rem; }
  body.home .popular-grid {
    grid-auto-columns: 62%; gap: 0.75rem;
    margin: 0 -1rem; padding: 0.4rem 1rem 1rem; scroll-padding-left: 1rem;
  }
  .card.product .chip { font-size: 0.62rem; letter-spacing: 0.07em; top: 0.45rem; left: 0.45rem; }
}
