/* SendOps branding for status.sendops.dev, matching sendops.dev
   (~/work/sendops.dev: src/styles/global.css tokens, src/components/Header.tsx,
   src/components/Footer.astro). The site is light-only, so the status page
   pins light via pageConfig.colorScheme. Hooks (status-*) live in
   components/Header.tsx and components/Footer.tsx. */

/* Satoshi: ITF Free Font License, the files sendops.dev self-hosts. */
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Bitter (SIL OFL), the headings face. */
@font-face {
  font-family: 'Bitter Variable';
  src: url('/fonts/bitter-latin-wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --so-background: oklch(0.975 0.008 220);
  --so-foreground: oklch(0.145 0 0);
  --so-card: oklch(1 0 0);
  --so-primary: oklch(0.351 0.16 268);
  --so-primary-hover: oklch(0.351 0.16 268 / 90%);
  --so-primary-foreground: oklch(0.97 0.014 254.604);
  --so-muted-foreground: oklch(0.53 0 0);
  --so-border: oklch(0.92 0.022 277);
  --so-nav-hover: oklch(0.88 0.05 240 / 40%);
}

:root[data-mantine-color-scheme='light'] {
  --mantine-font-family: 'Satoshi', system-ui, sans-serif;
  --mantine-font-family-headings: 'Bitter Variable', serif;
  --mantine-color-body: var(--so-card);
  --mantine-color-text: var(--so-foreground);
  --mantine-color-anchor: var(--so-primary);
  --mantine-color-default-border: var(--so-border);
  --mantine-primary-color-filled: var(--so-primary);
  --mantine-primary-color-filled-hover: var(--so-primary-hover);
}

html body {
  background-color: var(--so-background);
  color: var(--so-foreground);
}

/* pages/*.tsx put next/font Inter on <main>; the site face wins. */
main {
  font-family: var(--mantine-font-family) !important;
}

/* Header: sticky, 64px, translucent with a soft shadow (sendops.dev h-16). */
.status-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 0;
  /* !important: Header.module.css sets the opaque body colour and loads later. */
  background-color: oklch(0.975 0.008 220 / 80%) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}
.status-header-inner {
  height: 64px;
}
/* Logo at the site's 25px height. */
.status-logo {
  height: 25px !important;
  width: auto !important;
}
.status-header-link {
  color: var(--so-muted-foreground);
  font-size: 14px;
  border-radius: 6px;
}
.status-header-link:hover {
  color: var(--so-foreground);
  background-color: var(--so-nav-hover);
}
/* The highlighted link renders as the site's "Start free" pill. */
[data-mantine-color-scheme] .status-header-link[data-active] {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 24px;
  margin-left: 8px;
  border-radius: 9999px;
  /* !important: Header.module.css's blue pill has equal specificity and loads later. */
  background-color: var(--so-primary) !important;
  color: var(--so-primary-foreground) !important;
}
[data-mantine-color-scheme] .status-header-link[data-active]:hover {
  background-color: var(--so-primary-hover) !important;
}

/* Footer: the site's bottom row (logo left, legal right). */
.status-footer-divider {
  border-color: var(--so-border) !important;
}
.status-footer .so-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--so-muted-foreground);
}
.status-footer .so-footer img {
  height: 20px;
  width: auto;
  display: block;
}
.status-footer .so-footer-legal {
  text-align: center;
}
.status-footer .so-footer-legal p {
  margin: 0;
}
.status-footer .so-footer-legal p + p {
  margin-top: 4px;
}
.status-footer .so-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.status-footer .so-footer a:hover {
  color: var(--so-foreground);
}
.status-footer .so-footer .so-sep {
  margin: 0 8px;
  color: var(--so-border);
}
@media (min-width: 768px) {
  .status-footer .so-footer {
    flex-direction: row;
  }
  .status-footer .so-footer-legal {
    text-align: right;
  }
}
