@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
}

:root {
    color-scheme: light;
    --background: #eaf0e9;
    --surface: #c0d2bc;
    --text: #293c35;
    --muted: #53645d;
    --accent: #456454;
    --border: #b5c7b1;
    font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--background);
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
[id] { scroll-margin-top: 1rem; }
.page-width { width: min(100% - 3rem, 96rem); margin-inline: auto; }

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: .8rem 1rem;
    background: var(--text);
    color: white;
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.profile {
    display: grid;
    grid-template-columns: 14rem minmax(0, 1fr) 14rem;
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: start;
    padding-block: clamp(1rem, 3vh, 2.5rem);
    flex: 1;
}
.profile > * { min-width: 0; }
.portrait { width: 100%; max-width: 14rem; margin: 0; align-self: center; }
.biography { align-self: center; }
.portrait img {
    display: block;
    width: 100%;
    height: auto;

    border-radius: 1.25rem;
    box-shadow: 0 12px 32px rgb(41 60 53 / 7%);
}
.eyebrow {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1.6;
}
h1, h2 { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 400; }
h1, .biography h2 { font-weight: 600; }
h1 {
    margin: 0 0 .75rem;
    font-size: clamp(2rem, 3vw, 2.75rem);
    letter-spacing: -.035em;
    line-height: 1.1;
}
.qualification { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.profile-heading { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); }
.biography h2 { font-size: 1.5rem; margin: 0 0 .75rem; line-height: 1.3; }
.biography section p { font-size: 1rem; line-height: 1.65; margin: 0 0 .9rem; }
.biography section p:last-child { margin-bottom: 0; }

.contacts { align-self: center; padding: 1.6rem 1.35rem; border-radius: 1.25rem; background: var(--surface); overflow-wrap: anywhere; }
.contacts a { color: var(--text); }
.contacts .eyebrow { color: #43534b; font-size: .6875rem; letter-spacing: .1em; margin-bottom: .6rem; }
.contacts h2 { font-size: 1.875rem; margin: 0 0 1rem; }
.contact-list { margin: 1.5rem 0 2rem; }
.contact-list > div + div { margin-top: 1.25rem; }
.contact-list dt { font-weight: 600; font-size: .875rem; margin-bottom: .4rem; }
.contact-list dd { margin: 0; font-size: .9375rem; line-height: 1.6; }
.contacts h3 { margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.6; }
.social-list { margin: .75rem 0 0; padding: 0; list-style: none; }
.social-list li { padding-block: .8rem; border-top: 1px solid var(--border); font-size: .9375rem; line-height: 1.5; }
.contact-list a, .social-list a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; gap: .5rem; overflow-wrap: anywhere; }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-block: .75rem; border-top: 1px solid var(--border); font-size: .875rem; color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 62rem) {
    .profile { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .portrait, .contacts { width: min(100%, 14rem); margin-inline: auto; }
    .biography section { display: block; }
    .biography section p { line-height: 1.55; }
    .site-footer { align-items: flex-start; }
}

@media (min-width: 62.01rem) and (max-height: 720px), (min-width: 62.01rem) and (max-width: 75rem) {
    .profile { padding-block: 1rem; }
    .profile-heading { padding-bottom: .6rem; margin-bottom: .6rem; }
    h1 { font-size: 2rem; margin-bottom: .5rem; }
    .eyebrow { margin-bottom: .4rem; }
    .biography h2 { margin-bottom: .6rem; font-size: 1.3rem; }
    .biography section p { line-height: 1.45; margin-bottom: .65rem; }
    .site-footer { padding-block: .4rem; }
}

@media (min-width: 62.01rem) and (max-width: 75rem) {
    .profile { grid-template-columns: 13.5rem minmax(0, 1fr) 13.5rem; gap: 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

@media print {
    .skip-link { display: none; }
    .page-width { width: 100%; }
    .profile { display: block; padding: 0; }
    .portrait { width: 10rem; margin: 0 0 2rem; }
    .contacts { margin-top: 2rem; break-inside: avoid; }
}

/* Icons have accessible labels; future contact methods reuse the same row. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-list > div, .social-list li { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr); align-items: center; gap: .5rem; }
.contact-list dt { margin: 0; }
.contact-icon { display: block; width: 1.25rem; height: 1.25rem; color: var(--text); }
.contact-list a, .social-list a { display: block; align-content: center; overflow-wrap: anywhere; }
.site-footer { justify-content: center; text-align: center; }

/* The contact panel shares the portrait's proportions and column width. */
.contacts { width: 100%; max-width: 14rem; aspect-ratio: 1207 / 1600; padding: .75rem; display: flex; flex-direction: column; justify-content: center; }
.contacts > * { flex-shrink: 0; }
.contacts h2 { margin-bottom: .5rem; }
.contact-list { margin: .5rem 0; }
.contact-list > div + div { margin-top: .5rem; }
.contact-list dd, .social-list li { font-size: .875rem; }
.social-list { margin: 0; }
.social-list li { padding-block: .25rem; }
.contact-icon { width: 1.125rem; height: 1.125rem; }
.contact-list a, .social-list a { white-space: nowrap; overflow-wrap: normal; }
