/* Tailwind v4 site stylesheet. Single source of truth for design + custom CSS.
 *
 * At draft time, this is read inline into a <style type="text/tailwindcss"> block.
 * At publish time, the Tailwind CLI compiles this file (plus templates) into
 * dist/styles.css. Every directive works here: @theme, @layer, @utility,
 * @apply, @keyframes, plus plain CSS. Do NOT write <style> blocks in PHP
 * templates for theme CSS — put it here so it lands in the compiled bundle.
 *
 * functions.php also parses the @theme block at runtime to register the
 * palette + font sizes with Gutenberg via add_theme_support().
 *
 * Conventions:
 *   1. @theme: tokens only (--color-*, --font-*, --text-*, --radius-*). No
 *      selectors, no @apply. Tokens auto-generate matching utilities.
 *   2. Plain CSS: outside @theme, inside @layer. Prefer utility classes in
 *      templates first; only write CSS here when utilities cannot express it.
 *      @layer base { h1 { font-size: var(--text-2xl); } }
 *      @layer components { .card { padding: --spacing(6); } }
 *   3. New reusable utilities: prefer @utility over @apply.
 *      @utility content-auto { content-visibility: auto; }
 *   4. Custom web fonts: load via <link> in template-parts/head.php, then
 *      reference here via --font-*.
 *
 * Token naming (Tailwind v4):
 *   --color-{slug}        → bg-{slug}, text-{slug}, border-{slug}
 *   --color-{slug}-{NN}   → numeric shades (skipped in the Gutenberg palette)
 *   --font-{slug}         → font-{slug}
 *   --text-{slug}         → text-{slug}
 *   --radius-{slug}       → rounded-{slug}
 */

@theme {
	--color-primary: #2563eb;
	--color-primary-50:  #eff6ff;
	--color-primary-100: #dbeafe;
	--color-primary-500: #3b82f6;
	--color-primary-600: #2563eb;
	--color-primary-700: #1d4ed8;
	--color-primary-900: #1e3a8a;

	--color-secondary: #475569;
	--color-secondary-50:  #f8fafc;
	--color-secondary-100: #f1f5f9;
	--color-secondary-200: #e2e8f0;
	--color-secondary-300: #cbd5e1;
	--color-secondary-500: #64748b;
	--color-secondary-600: #475569;
	--color-secondary-700: #334155;
	--color-secondary-900: #0f172a;

	--color-neutral: #171717;
	--color-background: #ffffff;

	--font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-serif: Georgia, "Times New Roman", serif;
	--font-mono:  ui-monospace, "SF Mono", Menlo, monospace;

	--text-sm:   0.875rem;
	--text-base: 1rem;
	--text-lg:   1.125rem;
	--text-xl:   1.25rem;
	--text-2xl:  1.5rem;
	--text-3xl:  1.875rem;
	--text-4xl:  2.25rem;
	--text-5xl:  3rem;
}

/* Element-level defaults. Reach for utility classes in templates first; put
 * a rule here only when the same styling needs to apply across every instance
 * of an element (e.g. body font features). Keep this layer small. */
@layer base {
	/* body { font-feature-settings: "ss01", "ss02"; } */
}

/* Reusable component classes. Use for compound patterns that recur and need
 * a name (e.g. .card, .hero-heading, .divider). Reference tokens via var();
 * @apply works but is finicky — prefer var() + utility classes in templates. */
@layer components {
	/* .hero-heading em { font-style: italic; color: var(--color-primary); } */
}

/* Zombie Spiele Verlag: scoped presentation for the publisher and its game pages. */
@layer components {
.zsv-site{--zsv-orange:#ffae24;--zsv-petrol:#0f4c5c;--zsv-ink:#22242b;--zsv-soft:#f4f7f7;--zsv-line:#d6e0e1;--zsv-muted:#53646c;color:var(--zsv-ink);padding-bottom:42px}
.zsv-site h1,.zsv-site h2,.zsv-site h3{font-family:inherit;font-weight:900;letter-spacing:-.045em}
.zsv-site a{color:inherit}
.zsv-site .zsv-dot{color:var(--zsv-orange)}
.zsv-site .zsv-kicker{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:var(--zsv-petrol);margin:0 0 14px}
.zsv-site .zsv-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.52fr);gap:clamp(28px,4vw,64px);align-items:center;max-width:1320px;width:calc(100% - 40px);margin:24px auto 0;padding:clamp(30px,5vw,72px);border-radius:26px;background:var(--zsv-petrol);color:#fff}
.zsv-site .zsv-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:13px;line-height:1.5;margin-bottom:34px}
.zsv-site .zsv-breadcrumbs a{text-decoration:underline;text-underline-offset:4px}
.zsv-site .zsv-hero .zsv-kicker{color:var(--zsv-orange)}
.zsv-site .zsv-hero h1{font-size:clamp(44px,6.4vw,86px);line-height:1.02;margin:0 0 24px;overflow-wrap:break-word}
.zsv-site .zsv-hero-lead{font-size:clamp(17px,1.6vw,21px);line-height:1.55;max-width:620px;margin:0 0 30px}
.zsv-site .zsv-hero-logo{margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;display:flex;align-items:center;justify-content:center;width:100%}
.zsv-site .zsv-publisher-logo{width:100%;height:auto;max-height:450px;object-fit:contain}
.zsv-site .zsv-button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:48px;max-width:100%;padding:14px 22px;border-radius:12px;background:var(--zsv-orange);color:var(--zsv-ink);font-size:15px;font-weight:900;text-decoration:none;line-height:1.35;transition:background .18s,transform .18s}
.zsv-site .zsv-button svg{flex:none}
.zsv-site .zsv-button:hover{background:#ffc254;transform:translateY(-2px)}
.zsv-site .zsv-button-petrol{background:var(--zsv-petrol);color:#fff}
.zsv-site .zsv-button-petrol:hover{background:#176577}
.zsv-site a:focus-visible{outline:3px solid var(--zsv-orange);outline-offset:5px}
.zsv-site .zsv-button:focus-visible{outline-color:var(--zsv-petrol);box-shadow:0 0 0 2px #fff}
.zsv-site .zsv-hero .zsv-button:focus-visible,.zsv-site .zsv-buy .zsv-button:focus-visible{outline-color:#fff}
.zsv-site .zsv-content{padding-top:78px}
.zsv-site .zsv-portfolio{scroll-margin-top:30px}
.zsv-site .zsv-section-head{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:34px}
.zsv-site .zsv-section-head h2,.zsv-site .zsv-about h2{font-size:clamp(34px,4.2vw,56px);line-height:1.05;margin:0}
.zsv-site .zsv-section-head>p{font-size:16px;color:var(--zsv-muted);margin:0 0 3px}
.zsv-site .zsv-games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.zsv-site .zsv-game{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:20px;background:#fff;border:1px solid var(--zsv-line);text-decoration:none;box-shadow:0 6px 24px rgb(15 76 92 / 6%);transition:transform .2s,box-shadow .2s}
.zsv-site .zsv-game:hover{transform:translateY(-5px);box-shadow:0 14px 30px rgb(15 76 92 / 13%)}
.zsv-site .zsv-card-media{aspect-ratio:4/3;background:#e6f0f1;overflow:hidden;display:flex}
.zsv-site .zsv-card-image{width:100%;height:100%;object-fit:contain;padding:16px;display:block}
.zsv-site .zsv-card-body{display:flex;flex-direction:column;flex:1;padding:24px}
.zsv-site .zsv-card-body h3{font-size:25px;line-height:1.18;margin:0 0 14px;overflow-wrap:break-word}
.zsv-site .zsv-card-body>p{font-size:16px;line-height:1.55;color:var(--zsv-muted);margin:0 0 25px}
.zsv-site .zsv-card-action{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;font-weight:900;font-size:14px;color:var(--zsv-petrol)}
.zsv-site .zsv-wordmark{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;width:100%;height:100%;min-height:180px;padding:28px;color:#fff;background:var(--zsv-petrol);overflow:hidden}
.zsv-site .zsv-mark-label{font-size:10px;letter-spacing:.15em;font-weight:900;color:var(--zsv-orange)}
.zsv-site .zsv-wordmark strong{max-width:100%;font-size:clamp(25px,2.8vw,40px);line-height:1.06;letter-spacing:-.04em;overflow-wrap:break-word}
.zsv-site .zsv-mark-dot{height:13px;width:13px;border-radius:50%;background:var(--zsv-orange)}
.zsv-site .zsv-about{display:grid;grid-template-columns:1fr 1.2fr;gap:45px;margin-top:85px;padding:clamp(28px,4vw,52px);border-radius:24px;background:var(--zsv-soft)}
.zsv-site .zsv-richtext{font-size:18px;line-height:1.75}
.zsv-site .zsv-richtext p{margin:0 0 20px}
.zsv-site .zsv-richtext p:last-child{margin-bottom:0}
.zsv-site .zsv-contact{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:65px 0 10px}
.zsv-site .zsv-contact h2{font-size:clamp(27px,3vw,36px);line-height:1.15;margin:0 0 16px}
.zsv-site .zsv-contact p:not(.zsv-kicker){font-size:17px;margin:0}
.zsv-site .zsv-contact .zsv-button{flex-shrink:0}
.zsv-site .zsv-detail{padding-top:45px}
.zsv-site .zsv-detail-heading{max-width:1000px;margin-bottom:34px}
.zsv-site .zsv-detail-heading h1{font-size:clamp(34px,5.5vw,72px);line-height:1.04;margin:0 0 22px;overflow-wrap:break-word}
.zsv-site .zsv-detail-heading>p:last-child{font-size:clamp(18px,2vw,23px);line-height:1.5;margin-bottom:0;color:var(--zsv-muted)}
.zsv-site .zsv-featured{display:flex;align-items:center;justify-content:center;min-height:200px;background:var(--zsv-soft);border-radius:24px;overflow:hidden;margin:0 0 50px}
.zsv-site .zsv-featured-image{display:block;width:100%;height:auto;max-height:580px;object-fit:contain;padding:24px}
.zsv-site .zsv-wordmark-large{min-height:330px;padding:clamp(25px,5vw,70px);gap:24px}
.zsv-site .zsv-wordmark-large strong{font-size:clamp(35px,5vw,68px);max-width:900px}
.zsv-site .zsv-description{max-width:880px;margin-bottom:58px}
.zsv-site .zsv-description h2,.zsv-site .zsv-gallery-section h2{font-size:clamp(30px,3.2vw,44px);line-height:1.08;margin:0 0 26px}
.zsv-site .zsv-facts{display:flex;flex-wrap:wrap;gap:24px 45px;margin:28px 0 0;padding:22px 28px;border-radius:14px;background:var(--zsv-soft)}
.zsv-site .zsv-facts dt{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--zsv-muted)}
.zsv-site .zsv-facts dd{margin:5px 0 0;font-size:19px;font-weight:900}
.zsv-site .zsv-gallery-help{font-size:15px;color:var(--zsv-muted);margin:-10px 0 24px}
.zsv-site .zsv-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.zsv-site .zsv-gallery-item{position:relative;display:block;overflow:hidden;border-radius:18px;background:var(--zsv-soft);aspect-ratio:1/1;text-decoration:none}
.zsv-site .zsv-gallery-item img{display:block;width:100%;height:100%;object-fit:contain;padding:12px;transition:transform .2s}
.zsv-site .zsv-gallery-item:hover img{transform:scale(1.04)}
.zsv-site .zsv-gallery-caption{position:absolute;inset:auto 0 0;padding:12px 48px 12px 13px;font-size:13px;font-weight:800;line-height:1.35;color:#fff;background:var(--zsv-petrol)}
.zsv-site .zsv-image-arrow{position:absolute;right:10px;bottom:10px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--zsv-orange);color:var(--zsv-ink);font-size:17px}
.zsv-site .zsv-gallery-empty>div{display:grid;place-items:center;aspect-ratio:1/1;border:1px dashed #aec4c9;border-radius:18px;background:var(--zsv-soft);color:var(--zsv-muted);font-size:14px}
.zsv-site .zsv-editor-note{font-size:14px;line-height:1.6;color:var(--zsv-muted);border-left:3px solid var(--zsv-orange);padding:8px 0 8px 14px;margin:20px 0 0}
.zsv-site .zsv-buy{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:58px;padding:clamp(25px,4vw,45px);border-radius:24px;background:var(--zsv-petrol);color:#fff}
.zsv-site .zsv-buy .zsv-kicker{color:var(--zsv-orange)}
.zsv-site .zsv-buy h2{font-size:clamp(26px,3vw,37px);line-height:1.12;margin:0 0 14px;max-width:680px}
.zsv-site .zsv-buy p:last-child{font-size:16px;margin:0}
.zsv-site .zsv-buy .zsv-button{flex-shrink:0}
.zsv-site .zsv-back{display:inline-flex;gap:12px;align-items:center;min-height:44px;margin-top:32px;color:var(--zsv-petrol);font-size:16px;font-weight:900;text-decoration:underline;text-underline-offset:5px}
@media(max-width:1020px){.zsv-site .zsv-games{grid-template-columns:repeat(2,minmax(0,1fr))}.zsv-site .zsv-hero{grid-template-columns:minmax(0,1fr) minmax(180px,.48fr);gap:30px}.zsv-site .zsv-hero h1{font-size:clamp(42px,6.4vw,68px)}.zsv-site .zsv-about{gap:28px}.zsv-site .zsv-buy{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.zsv-site .zsv-hero{width:calc(100% - 24px);margin-top:12px;border-radius:20px;grid-template-columns:1fr;padding:28px 24px}.zsv-site .zsv-hero h1{font-size:44px}.zsv-site .zsv-breadcrumbs{font-size:12px;margin-bottom:25px}.zsv-site .zsv-hero-logo{max-width:375px;justify-self:center;width:100%;padding:0}.zsv-site .zsv-games{grid-template-columns:1fr;gap:24px}.zsv-site .zsv-content{padding-top:48px}.zsv-site .zsv-section-head{display:block}.zsv-site .zsv-section-head>p{margin-top:18px}.zsv-site .zsv-card-body h3{font-size:26px}.zsv-site .zsv-wordmark strong{font-size:35px}.zsv-site .zsv-about{grid-template-columns:1fr;margin-top:48px;gap:25px;padding:28px 24px}.zsv-site .zsv-richtext{font-size:17px}.zsv-site .zsv-contact{flex-direction:column;align-items:flex-start;padding-top:45px;gap:25px}.zsv-site .zsv-detail{padding-top:26px}.zsv-site .zsv-featured{border-radius:18px;margin-bottom:35px}.zsv-site .zsv-featured-image{padding:12px}.zsv-site .zsv-wordmark-large{min-height:240px}.zsv-site .zsv-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.zsv-site .zsv-facts{gap:20px 30px;padding:20px}.zsv-site .zsv-buy{margin-top:40px;padding:26px 24px}.zsv-site .zsv-buy .zsv-button{width:100%}}
@media(prefers-reduced-motion:reduce){.zsv-site .zsv-game,.zsv-site .zsv-button,.zsv-site .zsv-gallery-item img{transition:none}.zsv-site .zsv-game:hover,.zsv-site .zsv-button:hover,.zsv-site .zsv-gallery-item:hover img{transform:none}}
}
/* Preserve the approved button contrast against the global unlayered link rule. */
.zsv-site a.zsv-button{color:var(--zsv-ink)}
.zsv-site a.zsv-button-petrol{color:#fff}


