:root {
  color-scheme: dark;
  --ink: #fff7e8;
  --muted: #c8c0b2;
  --soft: rgba(255, 247, 232, 0.78);
  --dark: #0d100f;
  --panel: rgba(22, 25, 22, 0.9);
  --panel-strong: rgba(32, 35, 30, 0.96);
  --line: rgba(255, 255, 255, 0.14);
  --green: #84e35f;
  --amber: #f2bd68;
  --rose: #d36b65;
  --red: #ee5d5d;
  --cyan: #78d6cf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, #101512 0%, #090b0a 48%, #17100e 100%);
  background-size: 38px 38px, 38px 38px, auto;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(120, 214, 207, 0.74);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: #12110f;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 12, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav,
.pact-band,
.section-shell,
.closing-band,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.site-nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.nav-links,
.hero-actions,
.pact-list,
.site-footer,
.tag-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 950;
  text-decoration: none;
  letter-spacing: 0;
}

.brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(132, 227, 95, 0.5);
  background: linear-gradient(145deg, rgba(132, 227, 95, 0.2), rgba(120, 214, 207, 0.1));
  color: #dfffce;
}

.nav-links {
  gap: 22px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.prank-hero {
  min-height: calc(82vh - 68px);
  display: grid;
  align-items: end;
  padding: clamp(70px, 8vw, 118px) max(16px, calc((100vw - 1180px) / 2)) clamp(46px, 7vw, 82px);
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.98) 0%, rgba(7, 9, 8, 0.9) 31%, rgba(7, 9, 8, 0.3) 68%, rgba(7, 9, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(7, 9, 8, 0.98) 0%, rgba(7, 9, 8, 0.18) 36%, rgba(7, 9, 8, 0.04) 100%),
    url("assets/pranks/fart-pranks-title-hero.png");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  min-width: 0;
  max-width: 660px;
}

.eyebrow,
.tag-row span {
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.8rem, 8.5vw, 7.6rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 3.6rem;
  line-height: 0.92;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 1.5rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.lede {
  max-width: 640px;
  color: var(--soft);
  font-size: 1.22rem;
  line-height: 1.5;
}

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

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 950;
  text-decoration: none;
}

.primary-action {
  border-color: rgba(132, 227, 95, 0.58);
  background: linear-gradient(145deg, rgba(132, 227, 95, 0.94), rgba(120, 214, 207, 0.78));
  color: #101410;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.pact-band,
.closing-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: center;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pact-copy h2,
.closing-band h2 {
  font-size: 2.1rem;
}

.pact-list {
  min-width: 0;
  flex-wrap: wrap;
  gap: 10px;
}

.pact-list span,
.tag-row span,
.search-line {
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
}

.pact-list span {
  padding: 9px 11px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.section-shell {
  padding: 70px 0 76px;
}

.section-heading {
  min-width: 0;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.prank-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.prank-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.prank-card img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: contain;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prank-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  align-content: start;
  min-height: 270px;
  padding: 16px;
}

.tag-row {
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 8px;
  color: #ffe1a6;
  font-size: 0.68rem;
}

.prank-body p {
  color: var(--muted);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.search-line {
  align-self: end;
  min-width: 0;
  margin: 10px 0 0;
  padding: 10px;
  color: var(--soft);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.search-line strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.caution-card {
  border-color: rgba(238, 93, 93, 0.36);
  background:
    linear-gradient(145deg, rgba(211, 107, 101, 0.18), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.closing-band {
  align-items: start;
  padding-top: 0;
  padding-bottom: 76px;
  border-bottom: 0;
}

.closing-band p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.site-footer {
  min-height: 86px;
  padding: 22px 0 30px;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .prank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 4.8rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .prank-hero {
    min-height: 720px;
    padding-top: 98px;
    background-position: 58% center;
  }

  .pact-band,
  .closing-band {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .site-nav,
  .pact-band,
  .section-shell,
  .closing-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .prank-hero {
    min-height: 650px;
    padding: 56px 12px 34px;
    background-position: 61% center;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-copy,
  .lede,
  .pact-list,
  .primary-action,
  .secondary-action {
    width: 330px;
    max-width: calc(100vw - 24px);
  }

  h1 {
    max-width: 8.5ch;
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
    overflow-wrap: anywhere;
  }

  .lede {
    font-size: 1.04rem;
  }

  .prank-grid {
    grid-template-columns: 1fr;
  }

  .pact-list span {
    width: 330px;
    max-width: calc(100vw - 24px);
    white-space: normal;
    word-break: break-word;
  }

  .prank-body {
    min-height: auto;
  }
}
