:root { --ink:#29312e; --muted:#727a76; --accent:#21665c; --accent-hover:#134a42; --rule:#e3e7e4; --content:900px; --reading:var(--content); color-scheme:light; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fff; color:var(--ink); font-family:Lato,Arial,sans-serif; font-size:16px; line-height:1.75; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); text-decoration-thickness:1px; text-underline-offset:.22em; }
a:hover { color:var(--accent-hover); }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
button { font:inherit; cursor:pointer; }
p { margin:0 0 1.1em; }
h2 { margin:0 0 .6em; color:var(--ink); font-size:22px; line-height:1.35; font-weight:400; }
main:focus { outline:none; }
.skip-link { position:fixed; z-index:20; top:12px; left:12px; padding:8px 16px; background:white; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
.site-bar { width:min(calc(100% - 80px),var(--content)); margin:auto; height:80px; display:flex; justify-content:space-between; align-items:center; gap:28px; }
.site-name { color:var(--ink); text-decoration:none; font-size:20px; line-height:1.2; letter-spacing:.015em; }
.desktop-nav { display:flex; gap:30px; }
.desktop-nav a { position:relative; padding:10px 0; color:var(--muted); font-size:16px; line-height:1.4; text-decoration:none; }
.desktop-nav a:hover,.desktop-nav a[aria-current='page'] { color:var(--accent); }
.desktop-nav a[aria-current='page']::after { content:''; position:absolute; bottom:3px; left:0; right:0; height:1px; background:currentColor; }
.hero { position:relative; height:220px; background:#285b60; color:#fff; overflow:hidden; }
.page-home .hero { height:310px; }
.hero-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:var(--focal-desktop,50% 50%); }
.hero-shade { position:absolute; inset:0; background:rgba(8,25,40,.19); }
.hero-title-wrap { position:relative; width:min(calc(100% - 80px),var(--content)); height:100%; margin:auto; padding-bottom:40px; display:flex; align-items:flex-end; }
.hero-title { margin:0; font-size:50px; line-height:1.12; font-weight:300; letter-spacing:.005em; }
.hero:has([data-photo-id='natural-ice-cave'],[data-photo-id='reynisdrangar-coast'],[data-photo-id='blue-ice-cave-kilby'],[data-photo-id='matterhorn-stellisee-twilight-kuhn'],[data-photo-id='hokusai-great-wave'],[data-photo-id='monet-water-lilies-gothenburg']) .hero-title { text-shadow:0 1px 3px rgba(8,25,40,.65); }
.page-home .hero-title { font-size:68px; }
.menu-button { display:none; }
main { width:min(calc(100% - 80px),var(--content)); margin:auto; padding:2.25em 0 3em; }
.reading-column { max-width:var(--reading); }
.biography { line-height:1.65; }
.biography p { margin-bottom:12px; }
.biography p:last-child { margin-bottom:0; }
.contact p { margin:0; }
.contact a { overflow-wrap:anywhere; }
.section { position:relative; margin-top:2em; border-top:1px solid var(--rule); padding-top:1.25em; }
.anchor-alias { position:absolute; top:0; }
.note-entry { padding:1em 0; border-bottom:1px solid var(--rule); }
.note-entry:first-child { padding-top:0; }
.note-entry:last-child { padding-bottom:0; border-bottom:0; }
.note-line { display:flex; align-items:baseline; justify-content:space-between; gap:24px; }
.note-entry h2 { margin:0 0 6px; font-size:18px; line-height:1.4; }
.note-entry h2 a { color:var(--ink); text-decoration:none; }
.note-entry h2 a:hover { color:var(--accent); text-decoration:underline; }
.note-entry p { margin:0; color:#59635e; font-size:15px; line-height:1.65; }
.pdf-link { font-size:14px; flex:0 0 auto; text-decoration:none; }
.pdf-link::after { content:'\2197'; padding-left:5px; }
.pdf-link:hover { text-decoration:underline; }
.fragments { margin-top:34px; }
.year { font-size:14px; margin:24px 0 10px; font-weight:400; color:var(--muted); font-variant-numeric:tabular-nums; }
.year:first-child { margin-top:4px; }
.fragment-entry { display:grid; grid-template-columns:68px minmax(0,1fr); gap:24px; padding:12px 0; }
.fragment-entry time { padding-top:3px; color:var(--muted); font-size:14px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.fragment-entry h3 { font-size:18px; line-height:1.45; font-weight:400; margin:0; }
.fragment-entry h3 a { color:var(--ink); text-decoration:none; }
.fragment-entry h3 a:hover { color:var(--accent); text-decoration:underline; }
.fragment-entry p { margin:6px 0 0; color:#59635e; font-size:15px; line-height:1.65; }
.accordion details { border-bottom:1px solid var(--rule); }
.accordion details:first-child { border-top:1px solid var(--rule); }
.accordion summary { list-style:none; display:flex; justify-content:space-between; align-items:baseline; gap:24px; cursor:pointer; padding:1.05em 0; font-size:21px; line-height:1.5; color:var(--ink); }
.accordion summary:hover { color:var(--accent); }
.accordion summary::-webkit-details-marker { display:none; }
.accordion summary::after { content:''; flex:0 0 8px; height:8px; border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:translateY(-4px) rotate(45deg); margin-right:5px; opacity:.55; }
.accordion details[open] summary::after { transform:translateY(1px) rotate(225deg); }
.details-body { padding-bottom:26px; }
.details-body p:last-child { margin-bottom:0; }
.section.projects-section { border-top:0; padding-top:0; }
.project-entry + .project-entry { margin-top:16px; padding-top:16px; border-top:1px solid var(--rule); }
.project-entry h3 { margin:0 0 8px; font-size:18px; line-height:1.45; font-weight:400; }
.project-body p { margin:0 0 12px; }
.project-body p:last-child { margin-bottom:0; }
.resource-list { list-style:none; padding:0; margin:0; }
.resource-list li { margin:12px 0; }
.photo-source { scroll-margin-top:24px; }
.photo-source + .photo-source { margin-top:28px; padding-top:24px; border-top:1px solid var(--rule); }
.photo-source h2 { font-size:19px; margin-bottom:8px; }
.photo-source p { margin:0 0 8px; font-size:16px; }
.page-article .hero { height:160px; }
.page-article .hero-title { font-size:38px; }
.page-article .hero-title-wrap { padding-bottom:32px; }
.math-article { max-width:760px; margin:auto; }
.back-link { margin-bottom:30px; font-size:15px; }
.article-header { margin-bottom:32px; }
.article-header h1 { margin:0 0 14px; font-weight:400; font-size:34px; line-height:1.3; letter-spacing:-.015em; }
.article-meta { margin:0; color:var(--muted); font-size:14px; }
.article-body h2 { margin-top:36px; font-size:25px; }
.math-display { max-width:100%; overflow-x:auto; padding:8px 0; }
mjx-container[display='true'] { overflow-x:auto; overflow-y:hidden; max-width:100%; padding:3px 0; }
.prototype-note { margin-top:26px; padding:18px 0; border-top:1px solid var(--rule); color:var(--muted); font-size:16px; }
footer { width:min(calc(100% - 80px),var(--content)); margin:auto; padding:20px 0 28px; border-top:1px solid var(--rule); display:flex; flex-wrap:wrap; justify-content:space-between; gap:18px 24px; color:var(--muted); font-size:13px; line-height:1.5; }
footer a { color:var(--muted); }
footer nav { display:flex; flex-wrap:wrap; gap:22px; }
.photo-credit { position:absolute; right:18px; bottom:12px; padding:4px 2px; color:rgba(255,255,255,.86); font-size:11px; line-height:1.5; text-decoration:none; text-shadow:0 1px 3px rgba(8,25,40,.65); }
.photo-credit:hover,.photo-credit:focus-visible { color:#fff; text-decoration:underline; }
.mobile-drawer { position:fixed; inset:0 0 0 auto; width:min(340px,88vw); max-width:none; height:100dvh; max-height:none; margin:0 0 0 auto; padding:22px 26px; border:0; background:white; color:var(--ink); }
.mobile-drawer:not([open]) { display:none; }
.mobile-drawer::backdrop { background:rgba(12,29,26,.45); }
.drawer-bar { display:flex; justify-content:space-between; align-items:center; gap:18px; }
.drawer-bar > a { text-decoration:none; font-size:20px; }
.drawer-close { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; background:transparent; color:var(--accent); font-size:32px; }
.mobile-drawer nav { display:grid; margin-top:32px; }
.mobile-drawer nav a { padding:15px 0; border-bottom:1px solid var(--rule); font-size:22px; text-decoration:none; }
.mobile-drawer nav a[aria-current='page'] { text-decoration:underline; text-underline-offset:6px; }
@media (max-width:1024px) {
  .hero-photo { object-position:var(--focal-tablet,50% 50%); }
}
@media (max-width:820px) {
  body { font-size:16px; line-height:1.75; }
  h2 { font-size:21px; margin-bottom:18px; }
  .site-bar { width:calc(100% - 48px); height:68px; }
  .site-name { font-size:19px; }
  .desktop-nav { display:none; }
  .menu-button { display:grid; place-items:center; width:44px; height:44px; padding:0; color:var(--ink); border:0; background:transparent; margin-right:-10px; }
  .menu-button span,.menu-button span::before,.menu-button span::after { display:block; width:21px; height:1px; background:currentColor; }
  .menu-button span { position:relative; }
  .menu-button span::before,.menu-button span::after { content:''; position:absolute; left:0; }
  .menu-button span::before { top:-6px; }
  .menu-button span::after { top:6px; }
  .hero { height:190px; }
  .page-home .hero { height:240px; }
  .hero-photo { object-position:var(--focal-mobile,50% 50%); }
  .hero-title-wrap { width:calc(100% - 48px); padding-bottom:28px; }
  .hero-title { font-size:42px; }
  .photo-credit { right:12px; bottom:10px; font-size:10px; }
  .page-home .hero-title { font-size:52px; }
  main { width:calc(100% - 48px); padding:36px 0 52px; }
  .section { margin-top:32px; padding-top:26px; }
  .note-entry { padding:16px 0; }
  .note-entry h2 { font-size:18px; line-height:1.45; }
  .note-entry p { font-size:15px; }
  .note-line { gap:16px; }
  .pdf-link { font-size:13px; }
  .fragments { margin-top:30px; }
  .fragment-entry { grid-template-columns:58px minmax(0,1fr); gap:14px; }
  .fragment-entry h3 { font-size:18px; }
  .fragment-entry time { font-size:13px; }
  .fragment-entry p { font-size:15px; }
  .project-entry h3 { font-size:18px; }
  .accordion summary { padding:23px 0; font-size:18px; gap:18px; }
  .details-body { padding-bottom:24px; }
  .page-article .hero { height:130px; }
  .page-article .hero-title { font-size:32px; }
  .page-article .hero-title-wrap { padding-bottom:24px; }
  .article-header h1 { font-size:28px; }
  .article-body h2 { font-size:23px; }
  .article-header { margin-bottom:24px; }
  footer { width:calc(100% - 48px); font-size:12px; gap:18px; }
  footer nav { gap:16px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Release shell: no-JavaScript navigation, draft markers and the error page. */
.no-script-nav { display:none; }
.draft-label { margin-left:8px; color:var(--muted); font-size:12px; line-height:1.4; letter-spacing:.03em; white-space:nowrap; }
.not-found { padding:1.5em 0; }
.not-found h1 { margin:0 0 14px; font-size:34px; line-height:1.3; font-weight:400; }
@media (max-width:820px) {
  .no-script-nav { width:calc(100% - 48px); margin:auto; padding:0 0 16px; display:flex; flex-wrap:wrap; gap:8px 22px; }
  .no-script-nav a { color:var(--muted); font-size:16px; text-decoration:none; }
  .no-script-nav a[aria-current='page'] { color:var(--accent); text-decoration:underline; }
  .not-found h1 { font-size:28px; }
}
