:root {
  --paper: #f7f5ef;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #5d625f;
  --line: #ded8cd;
  --pine: #2f6f5e;
  --clay: #b45f3a;
  --steel: #476a8a;
  --gold: #b98b2d;
  --shadow: 0 18px 44px rgba(23, 23, 23, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px 40px;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links,
.intro-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  min-width: 76px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: #ebe6db;
  outline: none;
}

main {
  overflow: hidden;
}

.intro-section,
.strip,
.section,
.contact-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 56px;
  align-items: end;
  min-height: calc(100vh - 74px);
  padding: 72px 0 42px;
}

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

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin: 0;
  font-size: 4.25rem;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

.intro-text {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.intro-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.2;
}

.button-primary {
  color: #ffffff;
  background: var(--pine);
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 23, 23, 0.12);
  outline: none;
}

.profile-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: 176px;
  height: 176px;
  border: 8px solid #f0ece2;
  border-radius: 8px;
  object-fit: cover;
}

.profile-panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-panel div {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-panel dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-panel dd {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.strip div {
  min-height: 178px;
  padding: 26px;
  background: var(--surface);
}

.strip span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.strip strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.strip p,
.project-card p,
.skills-grid p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  color: #ffffff;
  background: var(--ink);
  outline: none;
}

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

.project-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  min-height: 304px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #c7bba8;
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-topline span {
  padding: 5px 8px;
  color: var(--ink);
  background: #f1eee6;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-card a {
  width: fit-content;
  color: var(--pine);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.skills-grid div {
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
}

.skills-grid h3 {
  margin-bottom: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 34px;
  padding: 42px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
}

.contact-section .eyebrow {
  color: #d9aa55;
}

.contact-section h2 {
  max-width: 760px;
}

.contact-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.contact-section .button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    padding: 16px 22px;
  }

  .intro-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .profile-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

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

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

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

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

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    flex: 1;
  }

  .intro-section,
  .strip,
  .section,
  .contact-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .intro-text {
    font-size: 1rem;
  }

  .profile-panel,
  .strip,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel img {
    width: 132px;
    height: 132px;
  }

  .section {
    padding: 42px 0;
  }

  .contact-section {
    padding: 28px;
  }

  .site-footer {
    flex-direction: column;
  }
}
