/* spindle.fyi: Gruvbox dark, Goudy Bookletter titles, Nunito body.
   Fonts are from @fontsource (SIL Open Font License), self-hosted. */
@font-face { font-family: "Goudy Bookletter 1911"; font-weight: 400; font-display: swap;
  src: url("/fonts/goudy-bookletter-1911-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap;
  src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #282828; --panel: #32302f; --code-bg: #1d2021; --border: #504945;
  --text: #ebdbb2; --muted: #a89984; --accent: #b8bb26; --link: #83a598;
  /* Goudy Bookletter has one weight: titles only, never bolded */
  --display: "Goudy Bookletter 1911", "Iowan Old Style", Georgia, serif;
  --body: "Nunito", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* the app's Home wallpaper (wallpaper.js): behind everything, only to look at */
.wallpaper { position: absolute; top: 0; left: 0; right: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.wallpaper canvas { display: block; opacity: .7; animation: breathe 40s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes breathe { from { transform: scale(1) rotate(0deg); } to { transform: scale(1.04) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .wallpaper canvas { animation: none; } }
body { position: relative; overflow-x: hidden; }

main { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; padding: 56px 20px 64px; }
header { text-align: center; margin-bottom: 24px; }
.logo { width: 72px; height: 72px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.15; }
h1 { font-size: 3.2rem; margin: 0; }

.tagline { font-family: var(--display); font-size: 1.3rem; color: var(--muted); margin: 0 0 .8em; }
footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; font-size: .9rem; }
footer span[aria-hidden] { color: var(--border); margin: 0 .5em; }
p { margin: 0 0 .9em; }

section { margin-top: 32px; }
.intro { margin: 0 0 28px; }

.code { position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; }
.code pre { margin: 0; padding: 14px 18px; overflow-x: auto; }
.code code { font: 13.5px/1.7 var(--mono); color: var(--text); }
.code .c { color: var(--muted); }
.copy { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--panel); color: var(--muted);
  font: 700 12px var(--body); cursor: pointer; }
.copy:hover { color: var(--text); }
#install .small { margin-top: .7em; }

.label { font-size: .85rem; margin: 0 0 .5em; }

/* centred text; the commands stay left-aligned inside their box */
main { text-align: center; }
main p { text-wrap: balance; }
.code { text-align: left; }
