/* textcraft-rts.com copy only. Loaded after blog.css: gives the essay the look of
   "Can LLMs command an army?" (light paper background in every color scheme,
   Georgia headings, sans-serif text, teal accent, and the same masthead). */

:root {
  color-scheme: light;
  --bg: #faf8f1;
  --fg: #142d32;
  --muted: #54686a;
  --rule: #d5ddd4;
  --accent: #17685f;
  --trace-bg: #edf1e9;
  --trace-fg: #1f3a3e;
  --col: 720px;
  --wide: 1040px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #faf8f1;
    --fg: #142d32;
    --muted: #54686a;
    --rule: #d5ddd4;
    --accent: #17685f;
    --trace-bg: #edf1e9;
    --trace-fg: #1f3a3e;
  }
  figure.media.narrow img { border-radius: 4px; }
}

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
}

/* Masthead, as on the intro post */
.masthead {
  max-width: 1200px;
  margin: auto;
  padding: 16px 32px;
  min-height: 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; line-height: 0; text-decoration: none; color: var(--fg); }
.brand svg { display: block; width: 400px; height: auto; overflow: visible; filter: drop-shadow(0 2px 1px #152c3138); }
.brand .brand-version { font: 500 12px/1.2 var(--sans); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.masthead > .masthead-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.masthead > .masthead-links a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid #58767b; border-radius: 3px; background: linear-gradient(165deg, #304a53 0%, #20363f 18%, #101e26 100%); box-shadow: inset 0 1px 0 #a7bfbe55, 0 3px 6px #152c3117; color: #dce8e7; font-size: 10px; font-weight: 650; line-height: 1.2; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.masthead-links a::before { content: ""; position: absolute; top: 4px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: #789392; box-shadow: 0 1px 0 #0e2229; }
.masthead-links a::after { content: ""; position: absolute; bottom: 3px; left: 10px; right: 10px; height: 1px; background: #6a9e8d; opacity: .6; }
.masthead > .masthead-links a:hover { transform: translateY(-2px); border-color: #a8d4c0; box-shadow: inset 0 1px 0 #c8ded577, 0 5px 9px #1c544929; color: #fff; }
.masthead-links a:hover::after, .masthead-links a:focus-visible::after { background: #b3e6cb; opacity: 1; }
.masthead > .masthead-links a:focus-visible { outline: 2px solid #cfb46f; outline-offset: 3px; border-color: #f1d58b; }
.masthead > .masthead-links a:active { transform: translateY(0); }
@media (max-width: 760px) {
  .masthead { min-height: 70px; padding: 12px 20px; }
  .brand svg { width: 230px; }
  .masthead > .masthead-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .masthead > .masthead-links a { padding: 8px 6px; white-space: normal; text-align: center; }
}
@media (max-width: 440px) {
  .brand { gap: 7px; }
  .brand svg { width: clamp(108px, 32vw, 140px); }
  .brand .brand-version { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .masthead > .masthead-links a { transition: none; }
  .masthead > .masthead-links a:hover { transform: none; }
}

/* Title block: eyebrow, Georgia headline, byline */
.post-header { padding: 72px 0 48px; }
.kicker { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .17em; color: var(--accent); }
.post-header h1 { font: normal clamp(42px, 5.3vw, 72px)/1.03 var(--serif); letter-spacing: -.055em; }
.byline { font-size: 15px; }
.byline .sep { display: none; }
.byline time { display: block; margin-top: 4px; }

/* Text */
.post-body h2 { font: normal clamp(30px, 3.4vw, 40px)/1.1 var(--serif); letter-spacing: -.035em; }
.post-body > h2:first-child { margin-top: 0.6em; }
.post-body h3 { font: normal 24px/1.2 var(--serif); letter-spacing: -.025em; }
.post-body strong { font-weight: 650; }
.post-body a { text-decoration-color: #8db2a8; text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body blockquote.trace { border-left-width: 3px; border-left-color: #90b4a2; border-radius: 0 4px 4px 0; }
.post-body .question { border-top-color: var(--accent); }
.post-body .question .q-label,
.spoiler-trigger::after,
.post-body details.proof summary { font-family: var(--sans); font-weight: 700; }
.post-body .question .q-text { font: normal 30px/1.25 var(--serif); letter-spacing: -.025em; }
figure.media figcaption { font-size: 13px; line-height: 1.65; }
.spoiler-tag { color: #fff; }
.footnotes { font-size: 14px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .post-header { padding-top: 44px; }
  .post-body h2 { font-size: 28px; }
}
