/* ---------------------------------------------------------------
   the bleeper — type-led, monochrome, quiet.
   Display: Cormorant Garamond   Body: EB Garamond
------------------------------------------------------------------ */

:root {
  --bg: #0b0b0c;        /* near-black, a touch warm */
  --ink: #ece9e1;       /* warm off-white (softer than pure #fff) */
  --muted: #8a877f;     /* dates, nav, captions */
  --faint: #56544e;     /* footer, underlines at rest */
  --rule: #25252a;      /* hairline dividers */
  --measure: 34rem;     /* comfortable reading width */

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  font-size: clamp(17px, 0.6vw + 14px, 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* --- masthead ------------------------------------------------- */
.site-head {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.65rem;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 1.4rem; }

.site-nav a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.site-nav a:hover { color: var(--ink); border-color: var(--rule); }

/* --- main column ---------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  flex: 1 0 auto;
}

/* --- home intro ----------------------------------------------- */
.intro { margin: 1rem 0 3.5rem; }
.tagline {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.4;
  color: var(--muted);
}

/* --- post / theme listings ------------------------------------ */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-item + .post-item { border-top: 1px solid var(--rule); }
.post-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.15rem 0;
  transition: opacity 0.25s ease;
}
.post-item a:hover { opacity: 0.58; }
.post-item-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
}
.post-item-meta {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

/* --- page titles + theme index -------------------------------- */
.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.3rem;
  margin: 0 0 2rem;
}
.theme-index { list-style: none; margin: 0; padding: 0; }
.theme-index li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.theme-index a { font-family: var(--display); font-size: 1.45rem; }
.theme-index a:hover { opacity: 0.58; }
.theme-index .count { color: var(--muted); font-size: 0.78rem; }

/* --- single post ---------------------------------------------- */
.post-head { margin-bottom: 2.6rem; }
.post-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.7rem;
  line-height: 1.12;
  margin: 0 0 0.85rem;
}
.post-meta {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.post-meta a { color: var(--muted); transition: color 0.25s ease; }
.post-meta a:hover { color: var(--ink); }
.post-meta .dot { opacity: 0.5; }

.post-body { font-size: 1.08rem; }
.post-body > p:first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.5rem; }
.post-body em { font-style: italic; }
.post-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
  transition: text-decoration-color 0.25s ease;
}
.post-body a:hover { text-decoration-color: var(--ink); }
.post-body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 2.6rem 0 1rem;
}
.post-body blockquote {
  margin: 2rem 0;
  padding-left: 1.3rem;
  border-left: 1px solid var(--rule);
  font-style: italic;
  color: var(--muted);
}
.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2.6rem auto;
}
.post-body hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.6rem 0;
}

/* --- post navigation ------------------------------------------ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.post-nav a { color: var(--muted); transition: color 0.25s ease; }
.post-nav a:hover { color: var(--ink); }
.post-nav .nav-next { margin-left: auto; text-align: right; }

/* --- footer --------------------------------------------------- */
.site-foot {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.site-foot p { margin: 0; }

/* --- a single, gentle load fade ------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .wrap { animation: rise 0.8s ease both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
  }
}

/* --- focus visible for keyboard users ------------------------- */
a:focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}
