:root {
  --primary: #2e7d5b;
  --on-primary: #ffffff;
  --accent: #f28c28;
  --surface: #ffffff;
  --background: #f6f7f5;
  --text: #1b1f1d;
  --text-secondary: #5b6660;
  --border: #d5dbd7;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #5fbf8f;
    --on-primary: #0d1f17;
    --accent: #ffa552;
    --surface: #121614;
    --background: #0b0e0c;
    --text: #eef2ef;
    --text-secondary: #a9b3ad;
    --border: #2c332f;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

header, main, footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a { display: inline-block; padding: 0.6rem 0; }

main { padding-top: 1rem; padding-bottom: 2rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 1rem 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.0625rem; margin: 1.25rem 0 0.25rem; }
p, ul, ol { margin: 0.5rem 0 1rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.meta { color: var(--text-secondary); font-size: 0.9375rem; }

.hero {
  padding: 2rem 0 1rem;
  border-bottom: 4px solid var(--accent);
}
.hero h1 { font-size: 2rem; margin-top: 0; }
.hero p { font-size: 1.1875rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.card h2 { margin-top: 0.25rem; }

.badge {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
}
.badge span { color: var(--text-secondary); font-weight: 400; }

.signin { text-align: center; padding-top: 2rem; }
.signin .kerby { display: block; width: 10rem; height: auto; margin: 0 auto 0.5rem; }
.signin h1 { font-size: 1.5rem; }
.signin p { font-size: 1.1875rem; }
.signin [hidden] { display: none; }

.button {
  display: inline-block;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 12px;
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }

footer {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

@media (min-width: 40rem) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2.5rem; }
}
