@font-face { font-family: "Fraunces"; src: url(fonts/Fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

/* Colours are the e-paper panel's own inks, so the site looks like the frame. */
:root {
  --bg: #f6f5f0; --card: #ffffff; --ink: #191e21; --muted: #5d6266; --line: #e2e0d8;
  --blue: #2157ba; --yellow: #efde44; --red: #b21318; --green: #125f20; --paper: #e8e8e8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121416; --card: #1b1e21; --ink: #ececea; --muted: #a3a8ac; --line: #2c3034; --blue: #7ea6ff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-variation-settings: "opsz" 96, "SOFT" 50; font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 24px; }
h3 { font-size: 22px; margin: 0 0 8px; }
code { font-size: .9em; background: var(--line); padding: 1px 5px; border-radius: 4px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(16px, 4vw, 48px); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: Fraunces, serif; font-size: 22px; }
@media (prefers-color-scheme: dark) { .brand img, footer img { filter: invert(1) hue-rotate(180deg); } }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
section { padding: clamp(40px, 7vw, 88px) 0; }

.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-top: 32px; }
.hero h1 { font-size: clamp(36px, 5.5vw, 64px); font-variation-settings: "opsz" 144, "SOFT" 50; font-weight: 350; margin: 0 0 20px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

/* The status screen shown in a frame: dark bezel, white mat, as it hangs on a wall. */
.frame { margin: 0; padding: 14px; background: #2a2622; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35), 0 8px 18px -8px rgba(0,0,0,.25); }
.frame img { border: 18px solid #faf8f2; image-rendering: pixelated; }

.button { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font: 600 15px Inter, sans-serif; cursor: pointer; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.big { padding: 16px 32px; font-size: 17px; }

.story { max-width: 720px; margin: 0 auto; text-align: center; font-family: Fraunces, serif; font-size: clamp(20px, 2.4vw, 26px); font-variation-settings: "opsz" 48, "SOFT" 50; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.grid p { margin: 0; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding-top: 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; image-rendering: pixelated; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.install { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 5vw, 56px); margin: 40px 0; }
.steps { padding-left: 22px; display: grid; gap: 12px; margin: 0 0 28px; }
.installer { display: grid; justify-items: start; gap: 8px; margin-bottom: 24px; }
.note { color: var(--red); }

details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

footer { display: flex; gap: 14px; align-items: flex-start; max-width: 1120px; margin: 40px auto 0; padding: 32px clamp(16px, 4vw, 48px) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
footer p { margin: 0; }
