:root {
  --ink: #15120f;
  --paper: #f4efe7;
  --card: #fffaf3;
  --muted: #756c61;
  --line: #d9cfc2;
  --red: #b3202e;
  --red-dark: #74121d;
  --dark: #171313;
  --white: #fffdf9;
  --max: 1160px;
  --shadow: 0 22px 60px rgba(49, 28, 20, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
.w { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--white);
}
.skip:focus { left: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 207, 194, 0.8);
  background: rgba(244, 239, 231, 0.93);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand { font-weight: 900; text-decoration: none; letter-spacing: -0.03em; }
.brand small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; }
.links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 22px; }
.links a { text-decoration: none; font-size: 0.92rem; font-weight: 750; }
.links a:hover, .links a:focus-visible { color: var(--red); }

.hero {
  padding: 78px 0 64px;
  background:
    radial-gradient(circle at 15% 10%, rgba(179, 32, 46, 0.11), transparent 28%),
    linear-gradient(135deg, #f6f0e8 0%, #eee4d8 100%);
}

.heroGrid { display: grid; grid-template-columns: 1.15fr 0.75fr; align-items: center; gap: 68px; }
.badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge { padding: 8px 12px; border: 1px solid rgba(179, 32, 46, 0.28); border-radius: 999px; background: rgba(255,255,255,.48); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #26945a; box-shadow: 0 0 0 4px rgba(38,148,90,.12); }
.k { margin: 28px 0 8px; color: var(--muted); font-weight: 750; }
h1, h2, h3 { margin-top: 0; line-height: 1.06; letter-spacing: -0.045em; }
h1 { margin-bottom: 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8vw, 7.6rem); font-weight: 500; }
h1 span { display: block; color: var(--red); font-style: italic; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 5vw, 4.5rem); font-weight: 500; }
h3 { font-size: 1.35rem; }
.alias { margin: 0; color: var(--red-dark); font-weight: 800; }
.lead { max-width: 720px; margin: 24px 0 0; color: #4f4942; font-size: clamp(1.05rem, 1.8vw, 1.28rem); }

.photo { position: relative; margin: 0; overflow: hidden; border-radius: 220px 220px 28px 28px; background: #2c1718; box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: center top; }
.photo figcaption { position: absolute; inset: auto 18px 18px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.24); border-radius: 16px; color: white; background: rgba(18,12,12,.72); backdrop-filter: blur(12px); }
.photo figcaption small, .photo figcaption b { display: block; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 19px; border: 1px solid var(--ink); border-radius: 999px; color: white; background: var(--ink); text-decoration: none; font-weight: 850; }
.btn.alt { color: var(--ink); background: transparent; }
.btn.red { border-color: var(--red); background: var(--red); }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(23,19,19,.16); }

.bar { padding: 0; color: white; background: var(--red-dark); }
.bar .w { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px 34px; padding: 15px 0; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

section { padding: 92px 0; }
.muted { background: #ebe2d7; }
.dark { color: var(--white); background: var(--dark); }
.head { display: grid; grid-template-columns: 1.4fr .7fr; align-items: end; gap: 40px; margin-bottom: 42px; }
.head h2 { margin-bottom: 0; }
.head > p { margin: 0; color: var(--muted); }
.dark .head > p { color: #c1b6ac; }
.label { margin: 0 0 12px; color: var(--red); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 10px 35px rgba(49,28,20,.05); }
.dark .card { border-color: #443838; background: #211b1b; box-shadow: none; }
.card p:last-child { margin-bottom: 0; }
.official { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.official a, .text-link { color: var(--red-dark); font-weight: 850; text-underline-offset: 4px; }
.dark .official a, .dark .text-link { color: #ff939e; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; padding: 0; overflow: hidden; }
.fact { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact small, .fact b { display: block; }
.fact small { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.skill i { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 24px; border-radius: 13px; color: white; background: var(--red); font-style: normal; font-size: .75rem; font-weight: 900; }
.skill p { color: var(--muted); }

.project { position: relative; min-height: 290px; padding-right: 90px; }
.project > small { color: #c9bbb0; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project em { position: absolute; right: 26px; top: 18px; color: #5a4848; font-family: Georgia, serif; font-size: 4rem; font-style: normal; }
.project h3 { margin-top: 42px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.project p { color: #d5cbc3; }
.project footer { color: #a99c93; font-size: .85rem; }
.project a { color: #ff939e; font-weight: 850; text-underline-offset: 5px; }

.faq h3 { margin-bottom: 12px; }
.faq p { color: var(--muted); }
.identity-note { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--red); background: rgba(179,32,46,.08); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 58px; align-items: start; }
.contactLinks { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.contactLinks a { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contactLinks a:last-child { border-bottom: 0; }
.contactLinks a:hover { background: #fff; }
.contactLinks small, .contactLinks span { display: block; }
.contactLinks small { color: var(--muted); font-weight: 750; }

.pageHero { padding: 76px 0 52px; background: linear-gradient(135deg, #f6f0e8, #eadfd2); }
.pageHero .crumb { margin-bottom: 30px; color: var(--muted); font-size: .88rem; font-weight: 750; }
.pageHero h1 { max-width: 980px; font-size: clamp(3rem, 7vw, 6.3rem); }
.pageHero .lead { max-width: 820px; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 56px; font-size: clamp(2rem, 4vw, 3.25rem); }
.prose h3 { margin-top: 34px; }
.prose p, .prose li { color: #4f4942; }
.prose li + li { margin-top: 8px; }
.profile-layout { display: grid; grid-template-columns: .65fr 1.35fr; gap: 48px; align-items: start; }
.profile-layout .portrait-card { position: sticky; top: 108px; overflow: hidden; padding: 0; }
.portrait-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.portrait-card div { padding: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.tag-list li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--card); font-size: .84rem; font-weight: 750; }
.registry { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.registry th, .registry td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.registry tr:last-child th, .registry tr:last-child td { border-bottom: 0; }
.registry th { width: 190px; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.registry a { color: var(--red-dark); font-weight: 850; overflow-wrap: anywhere; }

.footer { padding: 28px 0; color: #d6ccc3; background: #100d0d; }
.footer .w { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer a { color: white; }

@media (max-width: 900px) {
  .heroGrid, .head, .contact, .profile-layout { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: 1fr; }
  .heroGrid { gap: 42px; }
  .photo { max-width: 480px; }
  .head { gap: 16px; }
  .profile-layout .portrait-card { position: static; max-width: 460px; }
}

@media (max-width: 650px) {
  .w { width: min(calc(100% - 28px), var(--max)); }
  .nav { align-items: flex-start; padding: 14px 0; }
  .links { gap: 8px 15px; }
  .links a:nth-child(-n+2) { display: none; }
  .hero, section { padding: 62px 0; }
  .grid2, .grid4 { grid-template-columns: 1fr; }
  .project { min-height: auto; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .footer .w { display: block; }
  .footer a { display: inline-block; margin-top: 12px; }
  .registry, .registry tbody, .registry tr, .registry th, .registry td { display: block; }
  .registry tr { padding: 15px 18px; border-bottom: 1px solid var(--line); }
  .registry th, .registry td { width: auto; padding: 2px 0; border: 0; }
}
