/*
 * Movecion legal pages — Direction C "Volt", symbol N Double slice M.
 * Values from movecion-brand/round2/tokens.json (v2.1.0-round2-light).
 * Dark-first; light via prefers-color-scheme. Fallback is dark.
 * Fonts are self-hosted (SIL OFL 1.1, see /assets/fonts/OFL-*.txt).
 */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo Expanded";
  src: url("/assets/fonts/Archivo-ExpandedBlackItalic.woff2") format("woff2"),
       url("/assets/fonts/Archivo-ExpandedBlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Regular.woff2") format("woff2"),
       url("/assets/fonts/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-Medium.woff2") format("woff2"),
       url("/assets/fonts/InterTight-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-SemiBold.woff2") format("woff2"),
       url("/assets/fonts/InterTight-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --ink: #0B0B0A;
  --carbon: #161614;
  --graphite: #22211E;
  --rule: #34332E;
  --ash: #5E5B55;
  --stone: #9C988E;
  --chalk: #F4F1EA;
  --volt: #BEF23A;
  --volt-pressed: #A4D62A;
  --flare: #FF5A3D;
  --moss: #4A6B00;
  --ember: #B8321A;
  --sand: #EBE7DE;
  --dune: #D9D4C9;
  --white: #FFFFFF;

  /* dark semantic (default / fallback) */
  color-scheme: dark;
  --canvas: var(--ink);
  --surface: var(--carbon);
  --text: var(--chalk);
  --text-secondary: var(--stone);
  --hairline: var(--rule);
  --accent-text: var(--volt);          /* 14.96:1 on Ink */
  --accent-text-hover: var(--volt-pressed);
  --focus: var(--volt);

  /* type */
  --font-display: "Archivo Expanded", "Arial Black", system-ui, sans-serif;
  --font-ui: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* space (4 pt grid) */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s8: 32px;
  --s10: 40px;
  --s12: 48px;

  /* radius */
  --r-card: 0;
  --r-control: 2px;

  --touch-min: 44px;
  --measure: 40rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: var(--chalk);
    --surface: var(--white);
    --text: var(--ink);
    --text-secondary: var(--ash);     /* 6.00:1 on Chalk, 6.77:1 on White */
    --hairline: var(--dune);
    --accent-text: var(--moss);       /* 5.48:1 on Chalk, 6.19:1 on White */
    --accent-text-hover: var(--ink);
    --focus: var(--moss);
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1rem;          /* body 16 */
  line-height: 1.375;       /* body 22 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--volt);  /* Volt only ever as a fill behind Ink */
  color: var(--ink);
}

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--s4);  /* screen margin 16 */
  padding-right: var(--s4);
}

@media (min-width: 40rem) {
  .site-header,
  main,
  .site-footer {
    padding-left: var(--s6);
    padding-right: var(--s6);
  }
}

/* ---------- Focus ---------- */
a:focus:not(:focus-visible) { outline: none; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-control);
}

/* ---------- Links ---------- */
a {
  color: var(--accent-text);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-text-hover);
  text-decoration-thickness: 2px;
}

/* ---------- Header ---------- */
.site-header {
  padding-top: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--s12);
  text-decoration: none;
}
.brand img {
  display: block;
  height: 20px;
  width: auto;
}

/* ---------- Nav (label style: 11/14, 1.3 tracking, caps) ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s6);
  margin: var(--s2) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-weight: 500;         /* label = Inter Tight Medium */
  font-size: 0.6875rem;     /* 11 */
  line-height: 0.875rem;    /* 14 */
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;      /* sit the active bar on the hairline */
}
.nav a:hover {
  color: var(--text);
}
.nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent-text);
}

/* ---------- Main ---------- */
main {
  padding-top: var(--s8);
  padding-bottom: var(--s10);
}

/* title 28/30, tracking -0.2, caps */
h1 {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.75rem;
  line-height: 1.875rem;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* heading 20/22, caps */
h2 {
  margin: var(--s6) 0 var(--s3);
  padding-top: var(--s6);   /* between sections 24 either side of the hairline */
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.375rem;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 var(--s3);
}

/* caption 13/18, secondary */
p.lead,
.muted {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-secondary);
}
p.lead {
  margin-bottom: var(--s6);
}

strong, b, th {
  font-weight: 600;
}

ul {
  margin: 0 0 var(--s3);
  padding-left: var(--s5);
}
li {
  margin: 0 0 var(--s2);
  padding-left: var(--s1);
}
li::marker {
  color: var(--text-secondary);
}

/* Table: flat card (radius 0, no shadow), hairlines */
table {
  width: 100%;
  margin: var(--s3) 0 var(--s4);
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
}
th, td {
  padding: var(--s3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border-bottom: 0;
}
/* table headers in label style */
th {
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 0.875rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Footer (caption 13/18) ---------- */
.site-footer {
  padding-top: var(--s4);
  padding-bottom: var(--s10);
  border-top: 1px solid var(--hairline);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}
.site-footer .nav {
  margin: 0;
  border-bottom: 0;
}
.site-footer .nav a[aria-current="page"] {
  border-bottom-color: transparent;
}
.site-footer p {
  margin: var(--s2) 0 0;
}

/* No motion is used; keep it that way for reduced-motion users. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  :root {
    --canvas: #fff;
    --surface: #fff;
    --text: #000;
    --text-secondary: #333;
    --hairline: #ccc;
    --accent-text: #000;
  }
  .nav, .brand { display: none; }
}
