:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --paper: #ffffff;
  --text: #1d2730;
  --muted: #5c6975;
  --line: #d9e0e6;
  --accent: #0f766e;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
}

header, main, footer {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-block;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a, .text-link {
  color: #0f5f59;
  text-decoration: none;
}

nav a:hover, .text-link:hover {
  text-decoration: underline;
}

main {
  padding: 48px 0 64px;
}

.intro {
  max-width: 680px;
}

h1 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  letter-spacing: 0;
}

p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.7;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
}

.meta {
  color: #71808e;
  font-size: 14px;
}

footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: #71808e;
  font-size: 14px;
}

@media (max-width: 620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 30px;
  }
}
