/* stelianmatei.com: one stylesheet for every page. Plain HTML, no build step; GitHub Pages serves it as is. */
:root {
  --bg: #fbfaf7;
  --fg: #1d1d1b;
  --muted: #5f5e58;
  --rule: #e4e1d8;
  --accent: #1f5f8b;
  --card: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --fg: #ecebe6;
    --muted: #a3a29b;
    --rule: #2c2c29;
    --accent: #7db4dc;
    --card: #1c1c1a;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.page {
  max-width: 680px;
  margin: 0 auto;
  padding-block: 56px 72px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

header.site { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
header.site .name { font-family: 'Newsreader', Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--fg); text-decoration: none; }
header.site nav { display: flex; gap: 20px; font-size: 0.95rem; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--fg); }

h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 20px; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 48px 0 12px; }
p { margin: 0 0 18px; }
a { color: var(--accent); text-underline-offset: 3px; }
.lede { font-size: 1.2rem; color: var(--fg); }
.muted { color: var(--muted); }

.label { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 48px 0 12px; }

.card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  margin-bottom: 14px;
}
a.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card .meta { font-size: 0.88rem; margin-top: 12px; }
.card .meta a { color: var(--accent); }
.small { font-size: 0.9rem; margin-top: 18px; }
.card .shot { display: block; margin: -20px -22px 16px; border-bottom: 1px solid var(--rule); border-radius: 10px 10px 0 0; overflow: hidden; aspect-ratio: 16 / 9; max-width: none; background: var(--rule); }
.card .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; max-width: 100%; transition: transform 0.3s ease; }
.card .shot:hover img { transform: scale(1.02); }

ul.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }

ol.posts { list-style: none; padding: 0; margin: 0; }
ol.posts li { padding: 16px 0; border-top: 1px solid var(--rule); }
ol.posts time { display: block; font-size: 0.85rem; color: var(--muted); }

footer.site { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.85rem; color: var(--muted); }
footer.site a { color: var(--muted); }

/* Posts */
article img, article video { max-width: 100%; height: auto; border-radius: 8px; }
article figure { margin: 28px 0; }
article figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
article pre { overflow-x: auto; padding: 14px 16px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; font-size: 0.88rem; }
