/* Reel Review Post — tokens + nested semantic layout */
:root {
  --bg: #f3f0f5;
  --bg-tile: #faf8fb;
  --lavender: #d8d2df;
  --lavender-deep: #c4b8cd;
  --plum: #5c3d5e;
  --plum-soft: #7a547c;
  --brass: #b08d57;
  --brass-bright: #c9a66b;
  --ink: #2a2428;
  --ink-muted: #5a5258;
  --line: #cfc6d6;
  --white: #ffffff;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --radius-pill: 999px;
  --font-display: "Roboto Slab", "Rockwell", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow-tile: 0 8px 24px rgba(44, 28, 48, 0.07);
  --max: 1120px;
  --nav-w: 14rem;
  --age-h: 2.35rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--age-h);
}

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

a {
  color: var(--plum);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;

  &:hover {
    text-decoration: underline;
    text-decoration-color: var(--brass);
    text-underline-offset: 0.18em;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--plum);
  margin: 0 0 var(--space-md);

  &::after {
    content: "";
    display: block;
    width: 2.75rem;
    height: 2px;
    margin-top: 0.55rem;
    background: var(--brass);
  }
}

p {
  margin: 0 0 var(--space-md);
}

/* Age bar */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem;
  background: var(--plum);
  color: #f6f2f7;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;

  a {
    color: var(--brass-bright);
    font-weight: 600;

    &:hover {
      color: #fff;
    }
  }

  .age-bar__close {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.12);
      border-color: var(--brass-bright);
    }
  }
}

body.age-collapsed {
  padding-top: 0;

  .age-bar {
    display: none;
  }
}

/* Shell: left-anchored nav + offset main */
.shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-tile);
  padding: var(--space-sm) var(--space-md);

  .brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--plum);
    text-decoration: none;

    &:hover {
      text-decoration: none;
      color: var(--plum-soft);
    }

    img {
      width: 2.1rem;
      height: 2.1rem;
      object-fit: contain;
    }
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    appearance: none;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--plum);
    border-radius: var(--radius-pill);
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;

    &:hover {
      border-color: var(--brass);
      background: #fff8ef;
    }
  }

  .header-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
  }
}

.site-nav {
  background: #ebe6ef;
  border-bottom: 1px solid var(--line);
  padding: var(--space-sm) var(--space-md);

  &[hidden] {
    display: none;
  }

  ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  a {
    display: block;
    padding: 0.35rem 0.2rem;
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 600;

    &[aria-current="page"] {
      color: var(--plum);
    }
  }

  .nav-label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin: 0.6rem 0 0.2rem;
    font-family: var(--font-mono);
  }
}

.site-main {
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 960px) {
  .shell {
    grid-template-columns: var(--nav-w) 1fr;
    grid-template-rows: auto 1fr;
  }

  .site-header {
    grid-column: 1 / -1;
    position: sticky;
    top: var(--age-h);
    z-index: 50;
  }

  body.age-collapsed .site-header {
    top: 0;
  }

  .site-nav {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: calc(var(--age-h) + 4.2rem);
    align-self: start;
    border-bottom: none;
    border-right: 1px solid var(--line);
    min-height: calc(100vh - 6rem);
    display: block !important;

    &[hidden] {
      display: block !important;
    }
  }

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

  .site-main {
    grid-column: 2;
    max-width: none;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }

  .offset-block {
    margin-left: 1.5rem;
  }

  .offset-block--alt {
    margin-left: 0;
    margin-right: 2rem;
  }
}

/* Hero with brass wedge — no imagery (wildcard) */
.hero {
  position: relative;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-lg);
  overflow: hidden;
  background: linear-gradient(165deg, #ebe6f0 0%, var(--bg) 55%);

  &::before {
    content: "";
    position: absolute;
    right: -8%;
    top: -20%;
    width: 58%;
    height: 140%;
    background: var(--brass);
    opacity: 0.18;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
  }

  > * {
    position: relative;
    z-index: 1;
    max-width: 40rem;
  }

  .hero__kicker {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--plum-soft);
    margin-bottom: var(--space-sm);
  }

  .hero__question {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    color: var(--plum);
    margin-bottom: var(--space-sm);

    &::after {
      width: 3.5rem;
      background: var(--brass);
    }
  }

  .hero__answer {
    font-size: 1.12rem;
    color: var(--ink-muted);
    max-width: 36rem;
  }

  .hero__notice {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--line);
    background: var(--bg-tile);
    font-size: 0.9rem;
  }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--space-sm);
  margin: var(--space-lg) 0;

  .trust-tile {
    border: 1px solid var(--line);
    background: var(--bg-tile);
    padding: var(--space-md);
    box-shadow: var(--shadow-tile);
    text-align: center;

    strong {
      display: block;
      font-family: var(--font-display);
      font-size: 1.45rem;
      color: var(--plum);
    }

    span {
      font-size: 0.8rem;
      color: var(--ink-muted);
    }
  }
}

.updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-lg);
}

/* Section chrome */
.section {
  margin: var(--space-xl) 0;
}

.section-rule {
  display: flex;
  justify-content: center;
  margin: var(--space-xl) 0;

  span {
    width: 3.5rem;
    height: 3px;
    background: var(--brass);
  }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--space-xs);
}

/* Bento mosaic */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.bento__tile {
  border: 1px solid var(--line);
  background: var(--bg-tile);
  padding: var(--space-md);
  box-shadow: var(--shadow-tile);
  grid-column: span 12;

  &--wide {
    grid-column: span 12;
  }

  &--mid {
    grid-column: span 12;
  }

  &--tall {
    grid-column: span 12;
  }
}

@media (min-width: 720px) {
  .bento__tile--mid {
    grid-column: span 6;
  }

  .bento__tile--tall {
    grid-column: span 4;
  }

  .bento__tile--featured {
    grid-column: span 8;
  }

  .bento__tile--side {
    grid-column: span 4;
  }
}

/* Operator showcase */
.showcase-featured {
  display: grid;
  gap: var(--space-md);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-tile);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);

  @media (min-width: 720px) {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.op-logo {
  width: 7.5rem;
  height: 3.5rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.35rem;
}

.op-logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--plum);
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: var(--space-sm) 0;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border: 1px solid var(--lavender-deep);
  color: var(--plum);
  background: #efeaf3;
}

.grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 2.6rem;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.grade-wrap {
  text-align: center;

  small {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
  }
}

.op-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.op-row {
  display: grid;
  gap: var(--space-sm);
  align-items: center;
  border: 1px solid var(--line);
  background: var(--bg-tile);
  padding: var(--space-md);
  box-shadow: var(--shadow-tile);

  @media (min-width: 800px) {
    grid-template-columns: 6.5rem 1fr auto auto;
  }
}

.op-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;

  &:hover {
    text-decoration: none;
  }

  &:active {
    transform: scale(0.98);
  }
}

.btn--primary {
  background: var(--brass);
  color: #1f1a14;
  border-color: var(--brass);

  &:hover {
    background: var(--brass-bright);
    color: #1f1a14;
  }
}

.btn--ghost {
  background: transparent;
  color: var(--plum);
  border-color: var(--lavender-deep);

  &:hover {
    border-color: var(--plum);
    background: #f4eef6;
  }
}

.tiny-note {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 0;
}

.aff-note {
  border: 1px solid var(--line);
  background: #efeaf2;
  padding: var(--space-md);
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 0.92rem;
}

/* Head-to-head */
.duel {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--space-md);
  box-shadow: var(--shadow-tile);

  @media (min-width: 720px) {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

.duel__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  padding: var(--space-sm) 0;
}

.duel__side {
  border: 1px solid var(--line);
  padding: var(--space-md);
  background: var(--bg-tile);

  h3 {
    font-size: 1.1rem;
  }

  ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-muted);
    font-size: 0.95rem;
  }
}

/* Safety cards */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-sm);
}

.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-tile);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;

  &:hover {
    border-color: var(--brass);
    background: #fffaf2;
    text-decoration: none;
  }

  img {
    height: 2.4rem;
    width: auto;
    object-fit: contain;
  }

  span {
    font-size: 0.88rem;
    font-weight: 650;
    color: var(--plum);
  }
}

/* FAQ prose blocks */
.faq-prose {
  max-width: 42rem;

  article {
    margin-bottom: var(--space-lg);
  }

  h3 {
    font-size: 1.15rem;
  }
}

.honesty {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--bg-tile);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.decor-img {
  margin: var(--space-lg) 0;
  border: 1px solid var(--line);

  img {
    width: 100%;
    max-height: 16rem;
    object-fit: cover;
  }

  figcaption {
    font-size: 0.75rem;
    color: var(--ink-muted);
    padding: 0.4rem 0.6rem;
    background: var(--bg-tile);
  }
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  padding-top: var(--space-md);
  margin-top: var(--space-xl);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #e8e2ec;
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-xl);

  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    gap: var(--space-md);

    @media (min-width: 720px) {
      grid-template-columns: 1.4fr 1fr 1fr;
    }
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--plum);
    margin-bottom: var(--space-sm);

    img {
      width: 1.8rem;
      height: 1.8rem;
      opacity: 0.55;
    }
  }

  h2 {
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);

    &::after {
      width: 1.6rem;
    }
  }

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

  li {
    margin-bottom: 0.3rem;
  }

  a {
    font-size: 0.9rem;
  }

  .footer-meta {
    grid-column: 1 / -1;
    font-size: 0.78rem;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
    padding-top: var(--space-sm);
  }
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-sm);
  max-width: 28rem;

  label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
  }

  input,
  textarea {
    border: 1px solid var(--line);
    background: var(--white);
    padding: 0.65rem 0.75rem;
    font: inherit;
    color: var(--ink);
  }

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

.prose {
  max-width: 42rem;

  ul,
  ol {
    padding-left: 1.2rem;
  }

  li {
    margin-bottom: 0.4rem;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--plum);
  color: #f7f2f8;
  padding: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--brass);

  p {
    margin: 0;
    font-size: 0.88rem;
    max-width: 48rem;
  }

  a {
    color: var(--brass-bright);
  }

  &[hidden] {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
