/* ---------------------------------------------------------------
   dariobanfi.com — minimal, monochrome, modern
   One stylesheet for the whole site.
---------------------------------------------------------------- */

:root {
  --bg:      #ffffff;
  --fg:      #1a1a1a;
  --muted:   #8a8a8a;
  --line:    #ececec;
  --link:    #1a1a1a;
  --accent:  #000000;
  --maxw:    680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #0e0e0e;
    --fg:    #e8e8e8;
    --muted: #7a7a7a;
    --line:  #242424;
    --link:  #e8e8e8;
    --accent:#ffffff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 20px 96px;
}

/* --- header ---------------------------------------------------- */

header.site {
  margin-bottom: 24px;
}

header.site a.brand {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--fg);
}

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

footer.site {
  margin-top: 64px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
}

footer.site a {
  display: inline-flex;
  color: var(--muted);
}

footer.site a:hover { color: var(--fg); opacity: 1; }

/* --- intro (home) ---------------------------------------------- */

.intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 36px;
}

/* --- links ----------------------------------------------------- */

a { color: var(--link); }
a:hover { opacity: 0.7; }

/* --- post list (home) ------------------------------------------ */

ul.posts {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.posts li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
}

ul.posts li time {
  flex: 0 0 auto;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  width: 88px;
}

ul.posts li a {
  text-decoration: none;
  color: var(--fg);
}

ul.posts li a:hover { text-decoration: underline; }

/* --- article --------------------------------------------------- */

article h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 6px;
}

article .meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}

article p { margin: 0 0 18px; }

article h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 40px 0 12px;
}

article img {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0;
  border-radius: 2px;
}

article figure { margin: 32px 0; }
article figure img { margin: 0; }
article figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}

article blockquote {
  margin: 24px 0;
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: var(--muted);
}

article pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

article :not(pre) > code {
  background: var(--line);
  padding: 1px 5px;
  border-radius: 3px;
}

article hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 24px 0;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
}
