/* =============================================================
   10000stvari — theme stylesheet
   ============================================================= */

@font-face {
    font-family: 'Inconsolata';
    font-weight: 400;
    font-display: swap;
    src: url('https://10000stvari.com/wp-content/uploads/2022/09/inconsolata-v31-latin-ext_latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Greycliff';
    font-weight: 800;
    font-display: swap;
    src: url('https://10000stvari.com/wp-content/uploads/2021/10/font.woff2') format('woff2'),
         url('https://10000stvari.com/wp-content/uploads/2021/10/font.woff') format('woff');
}

:root {
    --bg: #f5f2ea;
    --ink: #0a0a0a;
    --mute: #7a756a;
    --line: #0a0a0a;
    --red: #ff0000;
    --radius: 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inconsolata', ui-monospace, Menlo, monospace;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red); }
::selection { background: var(--red); color: var(--bg); }

@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* =============================================================
   HEADER
   ============================================================= */
.site-head {
    position: sticky; top: 0; z-index: 20;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 2.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    font-size: 0.85rem;
}
.brand {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}
.brand .dot { color: var(--red); }
.nav { display: flex; gap: 1.5rem; font-size: 0.85rem; list-style: none; margin: 0; padding: 0; }
.nav li { list-style: none; }
.nav a::before { content: "./"; color: var(--mute); margin-right: 2px; }
.nav a:hover::before { color: var(--red); }
.nav .current-menu-item > a { color: var(--red); }
.nav .current-menu-item > a::before { color: var(--red); }
.meta-tag {
    font-size: 0.75rem;
    color: var(--mute);
    letter-spacing: 0.02em;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
@media (max-width: 780px) {
    .site-head { flex-wrap: wrap; padding: 1rem 1.25rem; }
    .meta-tag { display: none; }
    .nav-toggle { display: inline-block; }
    .nav {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
        display: none;
    }
    .nav.is-open { display: flex; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    min-height: 88vh;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
}
.hero__text {
    padding: 6rem 2.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero__eyebrow {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}
.hero__eyebrow::before {
    content: "// ";
    color: var(--red);
}
.hero__title {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}
.hero__title .red { color: var(--red); }
.hero__title .cursor,
.foot__prompt .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);
}
.hero__sub {
    font-size: 0.95rem;
    max-width: 44ch;
    color: var(--ink);
    margin-bottom: 3rem;
    line-height: 1.65;
}
.hero__cta, .btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    align-self: flex-start;
    padding: 0.9rem 1.4rem;
    border: 1px solid var(--ink);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bg);
    transition: all .2s ease;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
}
.hero__cta::before, .btn::before { content: "→"; color: var(--red); }
.hero__cta:hover, .btn:hover { background: var(--ink); color: var(--bg); }
.hero__cta:hover::before, .btn:hover::before { color: var(--red); }

.hero__shape {
    position: relative;
    border-left: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 900px) {
    .hero__shape { border-left: none; border-top: 1px solid var(--line); aspect-ratio: 1/1; }
}
.shape-stage { position: relative; width: 70%; aspect-ratio: 1/1; }
.shape-asterisk {
    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;
}
.shape-asterisk--lg { font-size: min(55vh, 48vw); animation: spin 40s linear infinite; }
.shape-asterisk--md { font-size: min(35vh, 30vw); animation: spin 25s linear infinite reverse; mix-blend-mode: multiply; opacity: 0.85; }
.shape-asterisk--sm { font-size: min(20vh, 18vw); animation: spin 15s linear infinite; color: var(--ink); mix-blend-mode: multiply; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

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

@media (prefers-reduced-motion: reduce) {
    .shape-asterisk, .hero__title .cursor, .foot__prompt .cursor { animation: none; }
}

/* =============================================================
   SECTIONS
   ============================================================= */
.section {
    padding: 6rem 2.5rem;
    border-bottom: 1px solid var(--line);
}
.section--narrow { max-width: 70rem; margin: 0 auto; }
.section__label {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    align-items: baseline;
}
.section__label .num { color: var(--red); font-weight: 400; }
.section__label::before { content: "§"; color: var(--red); margin-right: 0.25rem; }
.section__title {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    max-width: 20ch;
    margin-bottom: 1.5rem;
}
.section__title .red { color: var(--red); }
.section__intro {
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* =============================================================
   PORTFOLIO
   ============================================================= */
.portfolio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 3rem;
    border-top: 1px solid var(--line);
}
.portfolio-row {
    display: grid;
    grid-template-columns: 3rem 1fr 10rem 4rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    transition: background .2s ease, color .2s ease;
    position: relative;
    cursor: pointer;
}
.portfolio-row:hover { background: var(--ink); color: var(--bg); padding-left: 1rem; padding-right: 1rem; }
.portfolio-row:hover .portfolio-row__arrow { transform: translateX(6px); color: var(--red); }
.portfolio-row:hover .portfolio-row__hover-img { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.portfolio-row__num { color: var(--mute); }
.portfolio-row:hover .portfolio-row__num { color: var(--red); }
.portfolio-row__name {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.portfolio-row__meta { font-size: 0.85rem; color: var(--mute); text-align: right; }
.portfolio-row:hover .portfolio-row__meta { color: var(--bg); }
.portfolio-row__arrow { text-align: right; color: var(--mute); transition: all .25s ease; font-size: 1.25rem; }
.portfolio-row__hover-img {
    position: fixed;
    pointer-events: none;
    width: 320px; height: 240px;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    object-fit: cover;
    z-index: 30;
    border: 1px solid var(--line);
    transition: opacity .25s ease, transform .25s ease;
}
@media (max-width: 700px) {
    .portfolio-row { grid-template-columns: 2rem 1fr 2rem; grid-auto-rows: min-content; padding: 1rem 0; }
    .portfolio-row__name { font-size: 1.1rem; }
    .portfolio-row__meta { grid-column: 2; font-size: 0.75rem; text-align: left; }
    .portfolio-row__hover-img { display: none; }
}

/* =============================================================
   NUMBERED CONTENT
   ============================================================= */
.numbered-row { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: start; }
@media (max-width: 800px) { .numbered-row { grid-template-columns: 1fr; gap: 2rem; } }
.numbered-row__body p { font-size: 1rem; line-height: 1.7; max-width: 60ch; margin-bottom: 1.25rem; }
.numbered-row__cta {
    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;
}
.numbered-row__cta::after { content: "→"; color: var(--red); transition: transform .2s ease; }
.numbered-row__cta:hover::after { transform: translateX(4px); }

/* =============================================================
   FEATURES
   ============================================================= */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; gap: 2rem; } }
.features__col h4 {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.25rem;
}
.features__col h4::before { content: "//"; position: absolute; left: 0; color: var(--red); }
.features__col p { font-size: 0.95rem; line-height: 1.65; color: var(--ink); }

/* =============================================================
   BLOG TEASERS
   ============================================================= */
.teasers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
@media (max-width: 800px) { .teasers { grid-template-columns: 1fr; } }
.teaser { display: block; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.teaser__tag { font-size: 0.75rem; color: var(--red); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.teaser__title {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    transition: color .2s ease;
}
.teaser:hover .teaser__title { color: var(--red); }
.teaser__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .3s ease;
}
.teaser:hover .teaser__img { filter: grayscale(0%) contrast(1); }
.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;
}
.teaser__read::before { content: "→"; color: var(--red); }

/* =============================================================
   FOOTER
   ============================================================= */
.foot {
    padding: 4rem 2.5rem 2rem;
    background: var(--ink);
    color: var(--bg);
    font-size: 0.85rem;
}
.foot a { color: var(--bg); }
.foot a:hover { color: var(--red); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 800px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__prompt {
    font-size: 1.6rem;
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.foot__prompt .prompt { color: var(--red); margin-right: 0.5rem; }
.foot__col h6 {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 1rem;
}
.foot__col ul { list-style: none; }
.foot__col li { margin-bottom: 0.4rem; }
.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;
    font-family: 'Inconsolata', monospace;
}

/* =============================================================
   GENERIC CONTENT / BLOG
   ============================================================= */
.page-hero {
    padding: 6rem 2.5rem 3rem;
    border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}
.page-hero__eyebrow::before { content: "// "; color: var(--red); }
.page-hero__title {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 22ch;
}
.page-hero__title .red { color: var(--red); }
.page-hero__sub {
    margin-top: 1.5rem;
    max-width: 60ch;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.entry {
    padding: 4rem 2.5rem;
    max-width: 70rem;
    margin: 0 auto;
    border-bottom: 1px solid var(--line);
}
.entry__meta {
    font-size: 0.8rem;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.entry__meta::before { content: "// "; color: var(--red); }

.entry-content { max-width: 68ch; font-size: 1.05rem; line-height: 1.7; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 2rem 0 1rem;
    line-height: 1.15;
}
.entry-content h1 { font-size: 2.6rem; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { border-bottom: 1px solid var(--ink); }
.entry-content a:hover { color: var(--red); border-bottom-color: var(--red); }
.entry-content ul, .entry-content ol { margin: 0 0 1.5rem 1.25rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content blockquote {
    border-left: 3px solid var(--red);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-family: 'Greycliff', sans-serif;
    font-size: 1.4rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.entry-content img { margin: 2rem 0; border: 1px solid var(--line); }
.entry-content code {
    background: #eee6d4;
    padding: 0.1em 0.35em;
    font-family: 'Inconsolata', monospace;
    font-size: 0.95em;
}
.entry-content pre {
    background: var(--ink);
    color: var(--bg);
    padding: 1.25rem;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}
.entry-content pre code { background: transparent; padding: 0; }

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

/* Pagination */
.pagination {
    display: flex; gap: 0.5rem; padding: 3rem 2.5rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-wrap: wrap;
}
.pagination .page-numbers {
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    background: var(--bg);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); }
.pagination .page-numbers:hover { background: var(--ink); color: var(--bg); }
.pagination .page-numbers.current:hover { background: var(--red); color: var(--bg); border-color: var(--red); }

/* Archive grid (blog index & portfolio archive) */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 4rem 2.5rem;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .archive-grid { grid-template-columns: 1fr; } }

/* Contact form */
.form-wrap { max-width: 38rem; }
.form-wrap label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
    color: var(--mute);
}
.form-wrap label::before { content: "// "; color: var(--red); }
.form-wrap input[type=text],
.form-wrap input[type=email],
.form-wrap input[type=tel],
.form-wrap textarea,
.form-wrap select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 0;
}
.form-wrap input:focus, .form-wrap textarea:focus, .form-wrap select:focus {
    outline: 2px solid var(--red); outline-offset: 2px;
}
.form-wrap textarea { min-height: 10rem; resize: vertical; }

/* 404 */
.fourohfour {
    min-height: 70vh;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 4rem 2rem;
    gap: 1.5rem;
}
.fourohfour__code {
    font-family: 'Greycliff', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 15vw, 11rem);
    color: var(--red);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

/* Skip link */
.skip-link {
    position: absolute; left: -9999px; top: -9999px;
}
.skip-link:focus {
    position: fixed; left: 1rem; top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--ink); color: var(--bg);
    z-index: 9999;
}

/* Utility */
.u-hide { display: none !important; }
.u-center { text-align: center; }

/* Admin bar offset */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
