:root {
  color-scheme: light;
  --black: #111111;
  --white: #fffdf6;
  --paper: #f4f0e6;
  --yellow: #f4df25;
  --red: #e7472f;
  --blue: #2364d8;
  --green: #2b8d56;
  --line: 2px solid var(--black);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--black);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body:has(dialog[open]) {
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

body.dialog-open::before {
  position: fixed;
  z-index: 99;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  content: "";
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

.shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

.contract-bar {
  position: relative;
  z-index: 10;
  border-bottom: var(--line);
  background: var(--yellow);
}

.contract-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 70px);
  min-height: 42px;
  align-items: center;
  gap: 14px;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.contract-label {
  white-space: nowrap;
}

.contract-inner code {
  overflow: hidden;
  font-size: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-copy,
.text-button,
.read-button,
.close-dialog {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-weight: 900;
}

.contract-copy {
  align-self: stretch;
  border-inline: var(--line);
  padding-inline: 14px;
}

.contract-copy:hover,
.contract-copy:focus-visible {
  background: var(--black);
  color: var(--yellow);
}

.copy-status {
  min-width: 0;
}

.site-header {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  text-decoration: none;
}

.wordmark i {
  display: grid;
  width: 1.8em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 0.45em;
  font-style: italic;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.8rem;
}

.site-header nav a,
.site-header .text-button {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-header .text-button {
  border-bottom: 2px solid currentColor;
  padding: 0 0 2px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(70svh, 700px);
  overflow: hidden;
  border-block: var(--line);
  background: var(--black);
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  z-index: -1;
  background: rgba(0, 0, 0, 0.56);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(52px, 8vw, 94px);
}

.hero-kicker,
.section-label,
.meme-tag {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 15px;
  color: var(--yellow);
}

.hero h1,
.gallery-heading h2,
.submit-band h2,
.upload-dialog h2 {
  margin: 0;
  font-family: Impact, "Arial Black", sans-serif;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.76;
  text-shadow: 4px 4px 0 var(--black);
}

.hero-copy {
  margin: 28px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: var(--line);
  border-radius: 0;
  padding: 12px 18px;
  box-shadow: 4px 4px 0 var(--black);
  cursor: pointer;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: 0.78rem;
  text-decoration: none;
  transition: box-shadow 120ms ease, transform 120ms ease;
}

.button:hover,
.button:focus-visible {
  box-shadow: 1px 1px 0 var(--black);
  transform: translate(3px, 3px);
}

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

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

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

.hero-source {
  position: absolute;
  right: 18px;
  bottom: 15px;
  font-family: "Courier New", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.ticker {
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--blue);
  color: var(--white);
}

.ticker div {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 26px;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
}

.ticker b {
  color: var(--yellow);
}

.gallery-section {
  padding-block: clamp(64px, 8vw, 110px);
}

.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}

.gallery-heading .section-label {
  margin-bottom: 14px;
  color: var(--red);
}

.gallery-heading h2,
.submit-band h2 {
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: 0.8;
}

.gallery-heading > p {
  margin: 0 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

.gallery {
  columns: 3 320px;
  column-gap: 20px;
}

.meme-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 20px;
  border: var(--line);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--black);
}

.meme-card:nth-child(4n + 2) {
  box-shadow: 6px 6px 0 var(--red);
}

.meme-card:nth-child(4n + 3) {
  box-shadow: 6px 6px 0 var(--blue);
}

.meme-card:nth-child(4n) {
  box-shadow: 6px 6px 0 var(--green);
}

.meme-image-link {
  display: block;
  border-bottom: var(--line);
  background: var(--black);
}

.meme-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
}

.meme-card figcaption {
  padding: 16px 16px 18px;
}

.meme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.meme-tag {
  color: var(--red);
  font-size: 0.68rem;
}

.meme-source {
  font-family: "Courier New", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  text-decoration: none;
}

.meme-card h3 {
  margin: 0;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.meme-line {
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.38;
}

.read-button {
  border-bottom: 2px solid currentColor;
  padding: 0 0 2px;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
}

.read-button:hover,
.read-button:focus-visible,
.meme-source:hover,
.meme-source:focus-visible {
  color: var(--blue);
}

.submit-band {
  border-block: var(--line);
  background: var(--red);
  color: var(--white);
}

.submit-inner {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 60px;
}

.submit-inner .section-label {
  margin-bottom: 18px;
  color: var(--yellow);
}

.submit-inner .button {
  min-width: 190px;
  background: var(--yellow);
  color: var(--black);
}

.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 180px;
  align-items: center;
  gap: 24px;
}

.footer-mark {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--black);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 1.6rem;
}

.site-footer strong {
  font-family: "Arial Black", Arial, sans-serif;
}

.site-footer p {
  max-width: 640px;
  margin: 8px 0 0;
  color: #bcbcbc;
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-footer a {
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.upload-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(900px, calc(100svh - 28px));
  border: var(--line);
  border-radius: 0;
  padding: 0;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--black);
  color: var(--black);
}

.upload-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.upload-dialog.dialog-fallback {
  position: fixed;
  z-index: 100;
  top: 50%;
  left: 50%;
  display: block;
  margin: 0;
  transform: translate(-50%, -50%);
}

.upload-dialog form {
  padding: clamp(22px, 5vw, 42px);
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.dialog-heading .section-label {
  margin-bottom: 10px;
  color: var(--red);
}

.upload-dialog h2 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.82;
}

.close-dialog {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: var(--line);
  font-size: 2rem;
  line-height: 1;
}

.close-dialog:hover,
.close-dialog:focus-visible {
  background: var(--black);
  color: var(--white);
}

.file-drop {
  display: grid;
  min-height: 132px;
  place-items: center;
  margin-bottom: 20px;
  border: 3px dashed var(--black);
  background: var(--yellow);
  cursor: pointer;
  text-align: center;
}

.file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-drop strong {
  font-family: "Arial Black", Arial, sans-serif;
}

.file-drop span {
  max-width: 90%;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upload-dialog label:not(.file-drop, .rights-check, .honeypot) {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.upload-dialog label > span {
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.upload-dialog em {
  color: #666666;
  font-style: normal;
}

.upload-dialog input[type="text"],
.upload-dialog input[type="url"] {
  min-width: 0;
  border: var(--line);
  border-radius: 0;
  background: var(--white);
  padding: 13px 12px;
  outline: none;
}

.upload-dialog input:focus-visible {
  box-shadow: 4px 4px 0 var(--blue);
}

.rights-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 22px;
}

.rights-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--black);
}

.rights-check span {
  text-transform: none !important;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dialog-actions p {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 1240px);
  }

  .contract-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
  }

  .contract-label,
  .copy-status {
    display: none;
  }

  .contract-inner code {
    padding-right: 12px;
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav a {
    display: none;
  }

  .site-header nav {
    gap: 0;
    font-size: 0.7rem;
  }

  .hero {
    min-height: 66svh;
  }

  .hero-image {
    object-position: 54% center;
  }

  .hero-content {
    padding-block: 44px;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 21vw, 6.8rem);
  }

  .hero-copy br {
    display: none;
  }

  .hero-source {
    display: none;
  }

  .ticker div {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .gallery-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .gallery-heading h2,
  .submit-band h2 {
    font-size: clamp(3rem, 16vw, 5.4rem);
  }

  .gallery {
    columns: 1;
  }

  .submit-inner {
    min-height: 360px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: auto minmax(0, 1fr);
    padding-block: 34px;
  }

  .site-footer a {
    grid-column: 1 / -1;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dialog-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
