/* serabi.de: a calm, light, static page. No webfonts, no external requests,
   no scripts at all — the whole site is HTML and this file. */

:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --text: #1f2430;
  --muted: #5c6470;
  --line: #ded8cd;
  --accent: #7b4b12;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    "DejaVu Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 56rem;
  padding: 2.5rem 1.25rem 3rem;
}

header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

h1 {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0.2rem 0 0.4rem;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
  max-width: 42rem;
}

.langswitch {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ---- project cards ------------------------------------------------ */

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1rem;
}

.card p {
  margin: 0;
}

.card .line {
  color: var(--text);
  flex: 1;
}

.card .meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.card .status {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.05rem 0.55rem;
}

.card .status.live {
  border-color: #cfe0cd;
  color: #35613a;
}

.card .status.wip {
  border-color: #e6dcc6;
  color: #7b5c12;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ---- footer ------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
}

.site-footer .sep {
  padding: 0 0.4em;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
    padding: 1.75rem 1rem 2.5rem;
  }
  h1 {
    font-size: 1.6rem;
  }
}

@media print {
  body {
    background: #fff;
    max-width: none;
  }
  .card {
    break-inside: avoid;
  }
}
