/* The site's look, shared by every page: colours, type, the header and
   footer, buttons and code. Each section adds its own sheet on top:
   home.css, docs.css, components.css and theme-maker.css. */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #101c35;
  --bg-deep: #0b162b;
  --surface: #14223e;
  --surface-raised: #1a2842;
  --line: #2b3851;
  --line-strong: #3b4962;
  --text: #f7f6f0;
  --muted: #a9b4c9;
  --faint: #7f8da8;
  --yellow: #ffcf58;
  --yellow-deep: #b8943b;
  --pink: #f4b4df;
  --mint: #9fe2cd;
  --sky: #8ecbff;
  --coral: #ff9d7a;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
/* Howdy UI's base styles paint the body with its own background and font
   on pages that draw components. Hand the page back to `:root`. */
body { margin: 0; background: none; color: inherit; font-family: inherit; line-height: normal; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 6px; }
::selection { background: var(--yellow); color: var(--bg); }

.page-shell { max-width: 1280px; margin: auto; padding: 0 56px; }

.skip-link { position: fixed; top: -80px; left: 20px; z-index: 50; background: var(--yellow); padding: 12px; color: var(--bg); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* -- Header ------------------------------------------------------------- */

.header { min-height: 112px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 5; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { object-fit: contain; }
.header nav { display: flex; gap: 34px; align-items: center; font-size: 14px; font-weight: 600; }
.header nav > a:hover, .header [aria-current="page"] { color: var(--yellow); }
.github-link { display: flex; gap: 10px; align-items: center; border: 1px solid #44506a; border-radius: 8px; padding: 10px 12px; transition: border-color .18s; }
.github-link:hover { border-color: var(--yellow); }
.github-link svg { width: 17px; height: 17px; }
.stars { display: flex; gap: 6px; align-items: center; border-left: 1px solid #44506a; padding-left: 11px; margin-left: 3px; color: var(--yellow); font-size: 13px; }

/* -- Footer ------------------------------------------------------------- */

footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 24px; padding: 24px 0 30px; }
footer p { color: var(--muted); font-size: 12px; }
footer > a:last-child { margin-left: auto; font-size: 12px; color: #c5cede; }
footer > a:last-child:hover { color: var(--yellow); }

/* -- Shared pieces ------------------------------------------------------ */

.section-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--mint); text-transform: uppercase; }

.button { display: inline-flex; align-items: center; gap: 18px; justify-content: center; border-radius: 8px; padding: 15px 23px; font-size: 14px; font-weight: 700; transition: transform .18s, background .18s, box-shadow .18s; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: #172038; background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); }
.button-primary:hover { background: #ffdc80; box-shadow: 0 6px 0 var(--yellow-deep); }
.button-secondary { border: 1px solid #46516a; background: var(--surface-raised); }
.button-secondary:hover { background: #24334f; }

.text-link { display: inline-flex; gap: 14px; font-size: 14px; font-weight: 600; color: var(--yellow); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.status-dot { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(159, 226, 205, .15); }

pre { margin: 0; font: 13px/1.85 ui-monospace, SFMono-Regular, Consolas, monospace; overflow: auto; color: #d7e1f2; font-variant-ligatures: none; }
.code-pink, .hl-module, .hl-variant { color: var(--pink); }
.code-yellow, .hl-keyword { color: var(--yellow); }
.code-mint, .hl-string, .hl-number { color: var(--mint); }
.code-sky, .hl-function { color: var(--sky); }
.code-coral, .hl-operator { color: var(--coral); }
.code-faint, .hl-comment { color: var(--faint); font-style: italic; }

/* A command to copy: prompt, text and button. */
.command { display: flex; align-items: center; gap: 12px; background: var(--bg-deep); padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 8px; }
.prompt { color: var(--mint); font: 14px ui-monospace, monospace; }
.command code { font: 13px/1.75 ui-monospace, monospace; overflow-wrap: anywhere; flex: 1; min-width: 0; color: #e2e8f2; }
.command button { color: #c6d2e7; display: flex; align-items: center; cursor: pointer; background: transparent; border: 0; border-radius: 5px; padding: 8px; min-width: 36px; min-height: 36px; justify-content: center; flex-shrink: 0; }
.command button:hover { color: var(--yellow); }
.command button[data-copied] { color: var(--mint); }

@media (max-width: 900px) {
  .page-shell { padding: 0 28px; }
  .header nav { gap: 20px; }
}

@media (max-width: 640px) {
  .page-shell { padding: 0 16px; }
  .header { min-height: 100px; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px 0; }
  .header .brand img { width: 112px; height: auto; }
  .header nav { width: 100%; justify-content: center; font-size: 12px; gap: 16px; flex-wrap: wrap; }
  .github-link { padding: 7px 9px; gap: 6px; }
  .github-link svg { width: 14px; height: 14px; }
  .stars { font-size: 11px; padding-left: 8px; margin-left: 0; }
  .button { font-size: 13px; padding: 14px 16px; gap: 12px; }
  footer { gap: 12px; flex-wrap: wrap; justify-content: space-between; }
  footer .brand img { width: 95px; height: auto; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
