/*
 * NextRights company website: the only stylesheet.
 *
 * Served under a strict content security policy (style-src 'self'), so every
 * style lives in this file: no <style> elements and no style="" attributes in
 * the pages.
 */

/* ==========================================================================
   Brand tokens: PLACEHOLDER.
   There is no official NextRights brand yet. These tokens (palette, type and
   radius) are a neutral placeholder; the official brand replaces them here,
   in this one block plus its dark-mode override below. The logo mark color
   is repeated in site/assets/logo-mark.svg, favicon.svg, wordmark.svg and
   favicon.ico, which are placeholders too.
   Contrast (WCAG 2.x, rounded down) of each pair is noted beside it.
   ========================================================================== */
:root {
  color-scheme: light dark;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --color-bg: #ffffff;
  --color-surface: #f3f5f7;
  --color-text: #1b2128;          /* on bg 16.2:1, on surface 14.8:1 */
  --color-muted: #4b5663;         /* on bg 7.4:1, on surface 6.8:1 */
  --color-link: #1f5f8b;          /* on bg 6.8:1, on surface 6.2:1 */
  --color-link-hover: #174a6d;    /* on bg 9.3:1 */
  --color-border: #c9d1d9;        /* decorative rules only */
  --color-focus: #1f5f8b;         /* focus ring on bg 6.8:1 (non-text floor 3:1) */

  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #111519;
    --color-surface: #1a2027;
    --color-text: #e6eaee;        /* on bg 15.1:1, on surface 13.5:1 */
    --color-muted: #a8b3be;       /* on bg 8.6:1, on surface 7.7:1 */
    --color-link: #8ec5ee;        /* on bg 9.9:1, on surface 8.8:1 */
    --color-link-hover: #b9dcf5;  /* on bg 12.7:1 */
    --color-border: #33404c;
    --color-focus: #8ec5ee;
  }
}
/* ==================== end of brand tokens ==================== */

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration-thickness: 2px;
}

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

main:focus {
  outline: none;
}

h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.125rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

/* Body text keeps a comfortable line length; headings may use the full column. */
main p,
main ul,
main ol {
  max-width: 46rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.95em;
}

.container {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Skip link: off-screen until it receives keyboard focus. */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -10rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg);
  color: var(--color-link);
  border: 2px solid var(--color-focus);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

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

.brand:hover {
  color: var(--color-text);
}

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

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

.nav-list a {
  display: inline-block;
  padding: 0.25rem 0;
}

.nav-list a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

/* Main */
main {
  flex: 1 0 auto;
  padding: 2.5rem 0 3rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--color-text);
}

.muted {
  color: var(--color-muted);
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.features li {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

.features strong {
  display: block;
}

.callout {
  background: var(--color-surface);
  border-left: 4px solid var(--color-link);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.email {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.site-footer p {
  margin: 0;
}
