:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #5e625f;
  --line: #d8dbd2;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --accent: #16635b;
  --accent-strong: #0d3f3a;
  --gold: #b1842f;
  --blue: #243f6b;
  --shadow: 0 18px 50px rgba(21, 21, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 245, 239, 0.88);
  border-bottom: 1px solid rgba(216, 219, 210, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

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

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  gap: clamp(32px, 7vw, 90px);
  min-height: calc(100vh - 78px);
  padding: clamp(58px, 8vw, 110px) 0 42px;
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8.3vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.hero-summary {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: var(--accent-strong);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.portrait-wrap {
  margin: 0;
  justify-self: end;
  width: min(100%, 390px);
}

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

.section {
  display: grid;
  grid-template-columns: 0.8fr 1.6fr;
  gap: clamp(28px, 7vw, 80px);
  padding: clamp(58px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
}

.section-tight {
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 98px;
  align-self: start;
}

.strength-grid,
.project-grid,
.skill-grid {
  display: grid;
  gap: 14px;
}

.strength-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strength-item,
.skill-card,
.project-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.strength-item {
  padding: 18px;
  font-weight: 750;
}

.skill-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skill-card {
  padding: 22px;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: clamp(22px, 4vw, 34px);
}

.timeline-meta,
.project-type,
.project-period {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 10px;
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
}

.project-card p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9efe8;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.interview {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: clamp(28px, 6vw, 70px);
  margin: clamp(58px, 8vw, 96px) 0;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--accent-strong);
  border-radius: 8px;
  background: #fdfcf8;
  box-shadow: var(--shadow);
}

.interview p {
  color: var(--muted);
}

.ask-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.ask-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea:focus {
  outline: 3px solid rgba(22, 99, 91, 0.18);
  border-color: var(--accent);
}

.answer {
  display: block;
  min-height: 84px;
  margin-top: 14px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  background: #fbf7ea;
  color: var(--ink);
  white-space: pre-wrap;
}

.details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.details ul {
  margin-top: 16px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.footer a {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

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

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section,
  .interview,
  .details {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portrait-wrap {
    justify-self: start;
    max-width: 320px;
  }

  .section-heading {
    position: static;
  }

  .project-grid,
  .strength-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: 3.2rem;
  }

  .ask-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }

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