@font-face { font-family: "Black Ops One"; font-weight: 400; font-display: swap; src: url("/assets/fonts/black-ops-one-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 400; font-display: swap; src: url("/assets/fonts/courier-prime-400.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-weight: 700; font-display: swap; src: url("/assets/fonts/courier-prime-700.woff2") format("woff2"); }
/* Site-wide pieces stamped into every page by tools/build_blog.py: the footer, the home page's
   "From the blog" strip and the "From the blog" links on book pages. Self-contained (own colors,
   no page tokens) so it looks the same on catalog.css, styles.css and catdoku.css pages. */
.tg-footer { background: #20211d; color: #fcf8ee; margin-top: 32px; font-family: "Courier Prime", ui-monospace, monospace; }
.tg-footer-inner { max-width: 1040px; margin: 0 auto; padding: 28px 24px 30px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px 40px; }
.tg-footer-brand { color: inherit; text-decoration: none; display: block; }
.tg-footer-brand strong { display: block; font-family: "Black Ops One", system-ui, sans-serif; font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; }
.tg-footer-brand small { display: block; font-size: .76rem; color: #d8c294; margin-top: 2px; }
.tg-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.tg-footer nav a { color: #fcf8ee; text-decoration: none; font-size: .86rem; padding: 6px 0; }
.tg-footer nav a:hover, .tg-footer nav a[aria-current] { color: #d8c294; }
.tg-footer-legal { width: 100%; margin: 0; font-size: .74rem; line-height: 1.5; color: rgba(252, 248, 238, .68); }
@media (max-width: 560px) { .tg-footer nav { gap: 2px 18px; } }

/* "From the blog" strip: home page and book pages */
.tg-blogstrip { max-width: 1040px; margin: 0 auto; padding: 36px 24px 8px; color: #38322b; }
.tg-blogstrip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.tg-blogstrip h2 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -.01em; margin: 0; }
.tg-blogstrip-all { font-family: "Courier Prime", ui-monospace, monospace; font-size: .88rem; color: #a85434; white-space: nowrap; }
.tg-blogstrip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .tg-blogstrip ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tg-blogstrip.is-four ul { grid-template-columns: repeat(4, 1fr); } }
.tg-blogstrip li a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #38322b;
  background: #fcf8ee; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 #ddd3bc; transition: transform .14s cubic-bezier(.22, 1, .36, 1); }
.tg-blogstrip li a:hover { transform: translateY(-2px); }
.tg-blogstrip img { width: 100%; height: auto; display: block; aspect-ratio: 640 / 336; }
.tg-blogstrip-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 750;
  font-size: 1.02rem; line-height: 1.28; padding: 12px 14px 4px; }
.tg-blogstrip-line { font-family: Georgia, "Times New Roman", serif; font-size: .9rem; line-height: 1.45; color: #5d5546; padding: 0 14px 14px; }

/* Compact list on book pages */
.tg-fromblog { max-width: 760px; margin: 28px auto 0; padding: 18px 20px; border-radius: 14px; background: #fcf8ee;
  box-shadow: 0 1px 0 #ddd3bc; color: #38322b; font-family: Georgia, "Times New Roman", serif; }
.tg-fromblog p { margin: 0 0 6px; font-family: "Courier Prime", ui-monospace, monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #a85434; }
.tg-fromblog ul { margin: 0; padding-left: 1.1em; }
.tg-fromblog li { margin: 4px 0; line-height: 1.45; }
.tg-fromblog a { color: #38322b; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .tg-blogstrip li a { transition: none; } }

/* Home header: Blog and Free puzzles beside Sign in, in the hero card's ink */
.home-actions { display: flex; align-items: center; gap: 2px; }
.home-navlink { color: var(--ink, #38322b); font-family: "Courier Prime", ui-monospace, monospace; font-weight: 700; font-size: .92rem;
  text-decoration: none; padding: 9px 10px; border-radius: 8px; white-space: nowrap; }
.home-navlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-actions .signin-button { margin-left: 6px; }
@media (max-width: 400px) { .home-navlink { padding: 9px 7px; font-size: .86rem; } }
