/* Sofi Jeffrey — an editorial portfolio for engineering and research. */
:root {
  --paper: #f6f3ec;
  --paper-tint: #eeeee5;
  --green: #183e35;
  --ink: #23362f;
  --muted: #58635a;
  --rust: #a34127;
  --line: #cdd1c5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: #d9e1cd; color: var(--green); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { height: auto; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; border-radius: 1px; }
h1, h2, h3, p, figure, dl { margin: 0; }
h1, h2, h3 { color: var(--green); font-family: var(--serif); font-weight: 400; }
h1, h2 { letter-spacing: -0.045em; }
h2 { font-size: clamp(2.35rem, 4vw, 3.25rem); line-height: 1.12; }
h3 { font-size: 1.7rem; line-height: 1.25; letter-spacing: -0.025em; }
p + p { margin-top: 1rem; }
ul { margin: 0; padding-left: 1.2rem; }
.container { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.eyebrow, .label, .date, .location, .status-label { font-family: var(--mono); font-size: 0.7rem; font-weight: 400; line-height: 1.65; }
.eyebrow, .label { color: var(--rust); letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow { margin-bottom: 1.15rem; }
.label { margin-bottom: 0.7rem; }
.date, .location { color: var(--muted); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 18px; background: var(--green); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* A quiet, persistent table of contents. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 86px; align-items: center; gap: 30px; }
.wordmark { flex-shrink: 0; display: inline-flex; gap: 9px; align-items: baseline; min-height: 44px; padding-block: 6px; color: var(--green); font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; letter-spacing: -0.055em; text-decoration: none; }
.wordmark-dot { width: 6px; height: 6px; align-self: center; border-radius: 50%; background: var(--rust); font-size: 0; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-left: auto; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-size: 0.82rem; text-decoration: none; }
.site-header nav a:hover { color: var(--rust); text-decoration: underline; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--green); padding: 10px 23px; background: var(--green); color: var(--paper); font-size: 0.85rem; font-weight: 600; line-height: 1.4; text-align: center; text-decoration: none; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.button:hover { border-color: #2b574b; background: #2b574b; color: white; }
.button-small { min-height: 44px; padding: 9px 17px; font-size: 0.78rem; }
.header-resume { flex-shrink: 0; background: transparent; color: var(--green); }
.header-resume:hover { background: var(--green); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: 0.88rem; font-weight: 600; text-decoration: underline; text-decoration-color: #aeb8a9; }
.text-link:hover { text-decoration-color: var(--rust); }

/* Introduction: a large typographic statement, balanced by a human portrait. */
.hero { padding-top: 77px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: 28px; font-size: clamp(2.75rem, 5.15vw, 4.5rem); line-height: 1.065; }
.hero h1 em { color: var(--rust); font-weight: 400; }
.hero-intro { max-width: 620px; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; }
.hero-detail { max-width: 600px; margin-top: 15px; color: var(--muted); font-size: 0.95rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 29px; }
.hero-education { max-width: 590px; margin-top: 28px; color: var(--muted); font-family: var(--mono); font-size: 0.69rem; line-height: 1.9; }
.hero-portrait { position: relative; width: 100%; background: var(--green); }
.hero-portrait img { width: 100%; height: 425px; object-fit: cover; object-position: center 35%; }
.hero-portrait figcaption { padding: 13px 18px 15px; color: #e6ebdf; font-family: var(--mono); font-size: 0.67rem; line-height: 1.65; }
.proof-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px; margin-top: 66px; padding-top: 27px; padding-bottom: 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-item { display: flex; align-items: center; gap: 18px; }
.proof-item strong { flex-shrink: 0; color: var(--green); font-family: var(--serif); font-size: 2.7rem; font-weight: 400; letter-spacing: -0.055em; line-height: 1.1; }
.proof-item span { max-width: 210px; color: var(--muted); font-size: 0.81rem; line-height: 1.65; }

/* Repeated editorial rhythm and chronological experience. */
.section { padding-block: 99px; }
.section-tint { background: var(--paper-tint); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 47px; }
.section-heading .eyebrow { margin-bottom: 14px; }
.section-intro { max-width: 420px; padding-bottom: 3px; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.experience-list { border-top: 1px solid var(--line); }
.experience-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 195px; gap: 38px; padding-block: 35px; border-bottom: 1px solid var(--line); }
.experience-meta { padding-top: 4px; }
.experience-meta .date { color: var(--green); }
.experience-meta .location { margin-top: 8px; }
.company { margin-bottom: 7px; color: var(--rust); font-family: var(--mono); font-size: 0.72rem; line-height: 1.6; }
.experience-content h3 { margin-bottom: 13px; }
.role-summary { margin-bottom: 14px; font-size: 0.97rem; line-height: 1.75; }
.detail-list { color: var(--muted); font-size: 0.91rem; line-height: 1.8; }
.detail-list li { padding-left: 3px; }
.detail-list li + li { margin-top: 7px; }
.detail-list li::marker { color: #758372; font-size: 0.8em; }
.experience-focus { padding-top: 3px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 0; list-style: none; color: var(--muted); font-family: var(--mono); font-size: 0.65rem; line-height: 1.8; }
.tag-list li { padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.experience-focus .tag-list { display: block; }
.experience-focus .tag-list li { padding-block: 7px; }
.experience-focus .tag-list li:first-child { padding-top: 0; }

/* Selected work has room for the question, method, and evidence. */
.featured-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 58px; padding-top: 38px; padding-bottom: 45px; border-top: 1px solid #bdc6b5; }
.featured-project .eyebrow { margin-bottom: 12px; }
.featured-project h3 { max-width: 500px; font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.15; }
.project-lead { margin-top: 19px; color: var(--ink); font-size: 1rem; line-height: 1.8; }
.project-details { margin-top: 22px; }
.project-details > div { margin-top: 15px; }
.project-details dt { color: var(--green); font-size: 0.76rem; font-weight: 700; line-height: 1.6; }
.project-details dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.75; }
.project-copy > .tag-list, .project-card > .tag-list { margin-top: 23px; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 25px; margin-top: 20px; }
.resource-note { margin-top: 8px; color: var(--muted); font-size: 0.75rem; line-height: 1.8; }
.project-visual { padding: 25px 24px 22px; border: 1px solid #c5cebd; background: #f4f4eb; }
.project-visual svg { width: 100%; overflow: visible; }
.figure-note { margin-top: 17px; color: var(--muted); font-family: var(--mono); font-size: 0.65rem; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px; border-top: 1px solid #bdc6b5; }
.project-card { padding-top: 32px; }
.project-card + .project-card { border-left: 1px solid #c7cebd; padding-left: 39px; }
.project-card .eyebrow { margin-bottom: 11px; }
.project-card h3 { margin-bottom: 16px; font-size: 1.9rem; }
.project-card > p:not(.eyebrow):not(.resource-note) { color: var(--muted); font-size: 0.93rem; line-height: 1.8; }

.site-footer { padding-block: 23px; background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); font-family: var(--mono); font-size: 0.65rem; line-height: 1.8; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }

@media (min-width: 1440px) {
  .hero { padding-top: 88px; }
  .hero-grid { gap: 78px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 22px; }
  .site-header nav { gap: 19px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 290px; gap: 38px; }
  .hero h1 { font-size: clamp(2.7rem, 5vw, 3.8rem); }
  .hero-portrait img { height: 385px; }
  .proof-strip { gap: 25px; }
  .proof-item { gap: 13px; }
  .proof-item strong { font-size: 2.4rem; }
  .proof-item span { font-size: 0.76rem; }
  .experience-row { grid-template-columns: 130px minmax(0, 1fr) 160px; gap: 26px; }
  .featured-project, .project-grid { gap: 36px; }
  .project-card + .project-card { padding-left: 27px; }
}

@media (max-width: 850px) {
  html { scroll-padding-top: 30px; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; gap: 5px 20px; padding-block: 15px 10px; }
  .wordmark { margin-right: auto; }
  .header-resume { order: 1; }
  .site-header nav { order: 2; width: 100%; justify-content: space-between; gap: 6px 18px; margin-left: 0; }
  .site-header nav a { font-size: 0.8rem; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 235px; gap: 30px; align-items: start; }
  .hero h1 { font-size: clamp(2.65rem, 5.5vw, 3.2rem); }
  .hero-intro { font-size: 1.04rem; }
  .hero-detail { font-size: 0.9rem; }
  .hero-portrait { margin-top: 6px; }
  .hero-portrait img { height: 320px; }
  .hero-portrait figcaption { padding: 12px 14px; font-size: 0.62rem; }
  .hero-actions { gap: 7px 20px; margin-top: 23px; }
  .hero-education { margin-top: 18px; }
  .proof-strip { margin-top: 42px; gap: 28px; }
  .proof-item { display: block; }
  .proof-item strong { display: block; margin-bottom: 9px; }
  .proof-item span { display: block; }
  .section { padding-block: 70px; }
  .section-heading { gap: 28px; margin-bottom: 35px; }
  .section-intro { max-width: 320px; font-size: 0.88rem; }
  .experience-row { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
  .experience-focus { grid-column: 2; padding-top: 0; }
  .experience-focus .label { margin-bottom: 5px; }
  .experience-focus .tag-list { display: flex; }
  .experience-focus .tag-list li { padding-block: 0 3px; }
  .featured-project { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .project-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .project-grid { gap: 28px; }
  .project-card + .project-card { padding-left: 26px; }
  .project-card h3 { font-size: 1.65rem; }
}

@media (max-width: 740px) and (min-width: 641px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero h1 { font-size: 3.4rem; }
  .hero-portrait { max-width: 350px; margin: 0 auto; }
  .hero-portrait img { height: 390px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 4px 16px; }
  .wordmark { font-size: 1.45rem; }
  .button-small { padding-inline: 14px; }
  .site-header nav { gap: 3px 13px; }
  .site-header nav a { font-size: 0.73rem; }
  .hero { padding-top: 37px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero .eyebrow { font-size: 0.63rem; letter-spacing: 0.095em; }
  .hero h1 { margin-bottom: 23px; font-size: clamp(2.7rem, 8.3vw, 3.4rem); line-height: 1.1; }
  .hero-intro { font-size: 1.1rem; }
  .hero-detail { font-size: 0.94rem; }
  .hero-education { margin-top: 21px; font-size: 0.67rem; }
  .hero-portrait { max-width: 400px; margin: 0 auto; }
  .hero-portrait img { height: 350px; object-position: center 30%; }
  .hero-portrait figcaption { padding: 13px 16px; font-size: 0.65rem; }
  .proof-strip { margin-top: 33px; gap: 18px; padding-block: 23px; }
  .proof-item strong { font-size: 2rem; }
  .proof-item span { font-size: 0.7rem; line-height: 1.6; }
  .section { padding-block: 58px; }
  .section-heading { display: block; margin-bottom: 31px; }
  h2 { font-size: 2.45rem; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-intro { max-width: 100%; margin-top: 20px; padding: 0; font-size: 0.93rem; }
  .experience-row { grid-template-columns: minmax(0, 1fr); gap: 19px; padding-block: 28px; }
  .experience-meta { display: flex; flex-wrap: wrap; gap: 7px 17px; padding-top: 0; }
  .experience-meta .location { margin-top: 0; }
  .experience-content h3 { font-size: 1.65rem; }
  .experience-focus { grid-column: auto; }
  .experience-focus .label { font-size: 0.64rem; }
  .experience-focus .tag-list { font-size: 0.63rem; }
  .featured-project { padding-top: 29px; padding-bottom: 33px; }
  .featured-project h3 { font-size: 2rem; }
  .project-lead { font-size: 0.96rem; }
  .project-visual { padding: 18px 13px; }
  .figure-note { font-size: 0.62rem; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-card { padding-top: 29px; }
  .project-card + .project-card { margin-top: 29px; padding-top: 29px; padding-left: 0; border-left: 0; border-top: 1px solid #bdc6b5; }
  .project-card h3 { font-size: 1.8rem; }
  .footer-inner { align-items: flex-start; gap: 16px; font-size: 0.6rem; }
  .footer-inner p { padding-top: 10px; }
}

@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .site-header nav { column-gap: 9px; }
  .site-header nav a { font-size: 0.68rem; }
  .hero h1 { font-size: 2.4rem; }
  .proof-strip { gap: 12px; }
  .proof-item strong { font-size: 1.75rem; }
  .proof-item span { font-size: 0.65rem; }
  .hero-portrait img { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Keep the longer third statistic inside its column on narrow phones. */
@media (max-width: 640px) {
  .proof-item strong { font-size: clamp(1.1rem, 5.5vw, 2rem); }
}

/* The second half: practical tools, mathematics, and the person behind the work. */
.skills-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 26px 72px; align-items: start; }
.skills-intro h2 { max-width: 340px; }
.skills-intro > p:not(.eyebrow) { max-width: 320px; margin-top: 21px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.skills-table { min-width: 0; border-top: 1px solid var(--line); }
.skills-row { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 29px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.skills-row h3 { margin-bottom: 9px; font-size: 1.55rem; line-height: 1.3; }
.skills-row > div > p { max-width: 470px; color: var(--muted); font-size: 0.96rem; line-height: 1.8; }
.skills-tools { margin: 0; color: var(--green); font-size: 0.96rem; line-height: 1.85; }
.skills-tools .label { display: block; margin-bottom: 8px; font-size: 0.68rem; }
.skills-footnote { grid-column: 2; display: grid; grid-template-columns: 154px minmax(0, 1fr); gap: 22px; padding-top: 3px; }
.skills-table .skills-footnote { margin-top: 24px; }
.skills-footnote .label { margin: 4px 0 0; font-size: 0.67rem; line-height: 1.8; }
.skills-footnote p { margin: 0; color: var(--muted); font-size: 0.94rem; line-height: 1.8; }

.research-section .section-heading { align-items: flex-end; gap: 54px; margin-bottom: 52px; }
.research-section .section-heading h2 { max-width: 650px; }
.research-section .section-intro { max-width: 350px; font-size: 1rem; }
.publication-feature { display: grid; grid-template-columns: 420px minmax(0, 1fr); align-items: center; gap: 76px; }
.research-art { width: 100%; }
.research-art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.research-art figcaption { margin-top: 15px; color: var(--muted); font-size: 0.83rem; line-height: 1.75; }
.publication-copy { padding-bottom: 23px; }
.research-section .status-label { display: block; color: var(--rust); font-size: 0.75rem; }
.publication-copy h3 { max-width: 600px; margin-top: 16px; font-size: clamp(2rem, 3.25vw, 2.7rem); line-height: 1.15; letter-spacing: -0.035em; }
.research-story { max-width: 620px; margin-top: 24px; color: var(--ink); font-size: 1.03rem; line-height: 1.85; }
.publication-citation { margin-top: 25px; padding-left: 18px; border-left: 2px solid #a8b79c; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.publication-citation cite { color: var(--green); font-style: normal; }
.publication-copy .project-links { margin-top: 20px; }
.research-section .text-link { font-size: 0.95rem; }
.manuscript-row { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 44px; margin-top: 46px; padding-block: 30px; border-block: 1px solid #c1c9b7; }
.manuscript-row > div:first-child { padding-top: 4px; }
.manuscript-row .date { margin-top: 9px; font-size: 0.75rem; }
.manuscript-row h3 { margin-bottom: 11px; font-size: 1.6rem; }
.manuscript-row p:not(.date) { max-width: 830px; color: var(--muted); font-size: 0.96rem; line-height: 1.85; }
.archive-resources { margin-top: 18px; color: var(--muted); }
.archive-resources summary { width: fit-content; min-height: 44px; padding-block: 10px; cursor: pointer; font-size: 0.94rem; }
.archive-resources summary:hover { color: var(--rust); }
.archive-links { display: flex; flex-wrap: wrap; gap: 6px 27px; padding-top: 8px; }
.archive-links a { display: inline-flex; min-height: 44px; align-items: center; font-size: 0.94rem; }
.archive-resources .resource-note { margin-top: 10px; font-size: 0.88rem; }
.archive-links .resource-note { flex-basis: 100%; }

.about-feature { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 76px; align-items: center; }
.personal-photo { width: 100%; }
.personal-photo img { width: 100%; height: 540px; object-fit: cover; object-position: 60% center; }
.personal-photo figcaption { max-width: 420px; margin-top: 15px; color: var(--muted); font-size: 0.83rem; line-height: 1.75; }
.personal-story { min-width: 0; }
.personal-story h2 { max-width: 590px; margin-bottom: 25px; font-size: clamp(2.4rem, 3.7vw, 3.2rem); line-height: 1.13; }
.personal-story .personal-lead { color: var(--green); font-family: var(--serif); font-size: 1.43rem; line-height: 1.5; letter-spacing: -0.015em; }
.personal-story > p:not(.eyebrow):not(.personal-lead) { max-width: 625px; margin-top: 18px; color: var(--muted); font-size: 1rem; line-height: 1.85; }
.personal-story > p.personal-aside { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--green); font-size: 0.96rem; }
.about-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 76px; margin-top: 58px; }
.education-note, .teaching-note { padding-top: 26px; border-top: 1px solid var(--line); }
.about-notes .label { margin-bottom: 14px; font-size: 0.71rem; }
.about-notes h3 { margin-bottom: 15px; font-size: 1.7rem; }
.about-notes p:not(.label):not(.date):not(.role-note) { color: var(--muted); font-size: 0.96rem; line-height: 1.85; }
.education-note .date { margin-top: 12px; font-size: 0.74rem; }
.coursework-details { margin-top: 13px; }
.coursework-details summary { width: fit-content; min-height: 44px; padding-block: 10px; color: var(--green); cursor: pointer; font-size: 0.94rem; }
.coursework-details summary:hover { color: var(--rust); }
.coursework-details p { padding-top: 5px; }
.teaching-note .role-note { margin-top: 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.8; }

.contact-personal { padding-block: 72px; background: var(--green); color: var(--paper); }
.contact-personal .contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 80px; }
.contact-personal .eyebrow { margin-bottom: 17px; color: #dbbd96; }
.contact-personal h2 { color: var(--paper); font-size: clamp(2.8rem, 4.5vw, 3.65rem); }
.contact-personal p:not(.eyebrow) { max-width: 510px; margin-top: 21px; color: #d5dfd1; font-size: 1rem; line-height: 1.8; }
.contact-personal .contact-actions { min-width: 0; }
.contact-email { display: inline-flex; max-width: 100%; min-height: 54px; align-items: center; gap: 19px; padding-block: 8px; color: var(--paper); font-family: var(--serif); font-size: clamp(1.6rem, 2.55vw, 2.15rem); letter-spacing: -0.035em; line-height: 1.3; text-decoration-color: #78907e; text-underline-offset: 9px; }
.contact-email:hover { color: #e3c599; text-decoration-color: #e3c599; }
.contact-email span[aria-hidden] { flex-shrink: 0; }
.contact-profiles { display: flex; flex-wrap: wrap; gap: 6px 29px; margin-top: 20px; }
.contact-profiles .text-link { color: var(--paper); font-size: 0.94rem; font-weight: 400; text-decoration-color: #78907e; }
.contact-profiles .text-link:hover { color: #e3c599; text-decoration-color: #e3c599; }
.contact-personal a:focus-visible { outline-color: #e3c599; }

@media (max-width: 1100px) {
  .skills-layout { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.6fr); column-gap: 42px; }
  .skills-row { grid-template-columns: minmax(0, 1fr) 145px; gap: 23px; }
  .skills-footnote { grid-template-columns: 145px minmax(0, 1fr); gap: 23px; }
  .publication-feature { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 45px; }
  .research-section .section-heading { gap: 36px; }
  .research-section .section-intro { max-width: 320px; }
  .about-feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); gap: 45px; }
  .personal-photo img { height: 520px; }
  .personal-story .personal-lead { font-size: 1.3rem; }
  .about-notes { gap: 45px; }
  .contact-personal .contact-inner { gap: 45px; }
}

@media (max-width: 850px) {
  .skills-layout { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .skills-intro h2 { max-width: none; }
  .skills-intro > p:not(.eyebrow) { max-width: 590px; margin-top: 18px; }
  .skills-row { grid-template-columns: minmax(0, 1fr) 190px; gap: 36px; }
  .skills-footnote { grid-column: auto; grid-template-columns: 154px minmax(0, 1fr); gap: 25px; padding-top: 0; }
  .research-section .section-heading { display: block; margin-bottom: 35px; }
  .research-section .section-heading h2 { max-width: 610px; }
  .research-section .section-intro { max-width: 620px; margin-top: 21px; padding: 0; }
  .publication-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .research-art { max-width: 420px; margin-inline: auto; }
  .publication-copy { padding-bottom: 0; }
  .publication-copy h3 { max-width: 660px; font-size: 2.2rem; }
  .publication-copy .research-story { max-width: none; margin-top: 18px; }
  .publication-citation { margin-top: 22px; }
  .manuscript-row { grid-template-columns: 155px minmax(0, 1fr); gap: 30px; margin-top: 34px; }
  .about-feature { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .personal-photo { max-width: 520px; margin-inline: auto; }
  .personal-photo img { height: 470px; }
  .personal-photo figcaption { max-width: none; }
  .personal-story h2 { max-width: 640px; font-size: 2.65rem; }
  .personal-story .personal-lead { max-width: 625px; font-size: 1.4rem; }
  .personal-story > p:not(.eyebrow):not(.personal-lead) { max-width: none; }
  .about-notes { gap: 34px; margin-top: 42px; }
  .about-notes h3 { font-size: 1.6rem; }
  .contact-personal { padding-block: 57px; }
  .contact-personal .contact-inner { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .contact-email { font-size: 2rem; }
  .contact-profiles { margin-top: 13px; }
}

@media (max-width: 640px) {
  .skills-layout { gap: 25px; }
  .skills-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 23px; }
  .skills-row h3 { font-size: 1.55rem; }
  .skills-row > div > p { max-width: none; }
  .skills-tools .label { margin-bottom: 4px; }
  .skills-footnote { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .skills-footnote .label { margin-top: 0; }
  .research-section .section-heading { margin-bottom: 29px; }
  .research-section .section-heading h2 { font-size: 2.45rem; }
  .research-section .section-intro { font-size: 0.97rem; }
  .publication-feature { gap: 27px; }
  .research-art { max-width: 400px; }
  .research-art figcaption { margin-top: 12px; }
  .publication-copy h3 { margin-top: 14px; font-size: 2rem; }
  .research-story { font-size: 1rem; }
  .publication-citation { padding-left: 14px; }
  .manuscript-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 24px; }
  .manuscript-row > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; padding: 0; }
  .manuscript-row .date { margin-top: 0; }
  .manuscript-row h3 { font-size: 1.5rem; }
  .archive-resources summary { font-size: 0.94rem; }
  .archive-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .about-feature { gap: 30px; }
  .personal-photo { max-width: 430px; }
  .personal-photo img { height: clamp(330px, 100vw, 450px); }
  .personal-story h2 { margin-bottom: 22px; font-size: 2.45rem; }
  .personal-story .personal-lead { font-size: 1.32rem; }
  .about-notes { grid-template-columns: minmax(0, 1fr); gap: 29px; margin-top: 36px; }
  .education-note, .teaching-note { padding-top: 23px; }
  .contact-personal { padding-block: 47px; }
  .contact-personal .contact-inner { gap: 24px; }
  .contact-personal h2 { font-size: 3rem; }
  .contact-personal p:not(.eyebrow) { margin-top: 18px; }
  .contact-email { gap: 14px; font-size: clamp(1.4rem, 5.7vw, 1.9rem); }
  .contact-profiles { gap: 8px 27px; }
}

@media print {
  @page { margin: 15mm; }
  :root { --paper: white; --paper-tint: white; --ink: #182b23; --muted: #414b43; --line: #bbc2b6; }
  body { font-size: 10pt; }
  .container { width: 100%; }
  .site-header, .skip-link, .hero-actions, .archive-resources, .site-footer { display: none; }
  .hero { padding-top: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 155px; gap: 25px; }
  .hero h1 { font-size: 29pt; }
  .hero-intro { font-size: 12pt; }
  .hero-detail { font-size: 10pt; }
  .hero-portrait img { height: 205px; }
  .hero-portrait figcaption { padding: 7px; background: white; color: var(--ink); font-size: 7pt; }
  .hero-education { margin-top: 12px; font-size: 7pt; }
  .proof-strip { margin-top: 22px; padding-block: 17px; }
  .proof-item strong { font-size: 22pt; }
  .section { padding-block: 30px; }
  .section-heading { margin-bottom: 20px; gap: 25px; }
  h2 { font-size: 25pt; }
  h3 { font-size: 16pt; }
  .section-intro { font-size: 9pt; }
  .experience-row { grid-template-columns: 100px minmax(0, 1fr); gap: 15px; padding-block: 20px; }
  .experience-focus { grid-column: 2; }
  .experience-focus .tag-list { display: flex; }
  .experience-focus .tag-list li { padding-block: 0 3px; }
  .featured-project { gap: 22px; padding-block: 20px; }
  .featured-project h3 { font-size: 20pt; }
  .project-visual { padding: 10px; }
  .project-grid { gap: 25px; }
  .project-card + .project-card { padding-left: 20px; }
  .project-card h3 { font-size: 17pt; }
  .skills-layout { grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.5fr); gap: 20px 25px; }
  .skills-row { grid-template-columns: minmax(0, 1fr) 100px; gap: 15px; padding-block: 15px; }
  .skills-row h3 { font-size: 15pt; }
  .skills-tools, .skills-row > div > p, .skills-footnote p, .skills-intro > p:not(.eyebrow) { font-size: 10pt; }
  .skills-footnote { grid-column: 2; grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .research-section .section-heading { margin-bottom: 25px; }
  .research-section .section-intro { max-width: none; font-size: 10pt; }
  .publication-feature { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .publication-copy h3 { font-size: 19pt; }
  .research-story, .publication-citation { font-size: 10pt; line-height: 1.7; }
  .research-art figcaption, .personal-photo figcaption { font-size: 8pt; }
  .manuscript-row { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; margin-top: 25px; padding-block: 20px; }
  .manuscript-row h3 { font-size: 16pt; }
  .manuscript-row p:not(.date) { font-size: 10pt; }
  .about-feature { grid-template-columns: 190px minmax(0, 1fr); gap: 25px; }
  .personal-photo img { height: 270px; }
  .personal-story h2 { font-size: 25pt; }
  .personal-story .personal-lead { font-size: 13pt; }
  .personal-story > p:not(.eyebrow):not(.personal-lead) { font-size: 10pt; }
  .about-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin-top: 25px; }
  .about-notes h3 { font-size: 16pt; }
  .about-notes p:not(.label):not(.date):not(.role-note) { font-size: 10pt; }
  .contact-personal { padding-block: 25px; background: white; color: var(--ink); border-top: 1px solid var(--line); }
  .contact-personal .contact-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 25px; }
  .contact-personal h2 { color: var(--green); font-size: 24pt; }
  .contact-personal .eyebrow, .contact-personal p:not(.eyebrow), .contact-personal .contact-email, .contact-profiles .text-link { color: var(--ink); }
  .contact-personal p:not(.eyebrow) { font-size: 10pt; }
  .contact-email { font-size: 15pt; }
  .experience-row, .project-card, .hero-grid, .skills-row, .publication-feature, .manuscript-row, .education-note, .teaching-note { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a { text-decoration: underline; }
}
