/*
Theme Name: 10000 Child v2
Theme URI: https://10000stvari.com/
Description: Custom Astra child theme for 10000stvari.com — mono + red accent design system. Replaces Elementor with native PHP templates and Gutenberg block patterns. Uses Greycliff (800) for headlines and Inconsolata for everything else.
Author: 10000stvari
Author URI: https://10000stvari.com/
Template: astra
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: child-10000-v2
*/

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
    --bg: #f5f2ea;            /* warm cream */
    --ink: #0a0a0a;           /* near black */
    --mute: #7a756a;          /* warm muted */
    --line: #0a0a0a;
    --red: #ff0000;
    --radius: 0;

    --container: 1280px;
    --gutter: clamp(1.25rem, 3vw, 2.5rem);
}

/* =============================================================
   RESET / BASE
   ============================================================= */
* { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body,
body.ast-plain-container,
body.ast-page-builder-template,
.site,
.ast-container {
    font-family: 'Inconsolata', ui-monospace, Menlo, monospace !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

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

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--red); opacity: 1; }

::selection { background: var(--red); color: var(--bg); }

/* Headings — Greycliff 800 everywhere */
h1, .entry-content h1,
h2, .entry-content h2,
h3, .entry-content h3,
h4, .entry-content h4,
h5, .entry-content h5,
h6, .entry-content h6,
.site-title, .site-title a,
.wp-block-heading {
    font-family: 'Greycliff', Helvetica, Arial, sans-serif !important;
    font-weight: 800 !important;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

h1, .entry-content h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); line-height: 0.98; }
h2, .entry-content h2 { font-size: clamp(2rem, 4.2vw, 4rem); }
h3, .entry-content h3 { font-size: clamp(1.5rem, 3vw, 2.75rem); }
h4, .entry-content h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
h5, .entry-content h5 { font-size: 1.15rem; }
h6, .entry-content h6 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }

p { margin: 0 0 1rem; }

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes spin  { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.cursor {
    display: inline-block;
    width: 0.55em;
    height: 0.85em;
    background: var(--red);
    vertical-align: -0.08em;
    margin-left: 0.08em;
    animation: blink 1.1s infinite steps(1);
}

.red { color: var(--red); }

/* =============================================================
   OVERRIDE ASTRA HEADER / FOOTER defaults — we use our own
   ============================================================= */
.site-header,
.ast-main-header-wrap,
#ast-desktop-header,
#ast-mobile-header,
.elementor-location-footer {
    display: none !important;
}

/* =============================================================
   CUSTOM HEADER (rendered from header.php)
   ============================================================= */
.stv-head {
    position: sticky; top: 0; z-index: 50;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
}

.stv-head__brand {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.stv-head__brand .red { color: var(--red); }
.stv-head__brand:hover { color: var(--ink); }
.stv-head__brand:hover .red { color: var(--red); }

.stv-nav {
    display: flex; gap: 1.5rem;
    font-size: 0.85rem;
    list-style: none;
    margin: 0; padding: 0;
}
.stv-nav a::before { content: "./"; color: var(--mute); margin-right: 2px; transition: color .15s ease; }
.stv-nav a:hover::before { color: var(--red); }

.stv-head__meta {
    font-size: 0.75rem;
    color: var(--mute);
    letter-spacing: 0.02em;
}

/* Mobile nav */
.stv-nav-toggle { display: none; }
@media (max-width: 820px) {
    .stv-nav, .stv-head__meta { display: none; }
    .stv-nav-toggle {
        display: inline-flex; align-items: center; gap: .5rem;
        font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
        border: 1px solid var(--line);
        padding: .4rem .75rem;
        background: var(--bg);
        color: var(--ink);
        cursor: pointer;
    }
    .stv-nav-panel {
        position: fixed; inset: 0;
        background: var(--bg);
        z-index: 100;
        display: flex; flex-direction: column;
        padding: 5rem var(--gutter);
        transform: translateY(-100%);
        transition: transform .3s ease;
    }
    .stv-nav-panel.is-open { transform: translateY(0); }
    .stv-nav-panel a {
        font-family: 'Greycliff', sans-serif;
        font-weight: 800;
        font-size: 2rem;
        margin-bottom: 1.25rem;
        letter-spacing: -0.02em;
    }
    .stv-nav-panel a::before { content: "./"; color: var(--red); margin-right: .25rem; }
    .stv-nav-close {
        position: absolute; top: 1rem; right: var(--gutter);
        font-size: 1.5rem;
        background: none; border: none;
        color: var(--ink); cursor: pointer;
    }
}

/* =============================================================
   HERO
   ============================================================= */
.stv-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 88vh;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
    .stv-hero { grid-template-columns: 1fr; min-height: auto; }
}

.stv-hero__text {
    padding: 6rem var(--gutter) 4rem;
    display: flex; flex-direction: column; justify-content: center;
}
.stv-hero__eyebrow {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2.5rem;
}
.stv-hero__eyebrow::before { content: "// "; color: var(--red); }

.stv-hero__title {
    font-size: clamp(3rem, 7vw, 6.5rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.stv-hero__sub {
    font-size: 0.95rem;
    max-width: 44ch;
    margin-bottom: 3rem;
    line-height: 1.65;
}
.stv-hero__cta,
.wp-block-button .wp-block-button__link {
    display: inline-flex; align-items: center; gap: 0.6rem;
    align-self: flex-start;
    padding: 0.9rem 1.4rem !important;
    border: 1px solid var(--ink) !important;
    border-radius: 0 !important;
    font-size: 0.85rem !important;
    font-family: 'Inconsolata', monospace !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    background: var(--bg) !important;
    color: var(--ink) !important;
    transition: all .2s ease !important;
    text-decoration: none !important;
}
.stv-hero__cta::before { content: "→"; color: var(--red); margin-right: 0.5rem; }
.stv-hero__cta:hover,
.wp-block-button .wp-block-button__link:hover {
    background: var(--ink) !important;
    color: var(--bg) !important;
}

/* Hero RIGHT: rotating red asterisks */
.stv-hero__shape {
    position: relative;
    border-left: 1px solid var(--line);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
    .stv-hero__shape { border-left: none; border-top: 1px solid var(--line); aspect-ratio: 1/1; }
}
.stv-shape-stage { position: relative; width: 70%; aspect-ratio: 1/1; }
.stv-ast {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}
.stv-ast--lg { font-size: min(55vh, 48vw); animation: spin 40s linear infinite; }
.stv-ast--md { font-size: min(35vh, 30vw); animation: spin 25s linear infinite reverse; mix-blend-mode: multiply; opacity: 0.85; }
.stv-ast--sm { font-size: min(20vh, 18vw); animation: spin 15s linear infinite; color: var(--ink); mix-blend-mode: multiply; }

.stv-corners {
    position: absolute; inset: 1rem;
    pointer-events: none;
    font-size: 0.7rem;
    color: var(--mute);
}
.stv-corners > span { position: absolute; }
.stv-corners .tl { top: 0; left: 0; }
.stv-corners .tr { top: 0; right: 0; }
.stv-corners .bl { bottom: 0; left: 0; }
.stv-corners .br { bottom: 0; right: 0; }

/* =============================================================
   SECTION
   ============================================================= */
.stv-section {
    padding: 6rem var(--gutter);
    border-bottom: 1px solid var(--line);
}
.stv-section__label {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2.5rem;
    display: inline-flex;
    gap: 0.5rem;
    align-items: baseline;
}
.stv-section__label::before { content: "§"; color: var(--red); margin-right: 0.25rem; }
.stv-section__label .num { color: var(--red); }

.stv-section__title {
    font-size: clamp(2rem, 4.5vw, 4.2rem) !important;
    line-height: 1.05 !important;
    max-width: 20ch;
    margin-bottom: 1.5rem;
}

/* =============================================================
   PORTFOLIO (text-first table with hover image)
   ============================================================= */
.stv-portfolio {
    margin-top: 3rem;
    border-top: 1px solid var(--line);
}
.stv-portfolio__row {
    display: grid;
    grid-template-columns: 3rem 1fr 10rem 3rem;
    align-items: center;
    padding: 1.5rem 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
    position: relative;
    cursor: pointer;
    color: var(--ink);
}
.stv-portfolio__row:hover { background: var(--ink); color: var(--bg); opacity: 1; }
.stv-portfolio__row:hover .stv-portfolio__arrow { transform: translateX(6px); color: var(--red); }
.stv-portfolio__row:hover .stv-portfolio__num,
.stv-portfolio__row:hover .stv-portfolio__meta { color: var(--bg); }
.stv-portfolio__row:hover .stv-portfolio__hover { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.stv-portfolio__num { color: var(--mute); }
.stv-portfolio__name {
    font-family: 'Greycliff', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    letter-spacing: -0.01em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.stv-portfolio__meta { font-size: 0.85rem; color: var(--mute); text-align: right; }
.stv-portfolio__arrow { text-align: right; color: var(--mute); transition: all .25s ease; font-size: 1.25rem; }

.stv-portfolio__hover {
    position: fixed;
    pointer-events: none;
    width: 320px; height: 240px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    object-fit: cover;
    z-index: 30;
    border: 1px solid var(--line);
    transition: opacity .25s ease, transform .25s ease;
}

@media (max-width: 700px) {
    .stv-portfolio__row { grid-template-columns: 2rem 1fr 2rem; grid-auto-rows: min-content; }
    .stv-portfolio__name { font-size: 1.1rem !important; }
    .stv-portfolio__meta { grid-column: 2; font-size: 0.75rem; text-align: left; }
    .stv-portfolio__hover { display: none; }
}

/* =============================================================
   NUMBERED SECTION (01 / 02 / 03)
   ============================================================= */
.stv-numbered {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 800px) { .stv-numbered { grid-template-columns: 1fr; gap: 2rem; } }

.stv-numbered__body p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 60ch;
}
.stv-link-arrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    border-bottom: 1px solid var(--ink);
    padding: 0.4rem 0;
    margin-top: 1rem;
    color: var(--ink);
}
.stv-link-arrow::after { content: "→"; color: var(--red); transition: transform .2s ease; }
.stv-link-arrow:hover { color: var(--red); }
.stv-link-arrow:hover::after { transform: translateX(4px); }

/* =============================================================
   3-COL FEATURES
   ============================================================= */
.stv-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}
@media (max-width: 800px) { .stv-features { grid-template-columns: 1fr; gap: 2rem; } }

.stv-features__col h4 {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}
.stv-features__col h4::before {
    content: "//"; position: absolute; left: 0; color: var(--red);
}
.stv-features__col p {
    font-size: 0.95rem;
    line-height: 1.65;
}

/* =============================================================
   BLOG TEASERS
   ============================================================= */
.stv-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}
@media (max-width: 800px) { .stv-teasers { grid-template-columns: 1fr; } }

.stv-teaser {
    display: block;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    color: var(--ink);
}
.stv-teaser:hover { color: var(--ink); opacity: 1; }
.stv-teaser__tag {
    display: block;
    font-size: 0.75rem;
    color: var(--red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.stv-teaser__title {
    font-size: 1.3rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 1.5rem !important;
    transition: color .2s ease;
}
.stv-teaser:hover .stv-teaser__title { color: var(--red); }
.stv-teaser__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .3s ease;
}
.stv-teaser:hover .stv-teaser__img { filter: grayscale(0%) contrast(1); }
.stv-teaser__read {
    display: inline-flex; gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--mute);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stv-teaser__read::before { content: "→"; color: var(--red); }

/* =============================================================
   FOOTER
   ============================================================= */
.stv-foot {
    padding: 4rem var(--gutter) 2rem;
    background: var(--ink);
    color: var(--bg);
    font-size: 0.85rem;
}
.stv-foot a { color: var(--bg); }
.stv-foot a:hover { color: var(--red); }

.stv-foot__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 800px) { .stv-foot__grid { grid-template-columns: 1fr; } }

.stv-foot__prompt {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--bg);
}
.stv-foot__prompt .prompt { color: var(--red); margin-right: 0.5rem; }

.stv-foot__col h6 {
    color: var(--red) !important;
    margin-bottom: 1rem;
}
.stv-foot__col ul { list-style: none; margin: 0; padding: 0; }
.stv-foot__col li { margin-bottom: 0.4rem; }

.stv-foot__bar {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.7rem;
    color: #999;
}

/* =============================================================
   SINGLE PROJECT PAGE — keeps sticky two-column layout
   ============================================================= */
.stv-project {
    padding: clamp(2rem, 5vw, 4rem) var(--gutter);
    border-bottom: 1px solid var(--line);
}
.stv-project__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 922px) {
    .stv-project__layout {
        grid-template-columns: minmax(260px, 1fr) 2fr;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
    }
}
.stv-project__left {
    position: static;
}
@media (min-width: 922px) {
    .stv-project__left {
        position: sticky; top: 100px;
        align-self: start;
        height: fit-content;
    }
}
.stv-project__label {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 1.5rem;
}
.stv-project__label::before { content: "§"; color: var(--red); margin-right: 0.5rem; }

.stv-project__title {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
    line-height: 1 !important;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.stv-project__description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.stv-project__meta {
    font-family: 'Inconsolata', monospace !important;
    font-size: 0.8rem !important;
    color: var(--mute);
    letter-spacing: 0;
}
.stv-project__meta a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.stv-project__meta a:hover { color: var(--red); border-color: var(--red); }
.stv-project__content > * { margin-bottom: 1.5rem; }
.stv-project__content img { width: 100%; height: auto; }

.stv-project-nav {
    padding: 3rem var(--gutter);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.stv-project-nav a { color: var(--ink); }
.stv-project-nav a:hover { color: var(--red); }

/* =============================================================
   KEEP ORIGINAL CUSTOMIZER TWEAKS
   ============================================================= */
@media (max-width: 1000px) {
    .ast-header-break-point .main-navigation ul .menu-item .menu-link { border: none; }
    .ast-header-break-point .main-header-menu { border-top: none; }
}
.entry-header.ast-no-title { opacity: 0; height: 0; }

/* Hide Astra page title on single project pages */
.single-project .entry-header { display: none; }

/* Make Astra content area use full width */
.ast-container { max-width: 100% !important; padding: 0 !important; }
#primary, #secondary { padding: 0 !important; margin: 0 !important; }
.ast-page-builder-template .site-content > .ast-container,
.ast-plain-container .site-content,
.site-content { padding: 0 !important; }
