@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --ink: #191919;
  --paper: #f4eedf;
  --yellow: #ffce38;
  --red: #ef6047;
  --blue: #4f78d8;
  --card: #fffaf0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .25;
  background-image: radial-gradient(#1d1d1d 0.7px, transparent 0.7px);
  background-size: 8px 8px;
}

.hero {
  min-height: 100svh;
  padding: 7vh 24px 5vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-bottom: 4px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "100% factual*";
  position: absolute;
  right: -45px;
  top: 54px;
  padding: 10px 54px;
  background: var(--red);
  border-block: 3px solid var(--ink);
  font-weight: 800;
  transform: rotate(38deg);
}

.eyebrow {
  margin: 0 0 22px;
  padding: 8px 14px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}

h1 {
  margin: 0;
  font: 700 clamp(3.2rem, 11vw, 8.5rem)/.83 "Space Grotesk", sans-serif;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

h1 span { color: var(--blue); text-shadow: 4px 4px 0 var(--ink); }

.intro {
  max-width: 610px;
  margin: 34px auto;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.55;
}

.scroll-cue {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  display: grid;
  gap: 7px;
}

.arrow { font-size: 2.1rem; animation: bounce 1.3s infinite; }
@keyframes bounce { 50% { transform: translateY(8px); } }

.museum {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 110px 0;
}

.exhibit {
  margin: 0 auto 150px;
  max-width: 790px;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .65s ease, transform .65s ease;
}

.exhibit.visible { opacity: 1; transform: none; }
.exhibit:nth-child(even) { transform: translateY(34px) rotate(1deg); }
.exhibit:nth-child(even).visible { transform: rotate(1deg); }
.exhibit:nth-child(odd).visible { transform: rotate(-.7deg); }

.caption {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 -14px 24px;
  padding: 13px 18px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font: 700 clamp(1.35rem, 4vw, 2.3rem)/1.05 "Space Grotesk", sans-serif;
}

.photo-frame {
  background: var(--card);
  padding: 16px 16px 52px;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}

.photo-frame img {
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border: 2px solid var(--ink);
  background: #ddd4c4;
}

.note {
  margin: 25px 8px -31px;
  text-align: center;
  font-weight: 700;
  font-style: italic;
}

footer {
  padding: 90px 24px;
  background: var(--ink);
  color: white;
  text-align: center;
}

footer p { font: 700 clamp(2rem, 6vw, 4rem)/1 "Space Grotesk", sans-serif; margin: 0 auto 28px; }
footer a { color: var(--yellow); font-weight: 800; }
footer small { display: block; margin-top: 58px; color: #aaa; }

@media (max-width: 600px) {
  .hero::after { right: -62px; top: 35px; font-size: .75rem; }
  .museum { padding-block: 80px; }
  .exhibit { margin-bottom: 100px; }
  .caption { margin-left: 10px; }
  .photo-frame { padding: 10px 10px 44px; box-shadow: 7px 7px 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arrow { animation: none; }
  .exhibit { opacity: 1; transform: none !important; transition: none; }
}
