:root {
  color-scheme: light;
  --background: #FFFFFF;
  --text: #08724D;
  --accent: #08724D;
  --contact: #79502C;
  --divider: #CDDAD4;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
::selection { background: var(--text); color: var(--background); }
.page { width: 100%; min-height: 100svh; margin-inline: auto; padding: 32px 3.5vw 20px; display: flex; flex-direction: column; }
#main { min-width: 0; }
h1 { font-size: clamp(40px, 5vw, 56px); line-height: 1.05; letter-spacing: -.05em; font-weight: 750; }
h2 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 1rem; line-height: 1.3; }
.experience-list, .project-list, .contact-links { list-style: none; padding: 0; margin: 0; }
.home-page .page { max-width: none; padding: 24px clamp(24px, 4vw, 80px) 20px; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) clamp(176px, 16vw, 240px); align-items: center; gap: 32px; padding-bottom: 18px; }
.portrait { display: block; width: 100%; height: auto; border-radius: 6px; }
.headline { margin-top: 8px; font-size: 1.0625rem; font-weight: 600; }
.bio { max-width: 80ch; margin-top: 8px; font-size: .875rem; }
.content-section { padding-block: 18px; border-top: 1px solid var(--divider); }
.section-heading { margin-bottom: 14px; }
.experience-list { display: grid; gap: 14px; }
.experience-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; }
.entry-date { font-family: var(--mono); font-size: .6875rem; padding-top: 3px; }
.entry-date time { white-space: nowrap; }
.entry-role { font-size: .75rem; margin-top: 3px; }
.entry-description { font-size: .875rem; line-height: 1.45; }
.experience-entry > .entry-description { grid-column: 1 / -1; }
.project-list { display: grid; gap: 12px; }
.project-entry { display: grid; grid-template-columns: clamp(160px, 22vw, 300px) minmax(0, 1fr); gap: 24px; }
.project-entry + .project-entry { border-top: 1px solid color-mix(in srgb, var(--divider) 50%, transparent); padding-top: 12px; }
.project-stack { font-family: var(--mono); font-size: .6875rem; line-height: 1.5; margin-top: 5px; }
.all-projects { display: inline-block; margin-top: 14px; font-size: .8125rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; border-top: 1px solid var(--divider); margin-top: 32px; padding-top: 48px; font-size: .8125rem; flex: 1; }
.home-page .site-footer { margin-top: 20px; padding-top: 18px; align-items: center; flex: 0; }
.home-page .site-footer .resume-button { grid-column: 2; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--contact); }
.contact-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; min-height: 24px; }
.contact-links a:hover { text-decoration: underline; }
.contact-links svg { width: 14px; height: 14px; flex-shrink: 0; }
.last-updated { font-family: var(--mono); font-size: .6875rem; justify-self: end; text-align: right; }
.projects-page .page { max-width: 1440px; }
.project-navigation { margin-bottom: 48px; font-family: var(--mono); font-size: .875rem; }
.project-page-heading { padding-bottom: 32px; }
.project-page-heading h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1.05; }
.project-page-heading p { margin-top: 20px; max-width: 60ch; }
.project-catalog { list-style: none; padding: 0; margin: 0; }
.catalog-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding-block: 32px; border-top: 1px solid var(--divider); }
.catalog-entry h2 { font-size: 1.25rem; }
.catalog-entry p { max-width: 65ch; font-family: var(--mono); line-height: 1.5; }
.project-source { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: .875rem; }
.catalog-entry .project-technologies { margin-top: 16px; font-family: Arial, Helvetica, sans-serif; font-size: .875rem; line-height: 1.6; }
.technology-label { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.projects-page .site-footer { margin-top: 0; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 16px; background: var(--background); border: 1px solid; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready { transition: opacity 250ms ease-out, transform 250ms ease-out; }
  .reveal-pending { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { transition: none; }
  .reveal-pending { opacity: 1; transform: none; }
}
/* Short laptop windows use tighter spacing, without scaling or clipping text. */
@media (min-width: 1024px) and (max-height: 850px) {
  .home-page .page { padding-block: 16px; }
  .home-page h1 { font-size: 48px; }
  .intro { grid-template-columns: minmax(0, 1fr) 200px; padding-bottom: 12px; }
  .content-section { padding-block: 12px; }
  .section-heading { margin-bottom: 10px; }
  .experience-list { gap: 10px; }
  .experience-entry { row-gap: 4px; }
  .project-list { gap: 8px; }
  .project-entry + .project-entry { padding-top: 8px; }
  .project-stack { margin-top: 4px; }
  .all-projects { margin-top: 10px; }
  .home-page .site-footer { padding-top: 12px; }
}
@media (max-width: 700px) {
  .home-page .page { padding: 28px 24px 24px; }
  .intro { grid-template-columns: minmax(0, 1fr) 120px; align-items: start; gap: 20px; padding-bottom: 24px; }
  .intro-copy { min-width: 0; }
  .bio { font-size: 1rem; }
  .entry-description { font-size: 1rem; }
  .content-section { padding-block: 24px; }
  .experience-list { gap: 24px; }
  .experience-entry { grid-template-columns: 1fr; gap: 6px; }
  .entry-date { padding-top: 0; font-size: .75rem; }
  .entry-role { font-size: .875rem; }
  .project-entry { grid-template-columns: 1fr; gap: 8px; }
  .project-list { gap: 18px; }
  .project-entry + .project-entry { padding-top: 18px; }
  .project-stack { font-size: .75rem; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding-top: 28px; align-items: center; font-size: .75rem; }
  .site-footer > p, .site-footer > a { white-space: nowrap; }
  .last-updated { justify-self: end; text-align: right; }
  .contact-links { flex-wrap: nowrap; gap: 8px; }
  .contact-links a { min-height: 36px; }
}
@media (max-width: 600px) {
  .project-navigation { margin-bottom: 32px; }
  .catalog-entry { grid-template-columns: 1fr; gap: 12px; padding-block: 24px; }
  .page { padding: 24px 20px 20px; }
  .contact-links { gap: 2px; }
  .contact-links a { width: 32px; min-height: 44px; justify-content: center; }
  .contact-links svg { width: 18px; height: 18px; }
  .contact-label, .updated-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .site-footer .resume-button { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 380px) {
  .home-page .page { padding-inline: 20px; }
  .intro { grid-template-columns: minmax(0, 1fr) 104px; gap: 16px; }
}

@media (min-width: 1024px) {
  .home-page #main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 80px); }
  .home-page #main > section { min-width: 0; }
  .intro { grid-column: 1 / -1; border-bottom: 1px solid var(--divider); }
  .home-page .content-section { border-top: 0; }
  .section-heading { margin-bottom: 24px; }
  .experience-list { gap: 24px; }
  .experience-entry { row-gap: 10px; }
  .project-list { gap: 20px; }
  .project-entry { grid-template-columns: 1fr; gap: 10px; }
  .project-entry + .project-entry { padding-top: 20px; }
  .project-stack { margin-top: 8px; }
  .all-projects { margin-top: 20px; }
}
