:root {
    --paper: #f3e6c7;
    --paper-strong: #ead9b1;
    --mint: #9fd0b9;
    --mint-dark: #6ea98e;
    --tomato: #ea5c48;
    --yellow: #f5c741;
    --blue: #5f8fc7;
    --ink: #151515;
    --ink-soft: #2f2f2f;
    --white: #fffdf8;
    --shadow: 8px 8px 0 var(--ink);
    --shadow-soft: 0 14px 40px rgba(21, 21, 21, 0.16);
    --radius: 28px;
    --radius-sm: 18px;
    --max-width: 1180px;
    --font-body: "Sora", sans-serif;
    --font-accent: "Kalam", cursive;
    --font-display: "Permanent Marker", cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        linear-gradient(180deg, #efe5c7 0%, #f5edd8 100%);
    line-height: 1.6;
}

body.body-home {
    background:
        radial-gradient(circle at 15% 14%, rgba(159, 208, 185, 0.38), transparent 22%),
        radial-gradient(circle at 86% 18%, rgba(234, 92, 72, 0.28), transparent 24%),
        radial-gradient(circle at 78% 78%, rgba(95, 143, 199, 0.24), transparent 26%),
        var(--paper);
}

body.body-home .site-main {
    padding-top: 0;
}

body.is-lightbox-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(21, 21, 21, 0.08) 0.75px, transparent 0.75px);
    background-size: 18px 18px;
    opacity: 0.15;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 24px), var(--max-width));
    margin: 18px auto 28px;
    border: 4px solid var(--ink);
    border-radius: 10px;
    overflow: clip;
    background: var(--paper);
    box-shadow: 12px 12px 0 rgba(21, 21, 21, 0.16);
}

.site-header {
    background: var(--paper);
    border-bottom: 4px solid var(--ink);
    padding: 16px 18px 0;
}

.masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.brand-block {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.brand-kicker {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5vw, 4.9rem);
    line-height: 0.95;
}

.menu-toggle {
    min-width: 90px;
    padding: 8px 14px;
    border: 3px solid var(--ink);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-accent);
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--ink);
}

.site-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 0 14px;
    border-top: 4px solid var(--ink);
    background: rgba(255, 253, 248, 0.82);
}

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

.site-nav a,
.site-nav .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
}

.site-nav form {
    margin: 0;
}

.nav-button {
    cursor: pointer;
}

.cart-pill {
    padding: 8px 12px !important;
    border: 3px solid var(--ink) !important;
    border-radius: 999px !important;
    background: var(--yellow) !important;
    font-family: var(--font-accent) !important;
    font-size: 1rem !important;
}

.cart-pill span {
    display: inline-grid;
    place-items: center;
    min-width: 1.8rem;
    height: 1.8rem;
    margin-left: 8px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-size: 0.78rem;
}

.site-main {
    padding: 18px;
}

.section,
.panel,
.story-card,
.sidebar-card,
.newsletter-box,
.admin-card,
.metric-card,
.auth-card,
.comment-card,
.table-card,
.cart-summary,
.empty-state {
    border: 4px solid var(--ink);
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.section {
    padding: 22px;
    margin-bottom: 22px;
}

.section--mint {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent), var(--mint);
}

.section--tomato {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent), var(--tomato);
    color: var(--white);
}

.section--yellow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent), var(--yellow);
}

.section--blue {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent), var(--blue);
    color: var(--white);
}

.section-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 4px solid var(--ink);
    border-radius: 8px;
    background: linear-gradient(90deg, var(--mint), var(--yellow), var(--tomato));
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1;
    box-shadow: 6px 6px 0 rgba(21, 21, 21, 0.18);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.eyebrow {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.headline {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.05;
}

.subheadline {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.08;
}

.deck {
    margin: 0;
    max-width: 62ch;
    font-size: 1rem;
    color: rgba(21, 21, 21, 0.86);
}

.section--tomato .deck,
.section--blue .deck {
    color: rgba(255, 255, 255, 0.88);
}

.hero {
    display: grid;
    gap: 18px;
}

.hero-copy {
    padding: 24px;
    border: 4px solid var(--ink);
    border-radius: var(--radius);
    background:
        linear-gradient(0deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
        linear-gradient(135deg, var(--mint) 0 46%, var(--yellow) 46% 68%, var(--tomato) 68% 100%);
    box-shadow: var(--shadow);
}

.hero-copy .headline {
    max-width: 12ch;
}

.hero-badges,
.inline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-accent);
    font-weight: 700;
}

.pill--premium {
    background: var(--tomato);
    color: var(--white);
}

.pill--member {
    background: var(--blue);
    color: var(--white);
}

.pill--free {
    background: var(--mint);
}

.pill--accent {
    background: var(--yellow);
}

.hero-collage {
    display: grid;
    gap: 14px;
}

.chaos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.chaos-card {
    min-height: 150px;
    padding: 18px;
    border: 4px solid var(--ink);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.chaos-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1.1;
}

.chaos-card p {
    margin: 0;
    font-size: 0.95rem;
}

.chaos-card--mint {
    background: var(--mint);
}

.chaos-card--yellow {
    background: var(--yellow);
}

.chaos-card--tomato {
    background: var(--tomato);
    color: var(--white);
}

.chaos-card--blue {
    background: var(--blue);
    color: var(--white);
}

.comic-burst {
    position: relative;
    padding: 24px 18px;
    border: 4px solid var(--ink);
    background: var(--white);
    clip-path: polygon(10% 0, 21% 9%, 35% 0, 45% 10%, 58% 0, 68% 10%, 82% 0, 88% 16%, 100% 20%, 92% 37%, 100% 52%, 87% 61%, 95% 80%, 78% 82%, 70% 100%, 56% 90%, 44% 100%, 31% 89%, 18% 100%, 12% 84%, 0 79%, 8% 63%, 0 49%, 9% 36%, 0 20%, 14% 16%);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.button-row,
.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
.button-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 18px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    box-shadow: 5px 5px 0 rgba(21, 21, 21, 0.15);
    cursor: pointer;
}

.button--ghost {
    background: var(--white);
    color: var(--ink);
}

.button--accent {
    background: var(--yellow);
    color: var(--ink);
}

.button--danger {
    background: var(--tomato);
}

.button--small {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.92rem;
}

.button--block {
    width: 100%;
}

.card-grid,
.stats-grid,
.account-grid,
.admin-grid,
.blog-grid,
.shop-grid {
    display: grid;
    gap: 18px;
}

.story-card {
    overflow: clip;
    border-radius: 8px;
}

.story-card__media,
.product-card__media,
.article-cover,
.spotlight__media {
    aspect-ratio: 1 / 1;
    border-bottom: 4px solid var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent),
        linear-gradient(135deg, var(--mint) 0 40%, var(--yellow) 40% 70%, var(--tomato) 70% 100%);
}

.story-card__media img,
.product-card__media img,
.article-cover img,
.spotlight__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card__body,
.product-card__body,
.spotlight__copy,
.metric-card,
.auth-card,
.empty-state {
    padding: 18px;
}

.story-card__title,
.product-card__title {
    margin: 0 0 10px;
    font-family: var(--font-accent);
    font-size: 1.72rem;
    line-height: 1.08;
}

.story-card__meta,
.product-meta,
.meta-line,
.footer-meta,
.help-text {
    font-size: 0.9rem;
    color: rgba(21, 21, 21, 0.68);
}

.spotlight {
    display: grid;
    gap: 18px;
}

.locked-panel {
    padding: 22px;
    border: 4px dashed var(--ink);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(95, 143, 199, 0.12), rgba(234, 92, 72, 0.16));
}

.article {
    display: grid;
    gap: 18px;
}

.article-body {
    padding: 22px;
}

.article-body .headline {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.prose > * + * {
    margin-top: 1rem;
}

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-display);
    line-height: 1.08;
}

.prose blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.2rem;
    border-left: 6px solid var(--tomato);
    background: rgba(234, 92, 72, 0.08);
    border-radius: 0 18px 18px 0;
}

.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.article-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid var(--ink);
    border-radius: 20px;
}

.media-stream {
    display: grid;
    gap: 16px;
}

.media-card,
.media-video-card {
    overflow: clip;
    border: 4px solid var(--ink);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.media-card__trigger,
.media-video-card__trigger,
.media-card__trigger--cover {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.media-card__trigger img,
.media-video-card__trigger img,
.media-card__trigger--cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card__trigger img {
    aspect-ratio: 1 / 1;
}

.media-card__video {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ink);
}

.media-card__video video,
.media-card__native-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-card__native-video {
    background: var(--ink);
}

.media-card__video-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.94);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.media-card__trigger--cover img {
    aspect-ratio: 16 / 10;
}

.media-card__actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 4px solid var(--ink);
    background: rgba(255, 253, 248, 0.92);
}

.media-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}

.media-action--active {
    background: var(--tomato);
    color: var(--white);
}

.media-action__icon {
    font-size: 1rem;
}

.media-comments-drawer {
    padding: 0 14px 14px;
}

.media-video-card__trigger {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
        linear-gradient(135deg, var(--blue) 0 40%, var(--yellow) 40% 70%, var(--tomato) 70% 100%);
}

.media-video-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 16px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    font-family: var(--font-accent);
    font-weight: 700;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 16px;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.86);
}

.media-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1040px);
    max-height: calc(100vh - 32px);
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 4px solid var(--ink);
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow-soft);
}

.media-lightbox__content {
    min-height: 220px;
    max-height: 70vh;
    display: grid;
    place-items: center;
}

.media-lightbox__image,
.media-lightbox__frame,
.media-lightbox__native-video {
    width: 100%;
    max-height: 70vh;
    border: 4px solid var(--ink);
    border-radius: 18px;
    background: var(--ink);
}

.media-lightbox__image {
    object-fit: contain;
}

.media-lightbox__frame {
    aspect-ratio: 16 / 9;
}

.media-lightbox__native-video {
    aspect-ratio: 16 / 9;
}

.media-lightbox__title,
.media-lightbox__caption {
    margin: 0;
}

.media-lightbox__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
}

.media-lightbox__caption {
    color: rgba(21, 21, 21, 0.72);
}

.media-lightbox__close,
.media-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 1.8rem;
    cursor: pointer;
}

.media-lightbox__close {
    top: 12px;
    right: 12px;
}

.media-lightbox__nav--prev {
    left: 12px;
    top: calc(50% - 26px);
}

.media-lightbox__nav--next {
    right: 12px;
    top: calc(50% - 26px);
}

.sidebar-card,
.newsletter-box,
.comment-card,
.table-card,
.cart-summary {
    padding: 18px;
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.76);
}

.comment-card__author {
    margin: 0 0 8px;
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-weight: 700;
}

.product-card,
.metric-card {
    border: 4px solid var(--ink);
    border-radius: var(--radius);
    background: var(--white);
    overflow: clip;
}

.cart-layout {
    display: grid;
    gap: 18px;
}

.cart-item {
    display: grid;
    gap: 14px;
    padding: 16px 0;
    border-top: 2px dashed rgba(21, 21, 21, 0.2);
}

.cart-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.auth-shell,
.account-shell,
.admin-card,
.table-wrap {
    display: grid;
    gap: 18px;
}

.field,
.field-inline {
    display: grid;
    gap: 8px;
}

.field label,
.field-inline label {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.field-help {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(21, 21, 21, 0.72);
}

.input,
.textarea,
.select,
.field input,
.field textarea,
.field select,
.admin-card input:not([type="checkbox"]):not([type="file"]),
.admin-card textarea,
.admin-card select,
.newsletter-inline input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--white);
}

.textarea,
.field textarea {
    min-height: 150px;
    resize: vertical;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.newsletter-inline {
    display: grid;
    gap: 10px;
}

.newsletter-inline label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

.newsletter-inline__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.newsletter-inline button {
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: var(--yellow);
    padding: 0 18px;
    font-weight: 700;
}

.notice-box {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.78);
}

.notice-box p {
    margin: 0;
}

.notice-box code {
    font-size: 0.92em;
}

.settings-preview {
    overflow: hidden;
    margin-bottom: 16px;
    border: 4px solid var(--ink);
    border-radius: 14px;
    background: var(--paper-strong);
}

.settings-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 4px 4px 0 rgba(21, 21, 21, 0.14);
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.social-link:hover {
    transform: translate(-2px, -2px);
}

.social-link__icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
}

.social-link__icon svg {
    width: 100%;
    height: 100%;
}

.social-links--footer {
    justify-content: flex-start;
}

.social-links--poster {
    justify-content: center;
    flex: 0 0 auto;
    padding: 0;
    border-top: 0;
    background: transparent;
}

.social-links--contact {
    margin-top: 18px;
}

.social-links--contact .social-link,
.social-links--footer .social-link {
    width: auto;
    min-width: 48px;
    padding: 0 14px;
    gap: 10px;
    border-radius: 18px;
}

.social-link__label {
    font-family: var(--font-accent);
    font-weight: 700;
}

.social-link--instagram:hover {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%);
    color: var(--white);
}

.social-link--facebook:hover {
    background: #1877f2;
    color: var(--white);
}

.social-link--tiktok:hover {
    background: #111111;
    color: var(--white);
}

.social-link--x:hover,
.social-link--telegram:hover {
    background: var(--ink);
    color: var(--white);
}

.toggle-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.toggle-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 14px 16px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: var(--white);
    font-weight: 700;
}

.toggle-chip input {
    width: 20px;
    height: 20px;
    accent-color: var(--tomato);
}

.toggle-chip span {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.flash-stack {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 60;
    display: grid;
    gap: 12px;
    width: min(calc(100vw - 28px), 420px);
}

.flash-message {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: var(--mint);
    color: var(--ink);
    box-shadow: 8px 8px 0 rgba(21, 21, 21, 0.16);
    font-weight: 700;
}

.flash-message--toast {
    animation: flash-in 180ms ease-out;
}

.flash-message.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.flash-message__body {
    display: grid;
    gap: 6px;
}

.flash-message__body strong {
    font-family: var(--font-accent);
    font-size: 1.05rem;
}

.flash-message__body span,
.flash-message__list {
    font-size: 0.95rem;
    font-weight: 600;
}

.flash-message__list {
    margin: 0;
    padding-left: 18px;
}

.flash-message__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 2px solid currentColor;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.flash-message--error {
    background: var(--tomato);
    color: var(--white);
}

.flash-message--warning {
    background: var(--yellow);
    color: var(--ink);
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-footer {
    border-top: 4px solid var(--ink);
    padding: 20px 18px 24px;
    background: var(--paper-strong);
}

.footer-grid {
    display: grid;
    gap: 18px;
    padding: 8px 0 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.footer-stack {
    display: grid;
    gap: 14px;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 12px;
    border-top: 2px dashed rgba(21, 21, 21, 0.3);
}

.pagination-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.page-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--white);
    font-weight: 700;
}

.page-pill--current {
    background: var(--yellow);
}

.is-disabled {
    opacity: 0.45;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 2px dashed rgba(21, 21, 21, 0.22);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-shell {
    display: grid;
    min-height: 100vh;
}

.admin-sidebar {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent), var(--ink);
    color: var(--white);
}

.brand-block--admin {
    display: grid;
    width: 100%;
    max-width: 100%;
    gap: 6px;
}

.brand-block--admin .brand-kicker {
    color: rgba(255, 255, 255, 0.76);
}

.brand-block--admin .brand-name {
    max-width: 100%;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.admin-nav {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.admin-nav a {
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    font-weight: 600;
}

.admin-main {
    padding: 20px;
}

.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-card {
    padding: 18px;
}

.poster-hero {
    margin-bottom: 22px;
    border: 4px solid var(--ink);
    border-radius: 8px;
    overflow: clip;
    background: var(--paper);
    box-shadow: 10px 10px 0 rgba(21, 21, 21, 0.12);
}

.poster-hero__art {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 4px solid var(--ink);
}

.poster-hero__image {
    aspect-ratio: 21 / 10;
    overflow: hidden;
    border-bottom: 4px solid var(--ink);
    background: var(--paper-strong);
}

.poster-hero__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
}

.poster-hero__panel,
.poster-hero__center {
    min-height: 220px;
    position: relative;
    padding: 18px;
}

.poster-hero__panel--mint {
    background: #a9d7bf;
}

.poster-hero__panel--chaos {
    background:
        linear-gradient(145deg, #f2c62a 0 24%, #2e7778 24% 42%, #db4f44 42% 64%, #305899 64% 100%);
    color: var(--ink);
}

.poster-hero__center {
    display: grid;
    place-items: center;
    background:
        linear-gradient(180deg, #f4ecd7 0 46%, #eddcb7 46% 100%);
}

.poster-kicker {
    display: block;
    max-width: 14ch;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.poster-logo {
    margin: 0;
    max-width: 7ch;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 5.6rem);
    line-height: 0.9;
}

.poster-sideword {
    margin: 18px 0 0;
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
}

.poster-sideword--right {
    text-align: right;
}

.poster-doodles {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.poster-doodle {
    display: block;
    border: 3px solid var(--ink);
}

.poster-doodle--brick {
    width: 34px;
    height: 24px;
    background: var(--blue);
}

.poster-doodle--cup {
    width: 24px;
    height: 34px;
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #ffffff 0 55%, #bd7f3f 55% 100%);
}

.poster-doodle--chat {
    width: 30px;
    height: 22px;
    border-radius: 8px;
    background: var(--white);
}

.poster-avatar {
    position: relative;
    width: 180px;
    height: 180px;
}

.poster-avatar__hair {
    position: absolute;
    inset: 18px 26px 8px;
    border-radius: 44% 44% 48% 48%;
    background: linear-gradient(180deg, #162140 0%, #252e5d 100%);
    box-shadow: inset 0 0 0 4px rgba(21, 21, 21, 0.2);
}

.poster-avatar__face {
    position: absolute;
    inset: 38px 52px 30px;
    border: 3px solid var(--ink);
    border-radius: 44% 44% 48% 48%;
    background: #f7d9c3;
}

.poster-note {
    position: absolute;
    border: 3px solid var(--ink);
    background: var(--white);
    font-family: var(--font-accent);
    font-weight: 700;
}

.poster-note--crown {
    top: 18px;
    left: calc(50% + 12px);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--yellow);
}

.poster-note--phone {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    border-radius: 10px;
}

.poster-burst {
    width: min(180px, 100%);
    padding: 18px 14px;
    border: 4px solid var(--ink);
    background: var(--white);
    clip-path: polygon(10% 0, 20% 10%, 35% 0, 46% 14%, 60% 0, 73% 12%, 100% 10%, 88% 32%, 100% 50%, 87% 67%, 95% 92%, 68% 84%, 58% 100%, 42% 88%, 24% 100%, 17% 80%, 0 82%, 10% 59%, 0 41%, 12% 26%, 0 11%);
    font-family: var(--font-display);
    text-align: center;
}

.poster-burst strong {
    display: block;
    font-size: 1.6rem;
}

.poster-chaos-grid {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 6px;
}

.poster-chaos-grid span {
    display: block;
    width: 34px;
    height: 22px;
    border: 3px solid var(--ink);
}

.poster-chaos-grid span:nth-child(1),
.poster-chaos-grid span:nth-child(6) {
    background: var(--yellow);
}

.poster-chaos-grid span:nth-child(2),
.poster-chaos-grid span:nth-child(5) {
    background: var(--blue);
}

.poster-chaos-grid span:nth-child(3),
.poster-chaos-grid span:nth-child(4) {
    background: var(--tomato);
}

.poster-navstrip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    padding: 0;
    background: transparent;
    color: var(--poster-stripline-text, var(--ink));
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 3vw, 1.75rem);
}

.poster-stripline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    padding: 12px 16px 14px;
    background: var(--poster-stripline-background, var(--white));
    color: var(--poster-stripline-text, var(--ink));
}

.poster-title {
    margin-bottom: 18px;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
}

.poster-section {
    margin-bottom: 22px;
    padding: 18px;
    border: 4px solid var(--ink);
    border-radius: 8px;
    background: var(--paper);
}

.poster-section--split {
    display: grid;
    gap: 18px;
    align-items: center;
}

.poster-feature-grid {
    display: grid;
    gap: 18px;
}

.poster-feature {
    display: grid;
    gap: 12px;
}

.poster-feature__art {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 4px solid var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
        linear-gradient(135deg, var(--mint) 0 44%, var(--yellow) 44% 72%, var(--tomato) 72% 100%);
}

.poster-feature__art img,
.poster-strip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-feature__caption h2,
.poster-strip-copy h2 {
    margin: 0 0 8px;
    font-family: var(--font-accent);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.poster-feature__caption p,
.poster-strip-copy p {
    margin: 0;
}

.poster-inline-link {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-accent);
    font-weight: 700;
    text-decoration: underline;
}

.poster-strip-image {
    aspect-ratio: 16 / 8;
    overflow: hidden;
    border: 4px solid var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent),
        linear-gradient(135deg, var(--tomato) 0 30%, var(--yellow) 30% 62%, var(--blue) 62% 100%);
}

.poster-meta {
    margin-top: 12px;
    font-size: 0.92rem;
    color: rgba(21, 21, 21, 0.68);
}

.poster-banner {
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    padding: 18px 20px;
    border: 4px solid var(--ink);
    border-radius: 8px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 0.95;
}

.poster-banner--mint {
    background: linear-gradient(90deg, #9ed1bb 0 44%, #e85344 44% 100%);
}

.poster-card {
    border-radius: 8px;
}

.premium-plan-card {
    background: var(--premium-card-background, var(--paper-strong));
    color: var(--premium-card-text, var(--ink));
}

.premium-plan-card .story-card__body {
    background: var(--premium-card-background, var(--paper-strong));
    color: var(--premium-card-text, var(--ink));
}

.premium-plan-card .meta-line,
.premium-plan-card p,
.premium-plan-card li,
.premium-plan-card .story-card__title {
    color: inherit;
}

.premium-plan-card .button--accent,
.premium-plan-card .button--ghost,
.premium-plan-card .button[disabled] {
    background: var(--premium-card-button-background, var(--yellow));
    color: var(--premium-card-button-text, var(--ink));
}

.premium-plan-card .button[disabled] {
    cursor: not-allowed;
    opacity: 0.82;
}

.section-head--split {
    gap: 14px;
}

.gallery-grid {
    display: grid;
    gap: 18px;
}

.gallery-card {
    overflow: clip;
}

.gallery-card__media {
    aspect-ratio: 1 / 1;
}

.gallery-card__stats,
.gallery-toolbar,
.gallery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.gallery-card__stats,
.gallery-meta {
    margin-top: 12px;
    font-size: 0.92rem;
    color: rgba(21, 21, 21, 0.74);
}

.gallery-toolbar {
    align-items: center;
    justify-content: space-between;
}

.gallery-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-mosaic {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.gallery-mosaic img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid var(--ink);
    border-radius: 20px;
    background: var(--paper-strong);
}

.button-like {
    background: var(--white);
    color: var(--ink);
}

.button-like--active {
    background: var(--tomato);
    color: var(--white);
}

.metric-card h3,
.admin-card h3,
.empty-state h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.08;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

@media (max-width: 759px) {
    .social-links {
        gap: 8px;
    }

    .social-links--poster .social-link {
        width: 38px;
        height: 38px;
        border-width: 2px;
        box-shadow: 3px 3px 0 rgba(21, 21, 21, 0.14);
    }

    .social-links--poster .social-link__icon {
        width: 16px;
        height: 16px;
    }

    .social-links--footer .social-link,
    .social-links--contact .social-link {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        gap: 8px;
        border-width: 2px;
        box-shadow: 3px 3px 0 rgba(21, 21, 21, 0.14);
    }

    .social-links--footer .social-link__icon,
    .social-links--contact .social-link__icon {
        width: 14px;
        height: 14px;
    }

    .social-links--footer .social-link__label,
    .social-links--contact .social-link__label {
        font-size: 0.92rem;
    }
}

@media (min-width: 760px) {
    .section-head--split {
        flex-direction: row;
        align-items: end;
        justify-content: space-between;
    }

    .poster-stripline {
        justify-content: space-between;
    }

    .poster-navstrip {
        justify-content: flex-start;
        flex: 1 1 520px;
    }

    .social-links--poster {
        justify-content: flex-end;
    }

    .site-header {
        padding: 22px 24px 14px;
    }

    .site-main {
        padding: 24px;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .hero,
    .spotlight,
    .cart-layout,
    .footer-grid,
    .account-grid,
    .stats-grid,
    .blog-grid,
    .shop-grid,
    .gallery-grid,
    .media-stream {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .poster-hero__art {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr) minmax(0, 1fr);
    }

    .poster-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .poster-section--split {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .poster-strip-image {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .form-grid--two,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-item {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

@media (min-width: 980px) {
    .site-main {
        padding: 28px;
    }

    .poster-hero__panel,
    .poster-hero__center {
        min-height: 340px;
        padding: 28px;
    }

    .poster-avatar {
        width: 240px;
        height: 240px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: stretch;
    }

    .spotlight {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
        align-items: center;
    }

    .account-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .blog-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    }

    .shop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .gallery-mosaic {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .media-stream {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        align-items: start;
    }

    .admin-shell {
        grid-template-columns: 290px minmax(0, 1fr);
    }

    .admin-sidebar {
        min-height: 100vh;
        position: sticky;
        top: 0;
    }
}
