:root {
  --background: #f4f1e9;
  --foreground: #282824;
  --secondary: #77746b;
  --line: #d8d3c8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--foreground);
}

body {
  margin: 0;
  min-height: 100vh;

  background: var(--background);

  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

.container {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;

  padding-top: 12vh;
  padding-bottom: 60px;
}


/* Introdução */

.intro {
  margin-bottom: 88px;
}

.intro h1 {
  margin: 0;

  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 400;

  line-height: 1;
  letter-spacing: -0.045em;
}

.intro p {
  max-width: 520px;

  margin-top: 24px;
  margin-bottom: 0;

  color: var(--secondary);

  font-size: 1.15rem;
  line-height: 1.7;
}


/* Grupos */

.group {
  margin-top: 60px;
}

.group h2 {
  margin: 0 0 15px;

  color: var(--secondary);

  font-family:
    system-ui,
    -apple-system,
    sans-serif;

  font-size: 0.72rem;
  font-weight: 500;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* Links */

.links {
  display: flex;
  flex-direction: column;
}

.links a {
  display: grid;

  grid-template-columns:
    minmax(140px, 1fr)
    minmax(220px, 1.3fr);

  align-items: baseline;

  gap: 40px;

  padding: 21px 0;

  color: inherit;

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

  text-decoration: none;

  transition:
    opacity 180ms ease;
}

.links a:last-child {
  border-bottom:
    1px solid
    var(--line);
}

.links a:hover {
  opacity: 0.55;
}

.links .title {
  font-size: 1.35rem;
}

.links .description {
  color: var(--secondary);

  font-family:
    system-ui,
    -apple-system,
    sans-serif;

  font-size: 0.82rem;

  line-height: 1.5;
}


/* Rodapé */

footer {
  margin-top: 110px;

  color: var(--secondary);

  font-family:
    system-ui,
    -apple-system,
    sans-serif;

  font-size: 0.72rem;

  letter-spacing: 0.04em;
}


/* Celular */

@media (max-width: 600px) {

  .container {
    width: calc(100% - 34px);

    padding-top: 9vh;
    padding-bottom: 40px;
  }

  .intro {
    margin-bottom: 65px;
  }

  .intro p {
    font-size: 1.05rem;
  }

  .group {
    margin-top: 50px;
  }

  .links a {
    display: block;

    padding: 18px 0;
  }

  .links .title {
    display: block;
  }

  .links .description {
    display: block;

    margin-top: 6px;
  }

  footer {
    margin-top: 80px;
  }
}
