:root {
  color-scheme: light;
  --background: #f2f2f7;
  --surface: #ffffff;
  --text: #000000;
  --secondary: #56565c;
  --border: rgba(60, 60, 67, 0.2);
  --accent: #c7f000;
  --accent-text: #536600;
  --warning-background: #fff8d8;
  --warning-border: #d7b800;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
}

a {
  color: var(--accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 2;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--text);
  color: var(--surface);
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
main,
.site-footer {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--accent);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
  text-decoration-thickness: 0.14em;
}

main {
  padding-block: 1rem 3rem;
}

.hero,
.card,
.draft-notice {
  border-radius: 1rem;
  background: var(--surface);
}

.hero {
  margin-bottom: 1rem;
  padding: clamp(1.35rem, 4vw, 2.4rem);
  border-top: 0.45rem solid var(--accent);
}

.hero p:last-child {
  margin-bottom: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 0;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.05rem;
}

p,
li {
  max-width: 68ch;
}

.muted,
.site-footer {
  color: var(--secondary);
}

.draft-notice {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--warning-border);
  background: var(--warning-background);
}

.card {
  margin-top: 1rem;
  padding: clamp(1.15rem, 4vw, 1.75rem);
}

.card > :last-child {
  margin-bottom: 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

.topic-list h2 {
  font-size: 1.05rem;
}

.site-footer {
  padding-block: 0 2rem;
  font-size: 0.85rem;
}

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

  nav ul {
    justify-content: flex-start;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
