:root {
  --red: #de2b2e;
  --red-dark: #b81f22;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --ink: #121212;
  --muted: #5f5b55;
  --line: rgba(18, 18, 18, 0.12);
  --chip: #f0ebe0;
  --radius: 14px;
  --display: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 3vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr { 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(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 34px; width: auto; }
.search {
  flex: 1; max-width: 520px; margin-left: auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px;
}
.search svg { width: 17px; height: 17px; fill: var(--muted); flex: none; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; }
.search:focus-within { border-color: var(--ink); }
.cta {
  flex: none; text-decoration: none; font-weight: 600; font-size: 14px;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
}
.cta:hover { background: var(--red); }

/* Hero */
.hero { background: var(--red); color: var(--cream); }
.hero-inner { padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(24px, 4vw, 44px); max-width: 1400px; margin: 0 auto; }
.eyebrow { margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; font-size: 12px; opacity: 0.85; }
.hero h1 { margin: 0; font: 400 clamp(40px, 7vw, 84px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.hero .sub { margin: 14px 0 0; max-width: 640px; font-size: clamp(15px, 1.6vw, 18px); opacity: 0.95; }
.checker {
  height: 22px;
  background:
    conic-gradient(var(--cream) 25%, var(--ink) 0 50%, var(--cream) 0 75%, var(--ink) 0) 0 0 / 44px 44px;
}

/* Layout */
.layout {
  display: grid; grid-template-columns: 270px 1fr; gap: 28px;
  max-width: 1400px; margin: 0 auto; padding: 24px var(--gutter) 60px;
}
.filters {
  position: sticky; top: 76px; align-self: start;
  max-height: calc(100vh - 92px); overflow: auto;
  padding-right: 6px; scrollbar-width: thin;
}
.filters-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.filters-head h2 { margin: 0; font: 400 22px var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.linkbtn { background: none; border: 0; padding: 0; margin-left: auto; color: var(--muted); text-decoration: underline; font-size: 13px; }
.linkbtn:hover { color: var(--red); }
.close-drawer { display: none; }


.group { border-top: 1px solid var(--line); padding: 4px 0 12px; }
.group:first-of-type { border-top: 1px solid var(--line); }
.group > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  padding: 12px 0 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after { content: "+"; margin-left: auto; font-weight: 500; color: var(--muted); font-size: 18px; }
.group[open] > summary::after { content: "–"; }
.group .sel { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; letter-spacing: 0; }
.opts { list-style: none; margin: 0; padding: 0; }
.opt label {
  display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; cursor: pointer; font-size: 14px;
}
.opt label:hover { background: var(--chip); }
.opt input { accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.opt .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt.zero label { opacity: 0.4; }
.more { margin: 4px 4px 0; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; padding: 4px 0; }

/* Results bar */
.bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.count { margin: 0; font-weight: 600; }
.sort { margin-left: auto; }
.sort select {
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px;
}
.filter-btn {
  display: none; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 600;
}
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff;
  border: 0; border-radius: 999px; padding: 5px 8px 5px 12px; font-size: 13px;
}
.chip i { font-style: normal; opacity: 0.7; }
.chip:hover { background: var(--red); }

/* Grid (masonry via columns; width/height are set on each image so nothing jumps) */
.grid { columns: 4 210px; column-gap: 16px; }
.card {
  position: relative; display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--chip);
  border-radius: var(--radius); overflow: hidden; break-inside: avoid; text-align: left;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 14px 26px -12px rgba(0, 0, 0, 0.45); }
.card img { width: 100%; height: auto; background: var(--chip); }
.card .meta {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 10px 9px;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff; font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: flex-end; justify-content: space-between;
  opacity: 0; transition: opacity 0.18s;
}
.card:hover .meta, .card:focus-visible .meta { opacity: 1; }
.card .tag { background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 8px; font-weight: 500; white-space: nowrap; }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.btn {
  border: 0; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-weight: 600;
}
.btn:hover { background: var(--red); }
.btn.big { width: 100%; padding: 14px 20px; font-size: 16px; background: var(--red); }
.btn.big:hover { background: var(--red-dark); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; max-width: 720px; }

/* Modal */
.scrim { position: fixed; inset: 0; background: rgba(18,18,18,.62); z-index: 50; }
.modal {
  position: fixed; inset: 3vh 3vw; z-index: 60; background: var(--paper); border-radius: 20px; overflow: hidden;
  display: flex; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.modal[hidden], .scrim[hidden] { display: none; }
.m-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: 100%; min-height: 0; }
.m-media { background: #ece7db; display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 0; }
/* width/height attributes on the <img> reserve space and are the file's real pixel size, so reset them
   here and cap the image to the panel: it must never grow past the media column or the modal height. */
.m-media { overflow: hidden; }
.m-media img {
  width: auto; height: auto; max-width: 100%; max-height: calc(94vh - 44px);
  border-radius: 10px; box-shadow: 0 14px 34px -16px rgba(0,0,0,.5); object-fit: contain;
}
.m-info { padding: 34px 34px 28px; overflow: auto; }
.m-close, .m-nav {
  position: absolute; z-index: 2; background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  width: 40px; height: 40px; font-size: 24px; line-height: 1; display: grid; place-items: center;
}
.m-close { top: 14px; right: 14px; }
.m-nav { top: 50%; transform: translateY(-50%); }
.m-nav.prev { left: 14px; } .m-nav.next { left: calc(52.4% - 54px); }
.m-close:hover, .m-nav:hover { background: var(--ink); color: #fff; }
.m-info .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.m-info .kicker a { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--red); }
.m-info h2 { margin: 0 0 18px; font: 400 clamp(26px, 3.2vw, 40px)/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.m-info h3 { margin: 22px 0 6px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.m-info p { margin: 0; white-space: pre-line; }
.m-info ul { margin: 0; padding-left: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tagbtn { background: var(--chip); border: 1px solid transparent; border-radius: 999px; padding: 5px 12px; font-size: 13px; }
.tagbtn:hover { background: var(--ink); color: #fff; }
.tagbtn.aw { background: var(--red); color: #fff; }
.tagbtn.aw:hover { background: var(--ink); }
.credit { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* Gate */
.gate { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(251,248,241,.55); backdrop-filter: blur(2px); }
.gate[hidden] { display: none; }
.gate-card {
  width: min(430px, 100%); background: var(--paper); border-radius: 22px; padding: 30px 28px 22px; text-align: center;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.55); border: 1px solid var(--line);
}
.gate-card img { margin: 0 auto 10px; border-radius: 12px; }
.gate-card h2 { margin: 0 0 6px; font: 400 34px/1 var(--display); text-transform: uppercase; }
.gate-card p { margin: 0 0 16px; color: var(--muted); }
.gate-card input[type="email"] {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); margin-bottom: 12px; font-size: 16px;
}
.gate-card input[type="email"]:focus { outline: 0; border-color: var(--ink); }
/* Honeypot: invisible to people, tempting to bots. Off-screen (not display:none) on purpose. */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.turnstile { display: flex; justify-content: center; margin-bottom: 10px; }
.turnstile:empty { display: none; }
.err { color: var(--red-dark) !important; margin: 10px 0 0 !important; font-weight: 600; }
.fine { margin: 14px 0 0 !important; font-size: 12px; }
body.locked .layout, body.locked .hero { filter: blur(14px) saturate(1.1); pointer-events: none; user-select: none; }

/* Mobile */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding-top: 16px; }
  .filter-btn { display: inline-flex; }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); z-index: 70; max-height: none; top: 0;
    background: var(--cream); padding: 18px 18px 40px; transform: translateX(-102%); transition: transform 0.22s ease;
    box-shadow: 20px 0 50px -20px rgba(0,0,0,.5);
  }
  body.drawer .filters { transform: none; }
  .close-drawer { display: block; background: none; border: 0; font-size: 28px; line-height: 1; margin-left: 4px; }
  .linkbtn { margin-left: auto; }
  .cta { display: none; }
  .search { margin-left: 0; max-width: none; }
  .grid { columns: 2 150px; column-gap: 10px; }
  .card { margin-bottom: 10px; border-radius: 10px; }
  .modal { inset: 0; border-radius: 0; }
  .m-body { grid-template-columns: 1fr; overflow: auto; display: block; }
  .m-media { padding: 56px 16px 12px; max-height: 62vh; }
  .m-media img { max-height: calc(62vh - 68px); }
  .m-info { overflow: visible; padding: 20px 18px 40px; }
  .m-nav { top: 30vh; } .m-nav.next { left: auto; right: 14px; }
  .m-close { position: fixed; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
