/* CandyShorts – front-end styles. Mobile first, dark by design. */

:root {
	color-scheme: dark;
	--bg: #0d0a0a;
	--bg-2: #14100f;
	--surface: #1c1615;
	--surface-2: #272020;
	--line: rgba(255, 255, 255, 0.09);
	--text: #f8f2ee;
	--muted: #cdbfb8;
	--dim: #9a8a83;
	--pink: #ff5a3d;
	--pink-2: #ff8f7a;
	--violet: #ff8a3d;
	--gold: #ffc857;
	--grad: linear-gradient(135deg, #ff3b3b 0%, #ff5a3d 60%, #fb5e33 100%);
	--radius: 18px;
	--radius-sm: 10px;
	--wrap: 1180px;
	--narrow: 760px;
	--gutter: 16px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink-2); text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.small { font-size: 0.85rem; color: var(--dim); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
	font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -12px rgba(255, 90, 61, 0.7); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(255, 90, 61, 0.85); }
.btn--ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(13, 10, 10, 0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 1.25rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.logo__mark { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 6px; border-radius: 8px; background: var(--grad); font-size: 0.7rem; }
.logo__shorts { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-toggle { order: 3; margin-left: auto; display: grid; gap: 4px; width: 40px; height: 40px; place-content: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"], .nav .current-menu-item > a { color: #fff; }
.js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
.js .nav.is-open { display: block; }
.js .nav li a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.nav { width: 100%; order: 4; }
html:not(.js) .nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 10px; }

@media (min-width: 960px) {
	.nav-toggle { display: none; }
	.js .nav, .nav { display: block; position: static; order: 0; width: auto; background: none; border: 0; padding: 0; margin-left: 24px; }
	.nav ul, html:not(.js) .nav ul { display: flex; gap: 22px; padding: 0; }
	.js .nav li a { padding: 0; border: 0; }
}

/* Hero (home) */
.hero { position: relative; padding: 36px 0 48px; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; inset: -30% -10% auto; height: 120%;
	background: radial-gradient(50% 50% at 70% 30%, rgba(255, 138, 61, 0.28), transparent 70%), radial-gradient(40% 40% at 20% 10%, rgba(255, 90, 61, 0.25), transparent 70%);
	pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pink-2); background: rgba(255, 90, 61, 0.08); }
.hero__title { font-size: clamp(2.1rem, 7vw, 3.6rem); margin-bottom: 0.4em; }
.hero__intro { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.hero__facts strong { color: #fff; font-size: 1.1rem; }
@media (min-width: 900px) {
	.hero { padding: 64px 0 80px; }
}
.hero__brand { display: block; font-size: clamp(2.8rem, 9vw, 5.4rem); line-height: 1; letter-spacing: -0.04em; color: #fff; }
.hero__brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__tagline { display: block; margin-top: 0.35em; font-size: clamp(1.35rem, 3.6vw, 2rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.hero__note { margin: 18px 0 0; font-size: 0.82rem; color: var(--dim); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero with a photo. Mobile: photo on top fading into the text below.
   Desktop: full-bleed photo, subject on the right, black fade from the left. */
.hero--image { padding: 0 0 36px; background: var(--bg); }
.hero--image::before { display: none; }
.hero__bg { display: block; width: 100%; height: 56svh; min-height: 320px; max-height: 540px; object-fit: cover; object-position: 74% top; }
.hero__shade { position: absolute; top: 0; left: 0; right: 0; height: calc(56svh + 2px); min-height: 322px; max-height: 542px; background: linear-gradient(to top, var(--bg) 0%, rgba(13, 10, 10, 0.55) 28%, rgba(13, 10, 10, 0) 55%); }
.hero--image .hero__inner { position: relative; z-index: 1; margin-top: -96px; }
.hero--image .hero__intro { color: #eee3dc; }
@media (min-width: 900px) {
	.hero--image { display: flex; align-items: center; min-height: min(80vh, 720px); padding: 72px 0; }
	.hero__bg { position: absolute; inset: 0; height: 100%; min-height: 0; max-height: none; object-position: 70% top; }
	.hero__shade { inset: 0 0 -2px; height: auto; min-height: 0; max-height: none; background: linear-gradient(90deg, rgba(13, 10, 10, 0.97) 0%, rgba(13, 10, 10, 0.9) 30%, rgba(13, 10, 10, 0.45) 55%, rgba(13, 10, 10, 0) 75%), linear-gradient(to top, var(--bg) 0%, rgba(13, 10, 10, 0) 22%); }
	.hero--image .hero__inner { width: 100%; margin-top: 0; }
	.hero--image .hero__copy { max-width: 580px; }
}

/* Sections */
.section { padding: 44px 0; }
.section--tight { padding-top: 12px; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__head h2, .section__title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0; }
.section__title { margin-bottom: 24px; }
.section__more { margin: 24px 0 0; }
@media (min-width: 900px) { .section { padding: 64px 0; } }

/* Series cards */
.grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--catalog { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.prose .grid { margin: 1.5em 0; }
@media (min-width: 640px) { .prose .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card[hidden] { display: none; }
.card__link { display: block; color: inherit; text-decoration: none; }
.card__media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 1080 / 1545; border: 1px solid var(--line); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card__link:hover .card__img { transform: scale(1.04); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__twin { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(13, 10, 10, 0.78); font-size: 0.78rem; font-weight: 700; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: max-content; max-width: calc(100% - 16px); }
.card__title { margin: 10px 0 2px; font-size: 1rem; line-height: 1.25; letter-spacing: -0.01em; }
.card__link:hover .card__title { color: var(--pink-2); }
.card__meta { margin: 0; font-size: 0.82rem; color: var(--dim); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.badge--spicy { background: linear-gradient(135deg, #ff2e2e, #fb5e33); color: #fff; }
.badge--new { background: rgba(255, 255, 255, 0.92); color: #1a0f22; }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 22px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--grad); font-weight: 900; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Digital twins strip */
.twins-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .twins-strip { grid-template-columns: repeat(4, 1fr); } }
.twins-strip a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; border: 1px solid var(--line); }
.twins-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.twins-strip a::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(13, 10, 10, 0.95)); }
.twins-strip__name, .twins-strip__count { position: absolute; left: 14px; z-index: 1; }
.twins-strip__name { bottom: 30px; font-weight: 800; font-size: 1.1rem; }
.twins-strip__count { bottom: 10px; font-size: 0.82rem; color: var(--gold); }

/* Inner page hero */
.page-hero { padding: 26px 0 8px; background: radial-gradient(60% 120% at 50% -20%, rgba(255, 138, 61, 0.18), transparent 70%); }
.page-hero__title { font-size: clamp(1.9rem, 6vw, 3rem); }
.page-hero__intro { font-size: 1.1rem; color: var(--muted); }
.page-hero__actions { margin: 20px 0 8px; }
.page-hero__updated { font-size: 0.82rem; color: var(--dim); margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; font-size: 0.85rem; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }

/* Series page */
.series-hero { padding: 24px 0 8px; background: radial-gradient(60% 100% at 30% 0, rgba(255, 90, 61, 0.16), transparent 70%); }
.series-hero__grid { display: grid; gap: 18px; }
@media (max-width: 799px) { .series-hero__copy { text-align: center; } .series-hero__copy .facts { justify-content: center; } .series-hero__copy .eyebrow { font-size: 0.72rem; } }
.series-hero__poster { position: relative; max-width: 330px; width: 52%; margin: 0 auto; }
.series-hero__img { width: 100%; aspect-ratio: 1080 / 1545; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 30px 70px -25px rgba(255, 90, 61, 0.45); }
.badge--float { position: absolute; top: 12px; left: 12px; }
.series-hero__title { font-size: clamp(2rem, 6vw, 3.1rem); }
.series-hero__intro { color: var(--muted); font-size: 1.08rem; }
.series-hero__actions { margin: 22px 0 10px; }
.series-hero__note { font-size: 0.82rem; color: var(--dim); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.facts li { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; }
.facts a { color: var(--gold); text-decoration: none; }
.facts__tag { color: var(--muted); }
@media (min-width: 800px) {
	.series-hero__grid { grid-template-columns: 330px 1fr; gap: 48px; align-items: center; }
	.series-hero__poster { width: 100%; margin: 0; }
}

/* Filters */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 calc(-1 * var(--gutter)) 10px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 600 0.9rem/1 var(--font); cursor: pointer; }
.chip span { color: var(--dim); margin-left: 4px; }
.chip:hover { color: #fff; }
.chip.is-active { background: #fff; color: #1a1210; border-color: #fff; }
.filters__empty { color: var(--muted); }

/* Long-form content */
.prose { font-size: 1.05rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 4vw, 1.9rem); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; }
.prose p, .prose li { color: #efe6e0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: #fff; }
.prose .answer { padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(255, 90, 61, 0.14), rgba(255, 138, 61, 0.12)); border: 1px solid rgba(255, 90, 61, 0.35); font-size: 1.08rem; }
.prose .answer p:last-child { margin-bottom: 0; }
.prose .note { padding: 14px 18px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: #fff; background: var(--surface); }
.series-table td:nth-child(n+3), .series-table th:nth-child(n+3) { white-space: nowrap; }
.cta-inline { margin: 1.4em 0; }
.figure { margin: 1.8em 0; }
.figure__img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--dim); }
.series-links { columns: 2; column-gap: 24px; }
@media (max-width: 520px) { .series-links { columns: 1; } }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); margin: 0 0 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--pink); transition: transform 0.2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq > :not(summary) { padding: 0 18px; }
.faq > :last-child { padding-bottom: 16px; margin-bottom: 0; }

/* Twins page */
.twin { margin: 2.2em 0; }
.twin__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.twin__photo { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--pink); }
.twin__info .twin__name { margin: 0 0 8px; }
.twin__cta { margin: 0; }
@media (min-width: 640px) { .twin__photo { width: 120px; height: 120px; flex-basis: 120px; } }
.twin__name { font-size: 1.6rem; }
.twin__name span { font-size: 0.9rem; color: var(--gold); font-weight: 600; margin-left: 6px; }

/* Guides + CTA band */
.guides { margin: 8px 0 48px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.guides__title { font-size: 1.1rem; margin-bottom: 12px; }
.guides ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guides a { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.guides a:hover { background: var(--pink); color: #fff; }
.band { padding: 0 var(--gutter) 56px; }
.band__inner { max-width: 900px; margin: 0 auto; text-align: center; padding: 40px 22px; border-radius: 26px; background: radial-gradient(80% 120% at 50% 0, rgba(255, 90, 61, 0.28), transparent 70%), var(--surface); border: 1px solid rgba(255, 90, 61, 0.35); }
.band__title { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.band__inner p { color: var(--muted); max-width: 36em; margin-left: auto; margin-right: auto; }
.band__note { font-size: 0.82rem; margin-top: 14px; margin-bottom: 0; color: var(--dim) !important; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 96px; font-size: 0.92rem; color: var(--muted); }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__title { font-size: 0.95rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__brand .logo { margin-bottom: 12px; }
.site-footer__legal { font-size: 0.85rem; color: var(--dim); }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.site-footer__bottom p { margin: 0; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (min-width: 800px) {
	.site-footer { padding-bottom: 40px; }
	.site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(13, 10, 10, 0.96) 30%); transform: translateY(110%); transition: transform 0.25s ease; }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { padding: 11px 20px; }
@media (min-width: 960px) { .sticky-cta { display: none; } }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: var(--gutter); background: rgba(9, 6, 6, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.age-gate__box { max-width: 440px; width: 100%; text-align: center; padding: 32px 24px; border-radius: 24px; background: var(--surface); border: 1px solid rgba(255, 90, 61, 0.4); box-shadow: 0 30px 80px -30px rgba(255, 90, 61, 0.6); }
.age-gate__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); font-weight: 900; font-size: 1.3rem; color: #fff; }
.age-gate h2 { font-size: 1.5rem; }
.age-gate p { color: var(--muted); }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
body.has-age-gate { overflow: hidden; }

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