@font-face { font-family: "Manrope"; src: url("assets/brand/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }

/*
 * Warden landing — foundation v2.
 *
 * This sheet owns only the page frame: tokens, reset, navigation, shared
 * controls and the film dialog. Hero, story and closing-scene styles live in
 * their own sheets so the cascade has one owner for each visual decision.
 */

:root {
  color-scheme: dark;

  --night-950: #101113;
  --night-900: #151619;
  --night-850: #1b1d20;
  --night-800: #222428;
  --night-750: #2a2c30;
  --steel-500: #777b83;
  --steel-400: #969ba3;
  --steel-300: #b5b8be;
  --steel-200: #d5d7db;
  --paper: #f2f2ef;
  --paper-bright: #ffffff;

  --white: #ffffff;
  --white-hover: #e4e4df;
  --white-ink: #17181b;
  --coral: #f17e8b;
  --coral-soft: #3a2029;
  --amber: #ebc478;
  --amber-soft: #352b1b;

  --bg: var(--night-950);
  --surface: var(--night-900);
  --surface-raised: var(--night-850);
  --surface-hover: var(--night-800);
  --line-soft: #2b2d31;
  --line: #393c41;
  --line-strong: #62666d;
  --ink: var(--paper);
  --ink-secondary: var(--steel-200);
  --muted: var(--steel-300);
  --faint: var(--steel-400);
  --accent: var(--white);
  --accent-hover: var(--white-hover);
  --accent-ink: var(--white-ink);
  --block: var(--coral);
  --block-bg: var(--coral-soft);
  --escalate: var(--amber);
  --escalate-bg: var(--amber-soft);
  --allow: var(--white);

  /* Shared aliases used by the existing renderers and product fragments. */
  --sunken: var(--surface);
  --hover: var(--surface-hover);
  --selected: var(--night-750);
  --line-firm: var(--line-strong);
  --ink-2: var(--ink-secondary);
  --allow-bg: #303236;
  --gate: var(--white);
  --gate-fallback: rgb(245 245 242 / 0.74);
  --gate-fallback-block: rgb(241 126 139 / 0.8);
  --beam: var(--steel-300);
  --lift: var(--night-900);

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.375rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;

  --page-max: 90rem;
  --page-gutter: 1.125rem;
  --header-height: 4rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 48rem) {
  :root {
    --page-gutter: 2rem;
    --header-height: 4.5rem;
  }
}

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

html {
  min-width: 20rem;
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
header,
footer,
section,
nav {
  display: block;
}

h1,
h2,
h3,
h4,
p,
figure,
pre,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

button,
[role="button"] {
  touch-action: manipulation;
}

button:not(:disabled),
a[href],
summary,
label[for] {
  cursor: pointer;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

::selection {
  background: var(--white);
  color: var(--white-ink);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.wrap {
  position: relative;
  width: min(100%, calc(var(--page-max) + (var(--page-gutter) * 2)));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.label {
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 520;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vh {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--page-gutter);
  z-index: 1000;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--white-ink);
  font-size: var(--text-sm);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-6)));
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 160ms var(--ease-out),
    border-color 160ms var(--ease-out),
    color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.btn-primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--white-ink);
}

.btn-primary:active,
.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn .os.win {
  display: none;
}

.btn.on-windows .os.mac {
  display: none;
}

.btn.on-windows .os.win {
  display: block;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: var(--bg);
}

header .bar {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

header .brand {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

header .brand .mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

header .brand .word {
  width: 5.7rem;
  height: auto;
  flex: none;
}

header nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

header nav > a:not(.btn) {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding-inline: 0.65rem;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 470;
  text-decoration: none;
  transition: color 160ms var(--ease-out);
}

header .header-download {
  min-height: 44px;
  padding-inline: 0.9rem;
  font-size: 0.8125rem;
}

.hide-sm {
  display: none !important;
}

dialog {
  width: min(68rem, calc(100% - (var(--page-gutter) * 2)));
  max-width: none;
  max-height: calc(100svh - (var(--page-gutter) * 2));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--night-900);
  color: var(--ink);
  box-shadow: 0 2rem 6rem rgb(0 0 0 / 0.62);
}

dialog:not([open]) {
  display: none;
}

dialog::backdrop {
  background: rgb(2 8 13 / 0.9);
}

.film-bar {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--line);
}

.film-bar h2 {
  font-size: var(--text-base);
  font-weight: 580;
  letter-spacing: -0.02em;
}

.film-bar button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--muted);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}

dialog video {
  width: 100%;
  max-height: calc(100svh - 6.5rem);
  background: #000;
}

@media (min-width: 48rem) {
  .hide-sm {
    display: inline-flex !important;
  }

  header nav {
    gap: var(--space-3);
  }

  header .header-download {
    padding-inline: 1.1rem;
    font-size: var(--text-sm);
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--steel-300);
    background: var(--surface-hover);
  }

  .btn-primary:hover {
    border-color: var(--white-hover);
    background: var(--white-hover);
  }

  header nav > a:not(.btn):hover {
    color: var(--ink);
  }

  .film-bar button:hover {
    background: var(--surface-hover);
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
