/* Petty Pond – same look as the logo and shop cover: near-black pond, cream type, yellow and orange accents.
   One self-hosted font (Titan One, OFL) for headings, system fonts for text. Works without JavaScript
   (menu via <details>, filters via :has()). Built to /assets/css/styles.<hash>.css. */
@font-face {
  font-family: "Titan One";
  src: url("/assets/fonts/titan-one-v5.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
:root {
  --bg: #181c1b;
  --bg-alt: #121514;
  --card: #222827;
  --card-hover: #2a3130;
  --line: #36403e;
  --text: #e9e2cc;           /* 12:1 on --bg */
  --strong: #fdf5dc;         /* logo cream */
  --muted: #b3ac98;          /* 7.6:1 on --bg */
  --yellow: #facd01;         /* logo yellow */
  --yellow-hover: #ffe04d;
  --orange: #fb6903;         /* tagline orange */
  --orange-hover: #ff8a3d;
  --green: #8db33f;          /* Frank */
  --ink: #121212;            /* text on yellow/orange: 12:1 / 6.6:1 */
  --primary: var(--yellow);
  --radius: 1rem;
  --shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .25);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Titan One", "Arial Rounded MT Bold", "Arial Black", var(--font);
  --header-h: 4.25rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(253, 245, 220, .045) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--text); font-family: var(--font); line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { color: var(--strong); line-height: 1.15; margin: 0 0 .5em; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); text-shadow: 0 3px 0 var(--ink), 0 0 0 transparent; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--yellow); }
a:hover { color: var(--yellow-hover); }
p a, li a { text-decoration: underline; text-underline-offset: 2px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.center { text-align: center; }
strong { color: var(--strong); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--yellow); color: var(--ink); border-radius: .5rem; font-weight: 700; }
.skip-link:focus { top: 1rem; color: var(--ink); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
main.container { flex: 1; padding-block: 1.25rem 4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px;
  padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s, box-shadow .12s, background-color .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn span { opacity: .75; font-weight: 700; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.08rem; }
.btn-primary, .btn-us { background: var(--yellow); color: var(--ink); }
.btn-primary:hover, .btn-us:hover { background: var(--yellow-hover); color: var(--ink); }
.btn-alt, .btn-eu { background: var(--orange); color: var(--ink); }
.btn-alt:hover, .btn-eu:hover { background: var(--orange-hover); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.center .cta-row { justify-content: center; }

/* Header + full-screen mobile menu (<details>, works without JavaScript) */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 168px; height: auto; }
.nav-main { display: none; gap: 1.6rem; margin-left: auto; }
.nav-main a { color: var(--text); text-decoration: none; font-weight: 700; }
.nav-main a[aria-current="page"], .nav-main a:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.header-actions > .btn { display: none; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: .5rem; color: var(--strong); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 1.7rem; height: 1.7rem; }
.mnav .icon-close, .mnav[open] .icon-open { display: none; }
.mnav[open] .icon-close { display: block; }
.mnav-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: flex; flex-direction: column; gap: .25rem;
  padding: 1.5rem 1rem; background: var(--bg-alt); overflow-y: auto;
}
.mlink { padding: .9rem .5rem; font-family: var(--display); font-size: 1.5rem; color: var(--strong); text-decoration: none; border-bottom: 1px solid var(--line); }
.mlink[aria-current="page"] { color: var(--yellow); }
.mnav-cta { display: grid; gap: .75rem; margin-top: 1.5rem; }
body:has(.mnav[open]) { overflow: hidden; }
@media (min-width: 900px) {
  .nav-main { display: flex; }
  .header-actions { margin-left: 1rem; }
  .header-actions > .btn { display: inline-flex; }
  .mnav { display: none; }
}

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--yellow); }

/* Hero */
.hero { display: grid; gap: 2rem; align-items: center; padding-block: 1.5rem 2.5rem; }
.hero-logo { width: min(520px, 100%); margin: 0 0 1.25rem -.5rem; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.lead { font-size: 1.15rem; color: var(--text); max-width: 40rem; }
.hero-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.hero-pic { border-radius: var(--radius); overflow: hidden; border: 2px solid var(--ink); box-shadow: var(--shadow); background: #f2f2f2; }
.hero-pic:nth-child(2) { transform: translateY(1.25rem); }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; padding-block: 2.5rem 3.5rem; }
}

/* Sections */
.section { padding-block: 2.5rem; }
.section h2 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.section-lead { color: var(--muted); max-width: 46rem; margin-bottom: 1.5rem; }
.count { font-family: var(--font); font-size: .95rem; font-weight: 800; background: var(--yellow); color: var(--ink); border-radius: 999px; padding: .15rem .65rem; }
.prose { max-width: 46rem; margin-inline: auto; }
.prose h2 { margin-top: 1.75rem; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prose.center { padding-block: 3rem; }
.page-head { max-width: 46rem; margin-bottom: 1rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; color: var(--yellow); font-weight: 800; }
.card-link svg { width: 1rem; height: 1rem; }

/* Filters (radio + :has, no JavaScript) */
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.filters legend { float: left; margin-right: .35rem; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.filters input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.filters label { cursor: pointer; padding: .4rem .9rem; min-height: 40px; display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--text); background: var(--card); }
.filters label:hover { border-color: var(--yellow); }
.filters input:focus-visible + label { outline: 3px solid var(--yellow); outline-offset: 2px; }
.designs:has(#f-all:checked) label[for="f-all"],
.designs:has(#fit-men:checked) label[for="fit-men"],
.designs:has(#fit-women:checked) label[for="fit-women"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.img-women { display: none; }
.designs:has(#fit-women:checked) img.img-women { display: block; }
.designs:has(#fit-women:checked) .dcard-buy.img-women { display: grid; }
.designs:has(#fit-women:checked) .img-men { display: none; }

/* Design grid */
.dgrid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: 0; list-style: none; }
@media (min-width: 700px) { .dgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1100px) { .dgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dcard { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, background-color .15s; }
.dcard:hover { transform: translateY(-3px); background: var(--card-hover); }
.dcard-img { display: block; background: #f2f2f2; aspect-ratio: 3 / 4; overflow: hidden; }
/* The shop's model photos are full-length; zoom in on the chest so the print reads at card size. */
.dcard-img img, .hero-pic img, .mini img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transform-origin: 50% 35%; }
.dcard-body { display: flex; flex-direction: column; gap: .4rem; padding: .85rem .85rem 1rem; flex: 1; }
.dcard h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.dcard h3 a { color: var(--strong); text-decoration: none; }
.dcard h3 a:hover { color: var(--yellow); }
.dcard-buy { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: auto; padding-top: .5rem; }
.dcard-buy .btn { padding: .4rem .5rem; font-size: .92rem; min-height: 40px; }
.dcard-buy .btn:only-child { grid-column: 1 / -1; }
.chip { margin: 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--green); }
.chip a { color: var(--green); text-decoration: none; }
@media (max-width: 420px) {
  .dcard-buy { grid-template-columns: 1fr; }
  .dcard-body { padding: .7rem; }
}

/* Shops */
.shops { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shop-panel { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.75rem 1.5rem 1.5rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none; border-top: 6px solid var(--yellow); }
.shop-panel + .shop-panel { border-top-color: var(--orange); }
.shop-panel + .shop-panel .card-link { color: var(--orange); }
.shop-panel:hover { background: var(--card-hover); color: var(--text); }
.shop-panel h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.shop-panel p { margin: 0 0 .75rem; color: var(--muted); }
.shop-tag { align-self: flex-start; font-weight: 800; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; background: var(--bg-alt); color: var(--strong); }

/* Character list */
.cast { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); list-style: none; padding: 0; margin: 0; }
.cast a { display: flex; flex-direction: column; padding: 1rem 1.1rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; }
.cast a:hover { border-color: var(--yellow); }
.cast strong { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--strong); }
.cast span { color: var(--muted); }
.char { padding-block: 2rem; border-top: 1px solid var(--line); }
.char h2 span, .design h1 span { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--muted); }
.char > p { max-width: 46rem; }
.mini { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(45%, 160px), 1fr)); list-style: none; padding: 0; margin: 0; }
.mini a { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--strong); font-weight: 700; font-size: .92rem; line-height: 1.3; }
.mini-pic { display: block; overflow: hidden; border-radius: .75rem; border: 2px solid var(--ink); background: #f2f2f2; aspect-ratio: 3 / 4; }
.mini a:hover { color: var(--yellow); }

/* Design page */
.design { display: grid; gap: 2rem; align-items: start; }
.design-pics { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.design-pics img { border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: var(--shadow); background: #f2f2f2; }
.zoom { position: relative; display: block; cursor: zoom-in; border-radius: var(--radius); }
.zoom-hint { position: absolute; right: .6rem; bottom: .6rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); }
.zoom-hint svg { width: 1.25rem; height: 1.25rem; }
.zoom:hover .zoom-hint { background: var(--yellow-hover); }

/* Zoom viewer (built by site.js): tap/click to zoom in, move or drag to look around, tap again to zoom out */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 12, 12, .96); color: var(--strong); overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; cursor: zoom-in; user-select: none; -webkit-user-drag: none; transition: transform .2s ease-out; background: #f2f2f2; }
.lightbox.is-zoomed .lb-stage img { cursor: grab; transition: none; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-size: 1.6rem; font-weight: 800; line-height: 1; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-help { position: absolute; z-index: 2; left: 50%; bottom: .9rem; transform: translateX(-50%); margin: 0; padding: .35rem .9rem; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: .9rem; white-space: nowrap; pointer-events: none; }
body:has(.lightbox[open]) { overflow: hidden; }
.design h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.design h1 span { display: block; margin-top: .4rem; }
.buy { padding: 1.25rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.buy h2 { font-size: 1.3rem; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-block: .6rem; border-bottom: 1px solid var(--line); }
.buy-row > span { flex: 1 0 100%; font-weight: 800; color: var(--strong); }
.buy-row .btn { flex: 1 1 0; }
@media (min-width: 480px) { .buy-row > span { flex: 1 0 7rem; } .buy-row .btn { flex: 0 0 auto; } }
.buy-note { margin: .9rem 0 0; font-size: .92rem; color: var(--muted); }
.back { margin-top: 2rem; }
@media (min-width: 900px) { .design { grid-template-columns: 1.1fr 1fr; gap: 3rem; } }

/* 404 */
.notfound img { margin: 0 auto 1.5rem; width: 160px; }

/* FAQ (<details>) */
.faq { max-width: 46rem; margin: 3rem auto 0; }
.faq-intro { color: var(--muted); }
.faq-list { display: grid; gap: .75rem; }
.faq details { border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); }
.faq details[open] { border-color: var(--ink); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.05rem; }
.faq summary svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--yellow); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 1.25rem 1rem; }

/* Form (not used yet – kept for a later contact form) */
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 2rem; font-size: .925rem; color: var(--muted); }
.footer-inner { display: grid; gap: 1rem; }
.footer-info p { margin: 0 0 .25rem; }
.footer-tag { font-family: var(--display); font-size: 1.15rem; color: var(--orange); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) { .btn, .dcard { transition: none; } .btn:hover, .dcard:hover { transform: none; } }

/* Women's buy buttons are hidden until "Women's tee" is picked (must come after .dcard-buy) */
.dcard-buy.img-women { display: none; }
