/* Scheda e prontuario: tema dei volumi, senza modificarne la geometria. */
@font-face {
  font-family: "Era Garamond";
  src: url("fonts/EBGaramond-Regular.ttf");
}
@font-face {
  font-family: "Era Garamond";
  src: url("fonts/EBGaramond-SemiBold.ttf");
  font-weight: 600 900;
}
@font-face {
  font-family: "Era Garamond";
  src: url("fonts/EBGaramond-Italic.ttf");
  font-style: italic;
}
@font-face {
  font-family: "Era Garamond";
  src: url("fonts/EBGaramond-SemiBoldItalic.ttf");
  font-weight: 600 900;
  font-style: italic;
}
@font-face {
  font-family: "Era Fell";
  src: url("fonts/IMFellDWPica-Regular.ttf");
}
@font-face {
  font-family: "Era Sans";
  src: url("fonts/NotoSans-Regular.ttf");
}

:root {
  --paper: #ece4d2;
  --ink: #272b23;
  --muted: #575746;
  --rule: #918469;
  --gray: #ded3b9;
}
body.character-sheet, body.quick-reference {
  font-family: "Era Garamond", Georgia, serif;
  color: var(--ink);
  background: #514a3d;
}
.page, .sheet {
  background: var(--paper) url("grana.svg");
  box-shadow: 0 0 2rem #11170e35;
}
.frame, .inner, .sec { border-color: var(--rule); }
.head, header { border-bottom-color: #8d7256; }
.brand .title, h2, .sheetno {
  font-family: "Era Fell", Georgia, serif;
  font-weight: 400;
  color: #633c2c;
}
.brand .game, .eyebrow { color: #35502b; }
.brand .sub, .lbl, .sec-title .tag, .strip, .sk-attr,
.cond-scope, .footer, footer, .note { color: var(--muted); }
.sec-title {
  color: #f0e7ce;
  background: #4b3c2e url("grana.svg");
  border-color: var(--rule);
}
.sec-title .tag { color: #e5dcc2; }
.strip b { color: var(--ink); }
.panel { border-radius: 0; }
h3 { color: #784a34; border-color: var(--rule); }
.grp td, .conditions-other-title { color: #35502b; }
th { background: #4b3c2e url("grana.svg"); color: #f0e7ce; border-color: var(--rule); }
td { border-bottom-color: #b4a687; }
.quick-reference tbody tr:nth-child(even) { background: #e2d8c1; }
.grp td, .strip, .conditions-other, footer, .note { border-color: var(--rule); }
.fl, .wl2 { border-color: #918469; }
.box, .cb { border-color: #536047; background: #faf7ef; }
.equation { font-family: "Era Sans", sans-serif; color: #35362b; border-color: #7e8968; }
.source { color: #35502b; }
.toolbar { color: #e5dcc2; }
.toolbar button { background: #35502b; color: #f0e7ce; border-color: #aea17b; }

@media screen {
  .character-sheet .page { margin: 12px auto; }
}
@page { background: #ece4d2 url("grana.svg"); }
@media print {
  /* Same grain at four times its CSS resolution; avoid redrawing the SVG. */
  .page, .sheet, .sec-title, th {
    background-image: url("grana.png");
    background-size: 183px 191px;
  }
  @page {
    background-image: url("grana.png");
    background-size: 183px 191px;
  }
  html { background: transparent; }
  body.character-sheet, body.quick-reference { background: transparent; }
  .page, .sheet { box-shadow: none; }
  html, body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
