/* adultadgenerator.com Design System Tokens */
:root {
  --ground: #2F3033;
  --ground-lift: #3A3B3F;
  --ink: #F2F1EE;
  --ink-dim: #A3A4A8;
  --rule: #55565B;
  --mark: #E5006D;
  --proof: #FFD400;

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 700;
  font-stretch: 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-expanded.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/martian-mono-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Martian Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/martian-mono-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/newsreader-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--ground);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

body[data-gate="closed"] {
  overflow: hidden;
  height: 100vh;
}

/* Typography Hierarchy */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink);
}

.dim {
  color: var(--ink-dim);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mark);
  margin-bottom: 1rem;
  display: inline-block;
}

.eyebrow-dim {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

section {
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
}

section:last-of-type {
  border-bottom: none;
}

/* Site Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background-color: var(--ground);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 640px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo span.tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mark);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.nav-link:hover, .nav-link:focus-visible {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
  border-bottom: 1px solid var(--mark);
}

/* Buttons and Links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.btn-primary {
  background-color: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: #FFFFFF;
  color: #000000;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--ground-lift);
  border-color: var(--ink-dim);
}

.btn-mark {
  background-color: var(--mark);
  color: #FFFFFF;
  border-color: var(--mark);
}

.btn-mark:hover, .btn-mark:focus-visible {
  background-color: #FF007A;
  border-color: #FF007A;
  transform: translateY(-1px);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Focus Rings */
:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}

/* Three Panels Grid */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.panel-card {
  background-color: var(--ground-lift);
  border: 1px solid var(--rule);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

.panel-card .panel-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mark);
  margin-bottom: 1rem;
}

.panel-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.panel-card p {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.panel-card p:last-child {
  margin-bottom: 0;
}

/* The True-Scale Trafficking Grid */
.gallery-section {
  background-color: var(--ground);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  background-color: var(--ground-lift);
  color: var(--ink-dim);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: color 150ms ease-out, border-color 150ms ease-out, background-color 150ms ease-out;
}

.filter-chip:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

.filter-chip.active {
  color: var(--ink);
  background-color: var(--ground);
  border-color: var(--mark);
}

.stage-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 1.5rem;
}

.trafficking-stage {
  --scale: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  background-color: var(--ground);
}

/* Individual Slot Presentation */
.slot {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--ground-lift);
  border: 1px solid var(--rule);
  padding: 8px;
  max-width: 100%;
  margin: 0;
  transition: border-color 180ms ease-out;
}

.slot:hover, .slot:focus-within {
  border-color: var(--ink-dim);
}

/* Hairline Crop Marks */
.slot__marks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.slot__marks::before,
.slot__marks::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--rule);
  border-style: solid;
  pointer-events: none;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

/* Top-Left & Bottom-Right */
.slot__marks::before {
  top: -4px;
  left: -4px;
  border-width: 1px 0 0 1px;
}

.slot__marks::after {
  bottom: -4px;
  right: -4px;
  border-width: 0 1px 1px 0;
}

.slot:hover .slot__marks::before {
  transform: translate(-3px, -3px);
  border-color: var(--mark);
}

.slot:hover .slot__marks::after {
  transform: translate(3px, 3px);
  border-color: var(--mark);
}

.slot-inner-marks {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.slot-inner-marks::before {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-width: 1px 1px 0 0;
  border-color: var(--rule);
  border-style: solid;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.slot-inner-marks::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -4px;
  width: 12px;
  height: 12px;
  border-width: 0 0 1px 1px;
  border-color: var(--rule);
  border-style: solid;
  transition: transform 180ms ease-out, border-color 180ms ease-out;
}

.slot:hover .slot-inner-marks::before {
  transform: translate(3px, -3px);
  border-color: var(--mark);
}

.slot:hover .slot-inner-marks::after {
  transform: translate(-3px, 3px);
  border-color: var(--mark);
}

.slot picture {
  display: block;
  width: 100%;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.slot img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.slot img.loaded {
  opacity: 1;
}

/* Placard below creative */
.slot__placard {
  padding-top: 0.75rem;
  padding-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-dim);
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}

.slot__placard .placard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.slot__placard .dim {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.slot__placard .brand {
  color: var(--ink-dim);
  font-weight: 300;
}

.slot__placard .brief {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--ink-dim);
  margin-bottom: 0;
  margin-top: 0.35rem;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--proof);
  border: 1px solid var(--proof);
  padding: 0.1rem 0.35rem;
  margin-left: 0.5rem;
}

/* FAQ Accordion / List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background-color: var(--ground-lift);
  border: 1px solid var(--rule);
  padding: 1.75rem 2rem;
}

.faq-item h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.faq-item p {
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Spec Tables */
.spec-table-wrapper {
  overflow-x: auto;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--rule);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-align: left;
}

.spec-table th, .spec-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.spec-table th {
  background-color: var(--ground-lift);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

/* Disclaimer Blocks */
.disclaimer-block {
  background-color: var(--ground-lift);
  border: 1px solid var(--rule);
  padding: 2rem 2.25rem;
  margin-top: 3.5rem;
}

.disclaimer-block .eyebrow {
  margin-bottom: 0.5rem;
}

.disclaimer-block h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.disclaimer-block p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 0.85rem;
}

.disclaimer-block p:last-child {
  margin-bottom: 0;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  background-color: var(--ground);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 150ms ease-out;
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-disclaimer-short {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-dim);
  max-width: 60ch;
}

/* Age Gate Dialog */
#age-gate {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(20, 21, 23, 0.96);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#age-gate[hidden] {
  display: none;
}

.gate-dialog {
  background-color: var(--ground-lift);
  border: 1px solid var(--rule);
  max-width: 580px;
  width: 100%;
  padding: 2.75rem 2.5rem;
  position: relative;
}

.gate-dialog .eyebrow {
  margin-bottom: 0.75rem;
}

.gate-dialog h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.gate-dialog p {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .gate-actions {
    flex-direction: row;
  }
}

.gate-actions .btn {
  flex: 1;
}

.gate-fineprint {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--ink-dim);
  margin-bottom: 0;
}

/* Animation & Motion */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .slot img {
    transition: none !important;
  }
}
