:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #596274;
  --line: #d9dee8;
  --surface: #ffffff;
  --soft: #f4f6f8;
  --accent: #0b5f59;
  --accent-2: #b85c38;
  --accent-3: #2f6f4e;
  --shadow: 0 24px 70px rgba(31, 41, 55, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(251, 252, 253, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1rem;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent);
}

main {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 3.4rem 0 2.2rem;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: 4.8rem;
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.button:hover,
.button:focus {
  color: var(--accent);
  border-color: var(--accent);
}

.button-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.button-primary:hover,
.button-primary:focus {
  color: #ffffff;
  background: var(--accent-3);
  border-color: var(--accent-3);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 430px);
}

.hero-portrait {
  margin: 0;
}

.hero-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-badge {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-badge img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

.profile-badge strong,
.profile-badge span {
  display: block;
}

.profile-badge strong {
  font-weight: 800;
}

.profile-badge span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  margin-top: 2rem;
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-header {
  max-width: 720px;
  margin-bottom: 1.4rem;
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 8.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

dt,
time {
  color: var(--accent);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  min-height: 205px;
  padding: 1.2rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
}

.card-icon-rust {
  background: var(--accent-2);
}

.card-icon-green {
  background: var(--accent-3);
}

.card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.card p,
.paper p {
  margin-bottom: 0;
  color: var(--muted);
}

.paper-list {
  display: grid;
  gap: 0.85rem;
}

.paper,
.link-card {
  padding: 1rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.paper-tag {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.paper h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.paper h3 a:hover,
.paper h3 a:focus,
.link-card:hover strong,
.link-card:focus strong {
  color: var(--accent);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-card strong,
.link-card span {
  display: block;
}

.link-card strong {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.link-card span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .profile {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    justify-self: start;
  }

  .cards,
  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  main,
  .site-footer {
    width: min(100% - 1.25rem, var(--max));
  }

  .site-header {
    padding: 0.85rem 0.75rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lead {
    font-size: 1.05rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .section {
    padding: 1.2rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}
