/* Payline Bureau — ivory / deep purple / single gold accent, classic serif, bento grid */

:root {
  --paper: #F6F1E6;
  --paper-raise: #FCF8EE;
  --paper-deep: #EFE6D0;
  --ink: #2E1A47;
  --ink-mute: #5A4A78;
  --gold: #D9A62E;
  --gold-deep: #7A5B0F;
  --gold-tint: #F2E3BC;
  --line: rgba(46, 26, 71, 0.16);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 16px;
  --gap: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  padding-bottom: 64px; /* room for the fixed age bar */

  /* fine-grain paper texture */
  &::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.10 0 0 0 0 0.28 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  }
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.6em; font-weight: 900; }
h1 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

a {
  color: var(--gold-deep);
  font-weight: 600;
  text-decoration: none;
  &:hover { text-decoration: underline; text-underline-offset: 3px; }
}

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

.kicker {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}

.mute { color: var(--ink-mute); }
.small { font-size: 0.85rem; }

/* ---------- buttons: outlined ghost, accent text, springy press ---------- */

.btn {
  display: inline-block;
  border: 2px solid var(--gold);
  border-radius: 10px;
  background: transparent;
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.62rem 1.35rem;
  cursor: pointer;
  transition: transform 0.35s var(--spring), background-color 0.2s ease;
  &:hover { background: var(--gold-tint); text-decoration: none; }
  &:active { transform: scale(0.93); }
}

/* ---------- square-cut badges ---------- */

.tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: var(--gold-tint);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--ink { background: var(--ink); color: var(--paper); }

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  &:hover { text-decoration: none; }
  svg { width: 34px; height: 34px; flex: none; }
}

.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.4rem);
  flex-wrap: wrap;
  a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
  .navcta { color: var(--gold-deep); font-weight: 700; }
}

/* sticky compact bar, revealed by JS after the hero */
.quicknav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--paper-raise);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
  &.on { transform: translateY(0); }
  .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .brand { font-size: 1.02rem; svg { width: 26px; height: 26px; } }
  nav { display: flex; gap: 1.1rem; a { color: var(--ink); font-size: 0.88rem; font-weight: 600; } }
}

/* ---------- bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.tile {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  grid-column: span 12;
}

.tile--tint { background: var(--paper-deep); }
.tile--ink { background: var(--ink); color: var(--paper); }
.tile--gold { background: var(--gold); color: var(--ink); }
.tile--img { padding: 0; overflow: hidden; display: flex; img { object-fit: cover; width: 100%; height: 100%; } }

/* featured elements: double-line frame */
.framed {
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .sp-3 { grid-column: span 3; }
  .sp-4 { grid-column: span 4; }
  .sp-5 { grid-column: span 5; }
  .sp-6 { grid-column: span 6; }
  .sp-7 { grid-column: span 7; }
  .sp-8 { grid-column: span 8; }
  .sp-9 { grid-column: span 9; }
}

/* ---------- oversized numerals ---------- */

.bignum {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}

.tile--ink .bignum, .tile--gold .bignum { color: inherit; }

/* ---------- hero ---------- */

.hero { padding: clamp(26px, 4vw, 52px) 0 clamp(30px, 4vw, 56px); }

.hero-grid { align-items: stretch; }

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  max-width: 62ch;
}

.notice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
  align-items: center;
}

/* ---------- sections: separated by whitespace only ---------- */

section { padding: clamp(26px, 4vw, 50px) 0; }

.sec-head {
  max-width: 68ch;
  margin-bottom: clamp(18px, 3vw, 30px);
}

/* asymmetric offsets on desktop */
@media (min-width: 980px) {
  .offset-r { margin-left: clamp(0px, 6vw, 88px); }
  .offset-l { margin-right: clamp(0px, 6vw, 88px); }
}

/* ---------- ticket rows (showcase) ---------- */

.tickets { display: grid; gap: 18px; }

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr 296px;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 26px);
}

.ticket--lead { border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 3px; }

.ticket-rank {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  align-self: start;
}

.ticket-logo {
  width: 108px;
  height: 76px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  align-self: start;
  img { max-height: 100%; object-fit: contain; }
}

.ticket-body {
  h3 { margin-bottom: 0.35rem; font-size: 1.3rem; font-weight: 900; }
  p { margin-bottom: 0.7rem; }
  .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }
}

.offer-line {
  font-size: 0.9rem;
  margin: 0;
  strong { font-weight: 700; }
  .adnote { color: var(--ink-mute); font-size: 0.8rem; white-space: nowrap; }
}

/* perforated divider before the action panel */
.ticket-act {
  position: relative;
  text-align: center;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 2px dashed rgba(46, 26, 71, 0.35);
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;

  &::before, &::after {
    content: "";
    position: absolute;
    left: -12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  &::before { top: -34px; }
  &::after { bottom: -34px; }
}

.score {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  sub { font-size: 1.05rem; font-weight: 700; vertical-align: baseline; }
}

.score-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ticket-note { font-size: 0.75rem; color: var(--ink-mute); margin: 0; }

.infolink { font-size: 0.88rem; }

@media (max-width: 900px) {
  .ticket { grid-template-columns: auto 1fr; }
  .ticket-rank { grid-row: 1; }
  .ticket-logo { grid-row: 2; }
  .ticket-body { grid-column: 1 / -1; }
  .ticket-act {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 2px dashed rgba(46, 26, 71, 0.35);
    padding-left: 0;
    padding-top: 16px;
    &::before { top: -11px; left: -30px; }
    &::after { top: -11px; bottom: auto; left: auto; right: -30px; }
  }
}

/* ---------- disclosure strip ---------- */

.disclosure {
  background: var(--gold-tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 0.9rem;
  margin-bottom: 22px;
  p { margin: 0; }
}

/* ---------- safety strip ---------- */

.safety-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: 8px;
}

.safety-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  img { height: 34px; object-fit: contain; }
  &:hover { text-decoration: none; background: var(--paper-raise); }
  span { text-decoration: none; }
  &:hover strong { text-decoration: underline; }
}

@media (max-width: 760px) {
  .safety-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- picks / category tiles ---------- */

.pick-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0;
    border-top: 1px dashed rgba(46, 26, 71, 0.25);
    font-size: 0.95rem;
    b { font-variant-numeric: tabular-nums; font-weight: 900; color: var(--gold-deep); white-space: nowrap; }
  }
}

.tile--gold .pick-list li { border-top-color: rgba(46, 26, 71, 0.35); b { color: var(--ink); } }

/* ---------- article / prose pages ---------- */

.prose {
  max-width: 70ch;
  h2 { margin-top: 2em; }
  h3 { margin-top: 1.6em; }
  ul, ol { padding-left: 1.3rem; }
  li { margin-bottom: 0.45rem; }
  figure { margin: 2rem 0; }
  figcaption { font-size: 0.83rem; color: var(--ink-mute); margin-top: 0.6rem; }
}

.page-band {
  background-image: linear-gradient(rgba(246, 241, 230, 0.55), rgba(246, 241, 230, 0.55)), url("/assets/band-texture.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 4vw, 54px) 0;
  p { max-width: 64ch; }
}

figure.fig { margin: 2rem 0; img { border: 1px solid var(--line); border-radius: var(--radius); } }

/* data tables */
.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.4rem 0 2rem;
  th, td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
  th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
  td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 76ch; }

.faq details {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  summary {
    cursor: pointer;
    font-weight: 700;
    padding: 16px 20px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    &::-webkit-details-marker { display: none; }
    &::after { content: "+"; font-weight: 900; color: var(--gold-deep); }
  }
  &[open] summary::after { content: "–"; }
  .faq-a { padding: 0 20px 18px; p { margin-bottom: 0.6em; } }
}

.mythfact {
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  border-radius: 12px;
  background: var(--paper-raise);
  padding: 20px 22px;
  margin-bottom: 20px;
  .mf-myth { font-weight: 700; margin-bottom: 0.4rem; }
  .mf-fact { margin: 0; }
}

/* ---------- footer ---------- */

footer.site {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(30px, 5vw, 60px);
  padding: clamp(30px, 4vw, 52px) 0 26px;
  a { color: #E4C05C; }
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(246, 241, 230, 0.2);
  h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(246, 241, 230, 0.65); font-weight: 700; }
  ul { list-style: none; margin: 0; padding: 0; li { margin-bottom: 0.5rem; font-size: 0.92rem; } }
  p { font-size: 0.92rem; color: rgba(246, 241, 230, 0.85); }
  .brand { color: var(--paper); margin-bottom: 0.8rem; }
}

.foot-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(246, 241, 230, 0.7);
  p { margin: 0; }
}

.chip18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.85rem;
  flex: none;
}

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- age notice bar ---------- */

.agebar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px clamp(14px, 3vw, 30px);
  font-size: 0.8rem;
  line-height: 1.35;
  p { margin: 0; }
  a { color: #E4C05C; }
  .chip18 { width: 28px; height: 28px; font-size: 0.75rem; }
}

/* ---------- cookie banner ---------- */

.cookiecard {
  position: fixed;
  z-index: 80;
  left: clamp(12px, 3vw, 28px);
  bottom: 74px;
  max-width: 400px;
  background: var(--paper-raise);
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 3px;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: none;
  font-size: 0.88rem;
  p { margin-bottom: 0.9rem; }
  .cookie-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
  .btn { font-size: 0.85rem; padding: 0.45rem 1rem; }
}

/* ---------- contact ---------- */

.contact-panel {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  max-width: 560px;
  label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
  input, textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.95rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
  }
  textarea { min-height: 130px; resize: vertical; }
}

/* ---------- motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; &:active { transform: none; } }
  .quicknav { transition: none; }
}
