/* lumihabits.app: the app's night look. Fonts are served from this site. */
@font-face { font-family: "Press Start 2P"; src: url("/assets/fonts/press-start-2p.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0d0a1c;
  --panel: #1a1430;
  --panel-2: #231a40;
  --halo: rgba(156, 107, 255, 0.28);
  --text: #ece6ff;
  --soft: #b4aad4;
  --gold: #ffd76a;
  --teal: #70e2f2;
  --line: rgba(236, 230, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
}
img.px, .companions img, .invite img { image-rendering: pixelated; }
a { color: var(--teal); }
h1, h2, h3 { font-family: "Press Start 2P", monospace; font-weight: 400; line-height: 1.4; }
h1 { font-size: clamp(28px, 7vw, 56px); margin: 0 0 18px; color: var(--gold); letter-spacing: 2px; }
h2 { font-size: clamp(14px, 3vw, 20px); margin: 0 0 14px; color: var(--gold); }
h3 { font-size: 13px; color: var(--soft); margin: 36px 0 14px; }

.bar {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: rgba(13, 10, 28, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.mark { font-family: "Press Start 2P", monospace; font-size: 13px; color: var(--gold); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--soft); text-decoration: none; font-size: 14px; }
.bar nav a:hover { color: var(--text); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 32px; align-items: center;
  padding: 72px 16px 48px;
}
.hero-in { max-width: 560px; }
.app-icon { width: 96px; height: 96px; border-radius: 22px; image-rendering: pixelated; margin-bottom: 20px; }
.hero-art { width: 100%; height: auto; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-in { margin: 0 auto; }
  .app-icon { margin-left: auto; margin-right: auto; display: block; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .hero .btns.left { justify-content: center; }
  .closeups { justify-content: center; }
}
.lead { font-size: clamp(17px, 2.4vw, 21px); color: var(--text); margin: 0 0 28px; }

/* The app's lantern glass (LumiButton, LANTERN in the app): no outward glow,
   an iron rim, a short drop. Gold glass for a live store link, the dark night
   glass while it is still coming. */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 13px 22px; border-radius: 14px;
  background: radial-gradient(ellipse 55% 75% at 50% 45%, #FFD98A 0%, #D8973A 45%, #7A4A14 100%) #C98A34;
  border: 2px solid #1B1610;
  box-shadow: inset 0 0 0 2px #3E3428, 0 3px 0 rgba(0, 0, 0, 0.45);
  color: #2A1805; text-decoration: none; font-weight: 700;
}
.btn:hover { filter: brightness(1.06); }
.btn.big { padding: 16px 28px; font-size: 17px; }
.btn.off {
  background: radial-gradient(ellipse 60% 80% at 50% 40%, #3E3852 0%, #221E30 80%) #2C2740;
  color: #E6DEF6; opacity: 0.8;
}
.btn.off:hover { filter: none; }
.btn small { font-weight: 400; font-size: 12px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 18px 0; }
.btns.left { justify-content: flex-start; }

.wide > section { padding: 56px 16px; max-width: 1080px; margin: 0 auto; }
.row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel); border-radius: 18px; padding: 24px;
  box-shadow: inset 0 0 28px var(--halo);
}
.card p { color: var(--soft); margin: 0; }
.inline { vertical-align: -2px; }
.companions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.companions img { width: 48px; height: 48px; }

.garden p, .test p { color: var(--soft); max-width: 640px; }
.closeups { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; }
.closeups img:first-child { width: min(320px, 100%); height: auto; border-radius: 14px; display: block; }
.peek { position: relative; }
.peek .squirrel, .peek .oak { position: absolute; height: auto; border-radius: 0; }
.peek .squirrel { left: 20.75%; top: 24.25%; width: 14%; }
.peek .oak { left: 15%; top: 20%; width: 15.5%; }
.seasons { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seasons img { width: 100%; height: auto; }

.test { text-align: center; }
.test p { margin-left: auto; margin-right: auto; }
.small { font-size: 13px; }

.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-size: clamp(18px, 4vw, 26px); }
.doc h2 { font-size: 14px; margin-top: 34px; }
.doc p, .doc li { color: var(--soft); }
.doc strong { color: var(--text); }
.doc code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; color: var(--gold); }
.doc blockquote { margin: 18px 0; padding: 14px 18px; border: 1px solid rgba(255, 215, 106, 0.35); background: var(--panel); border-radius: 12px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
th { color: var(--text); }

.invite { text-align: center; max-width: 560px; }
.invite img { width: 128px; height: 128px; }
.code { font-family: "Press Start 2P", monospace; font-size: 13px; color: var(--gold); }

.foot {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center;
  padding: 28px 16px; border-top: 1px solid var(--line); font-size: 14px;
}
.foot a { color: var(--soft); text-decoration: none; }
.foot a:hover { color: var(--text); }
