/* catomaroon.com: copied from catocombs.com's stylesheet (game1/site, Torch Amber palette) with a rope-and-river accent;
   the name is set in type (.word, .wordmark) until the Maroon wordmark is approved. Dark by default like the game; a light
   variant for people who prefer it. */
:root {
  --bg: #15131a; --panel: #1d1a24; --edge: #34303e; --text: #ede4d3; --dim: #b3abbe; --gold: #e9a23b; --gold-ink: #ffd37e;
  --accent: #4fb6c9;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f7f3ec; --panel: #fffdf9; --edge: #e2d9cb; --text: #1f2328; --dim: #5d5649; --gold: #e9a23b; --gold-ink: #8a4f12;
    color-scheme: light; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Avenir Next", "Helvetica Neue", -apple-system, system-ui, sans-serif; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
header.site { border-bottom: 1px solid var(--edge); }
header.site .in, main, footer.site .in { max-width: 720px; margin: 0 auto; padding: 0 20px; }
header.site .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; text-decoration: none; }
.mark img { display: block; height: 30px; width: auto; }
/* pixel art: whole-number scales, never smoothed */
img.px { image-rendering: pixelated; image-rendering: crisp-edges; }
nav a { margin-left: 18px; font-size: 15px; color: var(--dim); text-decoration: none; }
nav a:first-child { margin-left: 0; }
nav a[aria-current] { color: var(--text); font-weight: 600; }
main { padding-top: 36px; padding-bottom: 56px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.meta { color: var(--dim); font-size: 15px; margin: 0 0 28px; }
h2 { font-size: 22px; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--edge); }
h3 { font-size: 18px; margin: 26px 0 6px; }
p, li { max-width: 68ch; }
ul { padding-left: 22px; } li { margin: 6px 0; }
.summary { background: var(--panel); border: 1px solid var(--edge); border-left: 3px solid var(--gold); padding: 6px 22px 10px;
  margin: 8px 0 8px; }
.summary h2 { border: 0; margin-top: 12px; padding-top: 0; font-size: 19px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--edge); }
th { color: var(--dim); font-weight: 600; }
.wrap { overflow-x: auto; }
.lead { font-size: 20px; color: var(--dim); max-width: 34ch; }
.hero { padding: 40px 0 8px; }
.hero h1 { font-size: 44px; }
.hero h1 span { color: var(--gold); }
footer.site { border-top: 1px solid var(--edge); color: var(--dim); font-size: 14px; }
footer.site .in { padding-top: 18px; padding-bottom: 28px; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--dim); }
/* publisher credit (2026-11-23): the Samayna Studios pixel lockup, dark or light to match the theme; quiet, its own row */
footer.site .studio { flex-basis: 100%; display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 13px; }
footer.site .studio img { display: block; height: 36px; width: auto; }
footer.site .studio:hover img { filter: brightness(1.12); }
@media (max-width: 480px) { body { font-size: 16px; } h1 { font-size: 28px; } .hero h1 { font-size: 36px; } nav a { margin-left: 14px; } }

/* ---- homepage (2026-11-21): the game's own pixel art, a wider column ---- */
body.home header.site .in, body.home main, body.home footer.site .in { max-width: 1040px; }
body.home main { padding-top: 12px; }
body.home h2 { font-size: 26px; margin-top: 56px; }
body.home section > p { max-width: 70ch; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 36px 0 8px; }
.hero h1 { margin: 0 0 18px; line-height: 0; }
.hero .logo { width: 166px; height: auto; }
.hero .lead { max-width: 30ch; color: var(--text); font-size: 22px; line-height: 1.4; margin: 0 0 12px; }
.hero-sub { color: var(--dim); max-width: 52ch; margin: 0 0 18px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { margin: 0; background: var(--panel); border: 1px solid var(--edge); padding: 6px 12px; font-size: 15px; color: var(--dim); }
.facts b { color: var(--gold-ink); font-weight: 700; }
.phone { margin: 0; }
.phone img { display: block; width: 100%; max-width: 260px; height: auto; border: 3px solid #0b0a0f; outline: 1px solid var(--edge);
  border-radius: 0; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.phone figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; max-width: 260px; }
.hero-shot img { width: 260px; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; margin: 16px 0 0; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; margin: 0; max-width: none;
  background: var(--panel); border: 1px solid var(--edge); }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; display: grid;
  place-items: center; font-weight: 800; color: #2a1d08; background: var(--gold); }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: space-between; gap: 18px; margin-top: 44px; }
.cats { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cats li { margin: 0; max-width: none; background: var(--panel); border: 1px solid var(--edge); padding: 12px; display: grid; justify-items: center;
  text-align: center; gap: 2px; }
.cats img { height: 76px; width: auto; margin-bottom: 6px; }
.cats b { font-size: 16px; }
.cats span { font-size: 13px; color: var(--dim); }
.cats i { font-style: normal; font-size: 13px; color: var(--gold-ink); }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.area { background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; }
.area .room { display: block; width: 100%; height: auto; }
.area-text { padding: 4px 16px 14px; }
.area h3 { margin-top: 12px; }
.area p { font-size: 15px; margin: 6px 0; }
.boss { display: flex; align-items: center; gap: 12px; color: var(--dim); }
.boss img { width: auto; height: 56px; flex: none; }
.boss b { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.icons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.icons li { margin: 0; background: var(--panel); border: 1px solid var(--edge); padding: 6px; line-height: 0; }
.deities { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deities li { margin: 0; display: grid; justify-items: center; text-align: center; background: var(--panel); border: 1px solid var(--edge); padding: 10px; }
.deities img { width: 100%; max-width: 152px; height: auto; }
.deities b { margin-top: 6px; }
.deities span { font-size: 13px; color: var(--dim); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.card { background: var(--panel); border: 1px solid var(--edge); padding: 4px 16px 12px; }
.card h3 { margin-top: 12px; }
.card p { font-size: 15px; margin: 6px 0; }
.mini-icons { display: flex; gap: 8px; }
.fair { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fair li { margin: 0; max-width: none; padding-left: 16px; border-left: 3px solid var(--accent); }
.cta { margin-top: 56px; padding: 22px 0 8px; border-top: 1px solid var(--edge); }
.cta .lead { max-width: none; font-size: 19px; color: var(--text); margin-bottom: 4px; }
@media (max-width: 900px) {
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .areas, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-shot { justify-self: center; }
  .hero .lead { font-size: 20px; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { padding-left: 54px; }
}
/* the logos are cream pixel lettering made for a dark ground: the header stays dark in both themes, and in light mode
   the hero logo sits on a dark plate */
header.site { background: #15131a; border-bottom-color: #34303e; }
header.site nav a { color: #b3abbe; }
header.site nav a[aria-current] { color: #ede4d3; }
@media (prefers-color-scheme: light) {
  .hero h1 { display: inline-block; background: #15131a; padding: 14px 18px 12px; }
}
.wiki-cta .button { display: inline-block; font-weight: 700; color: #2a1d08; background: var(--gold); padding: 10px 18px; text-decoration: none; margin-right: 10px; }
.wiki-cta .button:hover { text-decoration: none; filter: brightness(1.08); }
.wiki-cta .note { color: var(--dim); font-size: 15px; }
/* the passcode form (2026-11-21) */
.passcode { margin-top: 40px; max-width: 640px; }
.teaser main { max-width: 720px; }
.teaser-hero { padding: 44px 0 0; }
.teaser-hero h1 { margin: 0 0 18px; line-height: 0; }
.teaser-hero .logo { width: 166px; height: auto; }
.teaser-hero .lead { max-width: 30ch; color: var(--text); font-size: 22px; line-height: 1.4; margin: 0 0 8px; }
.pass-form { display: grid; gap: 8px; margin-top: 12px; }
.pass-form label { font-weight: 600; font-size: 15px; }
.pass-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.pass-form input { flex: 1 1 220px; min-width: 0; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--edge); padding: 10px 12px; }
.pass-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.pass-form button { font: inherit; font-weight: 700; padding: 10px 18px; cursor: pointer; color: var(--text); background: transparent; border: 1px solid var(--edge); }
.form-status { padding: 8px 12px; border-left: 3px solid var(--gold); background: var(--panel); margin: 10px 0 0; }
@media (prefers-color-scheme: light) { .teaser-hero h1 { display: inline-block; background: #15131a; padding: 14px 18px 12px; } }

/* Maroon: the name in type until the painted wordmark is approved */
.mark .word { font-weight: 800; font-size: 20px; letter-spacing: .01em; color: #ede4d3; white-space: nowrap; }
.mark .word b, h1.wordmark b { color: var(--gold); }
h1.wordmark { line-height: 1.05 !important; font-size: 52px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 16px; }
@media (max-width: 480px) { h1.wordmark { font-size: 40px; } }
figure.wide { margin: 16px 0; }
figure.wide img { display: block; width: 100%; max-width: 780px; height: auto; border: 3px solid #0b0a0f; outline: 1px solid var(--edge); }
.split img.px { display: block; width: 100%; max-width: 312px; height: auto; margin: 8px 0 12px; }
h1.wordmark { color: #ede4d3; }
@media (prefers-color-scheme: light) { .teaser-hero h1.wordmark { display: inline-block; background: #15131a; padding: 14px 18px 12px; } }
