:root {
  --paper: #f6f0ea;
  --paper-deep: #efe6dc;
  --card: #fbf7f3;
  --ink: #2a221e;
  --muted: #5c524c;
  --line: #e4d8ce;
  --rose: #b57a7a;
  --rose-deep: #8c5a5a;
  --blush: #e8d5d1;
  --gold: #c4a574;
  --shadow: 0 18px 50px rgba(42, 34, 30, 0.07);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 92% -8%, rgba(232, 213, 209, 0.7), transparent 58%),
    radial-gradient(700px 420px at -10% 108%, rgba(221, 212, 200, 0.55), transparent 60%),
    var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23b57a7a' stroke-width='0.6' opacity='0.18'%3E%3Cpath d='M90 22c8 18 6 32 0 48-6-16-8-30 0-48z'/%3E%3Cpath d='M90 28c14 10 24 14 38 16-14 4-26 2-38-6 12 8 24 10 38 6-14-2-24-6-38-16z'/%3E%3Cpath d='M90 28c-14 10-24 14-38 16 14 4 26 2 38-6-12 8-24 10-38 6 14-2 24-6 38-16z'/%3E%3C/g%3E%3C/svg%3E");
}

img {
  max-width: 100%;
}

a {
  color: var(--rose-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.monogram {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--rose);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rose-deep);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--rose);
  color: var(--rose-deep);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  padding: 5.5rem 0 4.2rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: end;
}

.hero > *,
.about-grid > *,
.work-grid > *,
.contact-panel > *,
.role,
.work-card {
  min-width: 0;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.1rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
}

h1 .lastname {
  font-style: inherit;
  font-weight: inherit;
}

.lede {
  margin: 1.4rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 300;
  overflow-wrap: break-word;
}

.hero-aside {
  padding-bottom: 0.4rem;
}

.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.3rem;
  box-shadow: var(--shadow);
}

.aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.aside-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.gold-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.6rem;
}

section {
  padding: 1.2rem 0 3.4rem;
}

.section-label {
  margin: 0 0 0.85rem;
  color: var(--rose-deep);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.about-grid,
.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: color-mix(in srgb, var(--blush) 55%, white);
  color: var(--rose-deep);
  border: 1px solid color-mix(in srgb, var(--rose) 22%, white);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.portrait-panel {
  min-height: 100%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(251, 247, 243, 0.15), rgba(232, 213, 209, 0.62)),
    var(--paper-deep);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.portrait-panel::before {
  content: "";
  position: absolute;
  width: 16rem;
  height: 16rem;
  right: -3.5rem;
  top: -3.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--rose) 35%, transparent);
  pointer-events: none;
}

.portrait-panel::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: 1.2rem;
  top: 1.4rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  pointer-events: none;
}

.portrait-mark {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 999px;
  border: 1px solid var(--rose);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--rose-deep);
  background: var(--card);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.portrait-panel h3,
.portrait-panel p {
  position: relative;
  z-index: 1;
}

.portrait-panel h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}

.portrait-panel p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.role {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--rose);
  border-radius: 20px;
  padding: 1.35rem 1.45rem 1.25rem;
  box-shadow: var(--shadow);
}

.role header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.role h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
}

.when {
  color: var(--rose-deep);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.org {
  margin: 0 0 0.7rem;
  color: var(--ink);
  font-weight: 500;
}

.role p:last-child {
  margin: 0;
  color: var(--muted);
}

.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}

.work-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.contact-panel {
  background: linear-gradient(135deg, #fbf7f3 0%, #f0e4de 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.8rem;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--rose-deep);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-footer {
  padding: 1.2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}

@media (max-width: 860px) {
  .hero,
  .about-grid,
  .work-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.2rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }

  h1 .lastname {
    display: block;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 1.2rem;
    top: 3.6rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: var(--shadow);
    min-width: 10rem;
    z-index: 12;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .menu-toggle,
  .contact-actions .btn-ghost {
    display: none;
  }

  body {
    background: #fff;
  }

  .role,
  .contact-panel,
  .aside-card,
  .work-card,
  .portrait-panel {
    box-shadow: none;
  }
}
