@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F7F6F3;
  --ink: #141414;
  --ink-2: #2b2b2b;
  --ink-3: #555;
  --ink-4: #666;
  --muted: #8a8a8a;
  --inactive: #9a9a9a;
  --hair: #E2E0DB;
  --hair-2: #D9D7D1;
  --hair-3: #c9c7c1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'General Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01';
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

/* Header */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px clamp(24px, 6vw, 80px);
  border-bottom: 1px solid var(--hair);
  flex-wrap: wrap;
  gap: 16px;
}
.wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--inactive);
  font-weight: 400;
}
.nav a.active { color: var(--ink); font-weight: 500; }

/* Main */
main { flex: 1; padding: clamp(48px, 9vw, 120px) clamp(24px, 6vw, 80px); }

/* Home */
.home-wrap { max-width: 1200px; margin: 0 auto; }
.hero { max-width: 900px; margin-bottom: clamp(80px, 12vw, 180px); }
.hero h1 {
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.hero p {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink-2);
  max-width: 22ch;
  text-wrap: pretty;
}
.brand-list { border-top: 1px solid var(--hair-2); }
.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(16px, 4vw, 64px);
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--hair-2);
}
.brand-row .name {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.brand-row .desc {
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* About */
.about-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
}
.about-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.about-row .label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.about-row .body {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: pretty;
}
.portfolio-list { list-style: none; margin: 0; padding: 0; }
.portfolio-list li {
  font-size: clamp(17px, 1.7vw, 21px);
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
  line-height: 1.4;
}
.portfolio-list li b { font-weight: 500; }
.portfolio-list li span { color: var(--ink-4); font-weight: 400; }

/* Contacts */
.contacts-wrap { max-width: 760px; margin: 0 auto; }
.contacts-heading {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.35;
}
.contacts-heading .place { color: var(--ink-3); }
.contacts-spacer { height: clamp(40px, 6vw, 64px); }
.contacts-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(12px, 3vw, 32px) clamp(20px, 4vw, 48px);
  font-size: clamp(17px, 1.8vw, 22px);
  align-items: baseline;
}
.contacts-grid .k { color: var(--muted); }
.contacts-grid a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hair-3);
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 28px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Responsive collapse */
@media (max-width: 640px) {
  .brand-row,
  .about-row,
  .contacts-grid { grid-template-columns: 1fr; }
  .brand-row { gap: 4px; }
  .about-row .label { padding-top: 0; }
  .contacts-grid .k { margin-top: 8px; }
}
