:root {
  --black: #111111;
  --deep-black: #050505;
  --paper: #f4ead8;
  --paper-light: #f8f1df;
  --yellow: #ffc107;
  --red: #e63946;
  --blue: #2b6cb0;
  --ink: #1a1a1a;
  --white: #ffffff;
  --muted: #5c5247;
  --line: 4px solid var(--black);
  --shadow: 7px 7px 0 var(--black);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

html.has-lightbox,
html.has-lightbox body {
  overflow: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12px 18px, rgba(17, 17, 17, 0.11) 0 1px, transparent 1px),
    linear-gradient(105deg, rgba(230, 57, 70, 0.07), transparent 24%),
    linear-gradient(255deg, rgba(43, 108, 176, 0.08), transparent 30%),
    var(--paper);
  background-size: 28px 28px, auto, auto, auto;
}

.public-page {
  background:
    radial-gradient(circle at 8px 10px, rgba(17, 17, 17, 0.16) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(244, 234, 216, 0.72)),
    var(--paper-light);
  background-size: 56px 56px, 100% 8px, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(17, 17, 17, 0.18) 3px),
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(17, 17, 17, 0.08) 18px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

.archive-hero {
  position: relative;
  min-height: 92vh;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
  border-bottom: 6px solid var(--black);
  background:
    radial-gradient(circle at 12% 22%, rgba(230, 57, 70, 0.06), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(255, 193, 7, 0.14), transparent 20%),
    radial-gradient(circle at 14px 14px, rgba(17, 17, 17, 0.14) 0 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    var(--paper-light);
  background-size: auto, auto, 56px 56px, 100% 8px, auto;
}

.archive-hero::after {
  position: absolute;
  right: -90px;
  bottom: 10%;
  width: 360px;
  height: 72px;
  content: "";
  border: 4px solid var(--black);
  background: rgba(255, 193, 7, 0.72);
  transform: rotate(-9deg);
  opacity: 0.72;
}

.hero-tape {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  padding: 8px 14px;
  border: 3px solid var(--black);
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.68rem, 2.6vw, 0.9rem);
  font-weight: 950;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-1.5deg);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  width: min(1480px, 100%);
  min-height: calc(92vh - clamp(36px, 8vw, 96px));
  margin: 0 auto;
  padding-top: 44px;
}

.hero-panel {
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: clamp(18px, 4vw, 34px);
  padding: 8px 14px;
  border: 4px solid var(--black);
  color: var(--white);
  background: var(--black);
  box-shadow: 6px 6px 0 var(--red);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1rem, 3vw, 1.55rem);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-panel h1 {
  max-width: 8ch;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.4rem, 20vw, 13.5rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-rule {
  width: min(560px, 100%);
  height: 6px;
  margin: clamp(18px, 4vw, 34px) 0 16px;
  background: var(--black);
  box-shadow: 0 8px 0 rgba(17, 17, 17, 0.14);
}

.hero-subtitle,
.hero-text,
.latest-fund,
.archive-section {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-subtitle {
  max-width: 690px;
  margin: 0 0 16px;
  font-size: clamp(0.98rem, 2.2vw, 1.35rem);
  font-weight: 900;
}

.hero-text {
  max-width: 520px;
  margin: 0 0 22px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.45;
}

.archive-open-button,
.latest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 18px;
  border: 4px solid var(--black);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 7px 7px 0 var(--black);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.archive-open-button:hover,
.latest-button:hover {
  box-shadow: 3px 3px 0 var(--black);
  transform: translate(4px, 4px);
}

.hero-stickers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-stickers span {
  display: inline-flex;
  padding: 8px 10px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--black);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
}

.hero-stickers span:nth-child(2) {
  background: #f8d7db;
  transform: rotate(1.4deg);
}

.hero-stickers span:nth-child(3) {
  background: #dbeafe;
  transform: rotate(-1.3deg);
}

.latest-fund {
  width: min(520px, 100%);
  justify-self: stretch;
}

.latest-label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 10px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 950;
  text-transform: uppercase;
  transform: rotate(1deg);
}

.latest-card {
  padding: 12px 12px 16px;
  border: 5px solid var(--black);
  background: var(--white);
  box-shadow: 10px 10px 0 var(--black);
  transform: rotate(1.1deg);
}

.latest-image-link {
  display: block;
  border: 4px solid var(--black);
  background: var(--black);
}

.latest-image-link img {
  width: 100%;
  height: auto;
  max-height: none;
  background: var(--black);
}

.latest-meta {
  padding-top: 14px;
}

.latest-meta h2 {
  margin: 9px 0 8px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.latest-meta p {
  margin: 0 0 10px;
  line-height: 1.45;
}

.latest-data {
  grid-template-columns: 92px 1fr;
  margin: 12px 0 16px;
  font-size: 0.86rem;
}

.latest-data dt {
  color: var(--black);
}

.latest-data a {
  color: var(--blue);
  font-weight: 950;
}

.latest-button {
  min-height: 46px;
  padding: 10px 13px;
  font-size: 1.05rem;
}

.latest-placeholder {
  min-height: 360px;
  display: grid;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(17, 17, 17, 0.12) 48% 52%, transparent 52%),
    var(--white);
}

.latest-placeholder h2,
.latest-placeholder p {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(2rem, 8vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.latest-placeholder p {
  color: var(--red);
}

.site-header {
  padding: 14px clamp(14px, 4vw, 34px) 18px;
  border-bottom: var(--line);
}

.top-strip,
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 7px 12px;
  color: var(--white);
  background: var(--black);
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--red);
  font-weight: 950;
  text-decoration: none;
  text-transform: none;
}

.tiny-link {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 880px;
  padding: 22px 0 4px;
}

.rubber-stamp,
.archive-code,
.shot-label {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rubber-stamp {
  padding: 6px 8px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.36);
  border: 3px solid var(--red);
  transform: rotate(-2deg);
}

h1,
h2 {
  margin: 0;
  line-height: 0.96;
}

.hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  font-weight: 1000;
  text-transform: uppercase;
}

.subtitle {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(1.05rem, 3.4vw, 1.65rem);
  font-weight: 900;
}

.intro {
  max-width: 650px;
  margin: 12px 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
}

main {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 18px clamp(12px, 3vw, 32px) 46px;
}

.archive-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(28px, 5vw, 58px) clamp(12px, 3vw, 32px) clamp(46px, 7vw, 88px);
  color: var(--white);
  background:
    radial-gradient(circle at 14px 18px, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px),
    linear-gradient(180deg, var(--deep-black), #111 52%, #060606);
  background-size: 34px 34px, auto;
  border-bottom: 6px solid var(--black);
}

.archive-inner {
  width: min(1580px, 100%);
  margin: 0 auto;
}

.archive-heading-row {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.archive-heading-row > h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 18vw, 12rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
}

.filter-board {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 22px;
}

.archive-section .filter-board {
  margin: 0;
}

.tape-button,
.button-primary,
.button-secondary,
.button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 3px solid var(--black);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--black);
  font-size: 0.9rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.tape-button:nth-child(3n) {
  background: var(--white);
  transform: rotate(1deg);
}

.tape-button:nth-child(3n + 1) {
  background: #f9d0d4;
  transform: rotate(-1deg);
}

.tape-button.is-active {
  color: var(--white);
  background: var(--black);
  box-shadow: 4px 4px 0 var(--red);
}

.random-button {
  background: var(--blue);
  color: var(--white);
}

.archive-section .tape-button {
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
}

.archive-section .tape-button.is-active {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 var(--red);
}

.archive-section .random-button {
  color: var(--white);
  background: var(--red);
}

.category-note,
.empty-wall {
  margin: 0 0 24px;
  padding: 18px;
  border: var(--line);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.archive-section .category-note,
.archive-section .empty-wall {
  color: var(--black);
  background: var(--paper-light);
  border-color: var(--white);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.82);
}

.category-note h2,
.empty-wall h1 {
  margin-bottom: 8px;
  font-size: 2rem;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.photo-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 8px 12px;
  border: var(--line);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--black);
  transform: rotate(-0.35deg);
}

.archive-section .photo-card {
  border-color: var(--white);
  background: var(--paper-light);
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.18);
  color: var(--black);
}

.archive-section .photo-card:nth-child(5n) {
  background: #fff7df;
}

.photo-card:nth-child(4n + 2) {
  transform: rotate(0.5deg);
}

.photo-card:nth-child(5n) {
  background: #fff8e8;
}

.photo-card img,
.photo-card video,
.photo-card canvas,
.latest-card video,
.latest-card canvas,
.single-photo-frame video,
.single-photo-frame canvas {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--black);
  background: var(--black);
}

.photo-card video,
.latest-card video,
.single-photo-frame video,
.photo-card canvas,
.latest-card canvas,
.single-photo-frame canvas {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--black);
}

.media-frame {
  position: relative;
  display: block;
  color: inherit;
}

.media-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 5px 8px;
  border: 3px solid var(--black);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.photo-card.is-portrait {
  padding-bottom: 16px;
}

.photo-card.is-landscape {
  padding-bottom: 12px;
}

.photo-card.is-square {
  padding-bottom: 14px;
}

.adult-image-wrap {
  position: relative;
  overflow: hidden;
}

.adult-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.adult-blurred {
  filter: blur(14px) brightness(0.62);
  transition: filter 160ms ease, transform 160ms ease;
}

.adult-confirmed .adult-blurred {
  filter: none;
}

.adult-overlay[hidden] {
  display: none;
}

.adult-overlay {
  position: absolute;
  inset: 8px;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 14px;
  border: 4px solid var(--black);
  color: var(--black);
  background: rgba(244, 234, 216, 0.9);
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.82);
  text-align: center;
}

.adult-question {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.45rem, 8vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.adult-note {
  max-width: 260px;
  margin: 0 auto;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.adult-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.adult-actions button {
  min-width: 72px;
  min-height: 42px;
  border: 3px solid var(--black);
  box-shadow: 3px 3px 0 var(--black);
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.adult-yes {
  background: var(--yellow);
  color: var(--black);
}

.adult-no {
  background: var(--black);
  color: var(--white);
}

.photo-caption {
  padding: 10px 2px 0;
}

.photo-caption h2 {
  margin: 2px 0 6px;
  font-size: 1rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.archive-code {
  padding: 4px 6px;
  color: var(--white);
  background: var(--black);
}

.shot-label {
  color: var(--muted);
}

.category-chip {
  display: inline-flex;
  padding: 5px 8px;
  border: 2px solid var(--black);
  background: #dbeafe;
  box-shadow: 2px 2px 0 var(--black);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.category-chip-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.archive-section .category-chip {
  background: var(--yellow);
  color: var(--black);
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: rgba(17, 17, 17, 0.94);
}

.lightbox-figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  height: calc(100vh - 24px);
  margin: 0 auto;
  color: var(--white);
}

.lightbox-figure img {
  align-self: center;
  justify-self: center;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 4px solid var(--white);
  background: var(--black);
}

.lightbox-figure video,
.lightbox-figure canvas {
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 4px solid var(--white);
  background: var(--black);
}

.lightbox-figure video[hidden],
.lightbox-figure canvas[hidden],
.lightbox-figure img[hidden] {
  display: none;
}

.lightbox-adult-overlay {
  inset: 0 0 34vh;
  margin: auto;
  width: min(420px, calc(100% - 28px));
  min-height: 230px;
}

.lightbox-figure figcaption {
  max-height: 34vh;
  overflow: auto;
  padding: 12px;
  border: 3px solid var(--white);
  background: var(--black);
}

.lightbox-figure h2 {
  margin: 6px 0 8px;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.lightbox-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0;
  font-weight: 800;
}

.lightbox-meta a {
  color: var(--yellow);
}

.single-link {
  color: var(--yellow);
  font-weight: 900;
}

.lightbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.frontend-sort {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

.frontend-sort label {
  color: var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.frontend-sort select {
  min-height: 42px;
  padding: 8px 38px 8px 10px;
  border: 3px solid var(--white);
  color: var(--black);
  background: var(--paper-light);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.22);
  font-weight: 950;
  text-transform: uppercase;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 13px;
  border: 3px solid var(--black);
  color: var(--black);
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.lightbox .download-button {
  border-color: var(--white);
  box-shadow: 4px 4px 0 var(--white);
}

.lightbox-close,
.lightbox-nav {
  min-width: 44px;
  min-height: 44px;
  border: 3px solid var(--white);
  color: var(--white);
  background: var(--black);
  font-weight: 950;
  cursor: pointer;
}

.lightbox-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 60;
}

.lightbox-nav {
  font-size: 2rem;
}

.site-footer {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 44px);
  border-top: var(--line);
  font-weight: 900;
  text-transform: uppercase;
}

.public-page .site-footer {
  color: var(--white);
  background: var(--deep-black);
  border-top: 4px solid var(--white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.public-page .site-footer span {
  margin-right: auto;
}

.single-top {
  padding: 16px clamp(16px, 4vw, 44px);
  border-bottom: var(--line);
}

.single-photo-layout {
  display: grid;
  gap: 18px;
}

.single-photo-frame {
  padding: 10px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.single-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--black);
}

.single-photo-frame.is-portrait {
  width: min(100%, 780px);
  margin-inline: auto;
}

.single-meta {
  padding: 18px;
  border: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.single-meta h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.4rem, 11vw, 5rem);
  text-transform: uppercase;
}

dl {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 8px 12px;
  margin: 16px 0 0;
}

dt {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
}

dd {
  margin: 0;
}

.admin-page {
  background-color: var(--paper);
}

.admin-header {
  padding: 14px clamp(14px, 3vw, 32px);
  border-bottom: var(--line);
}

.admin-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-nav a {
  min-height: 40px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--black);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  text-decoration: none;
}

.admin-header .brand-mark {
  text-transform: uppercase;
}

.admin-nav a.is-active {
  color: var(--white);
  background: var(--black);
}

.admin-main {
  max-width: 1220px;
}

.admin-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-main h1 {
  font-size: clamp(2.4rem, 10vw, 5.6rem);
  text-transform: uppercase;
}

.flash {
  padding: 12px 14px;
  border: 3px solid var(--black);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 850;
}

.flash.success {
  background: #d7f5d4;
}

.flash.error {
  background: #ffd5d9;
}

.admin-photo-list,
.category-admin-list {
  display: grid;
  gap: 14px;
}

.admin-photo-card,
.category-admin-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: var(--line);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--black);
}

.admin-photo-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 3px solid var(--black);
  background: var(--black);
}

.admin-photo-thumb {
  position: relative;
}

.admin-photo-thumb img {
  display: block;
}

.admin-photo-thumb .media-badge {
  top: 4px;
  left: 4px;
  font-size: 0.62rem;
}

.media-admin-preview {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: var(--line);
  background: var(--paper-light);
  box-shadow: 5px 5px 0 var(--black);
}

.media-admin-preview video,
.media-admin-preview canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--black);
  background: var(--black);
}

.admin-photo-meta h2,
.category-admin-card h2 {
  margin: 4px 0 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.admin-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button-primary {
  background: var(--yellow);
}

.button-secondary {
  background: var(--white);
}

.button-danger {
  color: var(--white);
  background: var(--red);
}

.admin-form {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.admin-form label,
.checkbox-label {
  font-weight: 950;
  text-transform: uppercase;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form textarea,
.admin-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px;
  border: 3px solid var(--black);
  background: var(--white);
  color: var(--ink);
}

.admin-form textarea {
  min-height: 130px;
  resize: vertical;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 22px;
  height: 22px;
}

.admin-fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 4px 0;
  padding: 12px;
  border: 3px solid var(--black);
  background: rgba(255, 193, 7, 0.14);
}

.admin-fieldset legend {
  padding: 0 6px;
  font-weight: 950;
  text-transform: uppercase;
}

.category-dropdown {
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--black);
}

.category-dropdown summary {
  min-height: 50px;
  padding: 12px 14px;
  background: var(--yellow);
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.category-dropdown summary::-webkit-details-marker {
  display: none;
}

.category-dropdown summary::after {
  float: right;
  content: "+";
  font-weight: 950;
}

.category-dropdown[open] summary::after {
  content: "-";
}

.category-dropdown-panel {
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  padding: 10px;
  border-top: 3px solid var(--black);
}

.category-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 2px solid var(--black);
  background: var(--paper-light);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.category-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  accent-color: var(--black);
}

.category-option span {
  overflow-wrap: anywhere;
}

.category-option:has(input:checked) {
  color: var(--white);
  background: var(--black);
  box-shadow: 3px 3px 0 var(--yellow);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 18px;
}

.login-box {
  width: min(520px, 100%);
  padding: 0;
}

.login-box h1 {
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 12vw, 5rem);
  text-transform: uppercase;
}

.quick-upload-page {
  min-height: 100vh;
  padding: max(16px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}

.quick-upload-shell {
  width: min(640px, 100%);
  margin: 0 auto;
}

.quick-upload-head {
  margin-bottom: 16px;
}

.quick-upload-head .brand-mark {
  display: inline-flex;
  margin-bottom: 16px;
}

.quick-upload-head h1 {
  margin: 4px 0 8px;
  font-size: clamp(3.4rem, 18vw, 6rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.quick-upload-form {
  gap: 14px;
  padding: 16px;
}

.quick-upload-form input[type="file"],
.quick-upload-form input[type="text"],
.quick-upload-form textarea,
.quick-upload-form select {
  min-height: 56px;
  font-size: 1.05rem;
}

.quick-check {
  min-height: 56px;
  padding: 10px;
  border: 3px solid var(--black);
  background: rgba(255, 193, 7, 0.16);
}

.quick-check input {
  flex: 0 0 auto;
}

.quick-submit {
  min-height: 64px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0;
}

.quick-result {
  display: grid;
  gap: 14px;
}

.quick-uploaded-list {
  display: grid;
  gap: 8px;
}

.quick-uploaded-list a {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 3px solid var(--black);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--black);
  font-weight: 900;
  text-decoration: none;
}

.quick-uploaded-list span {
  width: fit-content;
  padding: 3px 6px;
  color: var(--white);
  background: var(--black);
  font-size: 0.8rem;
}

.quick-actions {
  display: grid;
  gap: 10px;
}

.quick-actions a {
  min-height: 56px;
}

.edit-layout,
.categories-layout {
  display: grid;
  gap: 20px;
}

.edit-preview {
  padding: 12px;
  border: var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}

.edit-preview img {
  width: 100%;
  border: 3px solid var(--black);
  background: var(--black);
}

.image-editor {
  display: grid;
  gap: 12px;
}

.crop-stage {
  position: relative;
  display: block;
  width: 100%;
  touch-action: none;
  user-select: none;
}

.crop-stage img {
  cursor: crosshair;
}

.crop-selection {
  position: absolute;
  border: 3px solid var(--yellow);
  background: rgba(255, 193, 7, 0.2);
  box-shadow: 0 0 0 9999px rgba(17, 17, 17, 0.42);
  pointer-events: none;
}

.image-tool-form {
  display: grid;
  gap: 10px;
}

.image-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.image-tool-grid .button-secondary,
.image-tool-form .button-primary {
  width: 100%;
}

.category-admin-card {
  grid-template-columns: 1fr;
}

.category-admin-card p {
  margin: 8px 0;
}

.upload-file-list {
  display: grid;
  gap: 8px;
}

.upload-title-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 2px dashed var(--black);
  background: rgba(255, 193, 7, 0.2);
}

.upload-title-row span {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.sort-toolbar {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.sort-field {
  display: grid;
  gap: 6px;
}

.sort-save-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 16px;
}

.sort-save-row form {
  margin: 0;
}

.form-note.is-error {
  color: var(--red);
}

.sort-list {
  display: grid;
  gap: 12px;
}

.sort-card {
  display: grid;
  grid-template-columns: 46px 92px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: var(--line);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--black);
}

.sort-card.is-dragging {
  opacity: 0.45;
}

.sort-card img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 3px solid var(--black);
  background: var(--black);
}

.sort-card h2 {
  margin: 4px 0 8px;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.sort-handle {
  width: 42px;
  min-height: 92px;
  border: 3px solid var(--black);
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--black);
  font-size: 1.35rem;
  font-weight: 950;
  cursor: grab;
}

.sort-mobile-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sort-mobile-actions button {
  min-height: 40px;
  border: 2px solid var(--black);
  background: var(--paper-light);
  box-shadow: 3px 3px 0 var(--black);
  font-weight: 900;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42vw);
  }

  .latest-fund {
    justify-self: end;
  }

  .archive-heading-row {
    grid-template-columns: minmax(240px, auto) 1fr;
  }

  .archive-section .filter-board {
    justify-content: flex-end;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .photo-card {
    margin-bottom: 0;
  }

  .single-photo-layout,
  .edit-layout,
  .categories-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .admin-photo-card {
    grid-template-columns: 130px 1fr auto;
  }

  .admin-photo-card img {
    width: 130px;
    height: 110px;
  }

  .admin-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .image-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sort-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  .sort-card {
    grid-template-columns: 54px 124px minmax(0, 1fr);
  }

  .sort-card img {
    width: 124px;
    height: 104px;
  }

  .sort-handle {
    min-height: 104px;
  }

  .sort-mobile-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1020px) {
  .archive-hero {
    min-height: 100vh;
  }

  .hero-layout {
    min-height: calc(100vh - clamp(36px, 8vw, 96px));
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1380px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .archive-hero {
    min-height: auto;
    padding: 18px 14px 30px;
  }

  .archive-hero::after {
    right: -190px;
    bottom: 22%;
  }

  .hero-tape {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    margin: 0 0 20px auto;
    transform: rotate(-1.5deg);
  }

  .hero-layout {
    min-height: auto;
    padding-top: 0;
  }

  .hero-label {
    min-height: 38px;
    margin-bottom: 16px;
  }

  .hero-panel h1 {
    font-size: clamp(4.1rem, 23vw, 6.2rem);
  }

  .hero-rule {
    margin: 18px 0 13px;
  }

  .hero-text {
    margin-bottom: 18px;
  }

  .archive-open-button {
    width: 100%;
  }

  .hero-stickers {
    margin-top: 16px;
  }

  .latest-card {
    transform: rotate(0.4deg);
  }

  .archive-heading-row > h2 {
    font-size: clamp(4.8rem, 24vw, 7rem);
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding: 8px;
  }

  .lightbox-figure {
    grid-column: 1 / -1;
    height: calc(100vh - 84px);
    order: 1;
  }

  .lightbox-prev,
  .lightbox-next {
    order: 2;
  }

  .lightbox-figure figcaption {
    max-height: 38vh;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
