/* ================================
   stevenskoczen.com — site layer on top of the MGY design system.
   Plain CSS (inkblock copies static/css/*.css verbatim).
   Load order: mgy-tokens.css → mgy-components.css → skoczen.css
   Only things NOT already in MGY live here: the AN webface, the site
   footer, the home hero, and the portfolio screenshot frames.
   ================================ */

/* ---- AN (Avenir Next) — the body font referenced by --mgy-font-body ---- */
@font-face {
    font-display: swap;
    font-family: 'AN';
    src: url('/static/fonts/an-regular-webfont.woff2') format('woff2'),
         url('/static/fonts/an-regular-webfont.woff') format('woff');
    font-weight: 100 500;
    font-style: normal;
}
@font-face {
    font-display: swap;
    font-family: 'AN';
    src: url('/static/fonts/an-italic-webfont.woff2') format('woff2'),
         url('/static/fonts/an-italic-webfont.woff') format('woff');
    font-weight: 100 500;
    font-style: italic;
}
@font-face {
    font-display: swap;
    font-family: 'AN';
    src: url('/static/fonts/an-bold-webfont.woff2') format('woff2'),
         url('/static/fonts/an-bold-webfont.woff') format('woff');
    font-weight: 600 900;
    font-style: normal;
}

/* ---- Page rhythm ---- */
main.mgy-container { padding-top: var(--mgy-space-xl); padding-bottom: var(--mgy-space-3xl); }

/* ---- Navbar: keep the 3 links visible (no JS mobile menu needed) ---- */
.mgy-navbar-links { list-style: none; }
@media (max-width: 768px) {
    .mgy-navbar { flex-wrap: wrap; }
    .mgy-navbar-links { display: flex !important; width: auto; margin-left: var(--mgy-space-md); gap: var(--mgy-space-md); }
    .mgy-navbar-toggle { display: none !important; }
}

/* ---- Footer ---- */
.sk-footer {
    border-top: 1px solid var(--mgy-border-light);
    margin-top: var(--mgy-space-4xl);
    padding: var(--mgy-space-xl) 0;
}
.sk-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--mgy-space-md);
    font-size: var(--mgy-text-sm);
    color: var(--mgy-text-faint);
}
.sk-footer-inner a { color: var(--mgy-text-faint); }
.sk-footer-inner a:hover { color: var(--mgy-text-light); }
.sk-footer-links { display: flex; gap: var(--mgy-space-lg); flex-wrap: wrap; }

/* ---- Home hero ---- */
.sk-hero { text-align: center; padding: var(--mgy-space-2xl) 0 var(--mgy-space-md); }
.sk-hero-img { max-width: 200px; height: auto; display: block; margin: 0 auto var(--mgy-space-lg); }
.sk-hero h1 { font-size: var(--mgy-text-5xl); margin: 0 0 var(--mgy-space-sm) 0; }
.sk-hero .sk-lede {
    font-size: var(--mgy-text-xl);
    color: var(--mgy-text-light);
    max-width: 640px;
    margin: 0 auto;
    line-height: var(--mgy-leading-normal);
}
.sk-prose { max-width: var(--mgy-width-narrow); }
.sk-prose p { line-height: var(--mgy-leading-normal); }

/* ---- Portfolio screenshot frames (MGY has icon cards; we want 16:10 shots) ---- */
.sk-shot {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--mgy-bg-warm);
    border-radius: var(--mgy-radius-lg);
    overflow: hidden;
    margin-bottom: var(--mgy-space-md);
}
.sk-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sk-shot-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: repeating-linear-gradient(45deg, var(--mgy-bg-warm), var(--mgy-bg-warm) 12px, var(--mgy-bg-warm-light) 12px, var(--mgy-bg-warm-light) 24px);
}
.sk-shot-placeholder span {
    font-size: var(--mgy-text-xs); text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--mgy-text-muted); background: var(--mgy-bg-page);
    padding: 6px 12px; border-radius: var(--mgy-radius-round);
}

/* Featured row card (GoodCloud): big shot left, body right; stacks on mobile */
.sk-featured { align-items: stretch; }
.sk-featured .sk-shot { flex: 0 0 44%; margin-bottom: 0; aspect-ratio: auto; min-height: 260px; }
@media (max-width: 700px) {
    .sk-featured { flex-direction: column; }
    .sk-featured .sk-shot { flex: auto; aspect-ratio: 16 / 10; min-height: 0; }
}

/* Thread lede under each section heading */
.sk-lede-sm { color: var(--mgy-text-light); max-width: var(--mgy-width-narrow); margin-top: -4px; }

/* ================================
   Failures page (/fail) — keeps its legacy markup; we just map its
   .year / .project / .status classes onto MGY tokens. body.fail-page scoped.
   ================================ */
.fail-page .piece_header { font-family: var(--mgy-font-brand); }
.fail-page .content_wrapper > .content { max-width: 100%; }
.fail-page .year {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--mgy-space-sm);
    align-items: start;
    margin-bottom: var(--mgy-space-xl);
}
.fail-page .year_number {
    grid-column: 1 / -1;
    font-family: var(--mgy-font-heading);
    color: var(--mgy-text-heading);
    font-size: var(--mgy-text-2xl);
    margin: var(--mgy-space-lg) 0 var(--mgy-space-xs) 0;
    padding-top: var(--mgy-space-md);
    border-top: 1px solid var(--mgy-border-light);
}
.fail-page .project {
    display: block;
    padding: var(--mgy-space-md);
    background: var(--mgy-bg-card);
    border: 1px solid var(--mgy-border-light);
    border-radius: var(--mgy-radius-lg);
    box-shadow: var(--mgy-shadow-card);
    text-decoration: none;
    color: var(--mgy-text-body);
    transition: border-color var(--mgy-transition-normal), box-shadow var(--mgy-transition-normal), transform var(--mgy-transition-normal);
}
a.project.project:hover { border-color: var(--mgy-border-dark); box-shadow: var(--mgy-shadow-card-hover); transform: translateY(-2px); color: var(--mgy-text-body); text-decoration: none; }
.fail-page .project .picture { display: none; }
.fail-page .project .title { font-weight: var(--mgy-weight-semibold); color: var(--mgy-text-heading); margin-top: 6px; }
.fail-page .project .summary { color: var(--mgy-text-light); font-size: 15px; line-height: 1.5; margin-top: 4px; }
.fail-page .status {
    display: inline-block;
    font-size: var(--mgy-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--mgy-radius-sm);
    background: var(--mgy-status-bg);
    color: var(--mgy-status-text);
}
.fail-page .status.success { background: var(--mgy-success-bg); color: var(--mgy-success-text); }
.fail-page .status.failed { background: var(--mgy-error-bg); color: var(--mgy-error-text); }
.fail-page .status.who_knows { background: var(--mgy-warning-bg); color: var(--mgy-warning-text); }
.fail-page .status.lived { background: var(--mgy-q4-bg); color: var(--mgy-q4); }
