:root {
    --bg: #fcfbf8;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --line: rgba(164, 132, 178, 0.18);
    --line-soft: rgba(164, 132, 178, 0.07);
    --text: #1f1b1f;
    --muted: #6f6672;
    --accent: #c8a4d1;
    --accent-strong: #a97cb8;
    --max-width: 980px;
    --content-width: 690px;
    --shadow: 0 20px 52px rgba(116, 94, 124, 0.08);
}

html[data-theme="dark"] {
    --bg: #121111;
    --panel: rgba(18, 16, 19, 0.78);
    --panel-strong: rgba(24, 21, 27, 0.92);
    --line: rgba(230, 191, 234, 0.2);
    --line-soft: rgba(230, 191, 234, 0.08);
    --text: #ece6e6;
    --muted: #beb5bb;
    --accent: #dfb9e5;
    --accent-strong: #efd0f6;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(230, 214, 240, 0.34), transparent 24%),
        radial-gradient(circle at 85% 20%, rgba(240, 226, 244, 0.28), transparent 20%),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
    color: var(--text);
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 1.48;
    overflow-x: hidden;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(107, 63, 112, 0.15), transparent 24%),
        radial-gradient(circle at 85% 20%, rgba(105, 79, 112, 0.14), transparent 20%),
        linear-gradient(180deg, #171515 0%, var(--bg) 100%);
}

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

a:hover {
    color: var(--accent-strong);
}

.section a {
    text-decoration: underline;
    text-decoration-color: rgba(132, 111, 141, 0.34);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.section a:hover {
    text-decoration-color: rgba(169, 124, 184, 0.55);
}

#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.22;
}

html[data-theme="dark"] #particle-canvas {
    opacity: 0.4;
}

.page-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 0;
}

.page-frame {
    max-width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.page-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(223, 185, 229, 0.04), transparent 18%);
    pointer-events: none;
}

html[data-theme="dark"] .page-frame::before {
    background:
        radial-gradient(circle at top center, rgba(223, 185, 229, 0.08), transparent 18%);
}

.site-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 26px 38px 6px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 28px;
    height: 28px;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(116, 94, 124, 0.08));
}

.brand-mark circle {
    fill: #24160b;
}

.brand-mark path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-theme="dark"] .brand-mark circle {
    fill: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .brand-mark path {
    stroke: #1b161b;
}

.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-center {
    position: relative;
    gap: 54px;
    padding-bottom: 18px;
}

.nav-center::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 430px;
    max-width: 100%;
    height: 1px;
    background: rgba(108, 93, 116, 0.25);
    transform: translateX(-50%);
}

.nav-center a,
.nav-right a {
    color: var(--muted);
    font-size: 1.02rem;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.nav-center a[aria-current="page"],
.nav-center a:hover,
.nav-right a:hover {
    color: var(--text);
}

.nav-right {
    gap: 12px;
}

.icon-link {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(108, 93, 116, 0.22);
    background: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .icon-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.icon-link svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 34px 56px;
}

.content-column {
    width: min(100%, var(--content-width));
    margin: 0 auto;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, var(--content-width)) 320px;
    gap: 64px;
    align-items: start;
    justify-content: center;
}

.about-aside {
    display: flex;
    justify-content: flex-end;
}

.about-photo-frame {
    width: 100%;
    max-width: 252px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
}

.about-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    box-shadow: 0 16px 36px rgba(116, 94, 124, 0.12);
}

html[data-theme="dark"] .about-photo {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.about-page .content {
    padding-top: 52px;
}

.rule {
    width: 320px;
    max-width: 100%;
    height: 1px;
    background: var(--line);
    margin: 10px auto 26px;
}

.eyebrow {
    color: var(--muted);
    font-size: 0.92rem;
    font-family: "Instrument Sans", Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.04;
    text-align: center;
    margin-bottom: 8px;
}

.hero-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.lede,
.body-copy {
    font-size: clamp(0.98rem, 1.5vw, 1.14rem);
    line-height: 1.52;
    margin-bottom: 20px;
}

.body-copy {
    font-size: clamp(0.95rem, 1.4vw, 1.08rem);
}

.section {
    margin-top: 24px;
}

.section h2 {
    font-size: clamp(0.98rem, 1.5vw, 1.18rem);
    margin-bottom: 10px;
}

.section p {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.56;
    color: var(--text);
}

.columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 18px;
}

.bullets {
    padding-left: 1.1rem;
    display: grid;
    gap: 10px;
    color: var(--text);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.56;
}

.bullets li::marker {
    color: rgba(111, 102, 114, 0.55);
}

html[data-theme="dark"] .bullets li::marker {
    color: rgba(236, 230, 230, 0.4);
}

.panel {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    margin-top: 18px;
}

html[data-theme="dark"] .panel {
    background: rgba(255, 255, 255, 0.02);
}

.panel h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.doc-list,
.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.portfolio-shell {
    width: min(100%, 1040px);
    margin: 0 auto;
}

.doc-card,
.contact-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

html[data-theme="dark"] .doc-card,
html[data-theme="dark"] .contact-card {
    background: rgba(255, 255, 255, 0.025);
}

.doc-card:hover,
.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(169, 124, 184, 0.3);
    background: rgba(255, 255, 255, 0.74);
}

html[data-theme="dark"] .doc-card:hover,
html[data-theme="dark"] .contact-card:hover {
    border-color: rgba(239, 208, 246, 0.38);
    background: rgba(255, 255, 255, 0.04);
}

.card-title {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.card-copy {
    color: var(--muted);
    font-size: 1rem;
    font-family: "Instrument Sans", Arial, sans-serif;
    line-height: 1.55;
}

.contact-card {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(164, 132, 178, 0.18);
    background: rgba(255, 255, 255, 0.66);
}

html[data-theme="dark"] .contact-icon {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
    stroke: currentColor;
}

.contact-meta {
    display: grid;
    gap: 4px;
}

.contact-label {
    font-size: 1.28rem;
}

.contact-href {
    color: var(--muted);
    font-size: 0.95rem;
    font-family: "Instrument Sans", Arial, sans-serif;
    word-break: break-word;
}

.footer-note {
    color: var(--muted);
    font-size: 0.86rem;
    font-family: "Instrument Sans", Arial, sans-serif;
    margin-top: 34px;
}

@media (max-width: 900px) {
    .site-nav {
        flex-wrap: wrap;
        padding: 22px 22px 12px;
    }

    .nav-center {
        gap: 32px;
    }

    .nav-center::after {
        width: 300px;
    }

    .content {
        padding: 20px 18px 38px;
    }

    .columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-aside {
        justify-content: center;
    }

    .about-photo-frame {
        max-width: min(100%, 252px);
    }

}

@media (max-width: 640px) {
    .page-shell {
        padding: 0;
    }

    .page-frame {
        min-height: 100vh;
        border-radius: 0;
    }

    .site-nav {
        gap: 14px;
    }

    .nav-center {
        order: 3;
        width: 100%;
        gap: 22px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .nav-center::after {
        width: 240px;
        bottom: 2px;
    }

    .nav-right {
        margin-left: auto;
    }

    .icon-link {
        width: 38px;
        height: 38px;
    }

    .hero-title {
        text-align: left;
    }

    .hero-subtitle,
    .rule {
        text-align: left;
        margin-left: 0;
    }

    .content-column {
        width: 100%;
    }

    .about-photo {
        max-width: min(100%, 320px);
    }

    .contact-card {
        grid-template-columns: 52px 1fr;
        gap: 12px;
        padding: 14px 16px;
    }

    .contact-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .contact-label {
        font-size: 1.12rem;
    }
}
