/* Style "Zine" (created 2026-11-04)
   Photocopied fanzine: greyish copy paper with halftone dots, black marker headlines, tape
   strips on panels, a highlighter yellow and cut-out labels. Light scheme.
   Contract: css/ui-styles/templates.css – this file only sets tokens and decoration. */

html[data-ui-style="zine"] { color-scheme: light; }

html[data-ui-style="zine"],
html[data-ui-style="zine"] .page {
    /* Palette */
    --bg-primary: #ECEAE4;
    --bg-secondary: #E0DDD5;
    --bg-surface: #F8F6F1;
    --bg-surface-hover: #F0EDE6;
    --bg-talk-bar: #F8F6F1;
    --bg-talk-bar-hover: #FFF7B8;
    --bg-comment-bar: #F8F6F1;
    --text-primary: #111111;
    --text-secondary: #2E2E2E;
    --text-muted: #555350;
    --border: #111111;
    --border-light: #BDBAB2;
    --primary: #D6234A;
    --primary-hover: #B21B3C;
    --primary-foreground: #FFFFFF;
    --primary-muted: rgba(214, 35, 74, .1);
    --success: #1E6B34;
    --warning: #8A5800;
    --error: #C21F3F;
    --info: #1D4E9A;
    --nav-bg: #ECEAE4;
    --nav-border: #111111;
    --shadow-color: rgba(0, 0, 0, .18);
    --modal-overlay: rgba(17, 17, 17, .5);
    --ai-color-1: #D6234A;
    --ai-color-2: #111111;
    --ai-color-3: #F5E23B;
    --ai-gradient: linear-gradient(135deg, #111111 0%, #D6234A 60%, #F5E23B 100%);
    --ai-bg: rgba(245, 226, 59, .25);
    --ai-border: #111111;

    /* Type and shape */
    --font-default: "Courier New", Courier, "Cascadia Mono", monospace;
    --font-display: "Ink Free", "Segoe Print", "Bradley Hand", "Marker Felt", "Comic Sans MS", cursive;
    --ui-font-ui: "Arial Black", "Arial", sans-serif;
    --radius-control: 2px;
    --radius-panel: 2px;

    /* Element tokens */
    --ui-page-bg: radial-gradient(rgba(17, 17, 17, .13) .9px, transparent 1.3px) 0 0 / 7px 7px, #ECEAE4;
    --ui-heading-weight: 700;
    --ui-heading-tracking: -.01em;
    --ui-heading-color: #111111;
    --ui-heading-line: 1.05;
    --ui-eyebrow-font: var(--ui-font-ui);
    --ui-eyebrow-color: #FFFFFF;
    --ui-eyebrow-bg: #111111;
    --ui-eyebrow-padding: .3rem .6rem .25rem;
    --ui-eyebrow-tracking: .08em;
    --ui-eyebrow-weight: 900;
    --ui-label-color: #111111;
    --ui-label-weight: 700;
    --ui-label-transform: uppercase;
    --ui-label-tracking: .05em;
    --ui-header-bg: #ECEAE4;
    --ui-header-border: 3px solid #111111;
    --ui-logo-font: var(--font-display);
    --ui-logo-weight: 700;
    --ui-logo-mark-color: #D6234A;
    --ui-nav-color: #111111;
    --ui-nav-weight: 900;
    --ui-nav-transform: uppercase;
    --ui-nav-tracking: .02em;
    --ui-nav-hover-bg: #F5E23B;
    --ui-nav-active-bg: #111111;
    --ui-nav-active-color: #F5E23B;
    --ui-footer-bg: #111111;
    --ui-footer-border: 0 solid transparent;
    --ui-link-color: #F5E23B;
    --ui-divider: 2px dashed #111111;
    --ui-selection-bg: #F5E23B;
    --ui-selection-fg: #111111;
    --ui-stylebar-bg: #111111;
    --ui-stylebar-fg: #ECEAE4;
    --ui-stylebar-border: 0 solid transparent;
    --ui-stylebar-accent: #F5E23B;
    --ui-stylebar-active-bg: #F5E23B;
    --ui-stylebar-active-fg: #111111;
    --ui-stylebar-active-border: #F5E23B;
    --ui-surface-bg: #F8F6F1;
    --ui-surface-border: 2px solid #111111;
    --ui-surface-shadow: 3px 4px 0 rgba(17, 17, 17, .85);
    --ui-modal-shadow: 6px 8px 0 #111111;
    --ui-talkbar-border: 2px solid #111111;
    --ui-talkbar-shadow: 3px 3px 0 #111111;
    --ui-talkbar-hover-shadow: 5px 5px 0 #111111;
    --ui-btn-font: var(--ui-font-ui);
    --ui-btn-weight: 900;
    --ui-btn-transform: uppercase;
    --ui-btn-tracking: .03em;
    --ui-btn-primary-bg: #111111;
    --ui-btn-primary-fg: #F5E23B;
    --ui-btn-primary-border: 2px solid #111111;
    --ui-btn-primary-shadow: 3px 3px 0 #D6234A;
    --ui-btn-primary-hover-bg: #D6234A;
    --ui-btn-primary-hover-fg: #FFFFFF;
    --ui-btn-primary-hover-shadow: 3px 3px 0 #111111;
    --ui-btn-secondary-bg: #F8F6F1;
    --ui-btn-secondary-border: 2px solid #111111;
    --ui-btn-secondary-shadow: 2px 2px 0 #111111;
    --ui-btn-secondary-hover-bg: #F5E23B;
    --ui-btn-hover-transform: rotate(-1deg);
    --ui-input-bg: #FFFFFF;
    --ui-input-border: 2px solid #111111;
    --ui-input-placeholder: #6E6B66;
    --ui-input-focus-border-color: #D6234A;
    --ui-input-focus-shadow: 3px 3px 0 #F5E23B;
    --ui-seg-bg: #F8F6F1;
    --ui-seg-fg: #111111;
    --ui-seg-border: 2px solid #111111;
    --ui-seg-underline: 2px solid #111111;
    --ui-seg-radius: 2px;
    --ui-seg-transform: uppercase;
    --ui-seg-hover-bg: #F5E23B;
    --ui-seg-active-bg: #F5E23B;
    --ui-seg-active-fg: #111111;
    --ui-seg-active-border: 2px solid #111111;
    --ui-seg-active-underline: 2px solid #111111;
    --ui-seg-active-shadow: 3px 3px 0 #111111;
    --ui-panel-bg: #F8F6F1;
    --ui-panel-border: 2px solid #111111;
    --ui-panel-padding: 2.5rem 2.25rem 1.5rem;
    --ui-panel-padding-mobile: 1.6rem 1.1rem 1.1rem;
    --ui-panel-shadow: 6px 7px 0 rgba(17, 17, 17, .9);
    --ui-fab-bg: #F5E23B;
    --ui-fab-fg: #111111;
    --ui-fab-border: 2px solid #111111;
    --ui-fab-radius: 2px;
    --ui-fab-shadow: 3px 3px 0 #111111;
    --ui-badge-bg: #D6234A;
    --ui-badge-fg: #FFFFFF;
    --ui-badge-radius: 2px;
}

/* Footer is the black back cover */
html[data-ui-style="zine"] .page > footer { color: #ECEAE4; }
html[data-ui-style="zine"] .page > footer :is(.logo, .studio-brand-name) { color: #ECEAE4; }
html[data-ui-style="zine"] .page > footer .footer-copyright { color: #BDBAB2; }

/* Cut-out label eyebrow, tilted; the hero title gets a highlighter stroke */
html[data-ui-style="zine"] :is(.studio-eyebrow, .studio-section-number) { transform: rotate(-1.5deg); }
html[data-ui-style="zine"] h1.studio-hero-title {
    background: linear-gradient(transparent 62%, rgba(245, 226, 59, .9) 62% 88%, transparent 88%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    display: inline;
}
/* A strip of tape holding the composer to the page */
html[data-ui-style="zine"] .create-feed-form { position: relative; }
html[data-ui-style="zine"] .create-feed-form::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 120px;
    height: 28px;
    margin-left: -60px;
    background: rgba(245, 226, 59, .7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    transform: rotate(-3deg);
}
html[data-ui-style="zine"] .studio-voice-art { filter: grayscale(1) contrast(1.6); }

.lt-style-chip[data-chip="zine"] {
    background:
        linear-gradient(-4deg, transparent 0 40%, rgba(245, 226, 59, .95) 40% 62%, transparent 62%),
        radial-gradient(#111111 .8px, transparent 1.1px) 0 0 / 4px 4px,
        #ECEAE4;
    border-radius: 2px;
    box-shadow: inset 0 0 0 2px #111111;
}
