/* Self-hosted fonts (SIL Open Font License, via Fontsource). Wordmark only. */
@font-face { font-family: "Pirata One"; src: url("/assets/fonts/pirata-one-latin-400-normal.woff2") format("woff2"); font-display: swap; }

/* base113.com — one stylesheet. Look from the approved home page design (Nov 2026). */
:root {
  --bg: #0D0E0C;
  --bg-raised: #121412;
  --bg-deep: #0A0B0A;
  --panel: #16181A;
  --line: #2A2D2E;
  --line-strong: #4A4C4C;
  --text: #ECE8DF;
  --text-soft: #C9C4B8;
  --muted: #A9A49A;
  --accent: #D4AF5A;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wordmark: "Pirata One", var(--serif);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--text); text-decoration-color: #5A5648; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
/* A link on the original page that no longer goes anywhere: keep the underline, strike it through. */
.dead-link { text-decoration-line: underline line-through; text-decoration-color: currentColor; text-underline-offset: 3px; color: var(--text-soft); cursor: default; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.serif { font-family: var(--serif); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--wordmark); font-size: 22px; letter-spacing: 0.02em; }
.brand .mark { flex: none; }
.brand .mark { color: var(--accent); }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a[aria-current="page"] { color: var(--accent); }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
.eyebrow { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

/* Long-form pages */
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 80px; }
.prose h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 12px; }
.prose h2 { font-size: 28px; margin: 48px 0 12px; }
.prose h3 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose blockquote { margin: 24px 0; padding: 4px 20px; border-left: 2px solid var(--accent); }

.draft-note { margin-top: 24px; padding-top: 12px; padding-bottom: 12px; border: 1px dashed var(--accent); color: var(--text-soft); font-size: 15px; }

/* Home */
.hero-band {
  /* Sean's Shelf of Madness photo, inverted to light lines on dark, fading into the ground behind the text. */
  background:
    linear-gradient(90deg, var(--bg) 0%, var(--bg) 38%, rgba(13,14,12,0.82) 58%, rgba(13,14,12,0.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(13,14,12,0) 22%),
    url("/assets/img/hero-shelf.webp") right center / auto 100% no-repeat,
    var(--bg);
}
@media (max-width: 760px) {
  .hero-band {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(13,14,12,0.88) 45%, rgba(13,14,12,0.7) 100%),
      url("/assets/img/hero-shelf.webp") 70% top / cover no-repeat,
      var(--bg);
  }
}
.hero { padding-top: 96px; padding-bottom: 80px; }
.hero h1 { margin: 0; max-width: 18ch; font-size: clamp(44px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.01em; }
.hero .lede { margin: 28px 0 0; max-width: 56ch; font-size: 19px; color: var(--text-soft); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-block; padding: 13px 23px; border: 1px solid var(--line-strong); text-decoration: none; border-radius: 2px; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 600; }
.button.primary:hover { color: var(--bg); filter: brightness(1.08); }
.button.outline-accent { border-color: var(--accent); }

.band { border-top: 1px solid var(--line); }
.band.raised { background: var(--bg-raised); }
.band > .wrap { padding-top: 72px; padding-bottom: 72px; }
.band h2 { margin: 0; font-size: 36px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; }

.lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.line { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 32px; background: var(--bg-raised); text-decoration: none; min-height: 220px; }
.line .code { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.line .name { font-family: var(--serif); font-size: 24px; line-height: 1.2; }
.line .blurb { font-size: 15px; color: var(--muted); flex-grow: 1; }
.line .go { font-size: 14px; }

.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 280px; }
.split > :last-child { flex: 999 1 520px; min-width: 0; }
.post-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 18px 0; text-decoration: none; }
.post-list .title { font-size: 18px; }
.post-list .date { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.placeholder { border: 1px dashed var(--line-strong); background: var(--panel); display: flex; align-items: center; justify-content: center; color: #8F8A80; font-family: var(--mono); font-size: 13px; text-align: center; padding: 16px; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--text); }
.form input, .form textarea, .form select { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line-strong); border-radius: 2px; padding: 10px 12px; }
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; cursor: pointer; font: inherit; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-row { padding-top: 48px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; }
.footer-row > div { flex: 1 1 240px; }
.footer-row nav { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; }
.footer-brand p { margin: 0 0 8px; }
.footer-brand .serif { font-size: 20px; }

/* Posts migrated from base113 Games */
.post .eyebrow a { color: inherit; text-decoration: none; }
.post-body img { display: block; margin: 16px 0; max-width: 100%; height: auto; border: 1px solid var(--line); }
.post-body figure { margin: 24px 0; }
.post-body figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.post-body .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 24px 0; }
.post-body .gallery img { margin: 0; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.post-body details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.post-body summary { cursor: pointer; color: var(--text); font-weight: 600; }
.post-body iframe { max-width: 100%; }
.archive-note { font-size: 14px; color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 12px; }
.post-back { margin-top: 48px; }
.chapter-index { border: 1px solid var(--line); background: var(--bg-raised); padding: 16px 20px; margin: 24px 0; font-size: 15px; }
.chapter-index p { margin: 0 0 8px; }
.chapter-index ol { margin: 0; }

/* Product images on the home page (Printify mockups of live listings). */
.line-img { display: block; max-width: none; width: calc(100% + 48px); margin: -28px -24px 6px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--panel); }
.featured-item { display: block; text-decoration: none; }
.featured-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); }
.featured-item:hover img { border-color: var(--accent); }
.featured-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.about-mark { max-width: 280px; width: 100%; color: var(--accent); opacity: 0.85; justify-self: center; }
.about-mark svg { display: block; width: 100%; height: auto; }
.featured-meta .small { white-space: nowrap; }
