:root {
  --background: #f4f0e8;
  --paper: #fffdf8;
  --text: #25231f;
  --muted: #686258;
  --accent: #8c3b2b;
  --line: #d8d0c2;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.header {
  max-width: var(--max-width);
  margin: auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

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

nav a {
  text-decoration: none;
}

.hero,
.section,
footer {
  max-width: var(--max-width);
  margin: auto;
  padding: 80px 24px;
}

.hero {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.surtitle {
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 15px 0;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.introduction {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.25rem;
}

.button {
  width: fit-content;
  margin-top: 22px;
  padding: 13px 22px;
  color: white;
  background: var(--accent);
  text-decoration: none;
}

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

.card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card span {
  color: var(--accent);
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
}

.card h3 {
  font-size: 1.6rem;
}

.card p {
  color: var(--muted);
}

.card a {
  color: var(--accent);
  font-weight: 700;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 750px) {
  .header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .section {
    padding-top: 55px;
    padding-bottom: 55px;
  }
}
