@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

/* minimal */
/* body {font-family: Arial, Helvetica, sans-serif;} */
/* h1 {display:none;} */
/* h1.title {font-family: Arial, Helvetica, sans-serif; display:block;} */

.date {font-size: 80%}
a.--PREV {display: none;}
a.--NEXT {display: none;}

:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1c1e21;
  --muted: #686d76;
  --accent: #b84a27;
  --border: #dfd9cc;
  --max-width: 120ch;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: var(--max-width);
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header & Title */
#title-block-header {
  margin-bottom: 0.25rem;
}

#title-block-header h1.title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Hide duplicate H1 following title block if your Markdown also repeats the title */
#title-block-header + h1 {
  display: none;
}

/* Date line (first italic paragraph after heading) */
h1 + p > em:only-child {
  display: inline-block;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Body paragraphs & images */
p {
  margin: 0 0 1.35rem;
}

p img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 1.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
}

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

a:hover {
  text-decoration-thickness: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  /*margin: 2.25rem 0;*/
}

/* Prev / Next post navigation */
.nav.prev,
.nav.next,
.nav.home {
  display: inline-block;
  width: 33%;
  font-size: 0.95rem;
  font-weight: 500;
  vertical-align: top;
}

.nav.home, .header.home, .footer.home {
  text-align: center;
}
.nav.next {
  text-align: right;
}

.nav.prev a::before {
  content: "← ";
}

.nav.next a::after {
  content: " →";
}

@media (max-width: 540px) {
  .nav.prev,
  .nav.home,
  .nav.next {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 0.6rem;
  }
}

/* Copyright */
.copy {
  font-size: 0.85rem;
  color: var(--muted);
}

code {
    font-weight: 800;
}