:root {
  color-scheme: light;
  --bg: #faf9f6;
  --fg: #232b2d;
  --muted: #626c6b;
  --rule: #dddfd9;
  --accent: #205d53;
  --accent-bg: #edf1ec;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
p { margin: 0 0 1rem; }
.navigation, main { max-width: 1080px; margin: 0 auto; padding-inline: 40px; }
.navigation { display: flex; justify-content: space-between; align-items: center; padding-block: 27px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.navigation a { text-decoration: none; }
.navigation a:hover { text-decoration: underline; }
.wordmark { font-weight: 650; color: var(--fg); }
.wordmark span { font-weight: 400; color: var(--muted); }
.navigation div { display: flex; gap: 28px; }
.skip-link { position: absolute; top: -100px; left: 20px; background: var(--bg); padding: 8px 16px; z-index: 1; }
.skip-link:focus { top: 12px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; gap: 60px; padding: 76px 0 64px; }
.eyebrow, h2 { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.eyebrow { margin-bottom: 18px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 5vw, 57px); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; margin: 0 0 20px; }
.suffix { font-size: .56em; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
.role { font-size: 25px; line-height: 1.35; letter-spacing: -.025em; font-weight: 500; margin-bottom: 20px; }
.hero-summary { max-width: 520px; color: var(--muted); }
.location { font-size: 12px; color: var(--muted); margin: 22px 0; }
/* Crop the photograph in the page, keeping the source image intact. */
.portrait { width: 230px; aspect-ratio: 1; border-radius: 50%; background: url("assets/kiril-klein.png") center / cover no-repeat; box-shadow: 0 0 0 9px var(--bg), 0 0 0 10px var(--rule); }
.links, .social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { padding: 10px 17px; border: 1px solid var(--rule); border-radius: 5px; font-size: 13px; font-weight: 500; text-decoration: none; }
.button span { margin-left: 12px; }
.button:hover { border-color: var(--accent); text-decoration: none; background: var(--accent-bg); }
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: #17483f; }
.social-links { gap: 22px; font-size: 12px; margin: 22px 0 0; }
.social-links a { color: var(--muted); text-decoration: none; }
.social-links a:hover { color: var(--accent); text-decoration: underline; }
.section-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; padding: 42px 0; border-top: 1px solid var(--rule); }
h2 { margin: 5px 0 0; color: var(--muted); }
h3 { font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.015em; margin: 0 0 10px; }
h3 a { color: var(--fg); text-decoration: none; }
h3 a:hover { color: var(--accent); text-decoration: underline; }
.lead { font-size: 21px; line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }
.section-row p:not(.lead, .eyebrow) { color: var(--muted); }
strong { color: var(--fg); font-weight: 600; }
.note, .meta, .text-link { font-size: 12px; }
.note { margin: 18px 0 0; }
.meta { margin-bottom: 7px; }
.feature-card { padding: 27px 30px; background: var(--accent-bg); border: 1px solid #dce4dc; border-radius: 6px; margin-bottom: 30px; }
.feature-card .eyebrow { font-size: 10px; margin-bottom: 13px; }
.feature-card h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 25px; line-height: 1.3; }
.feature-card > a { font-size: 13px; font-weight: 500; text-decoration: none; }
.feature-card > a:hover { text-decoration: underline; }
.file-info { font-size: 11px; font-weight: 400; color: var(--muted); margin-inline: 8px; }
.project-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 0; font-size: 13px; font-weight: 500; }
.project-links a { text-decoration: none; }
.project-links a:hover { text-decoration: underline; }
.item { margin-bottom: 25px; }
.item + .item { padding-top: 23px; border-top: 1px solid var(--rule); }
.item p:last-child { margin-bottom: 0; font-size: 14px; }
.text-link { display: inline-block; font-weight: 500; }
footer { border-top: 1px solid var(--rule); padding: 42px 0 24px; }
footer .eyebrow { margin-bottom: 12px; }
.contact-title { font-family: Georgia, "Times New Roman", serif; font-size: 27px; line-height: 1.35; max-width: 530px; letter-spacing: -.02em; }
.email { font-size: 14px; overflow-wrap: anywhere; }
.footer-note { display: flex; justify-content: space-between; margin-top: 55px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
  .navigation, main { padding-inline: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; padding-block: 52px; }
  .portrait { width: 150px; }
  .hero .eyebrow { font-size: 10px; }
  .role { font-size: 21px; }
  .section-row { grid-template-columns: 1fr; gap: 20px; padding-block: 32px; }
}
@media (max-width: 520px) {
  .navigation { font-size: 12px; padding-block: 20px; }
  .navigation div { gap: 16px; }
  .wordmark span { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 36px; }
  .portrait { grid-row: 1; width: 120px; }
  .hero .eyebrow { letter-spacing: .07em; }
  .feature-card { padding: 22px; }
  .feature-card h3 { font-size: 23px; }
  .contact-title { font-size: 25px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #191f20; --fg: #e5e8e3; --muted: #adb6b1; --rule: #374140; --accent: #a0cbb7; --accent-bg: #242f2b; }
  .button.primary { background: #a0cbb7; color: #191f20; }
  .button.primary:hover { background: #b8ddcc; }
  .feature-card { border-color: var(--rule); }
}
