:root {
  --paper: #f7f4ee;
  --surface: #fffdf8;
  --ink: #171717;
  --muted: #68645e;
  --soft: #9b9489;
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.2);
  --teal: #0f766e;
  --coral: #d75f4f;
  --blue: #2457a6;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.08);
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.07), transparent 34rem),
    linear-gradient(315deg, rgba(215, 95, 79, 0.08), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 28px;
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 253, 248, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

main,
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 34px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.92;
}

h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 780px;
  margin-bottom: 20px;
  color: #24211e;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.34;
}

.summary {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions,
.links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.links a,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover,
.links a:hover,
.contact-links a:hover {
  background: #ffffff;
  border-color: rgba(23, 23, 23, 0.34);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-meta {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.profile-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.profile-meta .profile-name {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 24px;
  align-items: end;
}

.section-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.interest-grid article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
}

.interest-grid article {
  padding: 24px;
}

.interest-grid p,
.project-body p,
.timeline p,
.contact-section p,
.footer p {
  color: var(--muted);
}

.index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 42%) minmax(0, 1fr);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.project-card:hover {
  border-color: rgba(23, 23, 23, 0.2);
  box-shadow: 0 16px 42px rgba(23, 23, 23, 0.08);
  transform: translateY(-1px);
}

.project-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(36, 87, 166, 0.12), transparent),
    #ede8dc;
}

.project-media.accent {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.13), transparent),
    #f1e4dd;
}

.project-media img {
  width: 100%;
  max-height: 230px;
  border: 1px solid rgba(23, 23, 23, 0.1);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(23, 23, 23, 0.1);
  object-fit: contain;
}

.media-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.project-body {
  padding: 26px;
}

.tag {
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  text-transform: uppercase;
}

.authors {
  font-size: 14px;
}

.links {
  margin-top: 18px;
}

.links a {
  min-height: 34px;
  padding: 7px 12px;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.timeline p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 34px;
  align-items: center;
}

.contact-links {
  justify-content: flex-end;
}

.footer {
  padding-bottom: 44px;
}

.footer p {
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 24px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
  }

  .nav {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  main,
  .footer {
    padding: 0 20px;
  }

  .hero,
  .section-heading.split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 30px;
    min-height: 0;
    padding-top: 32px;
  }

  .profile-panel {
    max-width: 420px;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 210px;
  }

  .project-media img {
    max-height: 260px;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: block;
  }

  .brand {
    display: inline-block;
    margin-bottom: 14px;
  }

  .nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .nav a {
    padding: 7px 9px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 23px;
  }

  .section {
    padding: 54px 0;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
