/*
  Brightpath Labs website (ADR-0042). One stylesheet for every page: no web
  fonts, no images beyond the icons, and nothing loaded from another origin,
  so the Content-Security-Policy in _headers can stay at style-src 'self'.
*/

:root {
  color-scheme: light dark;
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --text: #1C1B19;
  --muted: #5F5B53;
  --border: #E6E2D9;
  --accent: #B45309;
  --on-accent: #FFFFFF;
  /* Warm light in the top corner of every page. At its strongest it keeps
     every text color above 4.5:1 (measured in the run report). */
  --glow: rgba(245, 158, 11, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 65ch;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --card: #1C1B19;
    --text: #F3F1EC;
    --muted: #A8A398;
    --border: #2E2C28;
    --accent: #F59E0B;
    --on-accent: #121210;
    --glow: rgba(245, 158, 11, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(64rem 34rem at 100% 0%, var(--glow), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

[id] {
  scroll-margin-top: 1.5rem;
}

/* Links: accent color, always underlined in running text. */

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, 60rem);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .container {
    width: min(100% - 5rem, 60rem);
  }
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */

.site-header {
  padding-block: 1.25rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  flex: none;
  width: 2rem;
  height: 2rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

/* Home page */

.hero {
  padding-block: clamp(3.5rem, 1.5rem + 8vw, 8rem) clamp(3rem, 1.5rem + 5vw, 6rem);
}

.hero h1 {
  max-width: 15em;
  margin: 0;
  font-size: clamp(2.375rem, 1.2rem + 4.4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.section {
  display: grid;
  gap: 1.25rem;
  padding-block: clamp(2.75rem, 1.5rem + 4vw, 4.5rem);
  border-top: 1px solid var(--border);
}

@media (min-width: 48rem) {
  .section {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.section-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-title::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 0.875rem;
  border-radius: 1px;
  background: var(--accent);
}

.statement {
  max-width: var(--measure);
  margin: 0;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
  line-height: 1.55;
}

.app-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.app-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.app-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: currentColor;
}

.app-tagline {
  margin: 1.25rem 0 0;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  text-wrap: balance;
}

.app-summary {
  max-width: var(--measure);
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.app-status {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Privacy notice and other text pages */

.page {
  padding-block: clamp(3rem, 1.5rem + 5vw, 6rem) clamp(3.5rem, 2rem + 5vw, 6.5rem);
}

.prose {
  max-width: var(--measure);
}

.prose h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.meta {
  margin: 0.875rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose .intro {
  margin-top: 2rem;
  font-size: 1.1875rem;
  line-height: 1.55;
}

.prose h2 {
  margin: 2.75rem 0 0;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.prose p {
  margin: 0.625rem 0 0;
}

/* Page not found */

.not-found {
  max-width: var(--measure);
  padding-block: clamp(1rem, 4vw, 3rem);
}

.not-found .lead {
  margin-top: 1rem;
}

.actions {
  margin: 2rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.375rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Footer */

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
