/*
 * Global theme layer.
 *
 * Keep this file limited to foundations shared by frontend and editor:
 * fonts, design tokens, browser reset, base layout helpers, and WordPress
 * block-theme integration. Legacy selectors stay in legacy-reference.css.
 */

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Sky-blue palette (reference redesign) */
    --new-theme-color-sky: #ffdf1a;
    --new-theme-color-sky-light: #f3b31b;
    --new-theme-color-sky-glow: rgba(61, 38, 90, 0.45);
    --new-theme-color-peach: #ffdf1a;
    --new-theme-color-peach-deep: #f7d117;
    --new-theme-color-peach-hover: #f3b31b;
    --new-theme-color-peach-text: #000000;
    --new-theme-color-peach-glow: rgba(255, 223, 26, 0.45);

    /* Background scale */
    --new-theme-color-bg-base: #160c23;
    --new-theme-color-bg-card: #221334;
    --new-theme-color-bg-elevated: #2b1a40;
    --new-theme-color-bg-deep: #221334;

    /* Text scale */
    --new-theme-color-ink: #ffffff;
    --new-theme-color-text-muted: #b3a4c7;
    --new-theme-color-text-soft: #a392ba;

    /* Borders */
    --new-theme-color-border: #36214c;
    --new-theme-color-border-strong: #3d265a;

    /* Legacy aliases (kept for backward compat with block CSS) */
    --new-theme-color-green: #ffdf1a;
    --new-theme-color-orange: #f7d117;
    --new-theme-color-soft-gray: #2b1a40;
    --new-theme-color-white: #ffffff;

    /* Fonts */
    --new-theme-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --new-theme-font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Layout */
    --new-theme-content-width: 1060px;
}

html {
    box-sizing: border-box;
    min-height: 100%;
}

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

body {
    background: var(--new-theme-color-bg-base);
    color: var(--new-theme-color-ink);
    background-image: radial-gradient(ellipse 120% 700px at 50% 0%, #2b1a40 0%, #221334 35%, #160c23 75%);
    font-family: var(--new-theme-font-body);
    margin: 0;
    min-height: 100%;
    background-attachment: fixed;
    min-height: 100vh;
}

img,
svg,
video {
    display: block;
    height: auto;
    max-width: 100%;
}

a {
    color: var(--new-theme-color-ink);
    text-decoration: none;
}

a:hover {
    color: var(--new-theme-color-sky);
}

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

.container {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--new-theme-content-width);
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.layout__row-item-padding {
    padding-left: 15px;
    padding-right: 15px;
}

.text--main-color {
    color: var(--new-theme-color-sky);
}

.wp-site-blocks {
    min-height: 100vh;
}

.wp-site-blocks .wp-block-heading,
.wp-site-blocks .wp-block-post-title,
.wp-site-blocks .wp-block-table,
.wp-site-blocks .wp-block-paragraph,
.wp-site-blocks .wp-block-image {
    padding: 0 15px;
}

.layout__row-item-padding > .wp-block-heading,
.layout__row-item-padding .wp-block-post-content > .wp-block-heading,
.layout__row-item-padding > .wp-block-post-title,
.layout__row-item-padding > .wp-block-table,
.layout__row-item-padding .wp-block-paragraph,
.layout__row-item-padding .nt-content-section__container,
.layout__row-item-padding > .wp-block-image,
.layout__row-item-padding .nt-content-section__container > .wp-block-image,
.layout__row-item-padding .nt-content-section__container > .wp-block-heading {
    padding: 0 !important;
}

.wp-site-blocks > * {
    margin-block-start: 0;
}

.wp-block-post-content a:where(:not(.button):not(.wp-block-button__link)) {
    color: var(--new-theme-color-sky);
}

.skip-link,
#wp--skip-link--target {
    display: none !important;
}

header.vox-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px !important;
    margin: 0 !important;
    background: rgba(22, 12, 35, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--new-theme-color-border);
}
.vox-header .wp-block-site-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    flex-shrink: 1;
    min-width: 0;
}
@media only screen and (max-width: 776px) {
    header.vox-header {
        flex-wrap: wrap !important;
        justify-content: center;
    }
    .vox-header .wp-block-site-logo {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
}
.vox-header .wp-block-site-logo img {
    display: block;
    max-width: min(160px, 42vw);
    object-fit: contain;
}
@media (min-width: 768px) {
    header.vox-header { padding: 14px clamp(28px, 5vw, 96px) !important; }
}
@media (min-width: 1100px) {
    header.vox-header { padding: 14px clamp(36px, 5.5vw, 104px) !important; }
}
.vox-header__actions.wp-block-buttons {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.vox-header__btn .wp-block-button__link {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.vox-header__btn .wp-block-button__link:active { transform: scale(0.98); }
@media (max-width: 420px) {
    .vox-header__btn .wp-block-button__link { padding: 8px 14px; font-size: 0.8125rem; }
}
@keyframes vox-header-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--new-theme-color-peach-glow); }
    55% { box-shadow: 0 0 0 12px rgba(255, 223, 26, 0); }
}
.vox-header__btn--register .wp-block-button__link {
    background: var(--new-theme-color-peach-deep);
    color: var(--new-theme-color-peach-text);
    font-weight: 700;
    border: 1px solid rgba(255, 223, 26, 0.9);
    box-shadow: 0 4px 14px var(--new-theme-color-peach-glow);
    animation: vox-header-btn-pulse 2.2s ease-out infinite;
}
.vox-header__btn--register .wp-block-button__link:hover,
.vox-header__btn--register .wp-block-button__link:focus-visible {
    background: var(--new-theme-color-peach-hover);
    color: var(--new-theme-color-peach-text);
    animation: none;
    box-shadow: 0 6px 20px var(--new-theme-color-peach-glow);
}
@media (prefers-reduced-motion: reduce) {
    .vox-header__btn--register .wp-block-button__link { animation: none; }
}

/* Minimalist Site Footer (Logo + Description + Copyright) */
.site-footer > .container > .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.site-footer .brand {
    margin-bottom: 1.25rem !important;
}
.site-footer__text {
    max-width: 860px !important;
    margin-bottom: 1.5rem !important;
}
.site-footer__copyright {
    margin-top: 0.25rem !important;
}

/*
 * Betzillo palette: overrides for legacy-reference.css rules that still apply.
 * global.css loads before legacy-reference.css, so selectors are prefixed
 * with "body" to win on specificity.
 */
body .age-disclaimer {
    background-color: var(--new-theme-color-bg-deep);
    color: var(--new-theme-color-text-muted);
}
body .age-disclaimer span {
    color: var(--new-theme-color-ink);
}
body .site-footer {
    background: linear-gradient(180deg, var(--new-theme-color-bg-card) 0, var(--new-theme-color-bg-base) 103.08%);
}
body .site-footer__text p,
body .site-footer__copyright p {
    color: var(--new-theme-color-ink);
}
body .page__main li a,
body p a,
body td a {
    color: var(--new-theme-color-sky);
}
body .page__main li a:hover,
body p a:hover,
body td a:hover {
    color: var(--new-theme-color-sky-light);
}
