:root {
  --bg: #f7f2ea;
  --surface: #fffefa;
  --surface-soft: #fdfcf9;
  --ink: #161616;
  --muted: #6d685f;
  --line: #d9cfbe;
  --line-soft: #d7d1c4;
  --green: #dff2e5;
  --yellow: #fff3c8;
  --violet: #e9e6ff;
  --rose: #f2dfdf;
  --blue: #ddf1f9;
  --blue-line: #83b3c6;
  --link-blue: #1a73e8;
  --footer-rose: #edcfcf;
  --radius-lg: 30px;
  --radius-md: 24px;
  --content: 1104px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 1200px;
  margin: 0;
  background: var(--footer-rose);
  color: var(--ink);
  font-family: "Instrument Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.home-content {
  width: 100%;
  padding: 64px 168px 86px;
  background: var(--bg);
  border-bottom-right-radius: 32px;
  border-bottom-left-radius: 32px;
}

.home-content > * {
  width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.hero-card {
  display: grid;
  grid-template-columns: 568px 486px;
  column-gap: 28px;
  height: 466px;
  padding-left: 36px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 32px;
  padding: 80.5px 0;
}

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

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 82px;
  font-weight: 400;
  line-height: 92px;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
  line-height: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button-dark {
  background: #000;
  color: #f7f4ea;
}

.button-light {
  min-width: 99px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
}

.hero-image {
  position: relative;
  height: 466px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.section {
  margin-top: 85px;
}

.section > h2 {
  min-height: 64px;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card {
  min-height: 214px;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}

.number-chip,
.project-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
}

.green {
  background: var(--green);
}

.yellow {
  background: var(--yellow);
}

.violet {
  background: var(--violet);
}

.rose {
  background: var(--rose);
}

.info-card h3 {
  margin-bottom: 14px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 28px;
}

.info-card p {
  color: #706c63;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 24px;
}

.projects-grid {
  width: 100%;
  margin-left: 0;
}

.project-card {
  display: flex;
  min-height: 304px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:nth-child(-n + 2) {
  min-height: 331px;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgb(22 22 22 / 8%);
}

.project-chip {
  min-width: 87px;
  background: #fffdfc;
  white-space: nowrap;
}

.project-card h3 {
  max-width: 496px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 34px;
}

.project-card p {
  max-width: 496px;
  margin-top: -12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 22px;
}

.project-card p + p {
  margin-top: -16px;
}

.project-card strong {
  font-weight: 700;
}

.project-more {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  border: 1px solid var(--project-accent);
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-more,
.project-card:focus-visible .project-more {
  background: var(--project-accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.yellow-card {
  --project-accent: #d9cfbe;
  background: var(--yellow);
  border-color: var(--project-accent);
}

.violet-card {
  --project-accent: #b9b5dd;
  background: var(--violet);
  border-color: var(--project-accent);
}

.green-card {
  --project-accent: #9cbda6;
  background: var(--green);
  border-color: var(--project-accent);
}

.mint-card {
  --project-accent: #83b3c6;
  background: var(--blue);
  border-color: var(--project-accent);
}

.contact-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, var(--content));
  justify-content: center;
  margin: 0;
  padding: 36px 168px;
  background: var(--footer-rose);
  border: 0;
  border-radius: 0;
}

.contact-card h2 {
  max-width: 742px;
  margin-bottom: 28px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 400;
  line-height: 0.95;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.contact-grid a {
  display: flex;
  min-width: 258px;
  flex-direction: column;
  gap: 4px;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 28px;
  transition: color 180ms ease;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-grid a:hover,
.contact-grid a:focus-visible {
  color: var(--link-blue);
  text-decoration-line: underline;
}

.contact-grid span {
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}
