@font-face { font-family: Geist; src: url(fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/geist-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* shadcn/ui's zinc dark theme, with the Sunstone's gold as the one accent */
:root {
  color-scheme: dark;
  --bg: #09090b;
  --card: #111113;
  --border: #27272a;
  --fg: #fafafa;
  --muted: #a1a1aa;
  --primary: #fcd34d;
  --primary-fg: #1c1305;
  --ring: #fbbf24;
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Geist, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; margin-bottom: 8px; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
p { margin: 0 0 12px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

/* the bar along the top */
.top { position: sticky; top: 0; z-index: 10; background: rgb(9 9 11 / 0.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand img { image-rendering: pixelated; }
.top nav { display: flex; gap: 20px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.top nav a:hover { color: var(--fg); }

/* buttons and badges */
.btn { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 8px; background: var(--primary); color: var(--primary-fg); font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; transition: background 0.15s; }
.btn:hover { background: #fde68a; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 0.85rem; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { background: #18181b; }
.badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid #3f3f46; border-bottom-width: 2px; border-radius: 5px; background: #18181b; font: 600 0.75rem/1.5 var(--mono); text-align: center; color: var(--primary); }
code { font: 0.85em var(--mono); background: #18181b; border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* sections */
main > section { padding: 72px 0 0; }
.eyebrow, .card .eyebrow { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary); margin-bottom: 12px; }
.sub, .meta { color: var(--muted); }
.meta { font-size: 0.9rem; }

.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding-top: 56px !important; }
.hero h1 { margin: 16px 0 12px; }
.logo { display: block; width: 100%; max-width: 560px; image-rendering: pixelated; }
.hero .lead { font-size: 1.35rem; font-weight: 600; }
.hero p:not(.lead) { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero-shot { border-radius: var(--radius); }

.grid { display: grid; gap: 16px; margin-top: 28px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.two { grid-template-columns: 1.15fr 1fr; align-items: start; }
.stack { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card p:last-child { margin-bottom: 0; }
.card.wide { margin-top: 16px; }

/* screenshots: crisp pixels, a click opens the lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 28px; }
.shot { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: #000; cursor: zoom-in; }
.shot img { display: block; width: 100%; image-rendering: pixelated; transition: transform 0.2s, opacity 0.2s; }
.shot:hover img { transform: scale(1.02); opacity: 0.9; }

.keys { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.keys td { padding: 9px 0; border-top: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.keys tr:first-child td { border-top: 0; }
.keys td:first-child { white-space: nowrap; padding-right: 16px; }
.status { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 4px 0 0; font-size: 0.9rem; }
.status div { display: flex; gap: 10px; }
.status dt { font: 600 0.85rem/1.6 var(--mono); color: var(--primary); min-width: 2em; }
.status dd { margin: 0; color: var(--muted); }

.tips { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tips li { padding: 12px 16px 12px 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--muted); font-size: 0.93rem; position: relative; }
.tips li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 8px; height: 8px; background: var(--primary); transform: rotate(45deg); }

.download { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 36px; background: linear-gradient(135deg, #1c1508, var(--card) 55%); }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; display: grid; gap: 14px; align-content: center; }
.steps b { color: var(--fg); }

.log { margin-top: 28px; border-left: 1px solid var(--border); padding-left: 24px; display: grid; gap: 32px; }
.log article { position: relative; }
.log article::before { content: ""; position: absolute; left: -29px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.log header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.log time { color: var(--muted); font-size: 0.9rem; }
.log ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.log li { margin: 3px 0; }

.soon { margin: 12px 0 14px; padding-left: 18px; color: var(--muted); }
.foot { display: flex; align-items: center; gap: 12px; padding: 48px 0; margin-top: 72px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.foot p { margin: 0; }
.foot img { image-rendering: pixelated; }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgb(0 0 0 / 0.85); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 64px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; image-rendering: pixelated; border-radius: 8px; border: 1px solid var(--border); }
.lightbox figcaption { color: var(--fg); text-align: center; }
.lb-btn { position: fixed; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: rgb(24 24 27 / 0.9); color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: #27272a; }
.lb-prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-close { right: 12px; top: 12px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .hero, .two, .download { grid-template-columns: 1fr; }
  .hero { gap: 28px; padding-top: 32px !important; }
  .download { padding: 24px; gap: 24px; }
  .lightbox figure { padding: 56px 8px 72px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shot img { transition: none; } }

/* the newest build: a pill at the top, and the changelog's first entry as a gold card */
.pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 2px 12px 2px 3px; border: 1px solid #4a3a12; border-radius: 999px; background: #1c1508; font-size: 0.8rem; color: var(--fg); text-decoration: none; }
.pill b { padding: 1px 8px; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: 0.7rem; }
.pill:hover { border-color: var(--primary); }
.log article:first-child { padding: 20px 22px; margin-left: -8px; border: 1px solid #4a3a12; border-radius: var(--radius); background: linear-gradient(135deg, #1c1508, var(--card) 60%); }
.log article:first-child::before { left: -21px; top: 27px; box-shadow: 0 0 0 4px rgb(252 211 77 / 0.2); }
.log article:first-child header::after { content: "Just released"; margin-left: auto; font: 600 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); }
.log article:first-child ul { color: #d4d4d8; }
