/* Guides, journal, présentation du serveur et téléchargement. */
body[data-page] main {
  --read-paper: #f7f4ed;
  --read-panel: #fffdf7;
  --read-ink: #1c3039;
  --read-text: #46565a;
  --read-blue: #205a6b;
  --read-gold: #876121;
  --read-line: #dcd4c3;
  --f-ink: var(--read-ink);
  --f-muted: var(--read-text);
  background-color: var(--read-paper);
  color: var(--read-ink);
}
body[data-page] main :is(.feature-page, .inc-section, .section, .hope-editorial,
    .native-guide, .inc-blog, .hf-section) {
  color: var(--read-ink);
  background-color: var(--read-paper);
}
body[data-page] main :is(.feature-page, .native-guide) {
  width: 100%;
  max-width: 1190px;
  margin-inline: auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 4vw, 54px);
}
body[data-page] main .feature-page + .native-guide { padding-top: 0; }
body[data-page] main :is(.hf-guidebar, .feature-toc, .inc-toc) {
  background: #eeebe1;
  color: var(--read-ink);
  border-block: 1px solid var(--read-line);
}
body[data-page] main .hf-guidebar div { gap: 4px 10px; padding-block: 9px; }
body[data-page] main .hf-guidebar a {
  display: inline-flex;
  align-items: center;
  padding: 5px 2px;
  font-size: .89rem;
  font-weight: 600;
  text-underline-offset: 4px;
  color: var(--read-blue);
}
body[data-page] main .hf-guidebar a:first-child { color: #5c4826; }
body[data-page] main :is(.feature-toc,.inc-toc) {
  padding: 10px;
  border: 1px solid var(--read-line);
  border-radius: 13px;
  gap: 7px;
}
body[data-page] main :is(.feature-toc,.inc-toc) a {
  background: var(--read-panel);
  border: 1px solid var(--read-line);
  color: var(--read-ink);
  border-radius: 7px;
  padding: 8px 12px;
  text-decoration: none;
}
body[data-page] main :is(.feature-toc,.inc-toc) a:hover {
  color: var(--read-blue); border-color: #81a3a6;
}
body[data-page] main .feature-heading { max-width: 840px; margin-bottom: clamp(30px, 4vw, 54px); }
body[data-page] main .feature-heading .feature-lead { margin-inline: auto; }
body[data-page] main :is(.native-guide-heading, .feature-heading, .page-banner, .incarnam-hero,
    .hf-hero-inner) :is(h1, h2) {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.9vw, 4.25rem);
  line-height: 1.07;
  letter-spacing: -.046em;
  text-wrap: balance;
  color: var(--read-ink);
}
body[data-page] main :is(.native-guide-heading, .feature-heading, .page-banner, .incarnam-hero) em {
  color: var(--read-blue);
}
body[data-page] main :is(.feature-section, .inc-heading, .editorial-section, .native-mono-heading,
    .hf-section, .hope-atlas) h2 {
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.16;
  font-weight: 600;
  color: var(--read-ink);
  letter-spacing: -.032em;
  text-wrap: balance;
}
body[data-page] main :is(.native-guide-heading, .feature-section, .feature-heading, .inc-heading,
    .editorial-section, .native-mono-heading, .page-banner) > p:not(.eyebrow) {
  max-width: 72ch;
  font-size: clamp(1rem, 1.25vw, 1.13rem);
  color: var(--read-text);
  line-height: 1.73;
}
body[data-page] main .eyebrow { color: var(--read-gold); }
body[data-page] main :is(.feature-back, .guide-back, .inc-back, .inc-link, .feature-read, .text-button) {
  color: var(--read-blue);
  text-underline-offset: 3px;
}
body[data-page] main .page-banner {
  --read-scenery: url('/assets/features/incarnam-terrain.png');
  background: linear-gradient(90deg, #f7f4ed 15%, #f7f4edf7 47%, #f7f4ed88 75%, #f7f4ed33), var(--read-scenery) center 50% / cover !important;
  padding: clamp(42px, 6vw, 85px) max(22px, calc((100% - 1080px) / 2)) !important;
  border-bottom: 1px solid var(--read-line);
  min-height: 0;
}
body[data-page="metiers"] main .page-banner { --read-scenery: url('/assets/craft.png'); }
body[data-page] main .page-banner h1 { max-width: 17ch; }
body[data-page] main .page-banner p { max-width: 53ch; }
body[data-page] main .incarnam-hero {
  color: var(--read-ink);
  background: radial-gradient(ellipse at 76% 45%, #e7ddc4, transparent 62%), var(--read-paper);
}
body[data-page] main :is(.update-strip, .inc-callout, .feature-callout, .quest-tags span,
    .editorial-facts span, .reward-price) {
  background: #f2ebdc;
  border-color: #d6c5a1;
  color: #604d2a;
}
body[data-page] main :is(.feature-tile, .hope-atlas-card, .editorial-reward, .editorial-stats,
    .rule-panel, .inc-chapters article, .mono-values article, .native-mono-columns article,
    .mode-grid article, .utility-grid article, .life-grid article, .hf-steps li) {
  background-color: var(--read-panel);
  color: var(--read-ink);
  border-color: var(--read-line);
}
body[data-page] main :is(.feature-tile h3, .hope-atlas-card strong, .utility-grid h3,
    .inc-chapters h3, .native-mono-columns h3, .life-grid h3, .rule-panel h2,
    .platforms h2, .platforms h3, .hf-steps h3) { color: var(--read-ink); }
body[data-page] main :is(.feature-tile p, .hope-story p, .news-list p, .news-list li,
    .platforms p, .rule-panel p, .rule-panel li, .update-strip p, .editorial-reward p,
    .hf-steps p) { color: var(--read-text) !important; }
body[data-page] main :is(.feature-section, .editorial-section, .feature-archive,
    .feature-table-wrap, .hope-capture img) { border-color: var(--read-line); }
body[data-page] main :is(.editorial-image, .hope-koli-figure, .butin-capture) {
  border: 1px solid var(--read-line);
  border-radius: 12px;
  background: #ebe7dc;
  overflow: hidden;
}
body[data-page] main :is(.editorial-image, .hope-koli-figure, .butin-capture) img {
  display: block; max-width: 100%; object-fit: contain;
}
body[data-page] main :is(.editorial-image, .butin-capture) figcaption {
  padding: .7rem .95rem;
  font-size: .9rem;
  line-height: 1.48;
  color: var(--read-text);
  background: var(--read-panel);
}
body[data-page] main :is(.hope-card-shot, .feature-tile-art) { background: #ebe6d7 !important; }
body[data-page] main :is(.hope-atlas-card > img, .hope-card-shot img) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #e9e4d7;
}
body[data-page] main .hope-card-shot { height: auto; }
body[data-page] main :is(.feature-tile, .hope-atlas-card):hover { border-color: #86a2a4; }
body[data-page] main .hf-download { --ink: var(--read-ink); }
body[data-page] main.hf-download .hf-hero { background: radial-gradient(ellipse at 85% 100%, #244b56, #13282f 76%); }
body[data-page] main.hf-download .hf-hero h1 { color: #fff8e9; }
body[data-page] main.hf-download .hf-primary { color: #302713; background: #e4c187; border-color: #e4c187; }
body[data-page] main .primary { color: #fff !important; background: var(--read-blue) !important; border-color: var(--read-blue) !important; }
body[data-page] main .primary:hover { background: #164c5b !important; }
body[data-page] main :is(a,button,summary,select):focus-visible { outline: 3px solid #4a8595; outline-offset: 3px; }
body[data-page] main :is(.feature-section,.editorial-section,.inc-section,article)[id] { scroll-margin-top: 105px; }

@media (max-width: 720px) {
  body[data-page] main .hf-guidebar div { gap: 2px 9px; }
  body[data-page] main :is(.feature-toc,.inc-toc) { justify-content: flex-start; }
  body[data-page] main .page-banner {
    background: linear-gradient(90deg, #f7f4edf5, #f7f4edd9), var(--read-scenery) center / cover !important;
  }
  body[data-page] main .feature-table-wrap { max-width: 100%; overflow-x: auto; }
}
