/*
 * 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 {
    /* Dark gold / burnished copper / deep brown palette */
    --new-theme-color-sky: #c8962f;
    --new-theme-color-sky-light: #e2b552;
    --new-theme-color-sky-glow: rgba(216, 169, 75, 0.35);
    --new-theme-color-peach: #d8a94b;
    --new-theme-color-peach-deep: #c88f3c;
    --new-theme-color-peach-hover: #e8bd68;
    --new-theme-color-peach-text: #241706;
    --new-theme-color-peach-glow: rgba(216, 169, 75, 0.5);

    /* Background scale */
    --new-theme-color-bg-base: #141009;
    --new-theme-color-bg-card: #1e1710;
    --new-theme-color-bg-elevated: #2a2015;
    --new-theme-color-bg-deep: #0d0a06;

    /* Text scale */
    --new-theme-color-ink: #f2e6c9;
    --new-theme-color-ink-surface: #0d0a06;
    --new-theme-color-text-muted: #c9b78d;
    --new-theme-color-text-soft: #9c8a63;

    /* Borders */
    --new-theme-color-border: rgba(200, 165, 90, 0.30);
    --new-theme-color-border-strong: rgba(210, 175, 100, 0.5);

    /* Legacy aliases (kept for backward compat with block CSS) */
    --new-theme-color-green: #c8962f;
    --new-theme-color-orange: #c88f3c;
    --new-theme-color-soft-gray: #2a2015;
    --new-theme-color-white: #f4ead0;

    /* 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: linear-gradient(160deg, #0d0a06 0%, #141009 55%, #2a2015 100%);
    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: #0d0a06;
    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;
    height: auto;
    width: auto;
    max-width: min(160px, 42vw);
}
@media (min-width: 420px) {
    .vox-header .wp-block-site-logo img { height: auto; max-width: 220px; }
}
@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(216, 169, 75, 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(216, 169, 75, 0.6);
    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; }
}
