/* The Frisky Society — Night theme (thefriskysociety.com) */
:root {
  --plum: #22122A;
  --aubergine: #3B1F47;
  --midnight: #170C1C;
  --pink: #FF8FB1;
  --raspberry: #C2185B;
  --lilac: #9A82B4;
  --pearl: #F5EEF2;
  --ivory: #FBF5F7;
  --line: rgba(245, 238, 242, 0.12);
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

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

body {
  margin: 0;
  background: var(--plum);
  color: var(--pearl);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pink); text-underline-offset: 3px; }
a:hover { color: var(--pearl); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--pink); color: var(--plum); padding: 8px 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(23, 12, 28, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pearl); }
.brand img { width: 40px; height: 40px; display: block; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--pearl); text-decoration: none; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a:hover { color: var(--pink); }
@media (max-width: 720px) { .nav { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 500; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(36px, 5.4vw, 64px); }
h2 { font-size: clamp(32px, 4vw, 46px); color: var(--pink); }
h3 { font-size: 28px; color: var(--pearl); }
.eyebrow { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lilac); margin: 0 0 14px; }
.lede { font-size: 19px; color: var(--pearl); max-width: 640px; }
strong { font-weight: 500; color: var(--pink); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-family: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid var(--pink); transition: background .2s, color .2s;
}
.btn-primary { background: var(--pink); color: var(--plum); }
.btn-primary:hover { background: var(--pearl); border-color: var(--pearl); color: var(--plum); }
.btn-ghost { background: transparent; color: var(--pink); }
.btn-ghost:hover { background: var(--pink); color: var(--plum); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 110px; text-align: center;
  background: var(--midnight);
}
.hero-logo { display: block; width: min(320px, 70vw); height: auto; margin: 0 auto 44px; }
.hero h1 { max-width: 860px; margin: 0 auto 44px; font-weight: 400; }
.hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Media */
.hero, .after-dark, .close { position: relative; overflow: hidden; isolation: isolate; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after, .after-dark::after, .close::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.hero::after { background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(23,12,28,0.62), rgba(23,12,28,0.8) 75%), linear-gradient(180deg, rgba(23,12,28,0.25), rgba(23,12,28,0.92)); }
.after-dark::after { background: linear-gradient(180deg, rgba(23,12,28,0.88), rgba(34,18,42,0.8) 50%, rgba(23,12,28,0.92)); }
.close::after { background: linear-gradient(180deg, rgba(23,12,28,0.82), rgba(34,18,42,0.78)); }
.card-img { display: block; width: calc(100% + 60px); max-width: none; margin: -34px -30px 24px; height: 220px; object-fit: cover; border-radius: 18px 18px 0 0; }
.card { overflow: hidden; }

.mood { padding: 0 0 100px; }
.mood-grid { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 10px; padding: 0 10px; }
.mood-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.mood-grid .m-wide { grid-column: span 2; }
.mood-grid .m-tall { grid-row: span 2; }
@media (max-width: 760px) { .mood-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; } }

/* Sections */
section { padding: 100px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.card {
  background: var(--aubergine); border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 143, 177, 0.45); }
.card p { margin: 0; color: var(--pearl); }
.card .tag { display: inline-block; margin-top: 18px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac); }
.heats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.heats span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--pink); color: var(--plum); font-weight: 500; }
.heats span:nth-child(2) { background: var(--lilac); }
.heats span:nth-child(3) { background: var(--pearl); }

.after-dark {
  background: linear-gradient(180deg, var(--midnight), var(--plum));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.after-dark .door { width: 64px; height: 64px; margin: 0 auto 22px; display: block; }
.after-dark .lede { margin: 0 auto 36px; }


.close { text-align: center; padding: 110px 0 120px; background: var(--midnight); }
.close p { font-family: var(--display); font-style: italic; font-size: clamp(30px, 4vw, 48px); line-height: 1.25; max-width: 820px; margin: 0 auto; }

/* Footer */
.site-footer { background: var(--midnight); border-top: 1px solid var(--line); padding: 48px 0 120px; font-size: 14px; color: var(--lilac); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 110px; height: auto; }
.site-footer a, .linklike { color: var(--pearl); text-decoration: none; }
.site-footer a:hover, .linklike:hover { color: var(--pink); }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Legal pages */
.legal { padding: 80px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { color: var(--pink); }
.legal h2 { font-size: 30px; margin-top: 48px; }
.legal h3 { font-size: 24px; margin-top: 28px; }
.legal p, .legal li { color: var(--pearl); }
.legal .updated { color: var(--lilac); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--lilac); font-weight: 500; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.legal .note { background: var(--aubergine); border-left: 3px solid var(--pink); padding: 16px 20px; border-radius: 6px; }

/* ---------- Consent banner + preferences ---------- */
.fs-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 980px; margin: 0 auto;
  background: var(--aubergine); color: var(--pearl);
  border: 1px solid rgba(255, 143, 177, 0.35); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  padding: 24px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
}
.fs-consent[hidden] { display: none; }
.fs-consent h2 { font-size: 26px; margin: 0 0 6px; color: var(--pink); }
.fs-consent p { margin: 0; font-size: 15px; line-height: 1.6; }
.fs-consent .fs-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.fs-consent .btn { padding: 11px 20px; font-size: 12px; }
@media (max-width: 760px) { .fs-consent { grid-template-columns: 1fr; } .fs-consent .fs-actions { justify-content: stretch; } .fs-consent .btn { flex: 1 1 auto; text-align: center; } }

.fs-modal-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(23, 12, 28, 0.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.fs-modal-backdrop[hidden] { display: none; }
.fs-modal {
  width: 100%; max-width: 640px; max-height: 88vh; overflow: auto;
  background: var(--plum); border: 1px solid rgba(255, 143, 177, 0.35); border-radius: 20px; padding: 32px 30px 26px;
}
.fs-modal h2 { font-size: 32px; margin-bottom: 8px; }
.fs-modal > p { margin: 0 0 22px; font-size: 15px; }
.fs-cat { border-top: 1px solid var(--line); padding: 18px 0; }
.fs-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fs-cat-head h3 { font-size: 24px; margin: 0; }
.fs-cat p { font-size: 14px; margin: 8px 0 0; color: var(--pearl); }
.fs-cat details { margin-top: 10px; font-size: 13px; }
.fs-cat summary { cursor: pointer; color: var(--pink); letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }
.fs-cat table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.fs-cat th, .fs-cat td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fs-cat th { color: var(--lilac); font-weight: 500; }
.fs-always { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); }
.fs-modal .fs-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.fs-modal .btn { padding: 11px 20px; font-size: 12px; }

/* Toggle */
.fs-switch { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
.fs-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.fs-switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--midnight); border: 1px solid var(--lilac); transition: background .2s; }
.fs-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--lilac); transition: transform .2s, background .2s; }
.fs-switch input:checked + span { background: var(--pink); border-color: var(--pink); }
.fs-switch input:checked + span::after { transform: translateX(22px); background: var(--plum); }
.fs-switch input:focus-visible + span { outline: 2px solid var(--pearl); outline-offset: 2px; }

/* Links page (/links) — link-in-bio for every social profile */
.links-page { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(120% 80% at 50% 0%, var(--aubergine) 0%, var(--plum) 55%, var(--midnight) 100%); }
.links-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 56px 24px 40px; text-align: center; }
.links-logo { width: 160px; height: auto; display: block; margin: 0 auto 28px; }
.links-tagline { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.35; margin: 0 auto 40px; max-width: 440px; }
.links-tagline strong { font-weight: 500; color: var(--pink); }
.links-list { display: flex; flex-direction: column; gap: 14px; }
.links-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 22px; border: 1px solid var(--pink); border-radius: 999px; color: var(--pearl); text-decoration: none; transition: background .2s, color .2s; }
.links-btn:hover { background: var(--pink); color: var(--plum); }
.links-btn-primary { background: var(--pink); color: var(--plum); }
.links-btn-primary:hover { background: var(--pearl); border-color: var(--pearl); color: var(--plum); }
.links-label { font-size: 15px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.links-sub { font-size: 13px; opacity: 0.75; }
.links-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 24px 110px; font-size: 13px; color: var(--lilac); }
.links-footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.links-footer a { color: var(--pearl); text-decoration: none; }
.links-footer a:hover { color: var(--pink); }

/* Product pages + shop */
.product-hero { padding: 80px 0 60px; background: radial-gradient(90% 70% at 80% 30%, var(--aubergine) 0%, var(--plum) 60%); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-hero-img { width: 100%; height: auto; border-radius: 18px; display: block; box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.product-hero h1 { color: var(--pink); }
.product-actions { margin-top: 28px; }
.product-detail { background: var(--midnight); }
@media (max-width: 860px) { .product-hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.edition { display: flex; flex-direction: column; }
.edition .card-img { height: auto; aspect-ratio: 4 / 3; }
.edition-for { font-size: 12px !important; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lilac) !important; margin: 0 0 6px !important; }
.edition .price { font-family: var(--display); font-style: italic; font-size: 30px; color: var(--pink); margin: 18px 0 18px !important; }
.edition .save { font-family: var(--body); font-style: normal; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--plum); background: var(--pink); padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.edition .buy { margin-top: auto; }
.edition .buy .btn { width: 100%; text-align: center; }
.edition-best { border-color: rgba(255, 143, 177, 0.55); }
.heat-list, .spec-list { list-style: none; padding: 0; margin: 24px 0 0; }
.heat-list li, .spec-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--pearl); }
.heat-list strong { display: inline-block; min-width: 120px; font-family: var(--display); font-style: italic; font-size: 22px; }
.spec-list { max-width: 760px; }
.spec-list li::before { content: "\2022"; color: var(--pink); margin-right: 12px; }
.shop-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.shop-card .card-img { height: auto; aspect-ratio: 4 / 3; }
.shop-card .from { margin-top: 18px !important; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink) !important; }
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
