/* The host's own small site: the landing page at / and the /about/ pages.
   Served by SWAG straight from deploy/site (mounted read-only), so a
   `git pull` on the server is the whole deploy. */

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #5c5c58;
  --line: #deded9;
  --accent: #1f5f8b;
  --accent-soft: #e6eff6;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151615;
    --surface: #1e201f;
    --text: #ebebe8;
    --muted: #a6a6a0;
    --line: #333634;
    --accent: #7db7e0;
    --accent-soft: #1d2c37;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 54rem;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 .5rem; }
h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
p, li { max-width: 42rem; }
ul, ol { padding-left: 1.3rem; }
li + li { margin-top: .3rem; }

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.5rem; }

.who {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
  margin: 0 0 2.2rem;
  color: var(--muted);
}
.who strong { color: var(--text); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.3rem 1.1rem;
  display: flex;
  flex-direction: column;
}
.card p { color: var(--muted); margin: 0 0 1rem; flex: 1; }
.card .tag { font-size: .85rem; color: var(--muted); margin: -.2rem 0 .7rem; }

.links { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--accent);
}
.btn.primary { background: var(--accent); color: var(--surface); }
.btn.secondary { color: var(--accent); background: transparent; }
.btn:hover { background: var(--accent-soft); color: var(--accent); }

.back { display: inline-block; margin-bottom: 1.5rem; text-decoration: none; }

.note {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: .8rem 1rem;
  max-width: 42rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
