@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --black: #171614;
  --white: #f3eee4;
  --gray: #756f65;
  --line: #d6cfc2;
  --accent: #8a5a3b;
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}

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


/* Header */

.site-header {
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  color: var(--gray);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--black);
}


/* Home Hero */

.hero {
  width: min(var(--max-width), calc(100% - 64px));
  min-height: 720px;
  margin: auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1050px;
  margin-top: 28px;

  font-size: clamp(26px, 4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-text {
  max-width: 600px;
  margin-top: 42px;

  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
}

.hero-links {
  display: flex;
  gap: 36px;
  margin-top: 48px;
}

.hero-links a,
.cta a {
  border-bottom: 1px solid var(--gray);
  padding-bottom: 7px;

  font-family: "DM Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-links span,
.cta span {
  color: var(--accent);
  margin-left: 12px;
}


/* Internal Page Hero */

.page-hero {
  width: min(var(--max-width), calc(100% - 64px));
  min-height: 650px;
  margin: auto;
  padding: 120px 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 1050px;
  margin-top: 30px;

  font-size: clamp(26px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.page-hero h1 span {
  color: var(--gray);
}

.page-hero > p {
  max-width: 620px;
  margin-top: 45px;

  color: var(--gray);
  font-size: 18px;
  line-height: 1.7;
}


/* Introduction */

.intro {
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  padding: 110px 0;

  border-bottom: 1px solid var(--line);
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;

  margin-top: 70px;
  background: var(--line);
}

.principles article {
  min-height: 260px;
  padding: 30px;
  background: var(--white);
}

.principles span,
.feature-number {
  color: var(--gray);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.principles h3 {
  margin-top: 70px;
  font-size: 18px;
  font-weight: 500;
}

.principles p {
  max-width: 230px;
  margin-top: 12px;

  color: var(--gray);
  font-size: 14px;
}


/* Large Sections */

.large-section {
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  padding: 150px 0;

  display: grid;
  grid-template-columns: 25% 75%;

  border-bottom: 1px solid var(--line);
}

.section-content {
  max-width: 900px;
}

.section-content h2 {
  max-width: 850px;

  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-content h2 span {
  color: var(--gray);
}

.section-content > p {
  max-width: 620px;
  margin-top: 36px;

  color: var(--gray);
  font-size: 17px;
  line-height: 1.8;
}


/* Feature Cards */

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

  margin-top: 100px;
  background: var(--line);
}

.feature {
  min-height: 310px;
  padding: 30px;
  background: var(--white);
}

.feature h3 {
  margin-top: 75px;

  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.feature p {
  margin-top: 16px;
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}


/* Research */

.research-item {
  padding: 55px 0;
  border-bottom: 1px solid var(--line);
}

.research-item:first-child {
  padding-top: 0;
}

.research-item:last-child {
  border-bottom: 0;
}

.research-item h2 {
  max-width: 800px;
  margin-top: 25px;

  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.research-item p {
  max-width: 620px;
  margin-top: 25px;

  color: var(--gray);
  font-size: 16px;
  line-height: 1.8;
}


/* CTA */

.cta {
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  padding: 150px 0;

  text-align: center;
}

.cta p {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}

.cta h2 {
  max-width: 800px;
  margin: 25px auto 45px;

  font-size: clamp(42px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.95;
}

.cta a {
  display: inline-block;
}


/* Footer */

footer {
  width: min(var(--max-width), calc(100% - 64px));
  margin: auto;
  padding: 35px 0;

  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;

  border-top: 1px solid var(--line);
}

footer p {
  color: var(--gray);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

footer p:last-child {
  text-align: right;
}


/* Responsive */

@media (max-width: 800px) {

  .site-header,
  .hero,
  .page-hero,
  .intro,
  .large-section,
  .cta,
  footer {
    width: min(100% - 40px, var(--max-width));
  }

  .site-header {
    height: 75px;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 10px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(48px, 14vw, 80px);
  }

  .hero-text,
  .page-hero > p {
    font-size: 16px;
  }

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

  .large-section {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 100px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 60px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  footer p:last-child {
    text-align: left;
  }
}

@media (max-width: 500px) {

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

  .principles article {
    min-height: 220px;
  }

  .principles h3 {
    margin-top: 50px;
  }

  .hero-links {
    flex-direction: column;
    gap: 22px;
  }

  .section-content h2 {
    font-size: 44px;
  }

  .page-hero {
    min-height: 560px;
    padding: 90px 0;
  }

  .cta {
    padding: 100px 0;
  }
}
