*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  line-height: 1.6;
}

header, main, footer {
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--space-page);
}

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


/* tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}


/* titles */
h1, h2 { line-height: 1.2; }

main h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

main h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
}

main p, main ul, main table { margin: 0 0 1rem; }


/* links */
a { text-underline-offset: 0.2em; }

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--color-link);
  outline-offset: 2px;
}

header nav a { text-decoration: none; }

header nav a:hover { text-decoration: underline; }


/* header */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}

header { border-bottom: 1px solid var(--color-border); }


/* footer */
footer {
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.875rem;
}

footer a { color: var(--color-muted); }

footer a:hover { color: var(--color-link); }

footer p { margin-bottom: 0; }

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-page);
}


/* buttons */
.hero { padding-block: 3rem; }

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
}

.hero p:first-of-type { font-size: 1.25rem; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  background: var(--color-text);
  color: var(--color-bg);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { opacity: 0.85; }
