:root {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: #fffdf8;
  --surface-muted: #eee8de;
  --ink: #151515;
  --muted: #66615a;
  --soft: #8b857c;
  --line: #ded6ca;
  --accent: #1f4f46;
  --accent-soft: #dbe8e2;
  --radius: 22px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 79, 70, 0.1), transparent 26rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 42%, #f1ece3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(21, 21, 21, 0.035) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 70%);
}

a {
  color: inherit;
}

.page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.nav,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav {
  min-height: 64px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.nav a,
.button,
.footer a,
.contact-links a {
  text-decoration: none;
}

.wordmark {
  font-weight: 750;
  letter-spacing: -0.03em;
}

.nav nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.hero {
  display: grid;
  justify-items: center;
  padding: clamp(64px, 11vw, 128px) 0 clamp(40px, 7vw, 76px);
  text-align: center;
}

.eyebrow,
.section-kicker,
.work-meta,
.role,
.footer,
.contact-links {
  color: var(--muted);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.architect-title {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 880px;
  font-size: clamp(2.5rem, 6.8vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.085em;
}

h2 {
  max-width: 720px;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

p,
li {
  font-size: 1rem;
  line-height: 1.72;
}

.intro {
  max-width: 660px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}

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

.hero .architect-title {
  max-width: 100%;
  text-wrap: balance;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(31, 79, 70, 0.42);
}

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

.about,
.section,
.contact {
  margin-top: 18px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 24px 70px rgba(40, 34, 24, 0.06);
  backdrop-filter: blur(16px);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 20px;
}

.about-copy > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.profile-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.focus-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.82);
}

.focus-label {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.focus-card p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-card {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  align-items: start;
}

.work-card.current {
  border-color: rgba(31, 79, 70, 0.28);
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.work-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-row: 1 / span 3;
  font-size: 0.9rem;
  font-weight: 700;
}

.work-card h3,
.work-card .role,
.work-card .project-list {
  grid-column: 2;
}

.role {
  margin-top: 8px;
  font-weight: 700;
}

.project-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.project-list li + li {
  margin-top: 6px;
}

.compact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1.25fr);
  gap: clamp(24px, 5vw, 72px);
}

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

.skill-cloud li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.2;
}

.contact {
  background: var(--ink);
  color: white;
}

.contact .section-kicker,
.contact .contact-links {
  color: rgba(255, 255, 255, 0.68);
}

.contact h2 {
  max-width: 820px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 24px;
}

.contact-links a {
  color: white;
  font-weight: 750;
}

.footer {
  padding: 28px 0 0;
  font-size: 0.92rem;
}

@media (max-width: 920px) {
  .work-card {
    grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
  }

  .about,
  .compact,
  .work-card {
    grid-template-columns: 1fr;
  }

  .work-card {
    gap: 12px;
  }

  .work-meta {
    grid-row: auto;
  }

  .work-card h3,
  .work-card .role,
  .work-card .project-list {
    grid-column: auto;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .profile-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page {
    width: min(calc(100% - 22px), var(--max));
  }

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

  h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .about,
  .section,
  .contact {
    padding: 22px;
  }

  .work-card {
    padding: 18px;
  }
}
