/* ------------------------------------------------------------------
   Marek Mahdal — site styles. Plain CSS, no build step.
   ------------------------------------------------------------------ */

:root {
  --bg: #fbfaf7;
  --text: #1c1b18;
  --text-muted: #5f5c55;
  --accent: #0f4c5c;
  --rule: #e4e1da;
  --font-sans: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161a;
    --text: #ebe9e3;
    --text-muted: #a4a19a;
    --accent: #7fc6d4;
    --rule: #2b2e36;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.05vw + 12px, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* One-pager ----------------------------------------------------- */

.card-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 96px) var(--gutter);
}

.portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.card-page h1 {
  margin: 28px 0 20px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw + 0.8rem, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  font-size: 1.05rem;
}

/* Prose pages (privacy) ----------------------------------------- */

.prose {
  width: min(100% - 2 * var(--gutter), 720px);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) 0 48px;
}

.prose h1 {
  margin: 8px 0 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 3vw + 0.8rem, 2.6rem);
  line-height: 1.15;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }

.eyebrow {
  margin: 0;
  font-size: 0.9rem;
}
.eyebrow a { color: var(--text-muted); text-decoration: none; }
.eyebrow a:hover { color: var(--text); }

.meta { margin: 0 0 24px; color: var(--text-muted); font-size: 0.9rem; }

/* Footer -------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--rule);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--text-muted); }
