/* Alt blog styles — Inter instead of Libre Baskerville */

:root {
  --text-code: #d4908a;
}

body { font-size: 1rem; padding: 0; color: var(--text-body); }

/* On post pages, the site header is just a quiet back-link */
.site-header { padding-bottom: 0; }
.site-title { color: var(--text-dim); }
.site-title:hover { color: var(--text); }

/* Sidenotes / Gutter notes */
.sidenote {
  float: right;
  clear: right;
  margin-right: -16rem;
  width: 14rem;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-dim);
  font-family: var(--font-body);
}

.sidenote.left {
  float: left;
  clear: left;
  margin-right: 0;
  margin-left: -16rem;
}

.sidenote code {
  font-size: 0.82em;
}

.sidenote strong {
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.65rem;
  display: block;
  margin-bottom: 0.15rem;
  color: var(--accent);
}

@media (max-width: 1150px) {
  .sidenote,
  .sidenote.left {
    float: none;
    clear: both;
    display: block;
    margin: 1.5rem 0;
    margin-right: 0;
    margin-left: 0;
    width: auto;
    padding: 0.75rem 1rem;
    border-left: 1px solid var(--border-accent);
    background: transparent;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
  }

  .sidenote strong {
    font-size: 1rem;
    margin-bottom: 0.15rem;
  }
}

.note {
  display: none;
}

article {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
}

h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text);
  text-align: left;
}

.date {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  text-align: left;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

p { margin-bottom: 1rem; }

strong {
  color: var(--text);
}

hr {
  border: none;
  margin: 3.5rem auto;
  height: 4px;
  width: 4rem;
  background: radial-gradient(circle, var(--border-accent) 1.5px, transparent 1.5px);
  background-size: 10px 4px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-raised);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: var(--text-code);
}

pre {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
}


/* Callout (reusable block for any post) */
.callout {
  margin: 3rem 0;
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.callout strong {
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

@media (max-width: 600px) {
  html { font-size: 15px; }
  h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5rem;
  }
  h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 0.75rem;
  }
  article { padding: 2rem 1rem 4rem; }
}
