/* Interval site: the reference window's aesthetic, page-sized.
   Stone bevel chrome, gold-on-brown text, parchment body. */
:root {
  --ink: #16120c; --stone: #494034; --stone-dk: #2e2820; --stone-lt: #6b5f4a;
  --gold: #ffcc33; --parch: #d9c9a3; --dim: #9a8a68; --fire: #e67e22; --grass: #3d5a23;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--ink); color: var(--parch);
  font: 14px/1.65 Verdana, Geneva, sans-serif;
  display: flex; flex-direction: column; align-items: center;
  min-height: 100vh; padding: 18px 12px 48px;
}
.stone {
  background: var(--stone);
  border-top: 2px solid var(--stone-lt); border-left: 2px solid var(--stone-lt);
  border-bottom: 2px solid var(--stone-dk); border-right: 2px solid var(--stone-dk);
}
.page { width: 100%; max-width: 860px; }
nav { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
nav a {
  display: block; padding: 7px 14px; color: var(--gold); text-decoration: none;
  font-weight: bold; font-size: 12px; letter-spacing: .5px;
}
nav a:hover, nav a.here { background: var(--stone-dk); color: #fff; }
main { padding: 22px 26px; }
h1 { color: var(--gold); font-size: 26px; letter-spacing: 1px; margin-bottom: 4px; }
h2 { color: var(--gold); font-size: 16px; letter-spacing: .5px; margin: 26px 0 8px; }
h3 { color: var(--parch); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--gold); }
.tagline { color: var(--dim); font-size: 13px; margin-bottom: 18px; }
.tick {
  display: inline-block; padding: 10px 18px; margin: 10px 0 4px;
  background: var(--ink); color: var(--gold);
  font: bold 22px/1 "Courier New", monospace; letter-spacing: 2px;
  border: 2px solid var(--stone-dk);
}
.ticklabel { font-size: 11px; color: var(--dim); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 14px 0; }
.card { padding: 14px 16px; }
.card b { color: var(--gold); display: block; margin-bottom: 6px; font-size: 13px; }
.card p { font-size: 12.5px; color: var(--parch); margin: 0; }
pre {
  background: var(--ink); color: var(--parch); padding: 12px 14px; overflow-x: auto;
  font: 12.5px/1.5 "Courier New", monospace; border: 2px solid var(--stone-dk); margin: 8px 0 14px;
}
code { color: var(--gold); font-family: "Courier New", monospace; font-size: .95em; }
table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 10px 0; }
/* the board holds its shape: twelve skills scroll inside the stone,
   they do not escape it */
#board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#board table { min-width: max-content; white-space: nowrap; font-size: 12px; margin: 10px 0 4px; }
#board th, #board td { padding: 6px 9px; }
#board th:nth-child(2), #board td:nth-child(2) { position: sticky; left: 0; background: var(--stone, #4a4238); }
th { text-align: left; color: var(--gold); padding: 8px 10px; background: var(--stone-dk); font-size: 12px; letter-spacing: .5px; }
td { padding: 7px 10px; border-bottom: 1px solid var(--stone-dk); }
tr:hover td { background: rgba(0,0,0,.18); }
.rank { color: var(--dim); width: 44px; }
ul, ol { margin: 0 0 14px 22px; }
li { margin-bottom: 6px; }
.footer { margin-top: 16px; font-size: 11px; color: var(--dim); text-align: center; }
.keys td:first-child { color: var(--gold); font-family: "Courier New", monospace; white-space: nowrap; }


/* the gate's language, brought to the site */
h1 {
  text-shadow: 0 0 14px rgba(255,204,51,.35), 0 2px 0 #1c1710;
  letter-spacing: 4px;
}
.page > main.stone { position: relative; }
.torch {
  position: absolute; top: -21px; width: 12px; height: 26px;
  background: radial-gradient(ellipse at 50% 85%, #f4d03f 0%, #e67e22 45%, transparent 72%);
  filter: drop-shadow(0 0 8px rgba(230,126,34,.6));
  animation: flick .6s infinite alternate ease-in-out;
}
.torch.l { left: 14px; } .torch.r { right: 14px; animation-delay: .27s; }
.torch::after {
  content: ''; position: absolute; left: 3px; top: 24px; width: 6px; height: 8px;
  background: #2e2820; border: 1px solid #55483a; animation: none;
}
@keyframes flick {
  from { transform: scaleY(1) skewX(-3deg); opacity: .85; }
  to { transform: scaleY(1.22) skewX(4deg); opacity: 1; }
}
a { color: var(--gold); }
a:hover { text-shadow: 0 0 8px rgba(255,204,51,.5); }
pre, code {
  background: #241f18; border: 1px solid #3a332a;
  border-radius: 2px; color: #d9c9a3;
}
pre { padding: 10px 12px; overflow-x: auto; }
.card, .stone { box-shadow: 0 2px 14px rgba(0,0,0,.35); }


/* the hero stands centered: a title, a heartbeat, a caption */
main.stone > h1, main.stone > .tagline, main.stone > .ticklabel { text-align: center; }
main.stone > .tick { display: block; width: fit-content; margin: 12px auto 6px; }
