/* Foxglove Mysteries: printed-page look from the game itself. Paper and ink by day, the manor's green by night. */
:root {
  --paper: #fbfaf6;
  --ink: #1f1d1a;
  --soft: #5a5348;
  --green: #23412f;
  --gold: #8f6e2c;
  --red: #8e1f2f;
  --line: #e3d9c2;
  --tint: #f4eedf;
  --button: #23412f;
  --button-ink: #fbfaf6;
  --display: Didot, "Bodoni 72", "Bodoni MT", "Libre Bodoni", Georgia, serif;
  --body: Baskerville, "Baskerville Old Face", "Libre Baskerville", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12201a;
    --ink: #efe9dc;
    --soft: #b9b2a2;
    --green: #cfe0d2;
    --gold: #d9bb73;
    --red: #e39a9f;
    --line: #2c3d33;
    --tint: #1a2b22;
    --button: #d9bb73;
    --button-ink: #12201a;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: normal; color: var(--green); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 7vw, 52px); margin: 0 0 12px; }
h2 { font-size: 27px; margin: 36px 0 10px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 18px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
main, .site-head, .site-foot { max-width: 760px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
main { padding-bottom: 40px; }

.site-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.brand { font-family: var(--display); font-size: 25px; color: var(--green); text-decoration: none; letter-spacing: 0.02em; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.site-head nav a { text-decoration: none; color: var(--soft); display: inline-block; padding: 12px 0; }
.site-head nav a:hover { color: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: center; margin-bottom: 26px; }
.hero img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 100%; border: 1px solid var(--line); }
.hero-text p { font-size: 19px; }
.lede { font-size: 20px; color: var(--soft); }
.meta { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.section-title { border-top: 1px solid var(--line); padding-top: 26px; }

.button { display: inline-block; background: var(--button); color: var(--button-ink); text-decoration: none; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; padding: 13px 22px; border-radius: 3px; margin: 6px 0 18px; }
.button:hover { filter: brightness(1.12); }
.text-link { font-style: italic; }

.prose { max-width: 680px; }
.prose img.pin { width: 100%; max-width: 420px; margin: 8px auto 30px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22); }
.prose img.cover { width: 100%; max-width: 460px; margin: 6px 0 26px; border: 1px solid var(--line); }
.prose h2 { font-size: 25px; }
.prose strong { color: var(--green); }

.game-box { border: 1px solid var(--gold); background: var(--tint); padding: 20px 22px 6px; margin: 34px 0; max-width: 680px; }
.game-box h2 { margin-top: 0; font-size: 26px; }

.guide-list { list-style: none; padding: 0; margin: 0 0 20px; }
.guide-list li { border-top: 1px solid var(--line); margin: 0; }
.guide-list li:last-child { border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 14px 0; text-decoration: none; }
.g-title { display: block; font-family: var(--display); font-size: 21px; color: var(--green); line-height: 1.25; }
.g-sum { display: block; font-size: 16px; color: var(--soft); margin-top: 3px; }

.site-foot { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 34px; font-size: 14px; color: var(--soft); }
.site-foot p { margin-bottom: 6px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero img { aspect-ratio: 1 / 1; }
  h2 { font-size: 24px; }
}
