:root {
    color-scheme: light;
    --burgundy: #250e19;
    --wine: #521e35;
    --rose: #e6b3c3;
    --paper: #faf3ed;
    --white: #fff8f2;
    --ink: #281721;
    --muted: #634d57;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--white); background: var(--burgundy); font: 1rem/1.65 var(--sans); }
h1, h2, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.wrap { width: min(100% - 7rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .65rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.opening { background: var(--burgundy); }
.site-header { min-height: 4.25rem; border-bottom: 1px solid #ffffff29; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { font: 1.55rem/1 var(--serif); letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.site-header nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.5rem); }
.site-header nav a { min-height: 2.75rem; display: inline-flex; align-items: center; font-size: .9rem; text-decoration: none; color: #f3dfe6; }
.site-header nav a:hover, .footer-meta a:hover { text-decoration: underline; }

.hero { --hero-gap: clamp(1rem, 2.5vw, 2.25rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); align-items: center; gap: var(--hero-gap); }
.hero-copy { container-type: inline-size; padding-block: clamp(2.5rem, 4vw, 4rem); }
.eyebrow { color: var(--rose); font-size: .875rem; line-height: 1.4; font-weight: 650; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.hero h1 {
    --name-width: calc(100cqi + var(--hero-gap));
    width: var(--name-width);
    font-size: min(9rem, calc(var(--name-width) * .23));
    margin: .15em 0 .18em;
    white-space: nowrap;
}
h2 { font-size: clamp(2.8rem, 5.45vw, 5.5rem); }
h1 em, h2 em { color: var(--rose); font-weight: inherit; }
.hero-role { font-size: clamp(1.14rem, 2vw, 1.45rem); }
.hero-role a { text-decoration-color: #e6b3c37a; }
.hero-role a:hover { text-decoration-color: currentColor; }
.hero-description, .book-description { max-width: 42ch; margin-block: .75rem 1.2rem; color: #eedbe3; font-size: 1.0625rem; }
.button { display: inline-grid; border-radius: .85rem; text-decoration: none; }
.button-surface { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .65rem 1.15rem; border: 1px solid transparent; border-radius: inherit; font-size: .95rem; font-weight: 650; }
.button-light .button-surface { background: var(--white); color: var(--burgundy); }
.button-light:focus-visible { outline-color: var(--white); }
.lift-surface {
    pointer-events: none;
    transition: translate .18s ease, filter .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.portrait {
    position: relative;
    width: 100%;
    max-width: 39rem;
    aspect-ratio: 1;
    justify-self: center;
    align-self: start;
    margin-top: -.6rem;
    overflow: hidden;
    background: radial-gradient(ellipse closest-side at 50% 52%, #5a263e, transparent 100%);
    mask-image: linear-gradient(#000 91%, transparent);
}
.portrait img {
    position: absolute;
    top: -1.7%;
    left: 50%;
    width: 125%;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.light-section { background: var(--paper); color: var(--ink); }
.light-section .eyebrow, .light-section h2 em { color: #862c50; }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 6vw, 5rem); padding-block: clamp(2rem, 4vw, 3.75rem); }
.split h2, .book h2 { margin-top: .24em; }
.about-detail > p { color: var(--muted); font-size: 1.0625rem; }
.about-detail > p + p { margin-top: .85rem; }
.career-list { margin: 1rem 0 0; border-bottom: 1px solid #d9c7cc; }
.career-list > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: baseline; gap: .75rem; padding-block: .55rem; border-top: 1px solid #d9c7cc; }
.career-list dt { font-weight: 650; }
.career-list dd { margin: 0; color: var(--muted); font-size: .875rem; text-align: right; text-wrap: pretty; }

.book { background: var(--wine); }
.book-layout {
    display: grid;
    grid-template-columns: minmax(14.3rem, .65fr) minmax(0, 1.35fr);
    grid-template-areas: "cover heading" "cover details";
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: .75rem clamp(1.5rem, 5vw, 4.5rem);
    padding-block: clamp(2rem, 4vw, 3.75rem);
}
.book-art { grid-area: cover; place-self: center; width: min(100%, 14.3rem); }
.book-art img { width: 100%; height: auto; box-shadow: 0 8px 18px #190610a8; }
.book-heading { grid-area: heading; }
.book-body { grid-area: details; }
.book h2 { font-size: clamp(2.6rem, 4.45vw, 4.6rem); }
.book-subtitle { margin-top: .55rem; font-size: 1.12rem; text-wrap: pretty; }
.byline { color: #ecd3de; margin-top: .15rem; font-size: .9rem; }
.book-description { max-width: 56ch; margin-top: 0; }

.follow { display: flex; align-items: center; justify-content: space-between; gap: .95rem 2rem; padding-block: clamp(1.6rem, 3.3vw, 3rem); }
.follow h2 { font-size: clamp(2.75rem, 5vw, 4.7rem); }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.social-links a {
    display: grid;
    border-radius: .85rem;
    text-decoration: none;
}
.social-surface {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: center;
    align-items: center;
    column-gap: .65rem;
    min-height: 4rem;
    padding: .65rem .85rem;
    border: 1px solid #6e2b48;
    border-radius: inherit;
    background: linear-gradient(150deg, #61253f, #391323);
    box-shadow: 0 4px 10px #521e3526;
    color: var(--white);
    line-height: 1.4;
}
@media (hover: hover) {
    a:hover > .lift-surface { translate: 0 -2px; }
    .button-light:hover .button-surface { background: var(--rose); }
    .social-links a:hover .social-surface {
        filter: brightness(1.14);
        box-shadow: 0 6px 14px #521e3540;
    }
}
.social-links a:focus-visible { outline-color: var(--wine); }
.social-icon {
    display: grid;
    grid-row: 1 / span 2;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: .6rem;
    background: #ffebf02b;
    color: #ffe5ed;
}
.social-icon svg { width: 1.25rem; height: 1.25rem; }
.social-links strong { font-size: .95rem; }
.social-handle { color: #f4cbd9; font-size: .875rem; }
.footer-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 3.5rem; border-top: 1px solid #d9c7cc; color: var(--muted); font-size: .875rem; }
.footer-meta a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }

@media (max-width: 58rem) {
    .wrap { width: min(100% - 3rem, 74rem); }
}

@media (max-width: 43rem) {
    .wrap { width: calc(100% - 2.5rem); }
    .site-header { min-height: 4rem; }
    .wordmark { font-size: 1.34rem; }
    .hero, .split { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .hero { gap: .25rem; }
    .hero-copy { padding-block: 0 1.85rem; }
    .hero h1 { --name-width: 100cqi; font-size: min(6.75rem, 23cqi); }
    .portrait { grid-row: 1; width: min(22.1rem, 100% + .5rem); margin-top: -.35rem; }
    .book-layout { grid-template-columns: minmax(0, 1fr) clamp(5.85rem, 31.2vw, 9.1rem); grid-template-areas: "heading cover" "details details"; gap: .85rem 1rem; }
    .book h2 { font-size: clamp(2rem, 8.5vw, 3.25rem); }
    .book-subtitle { font-size: 1rem; line-height: 1.4; }
    .follow { align-items: flex-start; flex-direction: column; }
    .social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: .5rem; }
    .social-surface { grid-template-columns: 1fr; justify-items: center; row-gap: .35rem; padding: .6rem .4rem; }
    .social-icon { grid-row: auto; }
    .social-handle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lift-surface { transition: none; }
    a:hover > .lift-surface { translate: none; }
}
