/* osteonavt.space / bio — shared glass styles (index + article pages).
   Absolute /assets paths so it works from any page depth. */
:root {
  --ink:       #22331b;
  --ink-soft:  #3c5232;
  --accent:    #2f5d23;
  --glass:     rgba(255, 255, 255, 0.42);
  --glass-2:   rgba(255, 255, 255, 0.62);
  --brd:       rgba(255, 255, 255, 0.65);
  --brd-soft:  rgba(255, 255, 255, 0.4);
}
html { -webkit-text-size-adjust: 100%; background-color: #cdcabd; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-image:
    linear-gradient(180deg, rgba(250,248,242,0.48) 0%, rgba(244,239,230,0.58) 55%, rgba(241,236,226,0.64) 100%),
    url('/assets/img/bg.jpg');
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center top;
  background-size: cover, cover;
  background-attachment: scroll, scroll;
}

/* ── page container (article pages) ── */
.wrap { max-width: 40rem; margin: 0 auto; padding: 2.25rem 1.25rem 4rem; }
.art-top { display: flex; justify-content: flex-start; }

/* ── glass primitives ── */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--brd);
  box-shadow: 0 8px 32px -16px rgba(34,51,27,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ── back link (article → home / up) ── */
.backlink {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 500; font-size: .95rem; color: var(--accent);
  padding: .5rem 1rem; border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--brd-soft);
  transition: background .2s ease, transform .15s ease;
}
.backlink:hover { background: rgba(255,255,255,0.62); transform: translateX(-2px); }

/* ── article (reading) ── */
.article {
  border-radius: 1.6rem; padding: 2.2rem 2rem; margin-top: 1.25rem;
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--brd);
  box-shadow: 0 10px 40px -18px rgba(34,51,27,0.4), inset 0 1px 0 rgba(255,255,255,0.55);
}
.article h1 {
  font-weight: 600; font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 1.4rem;
}
.article h2, .article h3, .article h4 {
  font-weight: 600; color: var(--ink); line-height: 1.25;
  margin: 1.8rem 0 .7rem;
}
.article h3 { font-size: 1.3rem; }
.article h4 { font-size: 1.1rem; }
.article p { margin: 0 0 1.05rem; font-size: 1.06rem; line-height: 1.7; color: var(--ink-soft); }
.article strong, .article b { color: var(--ink); font-weight: 600; }
.article em, .article i { font-style: italic; }
.article a {
  color: var(--accent); font-weight: 500;
  text-decoration: underline; text-decoration-color: rgba(47,93,35,0.35);
  text-underline-offset: 3px; transition: text-decoration-color .2s ease;
}
.article a:hover { text-decoration-color: var(--accent); }
.article ul, .article ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.article li { margin: 0 0 .5rem; font-size: 1.06rem; line-height: 1.65; color: var(--ink-soft); }
.article blockquote {
  margin: 1.4rem 0; padding: .9rem 1.2rem;
  border-left: 3px solid rgba(47,93,35,0.4);
  background: rgba(255,255,255,0.32); border-radius: .6rem;
  font-style: italic; color: var(--ink);
}
.article hr { border: none; height: 1px; background: rgba(34,51,27,0.15); margin: 2rem 0; }
.article figure { margin: 1.4rem 0; }
.article img {
  display: block; width: 100%; height: auto; border-radius: 1rem;
  border: 1px solid var(--brd); box-shadow: 0 8px 28px -16px rgba(34,51,27,0.45);
}
.article figcaption { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); text-align: center; }

/* ── inline "down the hierarchy" link cards under an article ── */
.next-links { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
.next-link {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .95rem 1.3rem; border-radius: 1.1rem;
  color: var(--ink); font-weight: 500; text-decoration: none;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--brd);
  box-shadow: 0 8px 28px -18px rgba(34,51,27,0.4), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: background .25s ease, transform .18s ease;
}
.next-link:hover { background: var(--glass-2); transform: translateY(-2px); }
.next-link .arr { color: var(--accent); opacity: .7; }

footer.site-foot { margin-top: 3rem; text-align: center; font-size: .85rem; color: rgba(34,51,27,0.45); }
