:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --ink: #171a1f;
  --muted: #67706d;
  --line: #d8d5cb;
  --accent: #0b6e69;
  --accent-strong: #064944;
  --accent-soft: #d7ede8;
  --cobalt: #284a78;
  --gold: #b36b2c;
  --clay: #b75d48;
  --shadow: 0 24px 70px rgba(28, 35, 34, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 26, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 26, 31, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.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, 72px);
  border-bottom: 1px solid rgba(217, 221, 212, 0.86);
  background: rgba(244, 241, 234, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

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

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

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: 72px 0 56px;
}

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

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

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 12vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.intro {
  max-width: 660px;
  color: #4d5754;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button,
.contact-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.66);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.portrait-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(216, 213, 203, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.portrait-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 34%;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(28, 35, 34, 0.12);
}

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

.summary {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.summary p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.18rem;
}

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

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

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 52px rgba(28, 35, 34, 0.08);
}

.featured-project h3 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
  margin-bottom: 14px;
}

.featured-project p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-points {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 24px;
  color: #3d4945;
}

.project-points li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 10px;
  height: 2px;
  background: var(--clay);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 7vw, 96px);
}

.compact-list {
  display: grid;
  gap: 20px;
}

.section-subtitle {
  margin-top: 36px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-list li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.contact {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.contact-note {
  max-width: 420px;
  color: var(--muted);
  font-weight: 700;
}

.contact-note p {
  margin: 0;
}

.contact-note a {
  color: var(--accent-strong);
  text-decoration: none;
}

.contact-note a:hover,
.contact-note a:focus-visible {
  text-decoration: underline;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

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

  .hero,
  .summary,
  .two-column,
  .contact,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .contact {
    display: grid;
  }
}

@media (max-width: 520px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.86rem;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .profile-panel,
  .portrait-panel,
  .featured-project {
    padding: 20px;
  }
}
