* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --bg: #fff;
  --text: #242424;
  --muted: #666;
  --link: #325cc3;
  --border: #e9e9e9;
  --underline: #b7b7b7;
  --hover: #f3f3f3;
  background: var(--bg);
  color: var(--text);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111214;
  --text: #f1f1ee;
  --muted: #adaeb3;
  --link: #a8beff;
  --border: #303236;
  --underline: #686b73;
  --hover: #24262a;
}

body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 880px; margin: 0 auto; padding: 64px 32px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: "Rammetto One", Georgia, serif; font-weight: 400; }
h1 { font-size: 36px; line-height: 1.3; letter-spacing: -0.025em; }
h2 { margin-bottom: 20px; font-size: 18px; line-height: 1.4; }
h3 { font-size: 15px; font-weight: 700; line-height: 1.5; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; }
#intro { min-height: 45svh; display: flex; flex-direction: column; justify-content: center; }
.intro-copy { margin-top: 28px; font-size: 17px; line-height: 1.85; }
.intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.theme-toggle { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 50%; color: var(--text); background: transparent; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--hover); }
.brand { font-weight: 600; white-space: nowrap; }
.brand--coteach { color: #5559b7; --brand-mask: url("assets/icons/coteach-mark.svg"); }
.brand--lockheed { color: #3465ad; --brand-mask: url("assets/icons/lockheed-mark.svg"); }
.brand--cmu { color: #a93b3f; --brand-mask: url("#cmu-brand-mask"); }
.brand--midl { color: #4a6b7c; --brand-mask: url("assets/icons/midl-mark.svg"); }
.brand--playspaces { color: #5e56b5; --brand-mask: url("#playspaces-brand-mask"); }
:root[data-theme="dark"] .brand--coteach { color: #7f87e9; }
:root[data-theme="dark"] .brand--lockheed { color: #5792e9; }
:root[data-theme="dark"] .brand--cmu { color: #dd6969; }
:root[data-theme="dark"] .brand--midl { color: #689ab3; }
:root[data-theme="dark"] .brand--playspaces { color: #8984e7; }
.brand:hover, .brand:focus-visible { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 4px; }
.brand:focus-visible { outline-color: currentColor; }
.brand-mask-definitions { position: absolute; }
.brand-icon { display: inline-block; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.12em; background: currentColor; -webkit-mask: var(--brand-mask) center / contain no-repeat; mask: var(--brand-mask) center / contain no-repeat; }
.intro-copy .brand-icon { margin-left: 0.1em; }
/* Balance the CMU artwork's blank right inset as well as the surrounding word space. */
.intro-copy .brand--cmu .brand-icon { margin-left: 0.22em; }
.brand--lockheed .brand-icon { width: 1.7em; }
.brand--cmu .brand-icon { width: 2.2em; height: 0.75em; vertical-align: -0.02em; }
.brand--playspaces .brand-icon { width: 1.4em; height: 1.4em; vertical-align: -0.3em; }
nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; margin-top: 24px; font-size: 14px; font-weight: 700; }
#contact { margin-top: 32px; }
nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: underline; text-decoration-color: var(--underline); text-underline-offset: 5px; }
nav a:hover, .footer-links a:hover { color: var(--link); text-decoration-color: currentColor; }
.footer-links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; font-weight: 500; }
.footer-links a { color: var(--muted); }
section { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--border); }
.work-content, .personal { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
@media (min-width: 800px) {
  .work-content { column-gap: 96px; }
}
.work-content p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.work-content h3 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.work-period { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
.work-content article + article { margin-top: 32px; }
figure a { display: block; cursor: zoom-in; }
img { display: block; width: 100%; height: auto; border-radius: 3px; }
.personal > p { max-width: 270px; font-size: 14px; }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; }
.skip-link { position: absolute; left: 20px; top: -100px; }
.skip-link:focus { top: 12px; }
body.viewer-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 24px 24px; border: 0; background: rgba(18, 20, 24, 0.92); color: #fff; }
.photo-viewer[open] { display: grid; place-items: center; animation: viewer-fade-in 180ms ease-out; }
.photo-viewer::backdrop { background: transparent; }
.photo-viewer-image { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 88px); object-fit: contain; animation: photo-reveal 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.photo-viewer-close { position: absolute; top: 12px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #6e7074; border-radius: 50%; background: transparent; color: #fff; font: 30px/1 sans-serif; cursor: pointer; }
.photo-viewer-close:hover { background: #fff; color: #242424; }
.photo-viewer-close:focus-visible { outline-color: #fff; }
@keyframes viewer-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-reveal { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .photo-viewer[open], .photo-viewer-image { animation: none; }
}

@media (max-width: 600px) {
  main { padding: 36px 24px 44px; }
  h1 { font-size: clamp(27px, 7.1vw, 36px); }
  .intro-copy { font-size: 16px; }
  nav { gap: 6px 22px; }
  section { margin-top: 30px; padding-top: 24px; }
  .work-content, .personal { grid-template-columns: 1fr; gap: 18px; }
  .personal > p { max-width: none; }
}
