/* Self-hosted Cabin (SIL Open Font License) — no third-party font CDN, so the
   site phones home to nobody, matching Tally's privacy stance. */
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Cabin-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Cabin-SemiBold.woff2") format("woff2");
}

:root {
  --new: #e31b23;      /* "New" — brand red */
  --repeat: #0a84ff;   /* "Repeat" — brand blue */
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --line: #ececec;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Cabin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

header.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

header.brand img {
  width: 56px;
  height: 56px;
  border-radius: 13px;
}

header.brand .name {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-weight: 600;
  font-size: 22px;
  margin: 40px 0 8px;
}

p { margin: 0 0 16px; }

.lead { font-size: 20px; color: var(--ink); }

.muted { color: var(--muted); }

.tags { display: inline; }
.new { color: var(--new); font-weight: 600; }
.repeat { color: var(--repeat); font-weight: 600; }

a { color: var(--repeat); text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --bg: #0d0d0d;
    --repeat: #4aa3ff;
  }
}
