:root {
  --bg: #f5f1eb;
  --paper: #fffdfb;
  --ink: #1f1f22;
  --muted: #5e5a57;
  --line: #ddd3c7;
  --accent: #2f4f50;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header,
.page-shell,
footer {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
}

.brand {
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

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

.page-shell {
  padding: 28px 0 60px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

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

h1, h2, h3 {
  margin: 0 0 0.4em;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 700;
}

h1 {
  max-width: 700px;
  font-size: clamp(3rem, 6vw, 5.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.lede {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

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

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.quick-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.8rem;
  letter-spacing: -0.06em;
}

.portrait-card {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.portrait-circle {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 18px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: var(--accent);
  color: white;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.card-grid,
.showcase-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.showcase-card,
.feature-callout,
.contact-card,
.resume {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.card {
  min-height: 220px;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card p,
.showcase-card p,
.resume p,
.resume li,
label,
.contact-links a,
.contact-card p {
  color: var(--muted);
}

.showcase-wrapper {
  grid-template-columns: 0.9fr 1.1fr;
  margin-top: 30px;
}

.feature-callout ul,
.resume ul {
  margin: 12px 0 0;
  padding-left: 1.1rem;
}

.visual-block {
  min-height: 180px;
  margin-top: 20px;
  border-radius: 16px;
  background: rgba(47, 79, 80, 0.08);
}

.resume {
  max-width: 820px;
}

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

.section:first-child { padding-top: 0; }
.section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  margin-bottom: 10px;
  font-size: 1.4rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
}

.contact-card form {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  margin-top: 8px;
  background: #f7f3ef;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}

footer {
  padding: 24px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero,
  .showcase-wrapper,
  .contact-layout,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .page-shell,
  footer {
    width: min(100% - 20px, 1100px);
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }
}