:root {
  color-scheme: light;
  --canvas: #f7f6f2;
  --paper: #fffefa;
  --ink: #202320;
  --muted: #686d68;
  --line: #d8d9d3;
  --accent: #53675d;
  --serif: "Iowan Old Style", "Baskerville", "Songti SC", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --content: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #d8e2d8; color: var(--ink); }
.page-shell { width: min(calc(100% - 112px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 100; left: 16px; top: -60px; background: var(--ink); color: white; padding: 12px 16px; }
.skip-link:focus { top: 16px; }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 94px; gap: 32px; border-bottom: 1px solid var(--line); }
.primary-nav { grid-column: 2; justify-self: center; }
.primary-nav, .language-switch { display: flex; align-items: center; gap: 32px; font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.primary-nav a, .language-switch a { color: var(--muted); transition: color .2s ease; }
.primary-nav a:hover, .language-switch a:hover, .primary-nav a[aria-current="page"], .language-switch a[aria-current="page"] { color: var(--ink); }
.language-switch { grid-column: 3; justify-self: end; gap: 9px; }
.language-switch span { color: #a7aaa3; font-weight: 400; }

.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-line { width: 36px; height: 1px; background: currentColor; flex: 0 0 auto; }
.text-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 40px; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .03em; transition: color .2s ease, border-color .2s ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-size: 1.05rem; }

.section-kicker { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }

.interior-hero { padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(85px, 11vw, 150px); }
.interior-hero h1 { margin: 38px 0 34px; font-family: var(--serif); font-size: clamp(4.2rem, 9.4vw, 9.4rem); font-weight: 400; letter-spacing: -.075em; line-height: 1; }
.interior-intro { max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.4; letter-spacing: -.02em; }
.profile-links { display: flex; flex-wrap: wrap; gap: 18px 32px; margin-top: 40px; font-size: .78rem; font-weight: 600; }
.profile-links a { display: inline-flex; gap: 18px; align-items: center; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.profile-links a:hover { color: var(--accent); border-color: var(--accent); }
.profile-links span { font-size: 1rem; }
.back-link { display: inline-block; margin-top: 36px; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; }
.back-link:hover { color: var(--accent); border-color: var(--accent); }
.gallery { padding-bottom: clamp(90px, 12vw, 160px); }
.gallery > .section-kicker { margin-bottom: clamp(50px, 7vw, 95px); }
.gallery > .section-kicker span:last-child { text-align: right; }
.photo-card { margin: 0 0 clamp(110px, 13vw, 190px); }
.photo-stage { position: relative; width: fit-content; max-width: 100%; margin-inline: auto; }
.photo-stage picture { display: block; }
.photo-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: 84vh; object-fit: contain; background: #e5e7e6; }
.photo-details { position: absolute; right: 15px; bottom: 15px; z-index: 2; }
.photo-details summary { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: rgba(23,27,25,.76); color: white; cursor: pointer; list-style: none; box-shadow: 0 2px 14px rgba(0,0,0,.12); transition: background .2s ease; }
.photo-details summary:hover, .photo-details[open] summary { background: #1d231f; }
.photo-details summary::-webkit-details-marker { display: none; }
.photo-details summary span { margin-top: -7px; font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.photo-details-panel { position: absolute; right: 0; bottom: 56px; width: min(320px, calc(100vw - 45px)); max-height: min(65vh, 540px); overflow-y: auto; padding: 21px 23px 24px; background: rgba(24,29,26,.96); color: #f7f6f2; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.details-heading { margin: 0 0 18px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.photo-details dl { display: grid; gap: 11px; margin: 0; }
.photo-details dl div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; font-size: .77rem; line-height: 1.4; }
.photo-details dt { color: #aab8b0; }
.photo-details dd { margin: 0; overflow-wrap: anywhere; }
.photo-caption { display: flex; justify-content: space-between; gap: 20px; max-width: 700px; margin: 20px auto 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.photo-caption a { color: var(--ink); }
.photo-caption a:hover { color: var(--accent); }
.sdr-toggle { margin-top: 20px; padding: 8px 0; border: 0; border-bottom: 1px solid white; background: transparent; color: white; cursor: pointer; font: inherit; font-size: .78rem; }

.cv-content { padding-bottom: clamp(100px, 14vw, 190px); }
.cv-section { display: grid; grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); gap: clamp(40px, 7vw, 115px); padding: 34px 0 70px; border-top: 1px solid var(--line); }
.cv-section h2 { margin: 0; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.cv-items { display: grid; gap: 27px; }
.cv-item { display: flex; justify-content: space-between; gap: 28px; line-height: 1.55; }
.cv-item h3 { margin: 0 0 4px; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.55rem); font-weight: 400; line-height: 1.25; }
.cv-item p { margin: 0; color: #424944; }
.cv-item time { flex: 0 0 auto; color: var(--muted); font-size: .78rem; white-space: nowrap; }
.numbered-items .cv-item { justify-content: start; gap: 25px; }
.numbered-items .cv-item p { line-height: 1.65; }
.numbered-items .cv-item a { display: inline-block; margin-top: 6px; border-bottom: 1px solid var(--line); color: var(--accent); font-size: .78rem; overflow-wrap: anywhere; }
.item-number { flex: 0 0 24px; padding-top: 3px; color: var(--muted); font-size: .7rem; }
.contact-items { gap: 14px; }
.contact-items a { width: fit-content; padding-bottom: 5px; border-bottom: 1px solid var(--line); }
.contact-items a:hover { border-color: var(--accent); color: var(--accent); }
.hobby-section p { max-width: 640px; margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.45; }
.hobby-section .text-link { justify-self: start; margin-top: 8px; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; letter-spacing: .04em; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .page-shell { width: min(calc(100% - 60px), var(--content)); }
  .site-header { grid-template-columns: 1fr auto; gap: 16px; padding-block: 22px 18px; }
  .primary-nav { grid-row: 1; grid-column: 1; justify-self: start; gap: 25px; }
  .language-switch { grid-column: 2; grid-row: 1; }
  .cv-section { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 600px) {
  .page-shell { width: calc(100% - 36px); }
  .site-header { min-height: 0; gap: 10px; }
  .primary-nav { gap: 12px; font-size: .64rem; letter-spacing: .05em; }
  .language-switch { gap: 6px; font-size: .64rem; letter-spacing: .05em; }
  .section-kicker { font-size: .61rem; }
  .photo-caption { font-size: .63rem; }
  .interior-hero { padding-top: 86px; }
  .interior-hero h1 { font-size: clamp(3.9rem, 16vw, 6rem); overflow-wrap: anywhere; }
  .interior-intro { font-size: 1.5rem; }
  .profile-links { flex-direction: column; align-items: flex-start; gap: 14px; }
  .photo-stage img { max-height: 77vh; }
  .photo-details { right: 11px; bottom: 11px; }
  .photo-details summary { width: 39px; height: 39px; }
  .photo-details-panel { bottom: 50px; }
  .cv-section { padding-bottom: 56px; }
  .cv-item { flex-direction: column; gap: 5px; }
  .numbered-items .cv-item { flex-direction: row; }
  .site-footer { flex-direction: column; }
}

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