:root {
    --ink: #15263f;
    --paper: #f5f3ee;
    --muted: #616b79;
    --gold: #ad8b53;
    --line: #d7dce3;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
    cursor: pointer;
}
a,
button {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 6px;
}
.skip {
    position: fixed;
    top: -80px;
    background: var(--ink);
    color: white;
    padding: 12px;
    z-index: 20;
}
.skip:focus {
    top: 8px;
}
header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(245, 243, 238, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.8;
}
.brand > span > span {
    display: block;
    font-size: 10px;
    letter-spacing: 2.5px;
}
nav {
    display: flex;
    gap: 32px;
    align-items: center;
    font-size: 13px;
}
nav a:hover,
.text-link:hover {
    color: #836334;
}
.nav-contact {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 5px;
}
.nav-contact span {
    margin-left: 18px;
}
.menu {
    display: none;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 660px;
}
.hero-copy {
    padding: 90px 8% 36px 8.4%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.8;
    margin: 0 0 28px;
}
.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 8px;
}
h1,
h2,
.book-title,
.project-copy h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: -2px;
    line-height: 1.08;
}
h1 {
    font-size: clamp(44px, 5.4vw, 82px);
    margin: 0 0 30px;
}
em {
    font-weight: 400;
    color: #8b744f;
}
h2 {
    font-size: clamp(36px, 3.5vw, 54px);
    margin: 0;
}
.intro {
    font-size: 18px;
    max-width: 490px;
    color: #566479;
    margin: 0;
}
.hero-actions {
    display: flex;
    gap: 28px;
    align-items: center;
    margin: 36px 0 64px;
}
.button {
    display: inline-flex;
    gap: 32px;
    align-items: center;
    background: var(--ink);
    color: white;
    padding: 15px 23px;
    font-size: 12px;
    border: 1px solid var(--ink);
    transition: background 0.2s;
}
.button:hover {
    background: #294466;
}
.text-link {
    font-size: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 7px;
}
.hero-foot {
    font-size: 8px;
    letter-spacing: 1.5px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.portrait {
    position: relative;
    background: #2e302d;
    overflow: hidden;
}
.portrait > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
    position: absolute;
}
.portrait:after {
    content: "";
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}
.portrait-label {
    position: absolute;
    bottom: 44px;
    left: 40px;
    z-index: 1;
    color: #fff;
}
.portrait-label > span {
    font-family: Georgia, serif;
    font-size: 23px;
}
.portrait-label small {
    display: block;
    opacity: 0.7;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 4px;
}
.portrait-index {
    position: absolute;
    right: 24px;
    top: 28px;
    writing-mode: vertical-rl;
    font-size: 9px;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.65;
}
.language-bar {
    padding: 28px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 20px;
}
.language-bar p {
    font-family: Georgia, serif;
    font-size: 18px;
    margin: 0;
}
.language-bar > div {
    display: flex;
    gap: 36px;
    font-size: 13px;
}
.language-bar small {
    font-size: 10px;
    color: var(--muted);
    margin-left: 8px;
}
.section {
    padding: 95px 7%;
}
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}
.about-copy p {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 22px;
}
.about-copy .lead {
    font-size: 21px;
    line-height: 1.55;
    color: var(--ink);
}
.expertise {
    padding-top: 10px;
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}
.expertise article {
    padding: 30px 30px 0 0;
}
.expertise article + article {
    padding-left: 30px;
    border-left: 1px solid var(--line);
}
.number {
    font-family: Georgia, serif;
    color: var(--gold);
    font-size: 24px;
}
h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}
.expertise p {
    font-size: 14px;
    color: var(--muted);
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.tags span {
    border: 1px solid var(--line);
    padding: 4px 9px;
    font-size: 10px;
}
.experience {
    background: #e9edf3;
}
.section-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
}
.section-top > p {
    font-size: 13px;
    color: var(--muted);
}
.timeline article {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    border-top: 1px solid #cbd3df;
    padding: 32px 0;
    gap: 30px;
}
.date {
    font-size: 11px;
    letter-spacing: 1px;
}
.date small {
    font-size: 9px;
    color: var(--muted);
}
.timeline h3 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin: 0;
}
.timeline h3 span {
    font-size: 19px;
    color: var(--gold);
}
.role {
    font-size: 12px;
    font-weight: 700;
    margin: 7px 0 13px;
}
.timeline p:not(.role) {
    font-size: 14px;
    color: var(--muted);
    max-width: 680px;
    margin: 0;
}
.achievement {
    display: inline-block;
    font-size: 10px;
    border: 1px solid #bcc9da;
    padding: 5px 12px;
    margin-top: 16px;
}
.education {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr;
    border-top: 1px solid #cbd3df;
    padding-top: 35px;
    gap: 24px;
}
.education h3 {
    font-size: 14px;
    margin: 0;
}
.education p:not(.eyebrow) {
    font-size: 12px;
    color: var(--muted);
}
.project {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
}
.project-art {
    min-height: 520px;
    background: #182f50;
    color: #f3eee2;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.project-art:before,
.project-art:after {
    content: "";
    position: absolute;
    border: 1px solid #49617f;
    border-radius: 50%;
    width: 500px;
    height: 500px;
    right: -250px;
    top: 20px;
    transform: rotate(-20deg);
}
.project-art:after {
    right: -190px;
    top: 80px;
}
.art-kicker,
.art-footer {
    font-size: 9px;
    letter-spacing: 2px;
    z-index: 1;
}
.book-title {
    font-size: clamp(35px, 4vw, 62px);
    z-index: 1;
    margin-top: 55px;
}
.book-title em {
    color: #d0b886;
}
.art-rule {
    height: 1px;
    background: #8a9ab1;
    width: 55px;
    margin-top: 30px;
}
.art-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 90px;
}
.art-footer span {
    font-size: 24px;
}
.project-copy {
    padding: 15px 0;
}
.project-copy h3 {
    font-size: 44px;
    margin: 0 0 24px;
}
.project-copy p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
}
cite {
    font-style: italic;
}
.light {
    background: transparent;
    color: var(--ink);
    margin-top: 30px;
}
.light:hover {
    background: var(--ink);
    color: white;
}
.details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0 12px;
    background: transparent;
    text-align: left;
    font-size: 12px;
    margin-top: 10px;
}
#project-details {
    padding-top: 10px;
}
.contact {
    background: var(--ink);
    color: #f5f3ee;
}
.contact h2 {
    font-size: clamp(40px, 5vw, 70px);
}
.contact h2 em {
    color: #d1b88f;
}
.contact > p:not(.eyebrow) {
    max-width: 570px;
    color: #b8c4d5;
    font-size: 14px;
    margin: 28px 0 38px;
}
.email {
    font-family: Georgia, serif;
    font-size: clamp(20px, 3vw, 40px);
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #495c76;
    max-width: 850px;
    padding-bottom: 24px;
}
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
    font-size: 12px;
}
.contact-links button {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 12px;
}
#copy-status {
    color: #d1b88f;
}
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 5%;
}
footer p,
footer > a:last-child {
    font-size: 10px;
    color: var(--muted);
}
@media (min-width: 1600px) {
    body {
        max-width: 1800px;
        margin: auto;
    }
}
@media (max-width: 900px) {
    header {
        padding: 18px 5%;
    }
    nav {
        gap: 18px;
    }
    .hero-copy {
        padding: 60px 7% 30px;
    }
    .hero {
        min-height: 580px;
    }
    .hero-actions {
        gap: 15px;
        flex-wrap: wrap;
    }
    .hero-foot {
        gap: 12px;
    }
    .portrait-label {
        left: 24px;
    }
    .language-bar {
        align-items: flex-start;
    }
    .language-bar > div {
        gap: 18px;
    }
    .section {
        padding: 70px 6%;
    }
    .about,
    .project {
        gap: 35px;
    }
    .expertise {
        padding-top: 0;
    }
    .project-art {
        min-height: 470px;
        padding: 28px;
    }
    .education {
        grid-template-columns: 1fr 1fr;
    }
    .education > .eyebrow {
        grid-column: 1/-1;
        margin-bottom: 0;
    }
}
@media (max-width: 640px) {
    html {
        scroll-padding-top: 88px;
    }
    .menu {
        display: flex;
        gap: 16px;
        border: 0;
        background: transparent;
        font-size: 12px;
    }
    nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 24px 6%;
        border-bottom: 1px solid var(--line);
    }
    nav.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-copy {
        padding: 50px 6% 35px;
    }
    h1 {
        font-size: 50px;
    }
    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.5px;
    }
    .intro {
        font-size: 16px;
    }
    .hero-actions {
        margin: 28px 0 34px;
    }
    .portrait {
        height: 480px;
    }
    .portrait > img {
        object-position: 50% 30%;
    }
    .language-bar {
        flex-direction: column;
        padding: 25px 6%;
    }
    .language-bar > div {
        gap: 16px;
        flex-wrap: wrap;
    }
    .language-bar small {
        display: block;
        margin-left: 0;
    }
    .section {
        padding: 60px 6%;
    }
    .about,
    .project {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-copy .lead {
        font-size: 19px;
    }
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    .expertise article,
    .expertise article + article {
        padding: 24px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }
    .expertise {
        padding-top: 0;
    }
    .section-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    .timeline article {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .education {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .project-art {
        min-height: 410px;
    }
    .book-title {
        font-size: 47px;
    }
    .project-copy h3 {
        font-size: 40px;
    }
    .contact-links {
        gap: 22px;
    }
    footer {
        flex-wrap: wrap;
    }
    footer p {
        order: 3;
        width: 100%;
        margin: 0;
    }
    .portrait-label {
        bottom: 28px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    * {
        transition: none !important;
    }
}

/* Dark professional editions */
:root {
    --ink: #e9eef7;
    --paper: #0d1625;
    --muted: #adbbce;
    --gold: #ddc394;
    --line: #2a3950;
    --surface: #142238;
    --accent: #ddc394;
}
body {
    background: var(--paper);
    color: var(--ink);
}
header {
    background: rgba(13, 22, 37, 0.97);
    padding: 18px 5%;
    flex-wrap: wrap;
    gap: 16px;
}
nav {
    gap: 26px;
}
.brand img {
    border-radius: 6px;
}
.portfolio-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 11px;
    flex-basis: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.portfolio-controls label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
}
select {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 28px 7px 10px;
    font: inherit;
}
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.design-switch {
    display: flex;
    gap: 8px;
    align-items: center;
}
.theme-swatch {
    height: 10px;
    width: 10px;
    background: var(--accent);
    border-radius: 50%;
}
.hero-copy {
    background: linear-gradient(130deg, var(--surface), var(--paper));
    padding-top: 75px;
    padding-bottom: 42px;
}
.hero {
    min-height: 690px;
}
.hero h1 {
    font-size: clamp(42px, 5vw, 76px);
}
em {
    color: var(--accent);
}
.intro,
.about-copy p,
.expertise p,
.section-top > p,
.timeline p:not(.role),
.education p:not(.eyebrow),
.project-copy p:not(.eyebrow),
.contact > p:not(.eyebrow),
footer p,
footer > a:last-child {
    color: var(--muted);
}
.about-copy .lead {
    color: var(--ink);
}
.button {
    background: var(--accent);
    color: #101c2c;
    border-color: var(--accent);
    font-weight: 700;
}
.button:hover {
    background: #f0d6a9;
    color: #101c2c;
}
.text-link:hover,
nav a:hover {
    color: var(--accent);
}
.experience {
    background: var(--surface);
}
.timeline article,
.education {
    border-color: var(--line);
}
.achievement {
    border-color: var(--line);
    color: var(--accent);
}
.project-art {
    background: #192e4a;
    color: #f0f3f8;
    border: 1px solid var(--line);
}
.project-art:before,
.project-art:after {
    border-color: #456083;
}
.art-rule {
    background: var(--accent);
}
.book-title em {
    color: var(--accent);
}
.light {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.light:hover {
    background: var(--accent);
    color: #101c2c;
}
.details {
    color: var(--ink);
}
.contact {
    background: #080f1b;
    border-top: 1px solid var(--line);
}
.contact h2 em {
    color: var(--accent);
}
.email {
    border-color: var(--line);
}
.language-bar {
    background: var(--paper);
}
.portrait {
    background: #1a2330;
}
html {
    scroll-padding-top: 160px;
}
.nav-contact {
    border-color: var(--accent);
}
body[data-theme="charcoal"] {
    --paper: #15181d;
    --surface: #20252c;
    --ink: #edf1f6;
    --muted: #b3bdcb;
    --line: #37404d;
    --accent: #8cbbef;
    --gold: #8cbbef;
    font-family: Arial, Helvetica, sans-serif;
}
body[data-theme="charcoal"] header {
    background: rgba(21, 24, 29, 0.97);
}
body[data-theme="charcoal"] h1,
body[data-theme="charcoal"] h2,
body[data-theme="charcoal"] .project-copy h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: -1.8px;
}
body[data-theme="charcoal"] h1 em,
body[data-theme="charcoal"] h2 em {
    font-style: normal;
}
body[data-theme="charcoal"] .hero-copy {
    background: linear-gradient(130deg, #242c37, #15181d);
}
body[data-theme="charcoal"] .project-art {
    background: #202c3b;
}
body[data-theme="charcoal"] .contact {
    background: #101317;
}
body[data-theme="charcoal"] .button:hover {
    background: #b0d3ff;
}
body[data-theme="charcoal"] .expertise h3 {
    font-weight: 600;
}
body[data-theme="charcoal"] .number {
    color: var(--accent);
}
@media (max-width: 640px) {
    header {
        gap: 10px;
    }
    .portfolio-controls {
        justify-content: space-between;
        gap: 12px;
        padding-top: 10px;
    }
    .portfolio-controls label {
        font-size: 10px;
        gap: 8px;
    }
    .design-switch {
        font-size: 10px;
    }
    nav {
        top: 132px;
        background: var(--paper);
    }
    .hero {
        min-height: auto;
    }
    .hero-copy {
        padding: 48px 6% 34px;
    }
    .hero h1 {
        font-size: 44px;
    }
    .hero-foot {
        font-size: 8px;
    }
    .hero-actions {
        gap: 20px;
    }
    .button {
        gap: 20px;
    }
    .portrait {
        height: 460px;
    }
    .contact h2 {
        font-size: 42px;
    }
    body[data-theme="charcoal"] nav {
        background: var(--paper);
    }
    .email {
        font-size: 21px;
        overflow-wrap: anywhere;
    }
}

/* Keep the compact navigation button readable on dark backgrounds. */
@media (max-width: 900px) {
    .menu {
        color: #ffffff;
    }
}
