:root {
    color-scheme: dark;
    --background: #14100d;
    --foreground: #fff;
    --muted: #b7b7b7;
    --accent: #e4d49a;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--background); scroll-padding-top: 100px; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "EB Garamond", Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: .18em; }
a:hover, a[aria-current="page"] { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
::selection { background: #e4d49a; color: #14100d; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px; background: linear-gradient(var(--background) 65%, transparent); }
.home-mark { font-size: 21px; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; font-size: 21px; }
.site-shell { width: min(1040px, calc(100% - 48px)); margin: 0 auto; }
.home-shell { min-height: calc(100svh - 64px); display: flex; flex-direction: column; justify-content: center; gap: 32px; padding: 120px 0 64px; }
.identity { align-self: flex-end; text-align: right; width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; line-height: .98; }
.identity p { max-width: 36rem; margin: 18px 0 0 auto; color: var(--muted); line-height: 1.6; }
.profile-details { max-width: 42rem; display: grid; gap: 20px; color: var(--muted); }
h2 { color: var(--foreground); font-size: 22px; font-weight: 500; margin-bottom: 6px; }
ul { padding-left: 1.2em; }
li + li { margin-top: 5px; }
.profile-details a { color: var(--foreground); }
.site-footer { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 16px; color: var(--muted); }
.detail-shell { min-height: calc(100svh - 68px); padding: 140px 0 64px; display: flex; flex-direction: column; gap: 52px; }
.work-list, .background-details { display: grid; gap: 30px; max-width: 48rem; }
.intro, .work-description, .background-details p { color: var(--muted); }
.work { scroll-margin-top: 110px; }
.work summary { position: relative; padding-left: 25px; cursor: pointer; list-style: none; font-size: 24px; line-height: 1.35; }
.work summary::-webkit-details-marker { display: none; }
.work summary::before { content: "›"; position: absolute; left: 2px; top: 0; color: var(--muted); transition: transform .2s; }
.work[open] summary::before { transform: rotate(90deg); }
.award { color: var(--accent); }
summary .award { display: block; font-size: 19px; margin-top: 4px; }
.work-description { margin: 16px 0 0 25px; line-height: 1.65; }
.work-description p + p { margin-top: 12px; }
.note { font-size: 18px; font-style: italic; }
.background-details { gap: 40px; }
.background-details h3 { font-size: 22px; font-weight: 400; color: var(--foreground); }
.background-details ul { margin-top: 12px; color: var(--muted); }
.achievement-list li + li { margin-top: 22px; }
.contact-links { display: grid; gap: 20px; max-width: 39rem; font-size: 24px; }
.contact-links a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 28px; }
.contact-links span { color: var(--muted); font-size: 20px; overflow-wrap: anywhere; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 8px 16px; background: var(--background); z-index: 4; }
.skip-link:focus { top: 10px; }
@media (max-width: 640px) {
    .site-header { position: static; padding: 18px 24px; align-items: flex-start; gap: 20px; }
    .site-header nav { gap: 7px 16px; font-size: 19px; }
    .home-mark { padding-top: 2px; }
    .home-shell { min-height: auto; padding: 55px 0 64px; gap: 38px; }
    .identity p { font-size: 19px; }
    .detail-shell { min-height: calc(100svh - 150px); padding-top: 48px; gap: 38px; }
    .site-footer { flex-wrap: wrap; gap: 4px 18px; }
    .contact-links a { flex-direction: column; }
    .work summary { font-size: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
    .site-shell { animation: arrive .4s ease-out both; }
    @keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}

