@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&display=swap');

/* =========================
   VARIABLES
========================= */

:root {
    --bg: #020204;
    --card: rgba(12, 13, 17, 0.88);
    --card-soft: rgba(255, 255, 255, 0.035);

    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.56);
    --faint: rgba(255, 255, 255, 0.34);

    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);

    --shadow: 0 18px 55px rgba(0, 0, 0, 0.55);
    --inner: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


/* =========================
   RESET / BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    padding: 3rem;

    background: var(--bg);
    color: var(--text);

    font-family: system-ui, sans-serif;
}

a {
    color: var(--text);
    font-weight: bold;
}


/* =========================
   LAYOUT
========================= */

.page {
    width: min(100%, 1150px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(130px, auto);
    gap: 1rem;
}


/* =========================
   CARDS
========================= */

.card {
    position: relative;
    overflow: hidden;

    padding: 1.35rem;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.018) 45%,
            rgba(255, 255, 255, 0.035)
        ),
        var(--card);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: var(--shadow), var(--inner);
}

/* subtle grid texture */
.card::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

    background-size: 22px 22px;
    opacity: 0.22;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}


/* =========================
   GRID AREAS
========================= */

.hero {
    grid-column: span 8;
    grid-row: span 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.about {
    grid-column: span 4;
    grid-row: span 2;
}

.socials {
    grid-column: span 4;
    grid-row: span 2;
}

.friends {
    grid-column: span 4;
    grid-row: span 2;
}

.pixel-deco {
    grid-column: span 4;
    grid-row: span 2;
}

.projects {
    grid-column: span 8;
}

.shrine {
    grid-column: span 4;
}

.quote {
    grid-column: span 5;
}

.status {
    grid-column: span 4;
}

.nav-card {
    grid-column: span 4;
}

.footer-card {
    grid-column: span 12;
}


/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
.eyebrow,
.nav-card a,
.shrine-link {
    font-family: "Jacquard 12", system-ui;
    font-weight: 400;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0.35rem;

    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.9;
    letter-spacing: 1px;
}

h2 {
    margin-bottom: 0.75rem;

    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
}

h3 {
    margin-bottom: 0.25rem;

    font-size: 1.8rem;
    line-height: 1;
}

p {
    margin-bottom: 0;

    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.eyebrow {
    margin-bottom: 0.75rem;

    color: var(--faint);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: lowercase;
}

.subtitle {
    font-size: 1.05rem;
}

.subtitle-small {
    margin-top: 0.4rem;

    font-size: 0.75rem;
    font-style: italic;
}


/* =========================
   IMAGES
========================= */

img#hi {
    width: auto;
    height: clamp(5rem, 10vw, 8rem);

    border: none;
    border-radius: 0;

    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

img#lil-icon {
    width: auto;
    height: clamp(0.6rem, 10vw, 2rem);

    border: none;
    border-radius: 0;

    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
}

.friend-badge {
    width: 88px;
    height: auto;

    border: none;
    border-radius: 0;

    image-rendering: pixelated;
    filter: none;
}


/* =========================
   NAV
========================= */

.nav-card {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.nav-card a {
    min-height: 3.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text);
    text-decoration: none;
    font-size: 1.55rem;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-soft);
}


/* =========================
   SOCIALS
========================= */

.social-list {
    display: grid;
    gap: 0.7rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;

    padding: 0.75rem;

    color: var(--text);
    text-decoration: none;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-soft);
}

.social-link img {
    width: 1.25rem;
    height: 1.25rem;

    filter: invert(1);
    opacity: 0.78;
}

.social-link span {
    font-size: 0.95rem;
}


/* =========================
   FRIENDS
========================= */

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.mini-card {
    min-height: 4rem;
    padding: 0.8rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--text);
    text-decoration: none;
    text-align: center;
    font-size: 0.95rem;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-soft);
}

.friend-badge-link {
    display: inline-flex;
    width: fit-content;
}


/* =========================
   PIXEL DECO
========================= */

.pixel-deco {
    min-height: 100%;
    padding: 1.6rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.pixel-face {
    width: 13rem;
    height: 13rem;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.55rem;

    margin: auto;
}

.pixel-face span {
    aspect-ratio: 1;

    border: 1px solid var(--border);
    border-radius: 4px;

    background: rgba(255, 255, 255, 0.035);
}

.pixel-face span.on {
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.16);
}

.deco-text {
    margin-top: 1.2rem;

    text-align: center;
    font-size: 1rem;
}


/* =========================
   PROJECTS
========================= */

.project {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
}

.project:first-of-type {
    padding-top: 0;
    border-top: none;
}


/* =========================
   SHRINE
========================= */

.shrine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
}

.shrine-item {
    min-height: 5.5rem;
    padding: 0.8rem;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-soft);
}

.shrine-item .label {
    margin-bottom: 0.35rem;

    color: var(--faint);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shrine-item h3 {
    margin: 0;

    color: var(--text);
    font-size: 1.45rem;
}

.shrine-link {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    width: fit-content;
    max-width: 100%;

    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;

    font-size: 1.75rem;
    line-height: 1;

    text-shadow:
        2px 2px 0 rgba(80, 80, 80, 0.8),
        0 0 10px rgba(255, 255, 255, 0.12);
}

.shrine-link::before {
    content: ">";

    color: rgba(255, 255, 255, 0.35);
    font-size: 1.3rem;

    transform: translateY(-1px);
}

.shrine-link::after {
    content: "";
    position: absolute;
    left: 1.3rem;
    right: 0;
    bottom: -0.25rem;

    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.65),
        rgba(255, 255, 255, 0.08)
    );
}


/* =========================
   QUOTE
========================= */

.quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote h2 {
    max-width: 90%;
    margin-bottom: 0;

    color: var(--text);
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    line-height: 0.95;
}


/* =========================
   FOOTER
========================= */

.footer-card {
    padding: 0.9rem 1.2rem;
    text-align: center;
}

.footer-card p {
    margin: 0;

    color: var(--faint);
    font-size: 0.85rem;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    body {
        padding: 1.25rem;
    }

    .page {
        grid-template-columns: 1fr;
    }

    .hero,
    .nav-card,
    .about,
    .socials,
    .friends,
    .pixel-deco,
    .projects,
    .shrine,
    .quote,
    .status,
    .footer-card {
        grid-column: span 1;
        grid-row: auto;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
    }

    img#hi {
        align-self: flex-end;
    }

    .shrine-grid {
        grid-template-columns: 1fr;
    }

    .pixel-face {
        width: 7rem;
        height: 7rem;
    }
}