:root {
  --ink: #f6f4ef;
  --muted: #c8c1b8;
  --black: #090807;
  --panel: #151210;
  --panel-soft: #211c18;
  --red: #e31313;
  --red-dark: #8c0808;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #0b0a09;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(9, 8, 7, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 172px;
  height: 62px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover,
.link-button:hover {
  color: white;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.admin-link {
  color: white;
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 6px;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 44px);
  background:
    linear-gradient(180deg, rgba(9, 8, 7, 0.82), rgba(9, 8, 7, 0.96)),
    radial-gradient(circle at 50% 10%, rgba(227, 19, 19, 0.2), transparent 34%),
    #090807;
}

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

.age-gate-open {
  overflow: hidden;
}

.age-gate-panel {
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 38px);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.age-gate-panel img {
  width: min(220px, 68vw);
  height: auto;
  margin: 0 auto 18px;
}

.age-gate-panel h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 9vw, 4rem);
}

.age-gate-panel p:not(.eyebrow) {
  max-width: 38ch;
  margin: 0 auto 24px;
  color: var(--muted);
  line-height: 1.6;
}

.age-gate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero {
  min-height: calc(100vh - 83px);
  display: grid;
  align-items: center;
  padding: 94px clamp(20px, 6vw, 96px) 116px;
  background:
    linear-gradient(90deg, rgba(9, 8, 7, 0.98), rgba(9, 8, 7, 0.68) 48%, rgba(9, 8, 7, 0.34)),
    linear-gradient(180deg, rgba(9, 8, 7, 0.12), rgba(9, 8, 7, 0.86)),
    url("/assets/slack-boy-logo.png") right 10% center / min(920px, 74vw) no-repeat,
    radial-gradient(circle at 78% 44%, rgba(227, 19, 19, 0.32), transparent 35%),
    linear-gradient(135deg, #17110d, #090807 58%, #1d1511);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #ff4a38;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3.1rem, 8.4vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.65;
  padding: 2px 0 2px 18px;
  background: rgba(9, 8, 7, 0.28);
  border-left: 3px solid var(--red);
}

.age-note {
  margin: 18px 0 0;
  color: #ffcbc5;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 30px rgba(227, 19, 19, 0.24);
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line);
}

.creator-links,
.sponsor-band,
.shop-section,
.contact-section,
.admin-shell {
  padding: 76px clamp(20px, 5vw, 80px);
}

.creator-links {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1.45fr;
  gap: 42px;
  align-items: start;
  background:
    radial-gradient(circle at 82% 8%, rgba(227, 19, 19, 0.16), transparent 28%),
    #0d0c0b;
  border-top: 1px solid var(--line);
}

.sponsor-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1.4fr;
  gap: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #11100f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.link-grid,
.sponsor-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.link-card,
.sponsor-grid article,
.product-card,
.product-editor,
.admin-list,
.message-card,
.login-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.link-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 74, 56, 0.48);
  background: linear-gradient(180deg, rgba(227, 19, 19, 0.12), rgba(255, 255, 255, 0.012)), var(--panel);
}

.link-card span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border-radius: 8px;
  font-weight: 900;
}

.link-card strong {
  display: block;
  font-size: 1.28rem;
}

.sponsor-grid article {
  padding: 24px;
}

.sponsor-grid span,
.stock {
  color: #ff4a38;
  font-weight: 800;
}

.sponsor-grid p,
.link-card p,
.product-card p,
.contact-copy p,
.login-panel p,
.message-card p,
.muted {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  margin-bottom: 28px;
}

.product-card {
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 74, 56, 0.45);
}

.product-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: radial-gradient(circle, rgba(227, 19, 19, 0.18), transparent 52%), #0e0d0c;
  border-bottom: 1px solid var(--line);
}

.product-media img {
  width: 74%;
  max-height: 72%;
  object-fit: contain;
}

.product-card > div:last-child {
  padding: 22px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(300px, 1fr);
  gap: 36px;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    linear-gradient(135deg, #15100e, #090807);
}

.shop-section {
  background:
    radial-gradient(circle at 18% 0%, rgba(227, 19, 19, 0.14), transparent 28%),
    #0b0a09;
  border-bottom: 1px solid var(--line);
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-form,
.product-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form {
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 74, 56, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 74, 56, 0.14);
}

.wide {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  color: #ffcbc5;
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 80px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.admin-page {
  background: #0d0b0a;
}

.link-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.login-panel {
  max-width: 560px;
  padding: 32px;
}

.login-panel h1,
.dashboard h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.hidden {
  display: none !important;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.product-editor,
.admin-list,
.messages-panel {
  padding: 22px;
}

.product-editor h2,
.admin-list h2,
.messages-panel h2 {
  grid-column: 1 / -1;
  font-size: 1.5rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.admin-product,
.message-card {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.admin-product:first-child {
  border-top: 0;
}

.admin-product img {
  width: 70px;
  height: 56px;
  object-fit: contain;
  background: #0c0b0a;
  border-radius: 6px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.row-actions button,
.message-card button {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: white;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.messages-panel {
  margin-top: 22px;
}

.message-card {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.message-card p,
.message-card strong {
  grid-column: 1 / -1;
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
}

.not-found img {
  width: min(420px, 82vw);
}

@media (max-width: 880px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    text-align: center;
  }

  .brand {
    justify-self: center;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 8px 0 2px;
  }

  .site-header nav.is-open {
    display: flex;
  }

  footer {
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .sponsor-band,
  .creator-links,
  .contact-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .link-grid,
  .sponsor-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .age-gate-actions {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .product-editor {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
    top: auto;
  }
}

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

  h2 {
    font-size: 2rem;
  }

  .brand img {
    width: 210px;
    height: 74px;
  }

  .admin-product,
  .message-card {
    grid-template-columns: 1fr;
  }

  .row-actions {
    width: 100%;
  }

  .row-actions button {
    flex: 1;
  }
}
