/* catacomms. A sibling to loraline's stylesheet, and deliberately not a copy:
   that site is chart paper, cool and quiet, because it is documentation for a
   messenger. This one is dark because the subject is a dark place, and the
   accent is torch amber because torchlight is the game's actual clock. Same
   serif, so the two read as coming from the same hand. */

:root {
  --paper:   #12181c;
  --panel:   #1a2228;
  --raised:  #202a31;
  --ink:     #e4e2dc;
  --soft:    #9aa6ab;
  --faint:   #6d7a80;
  --rule:    #2a353c;
  --flame:   #e8a13f;
  --ember:   #d1603f;
  --serif: ui-serif, Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.62;
}
.page { max-width: 41rem; margin: 0 auto; padding: 0 1.4rem 6rem; }

a { color: var(--ink); text-decoration-color: var(--flame); text-underline-offset: 3px; }
a:hover { color: var(--flame); }
a:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2.6rem; margin: 0 0 .5rem; letter-spacing: -0.03em; display: flex;
     align-items: center; gap: .35em; }
h1 .mark { width: .9em; height: .9em; color: var(--flame); }
h2 { font-size: 1.35rem; margin: 3.4rem 0 .9rem; }
h3 { font-size: 1.02rem; margin: 2rem 0 .4rem; }
p { margin: 0 0 1.05rem; }
ul { margin: 0 0 1.05rem; padding-left: 1.15rem; }
li { margin-bottom: .4rem; }

header { padding: 4.5rem 0 0; }
.standfirst { font-size: 1.22rem; line-height: 1.5; color: var(--soft);
              margin: 0 0 2.2rem; max-width: 33rem; }

hr { border: 0; height: 1px; background: var(--rule); margin: 3.6rem 0 0; }

figure { margin: 0 0 2.4rem; }
figure img { width: 100%; display: block; border-radius: 6px;
             image-rendering: pixelated; background: var(--panel); }
figcaption { color: var(--faint); font-size: .88rem; margin-top: .7rem; }

pre.cmd {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
  background: var(--panel); color: var(--ink);
  border-left: 2px solid var(--flame);
  padding: .8rem 1rem; margin: 0 0 1.05rem; overflow-x: auto; white-space: pre;
}
code { font-family: var(--mono); font-size: .86em; background: var(--panel);
       padding: .1em .35em; border-radius: 3px; }
pre.cmd code { background: none; padding: 0; font-size: 1em; }

table { border-collapse: collapse; width: 100%; margin: 0 0 1.3rem; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .8rem .45rem 0;
         border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--soft); font-size: .86rem; }
td.num { font-family: var(--mono); font-size: .84rem; white-space: nowrap; }

.note { border-left: 2px solid var(--rule); padding: .1rem 0 .1rem 1rem;
        margin: 0 0 1.3rem; color: var(--soft); font-size: .96rem; }
.note strong { color: var(--ink); }

/* Tiers, in the colours the client actually draws them. */
.tier { font-family: var(--mono); font-size: .8em; }
.t-fine { color: #9aa8b0; } .t-rare { color: #a07fd8; } .t-named { color: var(--flame); }

footer { margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
         color: var(--faint); font-size: .9rem; }
footer p { margin-bottom: .4rem; }

@media (max-width: 34rem) {
  body { font-size: 17px; }
  h1 { font-size: 2.05rem; }
  header { padding-top: 3rem; }
}

/* navigation and the walkthrough */
nav { margin: 0 0 2.2rem; font-size: .95rem; }
nav a { margin-right: 1.2rem; }
nav a[aria-current] { color: var(--flame); text-decoration: none; font-weight: 600; }
nav .mark { width: 1.15em; height: 1.15em; color: var(--flame); vertical-align: -0.22em;
            margin-right: .35em; }

.next { display: block; margin: 2rem 0 0; padding: 1rem 1.2rem;
        background: var(--panel); border-left: 2px solid var(--flame);
        text-decoration: none; color: var(--ink); }
.next:hover { color: var(--ink); background: var(--raised); }
.next b { display: block; font-size: 1.08rem; margin-bottom: .15rem; }
.next span { color: var(--soft); font-size: .95rem; }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 2.6rem 0 0; }
ol.steps > li { counter-increment: step; position: relative;
                padding: 0 0 .4rem 2.6rem; margin: 0 0 2.4rem; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  font-family: var(--mono); font-size: .8rem; color: var(--flame);
  border: 1px solid var(--flame); border-radius: 50%;
  width: 1.7rem; height: 1.7rem; line-height: 1.6rem; text-align: center;
}
ol.steps h2 { margin: 0 0 .6rem; font-size: 1.15rem; }

dl { margin: 0 0 1.05rem; }
dt { font-weight: 600; margin-top: 1.1rem; }
dd { margin: .15rem 0 0; color: var(--soft); }
.platform dt { margin-top: .8rem; font-size: .92rem; }
.platform dd { margin-left: 0; }
.platform dd code { font-size: .82em; }

.aside { background: var(--panel); padding: .9rem 1.1rem; margin: 0 0 1.3rem;
         font-size: .95rem; color: var(--soft); }
.aside p:last-child { margin-bottom: 0; }
.aside strong { color: var(--ink); }
