/* Adventurer's Folio — site styles. Self-contained: no fonts, scripts or
   images fetched from anywhere, so the pages load instantly and work offline. */
:root {
  --parchment: #f3e9d2;
  --parchment-dark: #e2d3b0;
  --ink: #2b2118;
  --ink-soft: #5b4a37;
  --accent: #8c1f1a;
  --rule: rgba(43, 33, 24, 0.22);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0 1.25rem 5rem;
  background: linear-gradient(180deg, var(--parchment) 0%, var(--parchment-dark) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}
.wrap { max-width: 46rem; margin: 0 auto; }
header { text-align: center; padding: 3.5rem 0 1rem; }
h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 .25rem;
  letter-spacing: .01em;
}
.motto {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}
h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 .75rem;
  color: var(--accent);
}
h3 { font-size: 1.1rem; margin: 1.75rem 0 .4rem; }
a { color: var(--accent); }
a:hover { text-decoration: none; }
nav { text-align: center; margin-bottom: 1rem; }
nav a { margin: 0 .75rem; white-space: nowrap; }
ul { padding-left: 1.2rem; }
li { margin: .4rem 0; }
.lede { font-size: 1.1rem; }
.card {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.updated { color: var(--ink-soft); font-size: .9rem; }
/* The "getting it" card while the app is still in review. The rule down the
   left is what makes it read as a status note rather than as the download
   button someone arriving from a printed QR code is hoping for. */
.card.pending { border-left: 4px solid var(--accent); }

/* The 1.1 asterisk. Raised and small so it reads as a footnote mark rather
   than as punctuation, and underlined only on hover so a page carrying four
   of them does not look speckled. */
.mark {
  font-size: .8em;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
  padding: 0 .1em;
}
.mark:hover { text-decoration: underline; }
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--ink-soft);
  font-size: .9rem;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9em;
  background: rgba(255,255,255,.45);
  padding: .1em .35em;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Imagery. Added when the page went from text to a showcase.

   The text column stays 46rem — that is a comfortable measure and widening it
   for the sake of pictures would hurt the reading. Figures break OUT of it
   instead, via a negative margin capped by the viewport, so the prose keeps its
   width and the art gets the room.

   Every image carries width/height so the browser reserves its box before the
   bytes land: without that the page reflows six times as it loads, which on a
   phone reads as jitter.
--------------------------------------------------------------------------- */
figure { margin: 0; }
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 14px rgba(43, 33, 24, .18);
  background: rgba(255,255,255,.25);
}
figcaption {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: .92rem;
  margin-top: .5rem;
}

/* The playtable render, wider than the measure. */
.hero { margin: .5rem 0 2rem; }
.hero img { border-radius: 10px; }
.wide { margin: 2rem 0; }

/* Picture beside prose. Below 46rem it stacks, picture first — on a phone the
   image is the thing that earns the scroll. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.75rem;
  align-items: center;
  margin: 1.5rem 0 2.5rem;
}
.split > div > p:first-child { margin-top: 0; }
.split > div > p:last-child { margin-bottom: 0; }
.split.reverse > figure { order: 2; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
/* The cast: FOUR across, one row, full size. It was briefly five — Sir Garrick
   and Sir Adam are both paladins, and the pair read as a duplicate while the
   extra card cost the row its clean single line. One paladin, four columns.
   The builder crops every card to one aspect so the captions sit level. */
.heroes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.heroes figcaption { font-size: .82rem; }

@media (max-width: 46rem) {
  .split { grid-template-columns: 1fr; gap: 1.1rem; }
  .split.reverse > figure { order: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .heroes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 30rem) {
  .gallery, .heroes { grid-template-columns: 1fr; }
}
