/* Self-hosted fonts — no external requests */
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('/fonts/cormorant-garamond-normal-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 300 500;
    font-display: swap;
    src: url('/fonts/cormorant-garamond-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 500;
    font-display: swap;
    src: url('/fonts/cormorant-garamond-italic-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Cormorant Garamond';
    font-style: italic;
    font-weight: 300 500;
    font-display: swap;
    src: url('/fonts/cormorant-garamond-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/dm-sans-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/fonts/dm-sans.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --black: #0d0d0d;
    --black-lighter: #141414;
    --ivory: #f5f2eb;
    --ivory-muted: #a8a49d;
    --urushi-red: #8b2500;
    --urushi-red-bright: #a82d00;
    --gold: #c9a959;
    --gold-dim: rgba(201, 169, 89, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--ivory);
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation - vertical, fixed left side */
nav {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

nav li {
    display: block;
}

nav a {
    color: var(--ivory-muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: block;
}

nav a:hover,
nav a.active {
    color: var(--urushi-red-bright);
}

/* Main content area */
main {
    margin-left: 10rem;
    padding: 5rem 4rem 5rem 0;
    max-width: 900px;
}

/* Hero section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 10vh;
}

.hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 4.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.hero-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 1150px;
    color: var(--ivory-muted);
}

.hero-intro em {
    color: var(--ivory);
    font-style: italic;
}

/* Section divider */
.divider {
    display: flex;
    align-items: center;
    margin: 4rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-dim) 0%, transparent 100%);
}

/* Section styling */
section {
    padding: 2.5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-link {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-link:hover {
    color: var(--urushi-red-bright);
}

/* Portfolio items */
.portfolio-list {
    display: flex;
    flex-direction: column;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(245, 242, 235, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:last-child {
    border-bottom: 1px solid rgba(245, 242, 235, 0.08);
}

.portfolio-item:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(139, 37, 0, 0.05) 0%, transparent 50%);
}

.portfolio-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: var(--urushi-red-bright);
}

.portfolio-content p {
    font-size: 0.85rem;
    color: var(--ivory-muted);
    line-height: 1.5;
}

.portfolio-meta {
    text-align: right;
    flex-shrink: 0;
}

.portfolio-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--ivory-muted);
    margin-bottom: 0.3rem;
}

.portfolio-tag {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--urushi-red);
}

/* Blog items */
.blog-list {
    display: flex;
    flex-direction: column;
}

.blog-item {
    display: block;
    padding: 1.5rem 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(245, 242, 235, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-item:hover {
    border-left-color: var(--urushi-red);
    background: linear-gradient(90deg, rgba(139, 37, 0, 0.03) 0%, transparent 40%);
}

.blog-date {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
}

.blog-item:hover .blog-title {
    color: var(--urushi-red-bright);
}

.blog-excerpt {
    font-size: 0.85rem;
    color: var(--ivory-muted);
    line-height: 1.6;
}

/* News items */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
    padding: 0.4rem 0;
}

.news-date {
    font-size: 0.75rem;
    color: var(--ivory-muted);
}

.news-text {
    font-size: 0.9rem;
    color: var(--ivory);
    line-height: 1.5;
}

.news-text a {
    color: var(--ivory);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.news-text a:hover {
    color: var(--urushi-red-bright);
    text-decoration-color: var(--urushi-red-bright);
}

/* Page content (for individual pages) */
.page-content {
    padding: 4rem 0;
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.page-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ivory-muted);
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.8rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--ivory);
}

.page-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--ivory);
}

.page-body a {
    color: var(--ivory);
    text-decoration: underline;
    text-decoration-color: var(--urushi-red);
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.page-body a:hover {
    color: var(--urushi-red-bright);
}

.page-body ul, .page-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.page-body li {
    margin-bottom: 0.5rem;
}

.page-body code {
    font-family: 'DM Mono', monospace;
    background: var(--black-lighter);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
}

.page-body pre {
    background: var(--black-lighter);
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.page-body pre code {
    background: none;
    padding: 0;
}

.page-body blockquote {
    border-left: 2px solid var(--gold);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ivory);
}

/* Footer */
footer {
    padding: 4rem 0 2.5rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(245, 242, 235, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--ivory-muted);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--urushi-red-bright);
}

.footer-mark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
}

/* Publications */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.publication-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(245, 242, 235, 0.08);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.publication-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.4;
    color: var(--ivory);
    flex: 1;
}

.publication-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gold);
    flex-shrink: 0;
}

.publication-authors {
    font-size: 0.85rem;
    color: var(--ivory-muted);
    margin-bottom: 0.3rem;
    line-height: 1.5;
}

.publication-venue {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--urushi-red);
    margin-bottom: 0.8rem;
}

.publication-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.publication-link {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ivory-muted);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(245, 242, 235, 0.2);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.publication-link:hover {
    color: var(--urushi-red-bright);
    border-color: var(--urushi-red-bright);
    background: rgba(139, 37, 0, 0.05);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    animation: fadeUp 0.8s ease-out 0.1s both;
}

.hero-name {
    animation: fadeUp 0.8s ease-out 0.2s both;
}

.hero-intro {
    animation: fadeUp 0.8s ease-out 0.4s both;
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        transform: none;
        background: var(--black);
        padding: 1.5rem 0;
        border-bottom: 1px solid rgba(245, 242, 235, 0.08);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar {
        display: none;
    }

    nav ul {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
        padding: 0 2rem;
        white-space: nowrap;
        width: max-content;
        min-width: 100%;
    }

    nav a {
        writing-mode: horizontal-tb;
    }

    main {
        margin-left: 0;
        padding: 7rem 2rem 3rem;
    }

    .hero {
        min-height: 65vh;
    }

    .hero-name {
        font-size: 2.8rem;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .portfolio-meta {
        text-align: left;
        display: flex;
        gap: 1rem;
        align-items: baseline;
    }

    .portfolio-year {
        margin-bottom: 0;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .publication-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .publication-title {
        font-size: 1.2rem;
    }
}
