/* T79: the stylesheet for generated content pages (/changelog, /about, the
   blog). Plain CSS on purpose — Tailwind v4 scans source files for classes,
   and these pages are written after the build, so utility classes in them
   would never be generated. The tokens are copied from src/index.css's
   @theme block so the two halves of the site match.

   T102 (2026-09-10): the partner's review, signed off on the mock-up in
   docs/design/t102/ — cream page, the page body in a sand card, every
   release / post / about paragraph in a lighter sand card inside it, the
   deep green for headings and links, and the table rule (with the cat and
   its things on it) where the ink rules were. */

:root {
  --ink: #3a4540;
  --muted: #4f5a51;
  --accent: #556b5a;
  --accent-soft: #e4ebdf;
  --page: #fff7ea;
  --card: #ffffff;
  --sand: #e6d9c7;
  --sand-soft: #f3eadc;
  --rust: #a85c37;
  --display: Georgia, "Iowan Old Style", serif;
  /* T100: the sprite (CatSprite/CatScenes/TableRule) draws with the landing's
     token names. Without these the rust handwriting falls back to black.
     contentArt.test.ts checks every var(--x) the sprite sources use is here. */
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-accent: var(--accent);
  --color-accent-soft: var(--accent-soft);
  --color-page: var(--page);
  --color-card: var(--card);
  --color-rust: var(--rust);
  --font-display: var(--display);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.masthead {
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.masthead > a {
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
}

.masthead nav a {
  margin-left: 1rem;
  font-size: 0.9rem;
}

/* A post's masthead scene (the about and blog pages have none since T102). */
.scene {
  margin: 0 0 1rem;
}

.scene svg {
  height: 10.85rem !important;
  width: auto !important;
  margin: 0 auto;
}

/* The table rule: the seam above the card and the one before the footer. */
.rule {
  color: var(--accent);
  margin: 0;
}

/* T108: the way back, above the title. */
.back {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.dateline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.dateline svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* The page body: one sand card, the rule's line meeting its top edge. */
.card {
  background: var(--sand);
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
  margin-top: -2px;
}

/* A card inside the card: a release, a month, a post, an about paragraph. */
.entry,
.posts li {
  background: var(--sand-soft);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
}

.entry > p,
.entry ul {
  margin: 0;
}

.entry li:last-child {
  margin-bottom: 0;
}

.entry h2,
.entry h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts li a {
  font-family: var(--display);
  font-size: 1.25rem;
}

.posts time {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.posts li p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.content h1 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--accent);
}

.content h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: normal;
  margin: 1.5rem 0 0.75rem;
  color: var(--accent);
}

.content h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}

.content p,
.content li {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.content p strong,
.content li strong {
  color: var(--ink);
}

.content ul {
  padding-left: 1.15rem;
}

.content li {
  margin-bottom: 0.6rem;
}

.content code {
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}

.content img {
  display: block;
  max-width: min(100%, 22rem);
  height: auto;
  margin: 1.25rem auto 1.5rem;
  border: 1px solid var(--accent-soft);
  border-radius: 12px;
}

.content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-soft);
  color: var(--muted);
}

.content hr {
  border: 0;
  border-top: 1px solid var(--accent-soft);
  margin: 2.5rem 0;
}

.foot {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
