/* Hearthstone: Hearthvale's look, after its in-game theme pack. Fieldstone walls, an oak beam,
   wrought iron, embers under the hearth bricks, and parchment to read from.
   Contrast on parchment (#e8d7ae): ink 12:1, muted 5.6:1, links 5.9:1, up 5:1, down 5.8:1. */

.theme-hearthstone {
  --stone: url("/static/img/hubs/fieldstone.png");
  --paper: url("/static/img/hubs/parchment.png");
  --oak: url("/static/img/hubs/oak.png");
  --brick: url("/static/img/hubs/hearth-brick.png");
  --soot: #221a16;
  --iron: #48454a;
  --iron-hi: #77706e;
  --ember: #e06a1f;
  --ember-hot: #ffc15a;
  --cream: #faefd2;

  --bg: #1b130f;
  --surface: #231913;
  --surface2: #35271e;
  --line: #52402f;
  --line-hi: #77604a;
  --text: #f4e8cb;
  --muted: #cbb894;
  --primary: #ffc15a;
  --primary-hi: #ffd58a;
  --primary-ink: #251002;
  --ember-glow: rgba(224, 106, 31, .3);

  --hub-accent: var(--cream);
  --panel-bg: #e8d7ae var(--paper) repeat 0 0 / 384px;
  --panel-head-text: var(--cream);
  --panel-text: #2a1b10;
  --panel-muted: #594328;
  --panel-link: #86300a;
  --panel-silver: #4a5666;
  --panel-bronze: #94420e;
  --panel-line: #b79f72;
  --panel-up: #2f5c14;
  --panel-down: #8f2114;
  --slot-bg: #a89270;
  --panel-card: #f3e5bf;
  --panel-card2: #d9c293;
  --panel-line-hi: #8a6f48;
  --panel-btn-ink: #faefd2;
}

.theme-hearthstone body, body.theme-hearthstone {
  background:
    linear-gradient(180deg, rgba(27, 19, 15, .9), rgba(27, 19, 15, .82) 60%, rgba(44, 20, 8, .86)),
    #1b130f var(--stone) repeat 0 0 / 512px;
  image-rendering: auto;
}

.theme-hearthstone .nav { background: var(--soot); border-bottom: 3px solid var(--iron); box-shadow: 0 2px 0 var(--soot), 0 3px 12px rgba(0, 0, 0, .5); }

/* The beam over the door, strapped with iron. */
.theme-hearthstone .hubbar {
  position: relative; background: #8a5a2e var(--oak) repeat 0 0 / 384px 108px; image-rendering: pixelated;
  border-bottom: 4px solid var(--soot); box-shadow: inset 0 3px 0 rgba(255, 214, 160, .22), 0 6px 16px rgba(0, 0, 0, .45);
}
.theme-hearthstone .hubname { gap: 12px; padding: 0 18px; background: rgba(34, 18, 8, .82); border: 2px solid var(--soot); border-radius: 4px; box-shadow: inset 0 0 0 2px #744821; text-shadow: 0 2px 0 #000; }
.theme-hearthstone .hubname::before, .theme-hearthstone .hubname::after { content: ""; width: 8px; height: 8px; background: var(--ember); box-shadow: inset 2px 2px 0 var(--ember-hot), 0 0 8px var(--ember); }
.theme-hearthstone .hubnav a { border: 2px solid var(--soot); border-radius: 4px; background: #35292a; color: var(--cream); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12); }
.theme-hearthstone .hubnav a:hover { background: #4a393a; }
.theme-hearthstone .hubnav a[aria-current="page"] { background: #e8d7ae var(--paper) 0 0 / 384px; color: #2a1b10; box-shadow: inset 0 -4px 0 var(--ember), 0 0 14px rgba(224, 106, 31, .55); }

/* A stone frame, an iron rail, parchment inside. */
.theme-hearthstone .panel, .theme-hearthstone .sign {
  border: 2px solid var(--soot); border-radius: 6px; background: #8c8175 var(--stone) repeat 0 0 / 384px; image-rendering: pixelated;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.theme-hearthstone .panel { padding: 8px; }
.theme-hearthstone .panel::before, .theme-hearthstone .panel::after { content: none; }
.theme-hearthstone .panel-head {
  position: relative; justify-content: space-between; border: 2px solid var(--soot); border-bottom: 4px solid var(--iron); border-radius: 3px 3px 0 0;
  background: #8a5a2e var(--oak) repeat 0 0 / 384px 108px; padding-inline: 30px 18px; text-shadow: 0 2px 0 rgba(20, 8, 0, .95);
}
.theme-hearthstone .panel-head::before { content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -5px; background: var(--ember); box-shadow: 0 0 0 3px var(--iron), inset 2px 2px 0 var(--ember-hot), 0 0 10px var(--ember); }
.theme-hearthstone .panel-head :is(h1, h2) { padding: 4px 10px; background: rgba(34, 18, 8, .6); border-radius: 3px; }
.theme-hearthstone .panel-head a { padding: 0 10px; min-height: 36px; background: rgba(34, 18, 8, .72); border-radius: 3px; text-decoration: none; }
.theme-hearthstone .panel-head a:hover { background: var(--soot); color: var(--ember-hot); }
.theme-hearthstone .panel-body { border: 3px solid var(--iron); border-top: 0; box-shadow: inset 0 0 28px rgba(122, 84, 40, .38); image-rendering: auto; }
.theme-hearthstone .panel-body::-webkit-scrollbar { display: none; }

.theme-hearthstone .slot { border-radius: 0; border: 3px solid; border-color: #5c4a36 #faefd2 #faefd2 #5c4a36; width: 42px; height: 42px; }
.theme-hearthstone .hubrow { grid-template-columns: 42px minmax(0, 1fr) auto; }
.theme-hearthstone .hubmap { border: 4px solid var(--iron); border-radius: 2px; box-shadow: 0 0 0 2px var(--soot); }

/* The sign over the hearth: parchment above, bricks and embers below, the buttons on the bricks. */
.theme-hearthstone .sign { padding: 8px; gap: 0; }
.theme-hearthstone .sign > * { position: relative; }
.theme-hearthstone .sign .words, .theme-hearthstone .sign .sign-art { padding: 26px 28px; }
.theme-hearthstone .sign .words { background: #e8d7ae var(--paper) repeat 0 0 / 384px; border: 3px solid var(--iron); border-bottom: 0; box-shadow: inset 0 0 36px rgba(122, 84, 40, .4); image-rendering: auto; }
.theme-hearthstone .sign.with-art { column-gap: 0; }
.theme-hearthstone .sign.with-art .sign-art { align-self: stretch; padding: 14px; background: #e8d7ae var(--paper) repeat 0 0 / 384px; border: 3px solid var(--iron); border-bottom: 0; border-left: 0; }
.theme-hearthstone .sign-art img { height: 100%; max-height: 300px; object-fit: cover; border: 5px solid #744821; outline: 2px solid var(--soot); }
.theme-hearthstone .sign h1 { color: #4a2a10; text-shadow: 3px 3px 0 rgba(224, 106, 31, .38); }
.theme-hearthstone .sign-actions {
  padding: 18px 24px 22px; border-top: 3px solid var(--ember); background: #523428 var(--brick) repeat 0 bottom / 336px 72px; image-rendering: pixelated;
  box-shadow: inset 0 -22px 30px -10px rgba(224, 106, 31, .75), inset 0 2px 0 var(--ember-hot);
}

.theme-hearthstone .ip { background: var(--cream); border: 2px solid var(--soot); border-radius: 4px; color: #2a1b10; box-shadow: inset 0 0 0 2px #b79f72; }
.theme-hearthstone .ip .addr { color: #2a1b10; }
.theme-hearthstone .ip .copy { background: var(--iron); color: var(--cream); border-left: 2px solid var(--soot); }
.theme-hearthstone .ip .copy:hover { background: #5c585e; }

.theme-hearthstone .btn.p, .theme-hearthstone .btn.s { border: 2px solid var(--soot); border-radius: 4px; color: var(--cream); text-shadow: 0 1px 0 rgba(0, 0, 0, .7); }
.theme-hearthstone .btn.p { background: #a8400c; box-shadow: inset 0 2px 0 #e8863f, inset 0 -3px 0 #6e2704, 0 0 12px rgba(224, 106, 31, .5); }
.theme-hearthstone .btn.p:hover { background: #bd4a10; }
.theme-hearthstone .btn.s { background: var(--iron); box-shadow: inset 0 2px 0 var(--iron-hi), inset 0 -3px 0 #2a282c; }
.theme-hearthstone .btn.s:hover { background: #5c585e; border-color: var(--ember-hot); }
.theme-hearthstone .btn.s.chip[aria-pressed="true"], .theme-hearthstone .btn.s.chip[aria-current="page"] { background: #a8400c; border-color: var(--soot); box-shadow: inset 0 2px 0 #e8863f, inset 0 -3px 0 #6e2704; }
.theme-hearthstone .panel-body a.btn { color: var(--cream); }

.theme-hearthstone .servers > summary { background: #35292a; }

.theme-hearthstone .foot { background: var(--soot); border-top: 3px solid var(--iron); }

@media (max-width: 559.98px) {
  .theme-hearthstone .sign .words { padding: 20px 18px; }
  .theme-hearthstone .sign-actions { padding: 14px 14px 20px; }
  .theme-hearthstone .sign-actions > * { flex: 1 1 100%; }
  .theme-hearthstone .panel { padding: 5px; }
  .theme-hearthstone .panel-body { padding: 12px; }
  .theme-hearthstone .panel-head { padding-inline: 26px 8px; }
  .theme-hearthstone .panel-head :is(h1, h2) { padding-inline: 6px; }
}
