:root {
  --paper: #fff7df;
  --ink: #17120f;
  --newsprint: #f3e7c5;
  --red: #e5483f;
  --blue: #2066b2;
  --yellow: #f7c744;
  --green: #228a75;
  --shadow: rgba(23, 18, 15, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(23, 18, 15, 0.16) 1px, transparent 0) 0 0 / 16px 16px,
    linear-gradient(135deg, var(--paper), #ffe9a8 48%, #f7f2e6);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 6px solid var(--ink);
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.88), rgba(23, 18, 15, 0.32) 48%, rgba(255, 247, 223, 0.16)),
    repeating-linear-gradient(0deg, rgba(255, 247, 223, 0.1) 0 2px, transparent 2px 6px);
}

.hero-image,
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    linear-gradient(135deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--blue) 50% 75%, var(--green) 75%),
    var(--paper);
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  color: #fff7df;
}

.topbar a:not(.logo) {
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0;
  border-bottom: 3px solid transparent;
}

.topbar a:not(.logo):hover {
  border-color: var(--yellow);
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 950;
  text-transform: uppercase;
}

.logo {
  margin-right: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 4px solid currentColor;
  background: var(--red);
  color: #fff7df;
  box-shadow: 5px 5px 0 var(--ink);
  transform: rotate(-5deg);
}

.logo-text {
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  text-shadow: 3px 3px 0 rgba(23, 18, 15, 0.35);
}

.hero-copy {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 clamp(3rem, 7vw, 5.5rem);
  color: #fff7df;
}

.kicker {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.38rem 0.65rem;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.4rem, 14vw, 10.5rem);
  line-height: 0.8;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 var(--ink), 12px 12px 0 var(--red);
}

.hero-copy > p:not(.kicker) {
  max-width: 46rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-weight: 900;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff7df;
  border: 4px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none;
  font-weight: 950;
}

.primary-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--ink);
  color: #fff7df;
  border-bottom: 6px solid var(--ink);
}

.intro-band p {
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--blue);
  border: 4px solid #fff7df;
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  line-height: 1.1;
  font-weight: 950;
}

.intro-band p:nth-child(2) {
  background: var(--green);
}

.gallery-section {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1rem, 3vw, 2rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: start;
}

.cartoon-card {
  background: #fffef4;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
  transform: rotate(var(--tilt, -1deg));
}

.cartoon-card:nth-child(2n) {
  --tilt: 1.1deg;
}

.cartoon-card:nth-child(3n) {
  --tilt: -0.4deg;
}

.cartoon-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

.cartoon-button img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 5px solid var(--ink);
  filter: saturate(1.08) contrast(1.03);
}

.caption {
  min-height: 10.5rem;
  padding: 1rem;
}

.caption h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1;
  text-transform: uppercase;
}

.caption p,
.empty-gallery p,
.privacy-page p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.empty-gallery {
  max-width: 52rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fffef4;
  border: 5px dashed var(--ink);
  box-shadow: 8px 8px 0 var(--red);
}

.empty-gallery h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--ink);
  color: #fff7df;
  border-top: 6px solid var(--red);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  font-weight: 900;
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25rem;
}

.site-footer p {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(23, 18, 15, 0.88);
  cursor: zoom-out;
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
}

.lightbox figure {
  margin: 0;
  background: #fffef4;
  border: 5px solid #fff7df;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.4);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  background: #fffef4;
}

.lightbox figcaption {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-top: 5px solid var(--ink);
  color: var(--ink);
}

.lightbox figcaption strong {
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  text-transform: uppercase;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  z-index: 2;
  border: 4px solid #fff7df;
  background: var(--red);
  color: #fff7df;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
  font-weight: 950;
  cursor: pointer;
}

.lightbox-close {
  right: 0;
  bottom: calc(100% + 0.75rem);
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.lightbox-arrow {
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 50%;
  font-size: 2.3rem;
  line-height: 1;
}

.lightbox-arrow.previous {
  left: 0.75rem;
}

.lightbox-arrow.next {
  right: 0.75rem;
}

.privacy-page {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 3rem;
  padding: clamp(1.25rem, 5vw, 4rem);
}

.privacy-logo {
  width: fit-content;
}

.privacy-page section {
  width: min(760px, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fffef4;
  border: 5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--shadow);
}

.privacy-page h1 {
  max-width: none;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow);
  font-size: clamp(3rem, 9vw, 5.75rem);
}

.privacy-page p {
  margin-top: 1rem;
}

.privacy-page .primary-link {
  margin-top: 1.5rem;
}

@media (max-width: 760px) {
  .site-hero {
    min-height: 88vh;
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar a:not(.logo) {
    padding-top: 0.7rem;
  }

  .logo-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .hero-copy {
    width: min(100% - 1.5rem, 980px);
  }

  h1 {
    font-size: clamp(4rem, 22vw, 7rem);
  }

  .intro-band,
  .section-heading,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
  }

  .site-footer,
  .site-footer p {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 5.5rem;
  }
}
