/* Lo-Fi Fireplace, the site. One theme, like the app: a fire in a dark room. Every edge is
   square, every border is a whole number of pixels, and the headings are the app's own font. */

:root {
  --night: #000000;
  --panel: #120f0d;
  --raised: #1c1815;
  --line: #4a4239;
  --ink: #f2ebe3;
  --muted: #9c9288;
  --ember: #f58a16;
  --brick: #bf4426;
  --gold: #f8cc50;
  --navy: #1d2438;
  --unit: 4px;
}

* { box-sizing: border-box; }

html { background: var(--night); }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Pixelify Sans", "Courier New", monospace;
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.pixels { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--ember); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.px { display: inline-block; line-height: 0; }
.px-canvas { display: block; image-rendering: pixelated; }

/* ---- top bar --------------------------------------------------------------------------- */

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px;
  border-bottom: var(--unit) solid var(--line);
  background: var(--panel);
}
.bar .home { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.bar .home img { width: 40px; height: 40px; }
.bar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.bar nav a { color: var(--muted); }
.bar nav a[aria-current="page"] { color: var(--ember); }

/* ---- hero ------------------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: end start;
  border-bottom: var(--unit) solid var(--line);
  overflow: hidden;
}
.hero .room {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%;
}
.hero .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.88) 100%);
}
.hero .sign {
  position: relative;
  padding: 40px 24px 36px;
  max-width: 900px;
  display: grid; gap: 18px;
}
.hero .sign .hearth { width: 100px; height: 100px; }
.hero .sign h1 { margin: 0; color: var(--ink); }
.hero .lede {
  margin: 0; font-size: 22px; color: var(--ink);
  text-shadow: 2px 2px 0 #000;
  max-width: 34ch;
}

.buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: var(--raised); color: var(--ink);
  border: var(--unit) solid var(--ink);
  box-shadow: var(--unit) var(--unit) 0 #000;
  font-weight: 500; font-size: 18px; letter-spacing: 0.02em;
}
.button:hover, .button:focus-visible { background: var(--ember); color: #000; border-color: var(--ember); text-decoration: none; }
.button.soon { border-color: var(--line); color: var(--muted); cursor: default; }
.button.soon:hover { background: var(--raised); color: var(--muted); border-color: var(--line); }
.button .tag { font-size: 13px; padding: 2px 6px; border: 2px solid currentColor; }

/* ---- page body ------------------------------------------------------------------------- */

main { max-width: 960px; margin: 0 auto; padding: 48px 20px 64px; }
main.narrow { max-width: 760px; }

section { margin: 0 0 56px; }
section > h2 { margin: 0 0 18px; color: var(--ember); }

p { margin: 0 0 1em; max-width: 68ch; }
p.muted, .muted { color: var(--muted); }

.panel {
  background: var(--panel);
  border: var(--unit) solid var(--line);
  box-shadow: inset 0 0 0 2px #000, 8px 8px 0 #000;
  padding: 22px 24px;
  margin: 0 0 24px;
}
.panel p:last-child { margin-bottom: 0; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .duo { grid-template-columns: 1fr; } }

.shot { border: var(--unit) solid var(--line); box-shadow: 8px 8px 0 #000; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 16px; margin-top: 10px; }

ul.list { list-style: none; padding: 0; margin: 0 0 1em; max-width: 68ch; }
ul.list li { position: relative; padding-left: 26px; margin: 0 0 10px; }
ul.list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 10px; height: 10px; background: var(--ember);
  box-shadow: 2px 2px 0 #000;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fact { border: var(--unit) solid var(--line); padding: 14px 16px; background: var(--panel); }
.fact strong { display: block; color: var(--gold); margin-bottom: 4px; }
.fact span { color: var(--muted); font-size: 16px; }

/* legal pages */
.legal h2 { margin: 40px 0 12px; }
.legal p, .legal li { max-width: 72ch; }
.legal ol, .legal ul { padding-left: 1.3em; }
.legal li { margin: 0 0 8px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 17px; margin: 0 0 1.5em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 2px solid var(--line); }
.legal th { color: var(--muted); font-weight: 500; background: var(--panel); }
.tablewrap { overflow-x: auto; }
.legal code { font-family: inherit; color: var(--gold); }
.effective { color: var(--muted); margin: 0 0 28px; }

/* ---- footer ---------------------------------------------------------------------------- */

footer {
  border-top: var(--unit) solid var(--line);
  padding: 28px 20px 44px;
  color: var(--muted); font-size: 16px;
  display: grid; gap: 10px; justify-items: center; text-align: center;
}
footer nav { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
footer a { color: var(--muted); text-decoration: underline; text-decoration-thickness: 2px; }
footer a:hover { color: var(--ember); }

@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { min-height: 64vh; }
  .hero .sign .hearth { width: 80px; height: 80px; }
  .hero .lede { font-size: 19px; }
  .panel { padding: 18px 16px; box-shadow: inset 0 0 0 2px #000, 6px 6px 0 #000; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
