/* =====================
   CSS Custom Properties
   ===================== */
:root {
    --bg:              #faf9f7;
    --text:            #2d2a25;
    --muted:           #8c8f99;
    --border:          #e5e4e0;
    --link:            #2d2a25;
    --max-width:       880px;
    --pad-x:           40px;
    --pad-y:           52px;
    --content-left:    192px;
}


/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =====================
   Layout Helpers
   ===================== */
.wrapper {
    max-width: var(--max-width);
    margin: 0;
    padding: 0 var(--pad-x) 0 var(--content-left);
}

.divider-full {
    max-width: var(--max-width);
    margin: 0;
    padding: 0 var(--pad-x) 0 var(--content-left);
    position: relative;
}

.divider-full::after {
    content: '';
    display: block;
    border-top: 1px solid var(--border);
}

/* =====================
   Header
   ===================== */
header {
    width: 100%;
    padding: 22px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(250, 249, 247, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--border);
}


.logo {
    color: var(--text);
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
}

.logo:hover {
    opacity: 1;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

nav a.active {
    color: var(--text);
    font-weight: 700;
}

/* =====================
   Hero — About Page
   ===================== */
.hero {
    display: flex;
    gap: 44px;
    align-items: flex-start;
    padding: 52px 0 56px;
}

.hero-photo {
    flex-shrink: 0;
    width: 156px;
    height: 168px;
    overflow: hidden;
    background-color: var(--border);
    position: relative;
    border-radius: 16px;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

/* CSS placeholder initials shown when no photo is found */
.hero-photo.placeholder::after {
    content: 'YN';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--muted);
}

.hero-content {
    padding-top: 6px;
    flex: 1;
    max-width: 580px;
}

.hero-name {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
    font-weight: 400;
}

.hero-bio {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 22px;
}

/* =====================
   Social Links
   ===================== */
.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s;
}

.social-link:hover {
    color: var(--text);
}

/* =====================
   Sections (shared)
   ===================== */
.section {
    padding: var(--pad-y) 0;
}

.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: 7px;
}

.section-desc {
    font-size: 13.5px;
    color: var(--muted);
}

/* =====================
   Item List (Awards / Press)
   ===================== */
.item-list {
    display: flex;
    flex-direction: column;
}

.item-row {
    display: grid;
    grid-template-columns: 190px 1fr 56px;
    gap: 20px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.item-row:first-child {
    border-top: 1px solid var(--border);
}

.item-org {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.item-title {
    font-size: 14px;
    line-height: 1.4;
}

.item-title a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.18s;
}

.item-title a:hover {
    color: var(--muted);
}

.item-sub {
    font-size: 13px;
    color: var(--muted);
}

.item-year {
    font-size: 13.5px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

/* =====================
   Tabs
   ===================== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
}

.tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 10px 0;
    margin-right: 24px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: color 0.18s, border-color 0.18s;
}

.tab.active {
    color: var(--text);
    border-bottom-color: var(--text);
}

.tab:hover:not(.active) {
    color: var(--text);
}

.tab-panel.hidden {
    display: none;
}

/* =====================
   Page Hero — Writing Page
   ===================== */
.page-hero {
    padding: 52px 0 48px;
}

.page-title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 10px;
}

.page-desc {
    font-size: 14px;
    color: var(--muted);
}

/* =====================
   Writing List
   ===================== */
.section--writing {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.writing-year-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.writing-year-group:first-child {
    border-top: 1px solid var(--border);
}

.writing-year {
    font-size: 13.5px;
    color: var(--muted);
    padding-top: 2px;
}

.writing-posts {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.writing-post {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 9px 0;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.18s;
}

.writing-post:hover .writing-post-title {
    color: var(--muted);
}

.writing-post-title {
    font-size: 14.5px;
    line-height: 1.4;
    transition: color 0.18s;
}

.writing-post-date {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
}

/* =====================
   Footer
   ===================== */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-inner {
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 13px;
    color: var(--muted);
}

/* =====================
   Award List (full-width rows)
   ===================== */
.award-list .item-row {
    grid-template-columns: 1fr;
}

/* =====================
   Link List (Press / Publications)
   ===================== */
.link-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.link-row {
    display: block;
    padding: 14px 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
    transition: color 0.18s;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-row:first-child {
    border-top: 1px solid var(--border);
}

.link-row:hover {
    color: var(--muted);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
    :root {
        --content-left: 80px;
    }
}

@media (max-width: 640px) {
    :root {
        --pad-x:         20px;
        --pad-y:         40px;
        --content-left:  20px;
    }

    .hero {
        flex-direction: column;
        gap: 24px;
    }

    .hero-photo {
        width: 120px;
        height: 130px;
    }

    .hero-name {
        font-size: 30px;
    }

    .item-row {
        grid-template-columns: 1fr 48px;
        grid-template-rows: auto auto;
    }

    .item-org {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .item-details {
        grid-column: 1;
        grid-row: 2;
    }

    .item-year {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    .writing-year-group {
        grid-template-columns: 56px 1fr;
        gap: 12px;
    }
}
