/* Fork Guy Backups — shared stylesheet.
   Color tokens copied from web/src/app/(frontend)/globals.css so this standalone site matches the
   main application's palette exactly (same WCAG-contrast-checked values), without depending on the
   Next.js app or its build.
   Fonts: no Google Fonts @import and no bundled font files — a system-first stack that names Inter/
   JetBrains Mono first, falling through to each OS's own UI font otherwise. No external network
   request, no binary font assets to vendor. */

:root {
  color-scheme: light;
  --background: #f2f6f3;
  --foreground: #0b0f0e;
  --card: #ffffff;
  --primary: #00784a;
  --primary-foreground: #ffffff;
  --secondary: #e4ece7;
  --muted-foreground: #4b5852;
  --border: #cbd6cf;
  --link: #00784a;
  --brand-mark: #00915a;
}

[data-theme='dark'] {
  color-scheme: dark;
  --background: #0b0f0e;
  --foreground: #f2f6f3;
  --card: #141a18;
  --primary: #2be68a;
  --primary-foreground: #0b0f0e;
  --secondary: #1c2421;
  --muted-foreground: #a3aea8;
  --border: #2a3531;
  --link: #2be68a;
  --brand-mark: #2be68a;
}

/* No-JavaScript fallback: follow the device setting until the theme script has run. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --background: #0b0f0e;
    --foreground: #f2f6f3;
    --card: #141a18;
    --primary: #2be68a;
    --primary-foreground: #0b0f0e;
    --secondary: #1c2421;
    --muted-foreground: #a3aea8;
    --border: #2a3531;
    --link: #2be68a;
    --brand-mark: #2be68a;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--foreground);
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--primary);
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.6rem;
  color: var(--brand-mark);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--link);
}

.status-note {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
}

code, .mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  font-size: 0.9em;
  background: var(--secondary);
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
}

blockquote {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--primary);
  background: var(--secondary);
  border-radius: 0 0.4rem 0.4rem 0;
}

footer.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

footer.site-footer a {
  color: var(--muted-foreground);
}
/* Keep long scope URLs within narrow screens and keyboard focus visible. */
code, a { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
