:root {
  color-scheme: light;
  --paper: #f9f7f1;
  --ink: #302f2c;
  --muted: #69675f;
  --accent: #556b2f;
  --line: #dcd8ce;
  --map-caption: #f9f7f1ed;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #202329;
  --ink: #eee9de;
  --muted: #b7b5af;
  --accent: #b7c88e;
  --line: #41454b;
  --map-caption: #202329ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button:hover, a:hover { color: var(--accent); }
.page { max-width: 1120px; padding: 0 50px; margin: auto; min-height: 100svh; display: flex; flex-direction: column; }
header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 34px; border-bottom: 1px solid var(--line); }
.asterisk { display: inline-flex; align-items: center; justify-content: center; width: 34px; min-height: 44px; flex-shrink: 0; font-size: 32px; color: var(--accent); }
.asterisk svg { display: block; width: 1em; height: 1em; transform: rotate(17deg); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.top-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 26px; font-size: 14px; }
.top-nav a, .top-nav button { padding: 12px 0; }
.top-nav a[aria-current="page"] { color: var(--accent); }
.languages { display: flex; gap: 8px; align-items: center; font: 11px Arial, sans-serif; letter-spacing: 1px; }
.languages button { padding: 12px 5px; font: inherit; color: var(--muted); }
.languages button[aria-pressed="true"] { color: var(--accent); border-bottom: 1px solid var(--accent); }
main { flex: 1; }
body[data-page="home"] main { display: flex; align-items: center; }
.hero { width: 100%; display: grid; grid-template-columns: 46% 54%; align-items: center; padding: 48px 0 63px; }
.portrait { position: relative; margin: 0 44px 0 0; }
.portrait-art { position: relative; aspect-ratio: 420 / 440; }
.portrait img { position: absolute; top: 15%; left: 11.5%; width: 76%; height: 70%; object-fit: contain; }
.portrait-frame { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); pointer-events: none; }
.portrait figcaption { text-align: center; font: 10px Arial, sans-serif; letter-spacing: 1.1px; color: var(--muted); margin-top: 12px; }
.introduction { padding: 9px 0 0 20px; }
.eyebrow { font: 10px Arial, sans-serif; letter-spacing: 2px; color: var(--muted); margin: 0 0 23px; }
h1 { font-size: 52px; line-height: 1.18; font-weight: 400; letter-spacing: -2.1px; margin: 0 0 24px; }
.hero h1 { margin-bottom: 26px; font-size: clamp(25px, 3.15vw, 46px); letter-spacing: -1.4px; white-space: nowrap; }
.greeting { display: inline; font: inherit; letter-spacing: inherit; }
.name-group { display: inline-grid; grid-template-columns: max-content max-content; vertical-align: top; }
.name { display: contents; }
[data-name-prefix] { grid-column: 1; grid-row: 1; white-space: pre; }
[data-name-surname] { grid-column: 2; grid-row: 1; }
/* The pronunciation begins under the surname without widening the name. */
.phonetic { grid-column: 2; grid-row: 2; width: 0; white-space: nowrap; color: var(--accent); font-size: 14px; font-weight: 400; line-height: 1.6; letter-spacing: normal; margin-top: 8px; }
.intro-lead { font-size: 25px; line-height: 1.4; margin: 0 0 23px; letter-spacing: -.3px; }
.biography { font-size: 16px; line-height: 1.85; color: var(--muted); max-width: 405px; margin: 0 0 16px; }
.bio-placeholder { font-size: 13px; line-height: 1.7; color: var(--muted); font-style: italic; max-width: 390px; margin: 0; }
.research { padding: 55px 0 48px; }
.section-heading { margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h1 { font-size: 43px; letter-spacing: -1px; margin: 0; }
h2 { font-size: 33px; letter-spacing: -.8px; font-weight: 400; margin: 0; }
.featured { display: grid; grid-template-columns: 54% 46%; align-items: center; }
.map-wrap { position: relative; border: 1px solid var(--line); overflow: hidden; }
.map-wrap img { display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .map-wrap > img { filter: brightness(.78); }
.map-caption { position: absolute; bottom: 12px; left: 14px; background: var(--map-caption); padding: 7px 9px; font: 8px Arial, sans-serif; letter-spacing: 1px; color: var(--muted); }
.project-copy { padding: 12px 0 12px 42px; }
.project-meta { font: 9px Arial, sans-serif; letter-spacing: 1.6px; color: var(--muted); }
.project-title { font-size: 32px; font-weight: 400; line-height: 1.17; margin: 18px 0 16px; letter-spacing: -.5px; }
.project-copy p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0 0 19px; max-width: 330px; }
.text-link { display: inline-flex; align-items: center; gap: 22px; padding: 10px 0 7px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: 13px; }
.arrow-icon { display: block; width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.other-work { display: flex; align-items: center; gap: 40px; margin-top: 28px; }
.other-work button { padding: 12px 0; font-size: 14px; display: flex; align-items: center; gap: 24px; }
.other-work .arrow-icon { color: var(--accent); }
footer { border-top: 1px solid var(--line); padding: 27px 0 30px; display: grid; grid-template-columns: 134px minmax(0, 1fr); align-items: center; gap: 42px; }
.boat { display: block; width: 134px; height: auto; color: var(--accent); }
.footer-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; justify-self: end; }
.theme-toggle { padding: 12px 0; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.blog { padding: 65px 0; }
.blog h1 { font-size: 43px; letter-spacing: -1px; }
.blog-placeholder { max-width: 570px; font-size: 17px; color: var(--muted); line-height: 1.85; }
.blog-post { max-width: 680px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 35px; }
.blog-post h2 { font-size: 30px; margin: 12px 0 22px; }
.blog-post time { font: 11px Arial, sans-serif; color: var(--muted); }
.blog-post p { font-size: 17px; line-height: 1.85; }
.blog-post figure { margin: 25px 0; }
.blog-post img { max-width: 100%; height: auto; display: block; }
.blog-post figcaption { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 9px; }
dialog { border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 500px; width: calc(100% - 36px); padding: 44px; box-shadow: 0 12px 70px #302f2c25; }
dialog::backdrop { background: #272b3966; backdrop-filter: blur(3px); }
dialog h2 { margin-bottom: 20px; }
dialog p:last-child { line-height: 1.8; color: var(--muted); font-size: 16px; }
.close-dialog { position: absolute; right: 16px; top: 8px; font: 29px Arial, sans-serif; padding: 5px; }
.skip { position: absolute; top: -100px; left: 20px; background: var(--paper); z-index: 10; padding: 12px; }
.skip:focus { top: 10px; }
@media (min-width: 1300px) {
  .page { max-width: 1200px; padding: 0 72px; }
  .hero { padding: 60px 0 70px; }
  h1 { font-size: 57px; }
}
@media (max-width: 850px) {
  .page { padding: 0 30px; }
  .hero { padding: 38px 0 48px; grid-template-columns: 44% 56%; }
  .portrait { margin-right: 10px; }
  .introduction { padding-left: 22px; }
  h1 { font-size: 40px; }
  .intro-lead { font-size: 22px; }
  .biography { font-size: 14px; }
  .project-copy { padding-left: 28px; }
  .project-title { font-size: 28px; }
  footer { grid-template-columns: 100px minmax(0, 1fr); gap: 30px; }
  .boat { width: 100px; }
  header { gap: 26px; }
  .top-nav { gap: 22px; }
}
@media (max-width: 600px) {
  .page { padding: 0 24px; }
  header { min-height: 95px; padding: 18px 0; gap: 22px; align-items: flex-start; }
  .asterisk { width: 28px; font-size: 27px; }
  .top-nav { display: grid; grid-template-columns: repeat(3, max-content); justify-items: end; gap: 0 24px; font-size: 13px; }
  .top-nav a, .top-nav button { padding: 10px 0; }
  .hero { display: flex; flex-direction: column; padding: 24px 0 40px; }
  .portrait { width: 265px; max-width: 100%; margin: 0 0 30px; }
  .introduction { padding: 0; width: 100%; }
  .eyebrow { font-size: 9px; margin-bottom: 19px; }
  h1 { font-size: 43px; }
  .hero h1 { font-size: clamp(22px, 6.1vw, 32px); letter-spacing: -.8px; }
  .intro-lead { font-size: 24px; }
  .biography { font-size: 16px; }
  .bio-placeholder { font-size: 13px; }
  .section-heading { margin-bottom: 25px; }
  .section-heading h1 { font-size: 35px; }
  h2 { font-size: 30px; }
  .featured { grid-template-columns: 1fr; }
  .project-copy { padding: 26px 0 0; }
  .project-title br { display: none; }
  .project-title { font-size: 30px; margin: 14px 0; }
  .project-copy p { font-size: 15px; max-width: none; }
  .other-work { flex-wrap: wrap; gap: 4px 25px; margin-top: 26px; }
  .other-work button { font-size: 13px; gap: 12px; }
  footer { grid-template-columns: 80px minmax(0, 1fr); gap: 22px; padding: 22px 0 25px; }
  .boat { width: 80px; }
  .footer-controls { gap: 20px; }
  .theme-toggle { font-size: 12px; }
  .blog { padding: 40px 0; }
  .blog h1 { font-size: 35px; }
  .research { padding: 32px 0 35px; }
  dialog { padding: 35px 25px; }
}
@media (max-width: 380px) {
  footer { grid-template-columns: 68px minmax(0, 1fr); gap: 16px; }
  .boat { width: 68px; }
  .top-nav { column-gap: 18px; }
  .footer-controls { gap: 15px; }
  h1 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
