/* The gold diary (tools/diary_site.py): the Parchment theme of the book in the game. The build puts
   the theme's tokens (pipeline/config/themes/parchment.toml) where the THEME comment stands. */
:root {
  --bg: rgba(232, 217, 181, 0.961);
  --panel: rgba(224, 207, 166, 0.98);
  --header: #d2bd8f;
  --line: rgba(59, 42, 23, 0.251);
  --rule: rgba(59, 42, 23, 0.278);
  --text: #2e2014;
  --dim: #5e4a33;
  --muted: #7a6750;
  --bright: #1a1008;
  --accent: #8c2f1a;
  --gold: #8a6200;
  --good: #2e7d32;
  --bad: #a8281e;
  --warn: #b35c00;
  --coinGold: #9a7400;
  --coinSilver: #5f6066;
  --coinCopper: #8c4a1f;
  --display: "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
/* the diary lies on the inn's table (owner, 24.10.2026): dark oak behind, parchment on it; both
   textures made with the image model (site/media), the grain multiplied with the theme's colours */
body {
  background: var(--bright) url("../../media/table-wood.jpg") center top / cover fixed;
  color: var(--text);
  font: 18px/1.6 var(--body);
}
.crumbs, .turn, .foot { color: var(--header); }
.crumbs a, .turn a, .foot a { color: var(--bg); }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the frame: the menu on the left and the page beside it on a wide screen; on a phone the page
   first and the menu under it, reached with the Contents link at the top */
.crumbs, .layout, .foot { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.crumbs { padding-block: 14px; font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs .to-menu { margin-left: auto; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.read { min-width: 0; }
.sheet, .turn { max-width: 780px; }
.sheet {
  background: var(--bg) url("../../media/parchment-grain.jpg") 0 0 / 512px repeat;
  background-blend-mode: multiply;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(20px, 5vw, 48px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
}
.side {
  background: var(--panel) url("../../media/parchment-grain.jpg") 0 0 / 512px repeat;
  background-blend-mode: multiply;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.4;
}
.side ul { list-style: none; padding: 0; margin: 0 0 10px; }
.side li { margin: 0; }
.side a { display: block; padding: 4px 8px; border-radius: 4px; color: var(--text); text-decoration: none; }
.side a:hover { background: var(--header); }
.side a[aria-current="page"] { background: var(--header); color: var(--accent); font-weight: 700; }
.side .mill a { color: var(--dim); font-style: italic; }
.side-title { font-family: var(--display); font-size: 19px; margin: 0 0 8px; }
.side-title a { padding-inline: 0; color: var(--bright); }
.side-chapter {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 12px 0 2px;
}
/* the search and its results in a lighter box of their own, set off from the menu below */
.side-search {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 10px 8px;
  margin: 0 0 14px;
  box-shadow: 0 2px 6px var(--line);
}
.side-search:not([hidden]) + .side-chapter {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.side .hits:not(:empty) { border-top: 1px solid var(--rule); margin-top: 8px; padding-top: 8px; }
.side-search label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.side-search input {
  width: 100%;
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
}
.side-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.side .hits { list-style: none; padding: 0; margin: 6px 0 0; }
.side .hits li { margin-bottom: 6px; }
.side .hits a { font-weight: 700; }
.side .hits span { display: block; font-size: 13px; color: var(--dim); padding: 0 8px; }
.side .hits .none { color: var(--dim); font-style: italic; padding: 0 8px; }
.side-extra { border-top: 1px solid var(--rule); padding-top: 8px !important; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); gap: 32px; }
  .side {
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .read { grid-column: 2; }
  .crumbs .to-menu { display: none; }
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.15; color: var(--bright); margin-bottom: 6px; }
h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 26px 0 6px;
}
h3 { font-size: 22px; color: var(--bright); }
p { margin: 0 0 12px; }
.kicker { font-size: 13px; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 4px; }
.meta { font-size: 15px; color: var(--dim); }
.opening { color: var(--dim); }
ol { padding-left: 1.4em; margin: 0 0 12px; }
li { margin-bottom: 6px; }
.verdict .label { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); margin-right: 6px; }
.name { color: var(--accent); }
.money { color: var(--gold); white-space: nowrap; }
.money i { font-style: normal; }
.cg { color: var(--coinGold); }
.cs { color: var(--coinSilver); }
.cc { color: var(--coinCopper); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.muted { color: var(--muted); }
.box { background: var(--header); border-radius: 4px; padding: 10px 14px; margin: 14px 0; font-size: 16px; }
.box p { margin: 0 0 4px; }
.box .box-title { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.picture { margin: 14px 0 18px; }
.picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--rule);
  box-shadow: 0 4px 14px var(--line);
}
.plate { margin: 14px 0; background: var(--header); border-radius: 4px; overflow: hidden; }
.plate svg { display: block; width: 100%; height: auto; font-family: var(--body); }
.plate figcaption { font-size: 15px; color: var(--dim); padding: 2px 12px 10px; }
.plate figcaption img { vertical-align: -2px; }
.rumour { margin-bottom: 14px; }
.rumour p { margin-bottom: 2px; }
.why, .src { font-size: 15px; color: var(--dim); padding-left: 14px; }
.stamp { font-weight: 600; }
.refs ul { columns: 2 200px; padding-left: 1.1em; margin: 0; }
.title { text-align: center; padding-block: 12px 18px; }
.title h1 { font-size: clamp(32px, 6vw, 46px); }
.tagline { font-style: italic; }
.printed { font-size: 14px; color: var(--dim); }
.about { font-size: 16px; color: var(--dim); }
.news ul, .list { padding-left: 1.1em; }
.date, .band { font-size: 14px; color: var(--muted); margin-right: 6px; }
.band { margin-left: 8px; }
.chapter { margin: 18px 0; }
.chapter ul { padding-left: 1.1em; margin: 6px 0; }
.chapter .mill a { color: var(--dim); }
.shelf { margin-top: 10px; }
.stamps ul { list-style: none; padding: 0; }
code { font-size: 0.9em; background: var(--header); padding: 1px 6px; border-radius: 4px; }
.turn {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 16px;
  font-size: 16px;
  flex-wrap: wrap;
}
.foot { padding-block: 8px 40px; font-size: 13px; }
