/* Shared look for every page on apps.crosstowntech.com: colour tokens (light + dark),
   base type, the Crosstown Tech header and the footer. Page-specific styles stay inline
   in each page. The landing page (index.html) set this look; change it here, not per page. */
:root {
  --bg: #ffffff; --fg: #0a0a0a; --muted: #6b7280; --muted-light: #9ca3af;
  --border: #e5e7eb; --card: #ffffff; --tint: #f6f6f7; --accent: #f5a524;
  --button-bg: #0a0a0a; --button-fg: #ffffff;
  --danger: #dc2626; --ok: #16a34a; --focus: rgba(245, 165, 36, .35);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c; --fg: #f5f5f7; --muted: #a1a1aa; --muted-light: #71717a;
    --border: #232326; --card: #121214; --tint: #17171a; --button-bg: #f5f5f7; --button-fg: #0a0a0a;
    --danger: #f87171; --ok: #4ade80; --focus: rgba(245, 165, 36, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c; --fg: #f5f5f7; --muted: #a1a1aa; --muted-light: #71717a;
  --border: #232326; --card: #121214; --tint: #17171a; --button-bg: #f5f5f7; --button-fg: #0a0a0a;
  --danger: #f87171; --ok: #4ade80; --focus: rgba(245, 165, 36, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.6;
       -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 2.5rem; } }

.site-header { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1180px;
               margin: 0 auto; padding: 1.25rem 20px; }
@media (min-width: 768px) { .site-header { padding: 1.5rem 1.75rem; } }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; letter-spacing: -.01em; }
.logo img { width: 22px; height: 22px; }
/* Pages that belong to one app carry that app's icon and name instead of the studio mark. */
.logo.app img { width: 26px; height: 26px; border-radius: 6px; box-shadow: 0 0 0 1px var(--border); }
.nav { font-size: .9rem; color: var(--muted); }
.nav a:hover { color: var(--fg); }

footer { border-top: 1px solid var(--border); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-top: 2rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom)); font-size: .875rem; color: var(--muted); }
.foot a:hover { color: var(--fg); }
