/* The blog's own pages (blog/): a typed case document on the office's dark desk.
   The Mac's Blog folder uses style.css; this is for the standalone pages. */
@font-face {
  font-family: "ChicagoFLF";
  src: url("../fonts/ChicagoFLF.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/CourierPrime-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/CourierPrime-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/CourierPrime-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0d0d0d;
  --paper: #f4f3ee;
  --room: #0b0b0d;
  --dim: #a59f90;
  --head-font: "ChicagoFLF", "Monaco", monospace;
  --type-font: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { background: var(--room); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(120, 140, 110, 0.14), transparent 70%),
    var(--room);
  color: var(--paper);
  font-family: var(--type-font);
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.2rem 16px 0;
  font-family: var(--head-font);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.masthead a { color: var(--dim); text-decoration: none; }
.masthead a:hover, .masthead a:focus-visible { color: var(--paper); }

main { max-width: 46rem; margin: 0 auto; padding: 1rem 16px 3rem; }

.post {
  padding: 1.6rem clamp(1rem, 5vw, 2.6rem) 2.2rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 0 0 0 1px #3a3833, 0 18px 50px rgba(0, 0, 0, 0.6);
  font-size: 1.05rem;
  line-height: 1.6;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 0.4em;
  margin-bottom: 1.1em;
  border-bottom: 3px double var(--ink);
  font-family: var(--head-font);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post h1 {
  margin: 0;
  font-family: var(--head-font);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  line-height: 1.2;
}
.post h2, .post h3 {
  margin: 1.6em 0 0.4em;
  font-family: var(--head-font);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.byline { margin: 0.4em 0 1.4em; font-style: italic; }
.post p { margin: 0.9em 0; }
.post ul, .post ol { margin: 0.8em 0; padding-left: 1.4em; }
.post li { margin: 0.4em 0; }
.post ul li::marker { content: "▸ "; }
.post blockquote {
  margin: 1em 0;
  padding: 0.2em 1em;
  border-left: 4px solid var(--ink);
  background: rgba(13, 13, 13, 0.05);
}
.post hr { margin: 1.8em auto; width: 30%; border: 0; border-top: 3px double var(--ink); }
.post a { color: inherit; text-underline-offset: 0.15em; }
.origin { font-size: 0.9em; font-style: italic; }

.post .index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  margin: 0;
  padding: 0.55em 0;
  border-bottom: 1px dotted var(--ink);
}
.index li::marker { content: ""; }
.index a { font-family: var(--head-font); text-decoration: none; line-height: 1.35; }
.index a:hover, .index a:focus-visible { text-decoration: underline; }
.index time { flex: none; font-size: 0.85em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.pager a { color: var(--dim); text-decoration: none; line-height: 1.4; }
.pager a:hover, .pager a:focus-visible { color: var(--paper); }
.pager span {
  display: block;
  font-family: var(--head-font);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pager .older { grid-column: 2; text-align: right; }

@media (max-width: 520px) {
  .index li { flex-direction: column; gap: 0.1em; }
  .pager { grid-template-columns: 1fr; }
  .pager .older { grid-column: 1; text-align: left; }
}
