.notebook {
  --board: #d8e9df;
  --board-ink: #426659;
  --board-rule: #53816c25;
  --status-bg: #fbf0d7;
  --status-ink: #734e20;
  padding-top: clamp(36px, 5vw, 68px);
}

[data-theme="dark"] .notebook {
  --board: #294039;
  --board-ink: #c2dfcc;
  --board-rule: #abcdb81c;
  --status-bg: #493b31;
  --status-ink: #f0d09e;
}

.folio-label, .index-rule, .entry-meta {
  font: 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.folio-label { display: flex; align-items: center; gap: 9px; }
.folio-label span { color: var(--pink); font-size: 15px; }
.notebook h1 {
  display: block;
  margin: 8px 0;
  font: 500 clamp(44px, 6.7vw, 86px)/1.06 var(--serif);
  letter-spacing: -.06em;
  white-space: normal;
}
.notebook-subtitle { font-size: clamp(16px, 1.6vw, 19px); color: var(--copy); }
.index-rule { display: flex; align-items: center; gap: 14px; margin: 38px 0 14px; }
.index-rule i { flex: 1; height: 1px; background: var(--frame); }
.notebook-spread {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  padding: 10px;
  border: 1px solid var(--frame);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 3px 0 -1px var(--paper), 0 4px 0 -1px var(--frame), 0 8px 18px var(--shadow);
}
.entry-notes { padding: clamp(22px, 3.6vw, 52px); align-self: center; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.entry-number { border-right: 1px solid var(--frame); padding-right: 12px; color: var(--ink); }
.entry-notes h2 {
  margin: 18px 0 12px;
  font: 500 clamp(40px, 4.7vw, 62px)/1.06 var(--serif);
  letter-spacing: -.055em;
}
.entry-notes p { max-width: 39ch; color: var(--copy); line-height: 1.7; }
.release-note {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 26px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--status-bg);
  color: var(--status-ink);
  font: 12px/1.5 var(--mono);
}
.release-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.entry-story { display: inline-block; margin: 8px 0 0 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.specimen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 20px 10px 14px;
  border: 1px solid var(--board-rule);
  border-radius: 6px;
  color: var(--board-ink);
  background-color: var(--board);
  background-image: linear-gradient(var(--board-rule) 1px, transparent 1px), linear-gradient(90deg, var(--board-rule) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: center;
}
.specimen img { display: block; width: min(100%, 408px); height: auto; }
.specimen figcaption { font: 23px/1.2 Caveat, cursive; transform: rotate(-3deg); }
.specimen figcaption span { margin: 0 3px; opacity: .6; }
@media (max-width: 700px) {
  .notebook-spread { grid-template-columns: 1fr; }
  .specimen { grid-row: 1; padding: 10px 8px; }
  .specimen img { width: min(82%, 294px); }
  .specimen figcaption { font-size: 20px; }
  .entry-notes { padding: 24px 14px 18px; }
  .entry-notes h2 { margin-top: 12px; }
  .entry-notes p { max-width: 52ch; }
  .release-note { margin-top: 16px; }
  .index-rule { margin-top: 24px; }
}
