/* Arkadii Bondarev — personal site.
   Palette: warm paper, deep ink, muted bronze. Type: Lora (display) + Source Sans 3 (text). */
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Variable.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-Italic-Variable.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Variable.ttf") format("truetype"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3-Italic-Variable.ttf") format("truetype"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --paper: #f4efe6;
  --paper-2: #ece5d8;
  --card: #faf7f1;
  --ink: #14233b;
  --ink-2: #22344f;
  --text: #2a2d33;
  --muted: #6b6a66;
  --bronze: #9a7a4e;
  --bronze-soft: #c8b28c;
  --line: rgba(20, 35, 59, 0.14);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wide: 1240px;
  --measure: 40rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--sans); font-size: 1.125rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--bronze-soft); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: color .25s var(--ease), text-decoration-color .25s var(--ease); }
a:hover { color: var(--bronze); text-decoration-color: var(--bronze); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { background: var(--bronze-soft); color: var(--ink); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--ink); color: #fff; padding: .5rem 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.narrow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-content: start; }
.narrow > * { grid-column: 2; }


/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 239, 230, .9); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--wide); margin: 0 auto; padding: 1.15rem clamp(1.25rem, 4vw, 3rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--ink); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.mono { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-size: .78rem; letter-spacing: .06em; font-weight: 500; color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease); }
.wordmark:hover .mono { background: var(--ink); color: var(--paper); }
.nav-cluster { display: flex; align-items: center; gap: 2rem; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a, .lang-switch a { position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: .35rem 0; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bronze); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: .2rem; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.lang-switch a { padding: .3rem .45rem; color: var(--muted); letter-spacing: .1em; border-radius: 3px; }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--paper-2); }
.lang-switch a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.eyebrow, .section-label { display: flex; align-items: center; gap: .9rem; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 1.5rem; }
.eyebrow::before, .section-label::before { content: ""; width: 2.5rem; height: 1px; background: var(--bronze); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .7rem; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.6rem; border: 1px solid var(--ink); border-radius: 0; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); font-family: var(--sans); cursor: pointer; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.arrow { display: inline-block; transition: transform .3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Home hero */
.hero { padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-inner { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.display { font-size: clamp(3.1rem, 6.6vw, 6.2rem); line-height: .98; letter-spacing: -.025em; font-weight: 450; margin-bottom: 2rem; }
.lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.6; color: var(--ink-2); max-width: 31rem; margin: 0 0 2.6rem; font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }
.hero-photo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 30rem; }
.hero-photo::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--bronze-soft); z-index: 0; }
.hero-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(20, 35, 59, .45); }

/* Brief / facts */
.brief { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 5vw, 4rem) 0; background: var(--card); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: .5rem 2rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-big { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--ink); margin: 0 0 .6rem; line-height: 1; letter-spacing: -.01em; }
.fact-small { margin: 0; font-size: .98rem; color: var(--muted); line-height: 1.5; max-width: 18rem; }

/* Cards */
.cards-section { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { display: flex; flex-direction: column; gap: .9rem; padding: 2.2rem 2rem 2rem; background: transparent; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); min-height: 15rem; }
.card:hover { background: var(--card); border-color: var(--bronze-soft); transform: translateY(-3px); color: var(--text); }
.card-num { font-family: var(--serif); font-style: italic; color: var(--bronze); font-size: 1rem; }
.card h3 { font-size: 1.55rem; }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.55; flex: 1; }
.card-more { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: .6rem; }
.card:hover .arrow { transform: translateX(4px); }

/* Inner page heads */
.page-head { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -.025em; font-weight: 450; }

/* Prose */
.prose p { margin: 0 0 1.35rem; max-width: var(--measure); font-size: 1.15rem; }
.prose p.first { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.55; color: var(--ink); margin-bottom: 1.8rem; }
.p-about .prose p.first::first-letter { float: left; font-size: 4.3em; line-height: .82; padding: .1em .12em 0 0; color: var(--bronze); font-weight: 500; }
.official-link { font-weight: 600; white-space: nowrap; }

/* Biography layout */
.bio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.bio-portrait { position: sticky; top: 7rem; margin: 0; }
.bio-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 30px 60px -32px rgba(20, 35, 59, .45); }
.statement { margin: 2.8rem 0 0; padding: 2rem 2.2rem 1.6rem; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--bronze); max-width: var(--measure); }
.statement h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.statement p { font-size: 1.04rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 .4rem; }
.bio-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: clamp(3.5rem, 7vw, 6rem); margin-bottom: clamp(4rem, 8vw, 7rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.bio-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.88) contrast(1.02); transition: filter .5s var(--ease), transform .5s var(--ease); }
.bio-gallery img:hover { filter: saturate(1); }
@media (min-width: 900px) {
  .bio-gallery { grid-template-columns: repeat(12, 1fr); }
  .bio-gallery img:nth-child(1) { grid-column: 3 / span 4; }
  .bio-gallery img:nth-child(2) { grid-column: 7 / span 4; margin-top: 3rem; }
}

/* Racing / press / contact */
.p-bondarev-racing main .prose, .p-press main .prose, .p-contact main .contact-grid { margin-bottom: clamp(4rem, 8vw, 7rem); }
.link-panel { margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.link-panel .section-label { margin-bottom: 1rem; }
.placeholder-box { margin-top: 2rem; padding: 2.2rem; border: 1px dashed var(--bronze-soft); background: var(--card); color: var(--muted); max-width: var(--measure); }
.placeholder-box p { margin: 0; font-family: var(--serif); font-style: italic; }
.contact-grid { row-gap: 3rem; }
.contact-email .section-label { margin-bottom: 1rem; }
.email-link { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--bronze-soft); word-break: break-word; }
.email-link:hover { border-color: var(--bronze); }
.contact-email p { margin: 0; }
.contact-form { display: grid; gap: 1.4rem; max-width: var(--measure); }
.contact-form label { display: grid; gap: .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.contact-form input, .contact-form textarea { font: inherit; font-size: 1.05rem; text-transform: none; letter-spacing: 0; padding: .85rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 0; }
.contact-form textarea { resize: vertical; min-height: 7rem; }
.contact-form p { margin: 0; }
.form-note { font-size: .95rem; color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(244, 239, 230, .72); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; font-size: .92rem; }
.footer-inner { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 2.5rem; align-items: start; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); margin: 0 0 1rem; }
.footer-rule { width: 3rem; height: 1px; background: var(--bronze-soft); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.6rem; padding-top: .5rem; }
.site-footer a { color: rgba(244, 239, 230, .85); text-decoration: none; }
.site-footer a:hover { color: var(--bronze-soft); }
.footer-nav a { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-meta { text-align: right; padding-top: .5rem; }
.footer-meta p { margin: 0 0 .4rem; }
.footer-langs a { margin-left: .7rem; font-size: .78rem; letter-spacing: .12em; }
.footer-langs a[aria-current="true"] { color: var(--bronze-soft); }

/* Root language picker */
.lang-picker main { display: grid; place-content: center; justify-items: center; text-align: center; min-height: 100vh; padding: 2rem; gap: .4rem; }
.mono-lg { width: 4rem; height: 4rem; font-size: 1.2rem; margin-bottom: 1.6rem; }
.lang-picker h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 450; letter-spacing: -.02em; }
.lang-picker .sub { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.25rem; margin: .4rem 0 2.6rem; }
.lang-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lang-list a { padding: 1rem 1.8rem; font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.lang-list a + a { border-left: 1px solid var(--line); }
.lang-list a:hover { color: var(--bronze); }

/* Gentle entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-photo, .page-head .wrap { animation: rise .9s var(--ease) both; }
  .hero-photo { animation-delay: .12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Responsive */
@media (max-width: 1100px) {
  .site-nav { gap: 1.2rem; }
  .nav-cluster { gap: 1.2rem; }
  .lang-switch { padding-left: 1rem; }
}
@media (max-width: 960px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .7rem 1rem; padding-top: .9rem; padding-bottom: .7rem; }
  .nav-cluster { display: contents; }
  .lang-switch { grid-row: 1; grid-column: 2; border-left: 0; padding-left: 0; }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .1rem 1.3rem; }
  .site-nav a, .lang-switch a { font-size: .72rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; max-width: 26rem; order: -1; margin-right: 1.4rem; }
  .bio-grid, .narrow { grid-template-columns: 1fr; }
  .narrow > * { grid-column: 1; }
  .bio-portrait { position: static; max-width: 22rem; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-meta { text-align: left; }
  .footer-nav { justify-content: flex-start; }
  .footer-langs a { margin: 0 .7rem 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 1.06rem; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; border-top: 1px solid var(--line); padding: 1.4rem 0; }
  .fact:first-child { border-top: 0; padding-top: .3rem; }
  .hero { padding-top: 2.2rem; }
  .hero-photo::before { inset: 1rem -1rem -1rem 1rem; }
  .display { margin-bottom: 1.4rem; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .statement { padding: 1.6rem 1.4rem 1.2rem; }
  .bio-gallery { gap: .8rem; }
}

/* Hero secondary line */
.hero .lead { margin-bottom: 1.4rem; max-width: 33rem; }
.lead2 { font-size: 1rem; color: var(--muted); max-width: 31rem; margin: 0 0 2.6rem; padding-left: 1rem; border-left: 1px solid var(--bronze-soft); line-height: 1.6; }
.son-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bronze-soft); }
.nw { white-space: nowrap; }
@media (max-width: 640px) {
  .hero-photo { max-width: 82%; }
  .site-nav { gap: .1rem 1.1rem; }
  .site-nav a { font-size: .68rem; letter-spacing: .1em; }
}
.narrow > .dossier { grid-column: 1; grid-row: 1; margin: 0; border-top: 2px solid var(--bronze); }
.narrow > .dossier + div { grid-column: 2; grid-row: 1; }
.dossier div { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.dossier dt { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.dossier dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
@media (max-width: 960px) {
  .narrow > .dossier, .narrow > .dossier + div { grid-column: 1; grid-row: auto; }
  .narrow > .dossier { margin-bottom: 2.5rem; }
}

.contact-form .hp { display: none; }
