/* Ember Grid — warm dark shell, amber ember accents */
:root {
  --bg-root: #120e0b;
  --bg-soft: #1c1511;
  --bg-card: #241c17;
  --bg-card-hover: #2d231c;
  --stroke: rgba(255, 196, 140, 0.12);
  --text: #f7efe8;
  --text-muted: #c9b8a8;
  --ember: #ff8a3d;
  --ember-deep: #e86b1f;
  --honey: #ffc873;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-lg: 1.5rem;
  --radius-md: 1.1rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-root);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(255, 138, 61, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 50%, rgba(255, 200, 115, 0.06), transparent 45%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-root) 38%);
  min-height: 100vh;
}

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

a {
  color: var(--honey);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #fff0d4;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--stroke);
  background: rgba(18, 14, 11, 0.82);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  color: var(--ember);
}

.nav-toggle {
  display: none;
  font-family: var(--font-sans);
  font-weight: 600;
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  color: var(--text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav-list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--ember);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(18, 14, 11, 0.97);
    border-bottom: 1px solid var(--stroke);
    padding: 1rem 1rem 1.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  margin: 0 0.5rem;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    185deg,
    rgba(18, 14, 11, 0.15) 0%,
    rgba(18, 14, 11, 0.55) 45%,
    rgba(18, 14, 11, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(6rem, 18vw, 10rem);
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
  color: #1a0f08;
  box-shadow: 0 12px 32px rgba(255, 138, 61, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(255, 138, 61, 0.35);
  color: #1a0f08;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--honey);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.5rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--text-muted);
  max-width: 46rem;
  margin: 0 0 1.75rem;
}

/* Signal tower — asymmetric band */
.band-signal {
  background: linear-gradient(180deg, transparent, rgba(36, 28, 23, 0.65));
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 900px) {
  .signal-grid {
    grid-template-columns: 1fr;
  }
}

.signal-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.signal-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.pulse-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pulse-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
}

.pulse-list strong {
  color: var(--honey);
  font-weight: 700;
}

/* Thumb meta — card row */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 960px) {
  .thumb-grid {
    grid-template-columns: 1fr;
  }
}

.thumb-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.thumb-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 196, 140, 0.22);
}

.thumb-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.thumb-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.thumb-figure {
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.thumb-figure img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Lobby rules — split with list */
.lobby-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .lobby-split {
    grid-template-columns: 1fr;
  }
}

.lobby-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.lobby-visual img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.rules-grid {
  display: grid;
  gap: 1rem;
}

.rule-tile {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  padding: 1.1rem 1.2rem;
}

.rule-tile h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--honey);
}

.rule-tile p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Creator bench */
.bench-row {
  display: grid;
  grid-template-columns: min(42%, 26rem) 1fr;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  background: var(--bg-card);
  border-radius: calc(var(--radius-lg) + 0.25rem);
  border: 1px solid var(--stroke);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

@media (max-width: 800px) {
  .bench-row {
    grid-template-columns: 1fr;
  }
}

.bench-photo {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.bench-photo img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}

.bench-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.12);
  color: var(--honey);
  border: 1px solid rgba(255, 196, 140, 0.2);
}

/* Contact */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 860px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.contact-card h2 {
  margin-bottom: 0.5rem;
}

.vcard {
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  font-style: normal;
}

.vcard dt {
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-top: 1rem;
}

.vcard dt:first-child {
  margin-top: 0;
}

.vcard dd {
  margin: 0.25rem 0 0;
}

.vcard a {
  color: var(--text);
}

form.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

label.field span.hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

input,
textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: var(--bg-soft);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Toast */
.toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2.5rem));
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #2a211b, #1c1511);
  border: 1px solid rgba(255, 196, 140, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--honey);
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 2.5rem 0 3rem;
  margin-top: 1rem;
  background: rgba(12, 10, 8, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.5rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.footer-brand span {
  color: var(--ember);
}

.footer-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 28rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 0.65rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--honey);
}

.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--stroke);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Legal pages */
.legal {
  padding: clamp(4rem, 10vw, 6rem) 0 4rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.legal .lede {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 1.2rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--ember);
  color: #1a0f08;
  font-weight: 800;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(28, 21, 17, 0.96);
  border-top: 1px solid var(--stroke);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.cookie-banner__inner {
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.cookie-banner__text {
  margin: 0;
  max-width: 42rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.cookie-banner__text a {
  color: var(--honey);
  font-weight: 600;
}

.cookie-banner__btn {
  flex-shrink: 0;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: #1a0f08;
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-deep) 100%);
  box-shadow: var(--shadow);
}

.cookie-banner__btn:hover {
  filter: brightness(1.06);
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 3px;
}
