:root {
  --paper: #f5f3ef;
  --ink: #171717;
  --muted: #68645f;
  --line: #d8d4ce;
  --pink: #d7839f;
  --pink-soft: #f1dce4;
  --red: #c83b3b;
  --green: #378b61;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  width: min(calc(100% - 48px), var(--content));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wordmark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-navigation > a {
  color: #474440;
  text-decoration: none;
  font-size: 0.83rem;
}

.site-navigation > a:not(.cv-request):hover {
  color: var(--ink);
}

.site-navigation .cv-request {
  padding: 11px 15px;
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background 150ms ease, color 150ms ease;
}

.site-navigation .cv-request:hover {
  color: var(--paper);
  background: var(--ink);
}

.nav-trigger {
  display: none;
  padding: 8px 0;
  color: var(--ink);
  border: 0;
  background: none;
  font: inherit;
}

.nav-trigger i {
  display: inline-block;
  width: 17px;
  height: 1px;
  margin-left: 8px;
  vertical-align: middle;
  background: currentColor;
}

.home-intro {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 102px 0 78px;
  display: grid;
  grid-template-columns: 1px minmax(0, 1fr) 270px;
  gap: 48px;
}

.intro-rule {
  width: 1px;
  background: var(--line);
}

.page-kicker,
.small-label,
.entry-date,
.entry-count,
.project-topline,
.achievement-year {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.intro-copy h1,
.page-heading h1 {
  margin: 19px 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 10vw, 8.6rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.intro-statement {
  max-width: 750px;
  margin: 0;
  color: #4f4b47;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  line-height: 1.5;
}

.availability-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.status-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 59, 59, 0.08);
}

.status-light--busy {
  background: var(--red);
}

.status-light--open {
  background: var(--green);
}

.availability-label {
  font-size: 0.9rem;
  font-weight: 700;
}

.availability-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.linkedin-link {
  width: fit-content;
  margin-top: 23px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.linkedin-link:hover .external-arrow {
  transform: translate(2px, -2px);
}

.linkedin-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--pink);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
}

.external-arrow {
  transition: transform 150ms ease;
}

.intro-meta {
  margin-top: 34px;
  padding-top: 25px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  border-top: 1px solid var(--line);
}

.intro-meta > div + div {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.intro-meta p:last-child {
  max-width: 320px;
  margin: 16px 0 0;
  color: #4f4b47;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.55;
}

.profile-note {
  align-self: end;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

.profile-note .small-label {
  margin-bottom: 17px;
  color: var(--pink);
}

.profile-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.7;
}

.inner-page {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 88px 0 110px;
}

.page-heading {
  max-width: 880px;
  padding-bottom: 70px;
}

.page-heading h1 {
  font-size: clamp(3.6rem, 7vw, 6.7rem);
}

.page-heading > p:last-child {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
}

.experience-list {
  border-top: 1px solid var(--ink);
}

.experience-entry {
  display: grid;
  grid-template-columns: 58px minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: 30px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.experience-entry h2,
.project-card h2,
.achievement-entry h2 {
  margin: 9px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.entry-company {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry-summary {
  margin: 0;
  color: #57524d;
  line-height: 1.75;
}

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

.project-card {
  min-height: 390px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.18);
}

.project-topline {
  display: flex;
  justify-content: space-between;
}

.project-card h2 {
  max-width: 470px;
  margin-top: 68px;
  font-size: 2.2rem;
}

.project-description {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.7;
}

.skill-tags {
  margin-top: auto;
  padding-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  padding: 7px 10px;
  color: #5b5550;
  background: var(--pink-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-link {
  margin-top: 24px;
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.achievement-list {
  border-top: 1px solid var(--ink);
}

.achievement-entry {
  display: grid;
  grid-template-columns: 90px minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.achievement-entry h2 {
  margin-top: 8px;
}

.achievement-entry > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 29px 0 35px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
  }

  .nav-trigger {
    display: block;
    cursor: pointer;
  }

  .site-navigation {
    position: absolute;
    z-index: 10;
    top: 72px;
    left: 0;
    right: 0;
    padding: 22px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
  }

  .site-navigation.is-open {
    display: flex;
  }

  .home-intro {
    grid-template-columns: 1px minmax(0, 1fr);
  }

  .profile-note {
    grid-column: 2;
    max-width: 470px;
    margin-top: 12px;
  }

  .experience-entry,
  .achievement-entry {
    grid-template-columns: 52px 1fr;
  }

  .experience-entry .entry-summary,
  .achievement-entry > p:last-child {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .site-header,
  .home-intro,
  .inner-page,
  .site-footer {
    width: min(calc(100% - 30px), var(--content));
  }

  .home-intro {
    padding: 70px 0 58px;
    gap: 22px;
  }

  .intro-copy h1 {
    font-size: clamp(4rem, 22vw, 6rem);
  }

  .intro-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .intro-meta > div + div {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .experience-entry,
  .achievement-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .experience-entry .entry-summary,
  .achievement-entry > p:last-child {
    grid-column: 1;
  }

  .entry-count {
    color: var(--pink);
  }

  .site-footer {
    gap: 12px;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}