/* pawze.app: the app's Lamplight palette and fonts (self-hosted, so visiting the site tells no one else). */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/pixelify.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #110d1e;
  --deep: #171327;
  --nebula: #221b3a;
  --dusk: #2e2550;
  --amber: #ffb45c;
  --violet: #c3b3ff;
  --peach: #ff8f7a;
  --meadow: #9ad48a;
  --moon: #fbeee0;
  --haze: #b9a8c4;
  --edge: rgba(255, 206, 160, 0.16);
  --glass: rgba(255, 232, 206, 0.06);
  --ink: #2a1f2d;
  --paper: #f6e3c6;
  --display: "Fredoka", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0;
  color: var(--moon);
  font: 17px/1.6 var(--body);
  background:
    radial-gradient(ellipse 70% 40% at 70% 0%, rgba(255, 180, 92, 0.10), transparent 70%),
    linear-gradient(180deg, var(--deep) 0%, var(--nebula) 55%, var(--void) 100%);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
.pixel { image-rendering: pixelated; }
a { color: var(--amber); text-underline-offset: 3px; }
a:hover { color: var(--moon); }

.wrap { max-width: 980px; margin: 0 auto; padding-inline: 20px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font: 600 22px/1 var(--display); letter-spacing: .3px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--haze); text-decoration: none; }
.top nav a:hover { color: var(--moon); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding-block: 36px 56px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }
.lede { color: var(--haze); font-size: 19px; max-width: 34em; margin: 16px 0 26px; }
.donna { width: 100%; max-width: 360px; aspect-ratio: 40 / 34; margin-inline: auto; background: url("/img/donna-happy.png") 0 0 / 1600% 100% no-repeat; image-rendering: pixelated; animation: donna 2.56s steps(16) infinite; }
/* 16 frames: step k shows frame k (position k/15 of the way, so the end goes one frame past 100%) */
@keyframes donna { to { background-position: calc(100% * 16 / 15) 0; } }
@media (prefers-reduced-motion: reduce) { .donna { animation: none; } }

/* The game-style button, like the app's Shelter tab */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 3px solid var(--ink); border-radius: 10px;
  background: var(--amber); color: var(--ink); text-decoration: none;
  font: 600 20px/1 var(--pixel); letter-spacing: .5px; font-variant-ligatures: none;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: none; }
.meta { color: var(--haze); font-size: 14px; }

/* Sections */
section { padding-block: 48px; }
.eyebrow { font: 700 13px/1 var(--body); color: var(--amber); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; counter-reset: step; }
.step { background: var(--glass); border: 1px solid var(--edge); border-radius: 20px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: rgba(195, 179, 255, .16); color: var(--violet); font: 600 17px/1 var(--display); }
.step p { color: var(--haze); margin: 8px 0 0; font-size: 16px; }

.shelter { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.farm { border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 0 0 1px var(--edge), 0 20px 60px rgba(0, 0, 0, .45); }
.shelter ul { padding-left: 0; list-style: none; margin: 18px 0 0; display: grid; gap: 10px; }
.shelter li { color: var(--haze); padding-left: 26px; position: relative; }
.shelter li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; background: var(--amber); box-shadow: 0 0 0 2px var(--ink); }

.install { background: var(--glass); border: 1px solid var(--edge); border-radius: 24px; padding: 28px; }
.install ol { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--haze); }
.install ol b { color: var(--moon); font-weight: 600; }
.note { color: var(--haze); font-size: 15px; margin: 16px 0 0; }

/* Plain pages (privacy, confirmed) */
.page { max-width: 720px; padding-block: 24px 64px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page p, .page li { color: #e6d8e8; }
.page .updated { color: var(--haze); font-size: 15px; margin-top: 0; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: top; }
th { color: var(--haze); font-weight: 600; }

footer { border-top: 1px solid var(--edge); padding-block: 26px 40px; color: var(--haze); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--haze); }

@media (max-width: 760px) {
  .hero, .shelter { grid-template-columns: 1fr; }
  .hero { padding-block: 16px 40px; text-align: left; }
  .donna { max-width: 260px; grid-row: 1; }
  .steps { grid-template-columns: 1fr; }
  .top nav a:not(.keep) { display: none; }
  section { padding-block: 36px; }
}
