/* Reading pages of Hot Potato Pad (docs, stats, log, 404): the same iron, soot and tallow as the yard, set as
   a long page with a left rail. Scale 1.25: 11 / 12.5 / 14 / 17.5 / 22 / 27 / 34 / 42 / 53. */
:root {
  --iron: #1a1613; --soot: #2b2521; --soot-3: #332c27; --tallow: #efe2c6; --tallow-2: rgba(239, 226, 198, .74); --tallow-3: rgba(239, 226, 198, .5);
  --ash: #8f8375; --ember: #df5f27; --butter: #efc54c; --rule: rgba(239, 226, 198, .12); --rule-2: rgba(239, 226, 198, .2);
  --f-d: "Bricolage Grotesque", "Arial Narrow", sans-serif; --f-m: "Red Hat Mono", ui-monospace, monospace; --r: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--iron); color: var(--tallow); font: 400 16px/1.6 var(--f-d); font-variation-settings: "wdth" 100, "opsz" 16;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(90% 60% at 80% -10%, rgba(223, 95, 39, .1), transparent 60%);
  background-attachment: fixed;
}
a { color: var(--tallow); text-decoration-color: var(--tallow-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--butter); outline-offset: 2px; }
code, .m { font: 500 .88em var(--f-m); }
code { background: rgba(239, 226, 198, .07); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 24px; background: rgba(26, 22, 19, .96); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand b { font: 800 22px/1 var(--f-d); font-variation-settings: "wdth" 75, "opsz" 96; }
.top nav { margin-left: auto; display: flex; gap: 2px; }
.top nav a { text-decoration: none; padding: 9px 11px; border-radius: 8px; font-size: 14px; color: var(--tallow-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--tallow); background: rgba(239, 226, 198, .07); }
.tag {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--tallow); color: var(--iron);
  font: 700 14px/1 var(--f-d); text-decoration: none; box-shadow: 0 3px 0 #000, inset 0 1px 0 rgba(255, 255, 255, .45); cursor: pointer;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
}
.tag:active { transform: translateY(3px); box-shadow: 0 0 0 #000; }
.wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; max-width: 1160px; margin: 0 auto; padding: 48px 24px 96px; }
.rail { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; }
.rail a { text-decoration: none; font-size: 14px; color: var(--ash); padding: 5px 0 5px 12px; border-left: 1px solid var(--rule); }
.rail a:hover { color: var(--tallow); border-left-color: var(--ember); }
.doc { max-width: 760px; min-width: 0; }
.eyebrow { font: 500 11px/1 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); margin: 0 0 14px; }
h1 { margin: 0; font: 800 53px/1 var(--f-d); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.02em; }
.lede { font-size: 19px; color: var(--tallow-2); max-width: 56ch; margin: 18px 0 0; }
h2 { margin: 64px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font: 800 34px/1.05 var(--f-d); font-variation-settings: "wdth" 75, "opsz" 96; letter-spacing: -.01em; display: flex; gap: 14px; align-items: baseline; scroll-margin-top: 80px; }
h2 .n { font: 500 12px var(--f-m); color: var(--ember); letter-spacing: .1em; }
h3 { margin: 32px 0 0; font: 700 20px/1.2 var(--f-d); font-variation-settings: "wdth" 85, "opsz" 32; }
p, li { color: var(--tallow-2); max-width: 68ch; }
p b, li b { color: var(--tallow); font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: 14px; }
.tbl-wrap { overflow-x: auto; }
.tbl th { text-align: left; font: 500 11px/1.3 var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule-2); vertical-align: bottom; }
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--tallow-2); vertical-align: top; }
.tbl td:first-child { color: var(--tallow); white-space: nowrap; }
.tbl .m, .tbl code { white-space: nowrap; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 52px; border-radius: 10px; background: rgba(43, 37, 33, .7); border: 1px solid var(--rule); max-width: none; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 24px; height: 24px; border-radius: 6px; background: var(--tallow); color: var(--iron); font: 700 13px/24px var(--f-m); text-align: center; }
.note { margin: 20px 0 0; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--rule); border-left: 3px solid var(--ember); background: rgba(43, 37, 33, .5); }
.note.jp { border-left-color: var(--butter); }
.diag { margin: 24px 0 0; padding: 20px; border-radius: 12px; background: rgba(43, 37, 33, .6); border: 1px solid var(--rule); }
.diag svg { width: 100%; height: auto; display: block; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.cols > div { padding: 16px; border-radius: 10px; border: 1px solid var(--rule); background: rgba(43, 37, 33, .5); }
.cols h3 { margin: 0 0 6px; font-size: 17px; }
.cols ul { margin: 0; padding-left: 18px; }
details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--tallow); }
details p { margin: 10px 0 0; }
.foot { max-width: 1160px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--rule); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ash); }
.foot a { color: var(--ash); }
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding: 28px 16px 72px; }
  .rail { display: none; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; margin-top: 48px; }
  .top { padding: 0 16px; gap: 10px; }
  .top nav a { padding: 9px 7px; font-size: 13px; }
  .cols { grid-template-columns: 1fr; }
  .tbl { font-size: 13px; }
}
@media (max-width: 400px) { .top nav a.opt { display: none; } }
