:root {
  --paper: #F6F1E8; --paper2: #EFE7DA; --card: #FFFDF9;
  --ink: #12343B; --ink2: #4B6066; --line: rgba(18, 52, 59, .14);
  --teal: #2E7D80; --ochre: #D9902B; --ochre-d: #B8741A; --sun: #F2C879;
  --serif: 'Source Serif 4', Georgia, serif; --sans: 'Golos Text', system-ui, sans-serif;
  --r: 18px; --gut: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.6vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 28px; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-n { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }
.ic { width: 20px; height: 20px; flex: none; }
.ic.sm { width: 15px; height: 15px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(246, 241, 232, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { font: 600 20px var(--serif); text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 28px; }
.nav a, .lang { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.lang { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.lang:hover { background: var(--card); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font: 500 16px var(--sans); padding: 14px 22px; border-radius: 99px; border: 1.5px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: var(--teal); border-color: var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-sun:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 14px; margin-top: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
.hero-in { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink2); margin-top: 24px; max-width: 620px; }
.lead.narrow { max-width: 720px; }
.portrait { margin: 0; position: relative; }
.portrait img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: 200px 200px var(--r) var(--r); background: var(--sun); }
.portrait figcaption { position: relative; margin: -56px 16px 0; background: var(--card); border-radius: var(--r); padding: 18px 20px; box-shadow: 0 12px 32px rgba(18, 52, 59, .12); font-size: 14px; line-height: 1.45; }
.portrait b { display: block; color: var(--ochre-d); font-weight: 600; margin-bottom: 6px; }
.portrait ul { margin: 0; padding: 0; list-style: none; }
.portrait li { padding: 6px 0; border-top: 1px solid var(--line); }
.portrait li:first-child { border-top: 0; padding-top: 0; }

/* stats */
.stats { background: var(--ink); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in div { padding: 36px 24px 36px 0; }
.stats-in div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.stats b { display: block; font: 600 clamp(40px, 4.4vw, 60px)/1 var(--serif); color: var(--sun); }
.stats span { display: block; margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, .82); max-width: 200px; }

/* sections */
.sec { padding: clamp(56px, 8vw, 112px) 0; }
.sec-top0 { padding-top: 0; }
.sec-tint { background: var(--paper2); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.sec-head h2 { margin-bottom: 12px; }
.sub { color: var(--ink2); max-width: 640px; margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.body { color: var(--ink2); }
.two .btn { margin-top: 12px; }

.focus { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.f-item { background: var(--card); border-radius: var(--r); padding: 28px 24px; border: 1px solid var(--line); }
.f-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--sun); color: var(--ink); margin-bottom: 20px; }
.f-item h3 { margin-bottom: 10px; }
.f-item p { color: var(--ink2); font-size: 15.5px; margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18, 52, 59, .12); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card time, .a-head time { font-size: 14px; color: var(--ink2); }
.card h3 { margin: 8px 0 10px; }
.card p { color: var(--ink2); font-size: 15.5px; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--teal); }

/* timeline + lists */
.tl, .pubs { list-style: none; margin: 0; padding: 0; }
.tl li, .pubs li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl li:last-child, .pubs li:last-child { border-bottom: 1px solid var(--line); }
.tl-y { font-size: 15px; color: var(--ochre-d); font-weight: 600; font-variant-numeric: tabular-nums; }
.tl h3 { font-size: 19px; margin-bottom: 4px; }
.tl p { margin: 4px 0 0; color: var(--ink2); font-size: 15.5px; }
.tl .tl-pl { color: var(--ink); }
.two .tl li { grid-template-columns: 120px 1fr; }
.pubs p { margin: 0; font-size: 15.5px; }
.pubs a { color: var(--teal); word-break: break-all; }
.pubs li { grid-template-columns: 90px 1fr; }
.conf li { grid-template-columns: 110px 1fr; }
.conf b { font-weight: 500; }

.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 5vw, 64px); }
.about-photo { width: min(100%, 380px); justify-self: end; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 200px 200px var(--r) var(--r); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.facts h3 { margin-bottom: 14px; }
.facts p, .facts li { color: var(--ink2); font-size: 15.5px; }
.facts ul { list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--ink); }

/* article */
.article { padding-bottom: 40px; }
.a-head { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 36px; }
.back { display: flex; width: max-content; align-items: center; gap: 8px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--teal); margin-bottom: 28px; }
.a-head h1 { font-size: clamp(34px, 4.6vw, 56px); margin-top: 12px; }
.a-cover img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); }
.a-body { padding-top: 48px; }
.a-text p { font-size: 18.5px; line-height: 1.7; }
.a-h { font-size: clamp(26px, 3vw, 34px); margin: 56px 0 20px; }
.a-photo, .a-gallery { margin: 40px 0; }
.a-photo img { width: 100%; max-height: 820px; object-fit: contain; border-radius: var(--r); background: var(--paper2); }
.a-photo figcaption { margin-top: 18px; padding-left: 22px; border-left: 3px solid var(--ochre); }
.a-photo figcaption p { font: italic 400 22px/1.5 var(--serif); margin: 0 0 8px; }
cite { font-style: normal; font-size: 15px; color: var(--ink2); }
.g { display: grid; gap: 10px; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: 1fr 1fr 1fr; }
.g img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.g1 img { aspect-ratio: auto; }
.a-gallery figcaption { margin-top: 14px; font-size: 15.5px; color: var(--ink2); }
.a-quote { margin: 48px 0; padding: 32px 36px; background: var(--ink); color: #fff; border-radius: var(--r); }
.a-quote p { font: 400 clamp(22px, 2.4vw, 28px)/1.4 var(--serif); margin: 0 0 12px; }
.a-quote cite { color: var(--sun); }
.a-next { margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); }
.a-next > span { display: block; font-size: 15px; color: var(--ink2); margin-bottom: 16px; }
.a-next .card { flex-direction: row; }
.a-next .card-img { width: 40%; aspect-ratio: auto; flex: none; }
.draftbar { background: var(--ochre); color: #fff; text-align: center; padding: 10px; font-weight: 500; }

/* footer */
.foot { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 104px) 0 32px; }
.contact { max-width: 640px; }
.contact h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 18px; }
.contact p { color: rgba(255, 255, 255, .8); font-size: 18px; }
.contact .btn { margin: 12px 0 20px; }
.mail a { color: var(--sun); }
.links { display: flex; gap: 24px; }
.links a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.foot-bottom { margin-top: 72px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; justify-content: space-between; gap: 24px; font-size: 14px; color: rgba(255, 255, 255, .6); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 1000px) {
  .focus { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; position: fixed; inset: 68px 0 auto; background: var(--paper); flex-direction: column; gap: 0; padding: 8px var(--gut) 24px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  body.menu .nav { display: flex; }
  body.menu .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .burger { display: block; }
  .top-in { gap: 12px; }
  .hero-in, .two { grid-template-columns: 1fr; }
  .portrait { max-width: 380px; }
  .about-photo { justify-self: start; max-width: 300px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stats-in div { padding: 24px 16px 24px 0; }
  .stats-in div + div { padding-left: 0; border-left: 0; }
  .stats-in div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
  .stats-in div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .focus, .cards { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .tl li, .pubs li, .two .tl li, .conf li { grid-template-columns: 1fr; gap: 4px; }
  .a-text p { font-size: 17px; }
  .a-photo figcaption p { font-size: 19px; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .a-quote { padding: 24px; }
  .a-next .card { flex-direction: column; }
  .a-next .card-img { width: 100%; aspect-ratio: 4 / 3; }
  .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }
