
@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #090909;
    --bg-alt: #101010;
    --surface: rgba(255, 255, 255, 0.035);
    --text: #f6f3ec;
    --muted: #b7b2a8;
    --line: rgba(246, 243, 236, 0.16);
    --accent: #ff4d1c;
    --accent-2: #f6f3ec;
    --radius: 0px;
    --shadow: none;
}

[data-theme="light"] {
    --bg: #f3efe6;
    --bg-alt: #e9e3d6;
    --surface: #fffdf8;
    --text: #14120f;
    --muted: #5e584e;
    --line: rgba(20, 18, 15, 0.14);
    --accent: #e10600;
    --accent-2: #14120f;
}

.atmosphere {
    background: var(--bg);
}

.atmosphere::after { display: none; }

.site-header {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    border-bottom-color: transparent;
}

.brand-logo { border-radius: 0; }

.btn,
.theme-toggle,
.nav-toggle,
.btn-game,
.game-launch {
    border-radius: 0;
    box-shadow: none;
}

.btn-primary,
.btn-game,
.game-launch {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.btn-game:hover,
.btn-primary:hover,
.game-launch:hover {
    background: var(--text);
    color: var(--bg);
    box-shadow: none;
    transform: none;
}

.kicker { color: var(--accent); letter-spacing: 0.22em; }

.poster {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    align-items: stretch;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    overflow: hidden;
}

.poster-media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(54vw, 820px);
}

.poster-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    filter: contrast(1.06) saturate(0.9);
}

.poster-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #090909 0%, rgba(9, 9, 9, 0.78) 16%, rgba(9, 9, 9, 0.18) 48%, rgba(9, 9, 9, 0.5) 100%),
        linear-gradient(180deg, rgba(9, 9, 9, 0.25), transparent 24%, #090909 97%);
}

[data-theme="light"] .poster-media::after {
    background:
        linear-gradient(90deg, #f3efe6 0%, rgba(243, 239, 230, 0.86) 16%, rgba(243, 239, 230, 0.2) 48%, rgba(243, 239, 230, 0.45) 100%),
        linear-gradient(180deg, rgba(243, 239, 230, 0.2), transparent 24%, #f3efe6 97%);
}

.poster-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 36px 0 28px;
}

.poster-kicker {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.poster h1 {
    max-width: 11ch;
    margin: 0 0 22px;
    padding-left: 16px;
    border-left: 7px solid var(--accent);
    font-family: var(--serif);
    font-size: clamp(3.8rem, 8.2vw, 7.2rem);
    font-weight: 560;
    line-height: 0.8;
    letter-spacing: -0.055em;
}

.poster-line { display: block; }

.poster-first {
    margin-bottom: 0.12em;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.28em;
    font-weight: 650;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.poster-emph {
    color: var(--accent);
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.poster-line {
    animation: poster-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.poster-line:nth-child(2) { animation-delay: 80ms; }
.poster-line:nth-child(3) { animation-delay: 150ms; }

@keyframes poster-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.poster-foot { max-width: 34rem; }

.poster-role {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 1.15rem;
}

.poster-foot p { color: var(--muted); }

.poster-stats {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.poster-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 0;
}

.poster-stats .stat-card {
    padding: 18px 18px 20px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.poster-stats .stat-card + .stat-card { padding-left: 18px; }

.poster-stats .stat-card strong {
    color: var(--text);
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
}

.poster-stats .stat-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 12%;
    border-radius: 0;
    box-shadow: 16px 16px 0 var(--accent);
}

.about-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 8px;
}

.skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.skill-card,
.project-card,
.post-card,
.edu-card,
.job,
.lately-card,
.contact-form {
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.skill-card {
    border: 0;
    border-top: 2px solid var(--accent);
    background: transparent;
    padding: 16px 8px 8px 0;
}

.skill-card:hover,
.project-card:hover,
.post-card:hover,
.job:hover,
.lately-card:hover { transform: none; box-shadow: none; }

.skill-card h3 {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.skill-card ul { display: grid; gap: 5px; }

.skill-card li,
.chip-list li {
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--text);
    background: none;
}

.lately-grid { counter-reset: lately; }

.lately-card {
    position: relative;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    padding: 18px 18px 8px 0;
}

.lately-card::before {
    content: counter(lately);
    counter-increment: lately;
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-size: 2.6rem;
    line-height: 1;
}

.lately-card h3 {
    font-family: var(--serif);
    font-size: 1.7rem;
}

.project-card,
.site-card {
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 18px 8px 16px 0;
}

.project-card .chip {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: var(--accent);
    background: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.project-card h3 {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.85rem;
}

.job {
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 22px 0;
}

.job h3 {
    font-family: "Instrument Serif", Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2rem;
}

.timeline { gap: 0; }

.game-banner-inner {
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 36px 0;
}

.game-launch {
    min-width: 180px;
    color: #fff;
}

.contact-form input,
.contact-form textarea {
    border-radius: 0;
}

@media (max-width: 860px) {
    .poster { min-height: 0; display: block; }
    .poster-media {
        position: relative;
        width: 100%;
        height: 58vh;
    }
    .poster-media::after {
        background: linear-gradient(180deg, rgba(9, 9, 9, 0.05) 40%, #090909 100%);
    }
    [data-theme="light"] .poster-media::after {
        background: linear-gradient(180deg, rgba(243, 239, 230, 0.05) 40%, #f3efe6 100%);
    }
    .poster-copy { padding: 8px 0 18px; }
    .poster h1 { font-size: clamp(3.3rem, 16vw, 5rem); max-width: none; }
    .poster-stats .stats-grid,
    .skill-grid,
    .lately-grid { grid-template-columns: 1fr 1fr; }
    .poster-stats .stat-card,
    .poster-stats .stat-card + .stat-card { padding: 14px 10px; }
    .about-card { padding: 0; }
    .about-photo { box-shadow: 10px 10px 0 var(--accent); }
}

@media (max-width: 560px) {
    .poster-stats .stats-grid,
    .skill-grid,
    .lately-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .poster-line { animation: none; }
}

.about-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 440px);
}

.about-card a {
    overflow-wrap: normal;
    word-break: normal;
}
