@font-face {
    font-family: 'Source Han Serif';
    src: url('SourceHanSerifSC-VF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    letter-spacing: -1px;
}

/* ── Font scale ── */
:root {
    --fs-lg: 1.4rem;    /* brand logo */
    --fs-base: 0.95rem; /* body text, values, headings */
    --fs-sm: 0.75rem;   /* labels, nav, numbers, footer */
}

/* ── Base ── */
body {
    font-family: 'Source Han Serif', 'Noto Serif', serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #bbb;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-weight: 100;
}

h2 {
    font-weight: 400;
}

p {
    color: #aaa;
    text-align: center;
    margin: 20px 0;
}

a {
    color: #1a4fd4;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1a4fd4;
}

/* ── Top header nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    z-index: 1000;
}

.brand {
    font-size: var(--fs-lg);
    letter-spacing: -1px;
    user-select: none;
}
.brand-black { font-weight: 900; color: #353535; }
.brand-blue { font-weight: 900; color: #1a4fd4; }
.brand-bold { font-weight: 100; color: #ccc; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    position: relative;
    display: inline-block;
    padding: 4px 0;
    color: #ccc;
    font-size: var(--fs-sm);
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #1a4fd4;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

nav a:hover {
    color: #ccc;
}

nav a:hover::after {
    width: 100%;
}

/* ── Main content ── */
.content {
    margin-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Featured image section ── */
.featured {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 0 60px;
}

.featured-card {
    width: 50%;
    max-width: 2000px;
    margin: 0;
}

.featured-img-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.featured-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    pointer-events: none;
}

.featured-img-wrap img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease;
    filter: grayscale(15%) brightness(0.9);
}

/* ── Metadata ── */
.featured-meta {
    padding: 28px 0 0;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
}

.meta-value {
    font-size: var(--fs-base);
    color: #aaa;
}

/* ── Shared ── */
.section-heading {
    font-size: var(--fs-lg);
    color: #ccc;
    font-weight: 700;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.07), transparent);
}

/* ── Footer ── */
footer {
    width: 50%;
    max-width: 700px;
    padding: 30px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

footer p {
    font-size: var(--fs-sm);
    color: #444;
}

footer a {
    color: #666;
    transition: color 0.3s;
}

footer a:hover {
    color: #1a4fd4;
}

/* ── Page sections (shared) ── */
.page-section {
    width: 50%;
    max-width: 700px;
    padding: 80px 0 60px;
}

/* ── Contact page ── */
.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
}

.contact-label {
    font-size: var(--fs-base);
    color: #ccc;
}

.contact-value {
    font-size: var(--fs-base);
    color: #aaa;
}

.contact-value a {
    color: #aaa;
    transition: color 0.3s;
}

.contact-value a:hover {
    color: #1a4fd4;
}

.contact-separator {
    color: #444;
    margin: 0 8px;
}

/* ── To Do page ── */
.todo-item {
    display: flex;
    align-items: baseline;
    padding: 16px 0;
    transition: opacity 0.3s;
}

.todo-item:hover {
    opacity: 0.8;
}

.todo-number {
    font-size: var(--fs-base);
    color: #1a4fd4;
    font-weight: 400;
    min-width: 36px;
}

.todo-text {
    flex: 1;
    font-size: var(--fs-base);
    color: #aaa;
    letter-spacing: 0.3px;
}

/* ── Responsive: Tablet ── */
@media (max-width: 1024px) {
    .featured-card,
    .page-section,
    footer {
        width: 65%;
    }
}

/* ── Responsive: Small tablet & phone landscape ── */
@media (max-width: 768px) {
    :root {
        --fs-lg: 1.2rem;
        --fs-base: 0.85rem;
        --fs-sm: 0.7rem;
    }

    .featured-card,
    .page-section,
    footer {
        width: 85%;
    }

    nav {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .featured {
        padding: 60px 0 40px;
    }

    .contact-card {
        flex-direction: column;
        gap: 6px;
    }
}

/* ── Responsive: Phone portrait ── */
@media (max-width: 480px) {
    :root {
        --fs-lg: 1rem;
        --fs-base: 0.8rem;
        --fs-sm: 0.65rem;
    }

    nav {
        height: 52px;
        padding: 0 16px;
    }

    .nav-links {
        gap: 14px;
    }

    nav a {
        padding: 6px 0;
    }

    .content {
        margin-top: 52px;
    }

    .featured {
        padding: 40px 0 30px;
    }

    .featured-card,
    .page-section,
    footer {
        width: 90%;
    }

    .featured-meta {
        padding: 16px 0 0;
    }

    .page-section {
        padding: 50px 0 40px;
    }

    .contact-card {
        padding: 14px 0;
    }

    .todo-item {
        padding: 14px 0;
    }

    .todo-number {
        min-width: 28px;
    }
}

/* ── Responsive: Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
    nav {
        height: 44px;
    }

    .content {
        margin-top: 44px;
    }

    .featured {
        padding: 30px 0 20px;
    }

    .featured-card {
        width: 60%;
    }

    .page-section {
        padding: 40px 0 30px;
    }
}
