:root {
  --bg: #121212;
  --text: #f0f0f0;
  --muted: #9a9a9a;
  --footer: #484848;
  --accent: #8fb9a8;
  --border: #2a2a2a;
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem clamp(1.5rem, 6vw, 4rem);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

h1 {
  margin: 0 0 2.5rem;
  width: 100%;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.divider {
  width: 2rem;
  height: 1px;
  margin: 0 auto 2.5rem;
  background: var(--border);
}

p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: var(--accent);
  outline: none;
}

footer {
  margin-top: 2.5rem;
  font-size: 0.875rem;
}

.site-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 4rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--footer);
}

/* Startsida */

.page-home main {
  max-width: 32rem;
  margin: 0 auto;
}

.page-home main p a {
  border-bottom-color: var(--accent);
}

.page-home h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

@media (max-width: 639px) {
  .page-home h1 {
    font-size: clamp(2.75rem, 12vw, 3.5rem);
  }
}

/* Utbildningssida */

.site-header {
  margin-bottom: 4rem;
}

.brand {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand a {
  color: var(--text);
  border-bottom-color: transparent;
}

.brand a:hover,
.brand a:focus-visible {
  border-bottom-color: var(--muted);
}

.page-course main {
  max-width: 32rem;
  margin: 0 auto;
}

.page-course h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.15;
}

@media (max-width: 639px) {
  .page-course h1 {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
  }
}

.package {
  width: 100%;
  margin: 0.5rem 0 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.package__label {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.package__price {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}
