/* ---------- design tokens ---------- */
:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e6e6e6;
  --accent: #4a6b56;
  --accent-hover: #345140;
  --max-width: 720px;
  --pad-x: 1.5rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #ececec;
    --muted: #a0a0a0;
    --rule: #2a2a2a;
    --accent: #88b39a;
    --accent-hover: #b5d4c2;
  }
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-hover);
  border-bottom-color: currentColor;
}

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

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-top: 0;
}

h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
}

p, ul, ol {
  margin: 0 0 1.1rem;
}

ul, ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.4rem;
}

strong {
  font-weight: 600;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", "Roboto Mono", monospace;
  font-size: 0.9em;
  background: var(--rule);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

/* ---------- layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

main {
  padding: 2rem 0 4rem;
}

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  border-bottom: none;
}

.brand:hover {
  color: var(--accent);
  border-bottom: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  border-bottom: none;
}

.site-nav a:hover {
  color: var(--accent);
  border-bottom: none;
}

/* ---------- hero ---------- */
.hero {
  padding: 3rem 0 1rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  border-bottom: none;
}

.footer-links a:hover {
  color: var(--accent);
  border-bottom: none;
}

.footer-address {
  line-height: 1.5;
}

.footer-address div {
  font-size: 0.85rem;
}

/* ---------- utility ---------- */
.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.button-link {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: none;
}

.button-link:hover {
  background: var(--accent-hover);
  color: #fff;
  border-bottom: none;
}

@media (prefers-color-scheme: dark) {
  .button-link {
    color: #111;
  }
  .button-link:hover {
    color: #111;
  }
}

.app-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.app-card h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.app-card h3 a {
  color: var(--fg);
  border-bottom: none;
}

.app-card h3 a:hover {
  color: var(--accent);
  border-bottom: none;
}

.app-status {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- responsive ---------- */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  .hero {
    padding: 2rem 0 0.5rem;
  }
  .tagline {
    font-size: 1.05rem;
  }
  .site-header .container {
    gap: 0.75rem;
  }
  .site-nav {
    gap: 1rem;
  }
}
