/* ── FONTS ── */
@font-face {
    font-family: "KC Obra Letra";
    src: url("../fonts/KCObraLetraRegular.woff2") format("woff2"),
        url("../fonts/KCObraLetraRegular.woff") format("woff"),
        url("../fonts/KCObraLetraRegular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "KC Obra Letra";
    src: url("../fonts/KCObraLetraBold.woff2") format("woff2"),
        url("../fonts/KCObraLetraBold.woff") format("woff"),
        url("../fonts/KCObraLetraBold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ── RESET & BASE ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
    --carmim: #e24b4a;
    --deep: #a32d2d;
    --garnet: #791f1f;
    --noir: #1e1a18;
    --noir-2: #2c2420;
    --ink: #3a3028;
    --honey: #fac775;
    --parchment: #f0ebe0;
    --linen: #d4ccbc;
    --stone: #8c8478;
    --display: "KC Obra Letra", serif;
    --body: "IM Fell English", Georgia, serif;
}

/* ── BODY & BACKGROUNDS ── */
html {
    height: 100%;
}

body {
    background-color: var(--noir);
    color: var(--parchment);
    font-family: var(--body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: 0;
}

/* Vignette */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(10, 7, 5, 0.72) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* ── ANIMATIONS ── */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* ── PAGE CARD ── */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    border: 2px solid var(--garnet);
    outline: 1px solid var(--deep);
    outline-offset: -7px;
    background-color: var(--noir-2);
    animation: reveal 1.4s ease both;
}

/* ── CORNER ORNAMENTS ── */
.corner {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--honey);
    z-index: 2;
}
.corner.tl {
    top: -1px;
    left: -1px;
}
.corner.tr {
    top: -1px;
    right: -1px;
}
.corner.bl {
    bottom: -1px;
    left: -1px;
}
.corner.br {
    bottom: -1px;
    right: -1px;
}

/* ── HEADER BAND ── */
.header-band {
    background: var(--garnet);
    padding: 0.45rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--deep);
}

.header-label {
    font-family: var(--body);
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    color: var(--honey);
    text-transform: uppercase;
}

.header-ref {
    font-family: var(--body);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    color: var(--linen);
    opacity: 0.55;
}

/* ── BODY SECTION ── */
.body {
    padding: 2.2rem 2rem 1.8rem;
}

/* ── SECTION LABEL ── */
.section-label {
    font-family: var(--body);
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    color: var(--honey);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--garnet);
    opacity: 0.7;
}

/* ── DITHER DIVIDER ── */
.dither {
    width: 100%;
    height: 5px;
    margin: 1.4rem 0;
    background-image: repeating-linear-gradient(
        90deg,
        var(--garnet) 0px,
        var(--garnet) 2px,
        transparent 2px,
        transparent 7px
    );
    opacity: 0.4;
}

/* ── WORDMARK ── */
.wordmark {
    text-align: center;
    margin-bottom: 0.4rem;
}

.wordmark .studio {
    display: block;
    font-family: var(--body);
    font-size: 0.9rem;
    letter-spacing: 0.55em;
    color: var(--honey);
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.wordmark .carmim {
    display: block;
    font-family: var(--display);
    font-size: clamp(3rem, 12vw, 5.6rem);
    font-weight: bold;
    color: var(--carmim);
    letter-spacing: 0.1em;
    line-height: 1;
    text-shadow:
        1px 0 0 rgba(162, 45, 45, 0.25),
        -1px 0 0 rgba(226, 75, 74, 0.12);
}

/* ── ORNAMENT ROW ── */
.ornament-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    margin: 1.1rem 0;
}

.ornament-rule {
    width: 60px;
    height: 1px;
    background: var(--garnet);
}

.px-diamond {
    width: 7px;
    height: 7px;
    background: var(--honey);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── TAGLINE ── */
.tagline {
    text-align: center;
    font-family: var(--body);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-style: italic;
    font-weight: 400;
    color: var(--linen);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

/* ── STATUS TABLE ── */
.status-table {
    border: 1px solid var(--garnet);
    margin: 0 0 0.2rem;
}

.status-row {
    display: grid;
    grid-template-columns: 38% 62%;
    border-bottom: 1px solid rgba(121, 31, 31, 0.4);
}

.status-row:last-child {
    border-bottom: none;
}

.status-key,
.status-val {
    padding: 0.5rem 0.8rem;
    font-family: var(--body);
    font-size: 0.95rem;
}

.status-key {
    letter-spacing: 0.15em;
    color: var(--stone);
    text-transform: uppercase;
    border-right: 1px solid rgba(121, 31, 31, 0.4);
    font-size: 0.84rem;
}

.status-val {
    color: var(--parchment);
    letter-spacing: 0.05em;
}

.status-val.accent {
    color: var(--honey);
}
.status-val.alert {
    color: var(--carmim);
}

/* ── BLINKING CURSOR ── */
.cursor {
    display: inline-block;
    width: 7px;
    height: 0.68rem;
    background: var(--carmim);
    vertical-align: middle;
    margin-left: 3px;
    animation: blink 1.1s step-end infinite;
}

/* ── PIXEL ROW DIVIDER ── */
.px-row {
    display: flex;
    gap: 4px;
    margin: 1.4rem 0;
}

.px-row span {
    display: block;
    width: 5px;
    height: 5px;
    background: var(--garnet);
    flex-shrink: 0;
}

.px-row span:nth-child(even) {
    background: transparent;
}

/* ── SOCIALS ── */
.socials {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--garnet);
    color: var(--stone);
    font-family: var(--body);
    font-size: 0.84rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition:
        color 0.2s,
        border-color 0.2s,
        background 0.2s;
}

.social-link:hover {
    color: var(--honey);
    border-color: var(--honey);
    background: rgba(121, 31, 31, 0.18);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ── FOOTER BAND ── */
.footer-band {
    background: var(--ink);
    border-top: 1px solid var(--garnet);
    padding: 0.45rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-band p {
    font-family: var(--body);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    color: var(--stone);
    text-transform: uppercase;
}

/* ── OUTER CAPTION ── */
.outer-caption {
    font-family: var(--body);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--ink);
    text-transform: uppercase;
    margin-top: 1rem;
    text-align: center;
    animation: reveal 1.4s ease 0.4s both;
}

/* ── RESPONSIVE ── */
@media (max-width: 460px) {
    .body {
        padding: 1.8rem 1.2rem 1.5rem;
    }
    .header-ref {
        display: none;
    }
    .status-row {
        grid-template-columns: 42% 58%;
    }
    .ornament-rule {
        width: 36px;
    }
}
