/* Talarurus site styles.
   Plain CSS, no build step. Design tokens live in :root. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Surfaces */
  --bg: #f6f4ef;
  --surface: #fdfcfa;
  --surface-sunk: #efebe3;
  --surface-tint: #e9e2d4;
  --border: #ddd7cb;
  --border-strong: #c3bbaa;

  /* Text */
  --ink: #17160f;
  --ink-2: #48443b;
  --ink-3: #635e53;

  /* Brand accent: fossil ochre */
  --accent: #96511f;
  --accent-strong: #763e15;
  --accent-soft: #f1e4d4;

  /* Dark surfaces */
  --dark: #171611;
  --dark-2: #201f19;
  --dark-border: #38352c;
  --dark-border-strong: #4d493d;
  --on-dark: #f3f0e8;
  --on-dark-2: #bab4a6;

  /* Finding classes */
  --security: #b0442a;
  --hygiene: #9c7016;
  --info: #3f6475;
  --security-on-dark: #e48466;
  --hygiene-on-dark: #dcb158;
  --info-on-dark: #8db4c6;

  /* Status */
  --ok-bg: #e3ecdc;
  --ok-ink: #2c5520;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 6.5rem);
  --header-h: 4.25rem;
  --radius: 8px;
  --radius-lg: 12px;

  color-scheme: light;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

html:has(.subnav) {
  scroll-padding-top: calc(var(--header-h) + 4.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

a:hover {
  color: var(--accent-strong);
}

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

main:focus {
  outline: none;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: #fff;
}

.icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(246 244 239 / 0.94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
}

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

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: calc((var(--header-h) - 2.4rem) / -2);
  left: 0;
  height: 2px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-open .nav-toggle-bars {
  background: transparent;
}

.nav-open .nav-toggle-bars::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle-bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 55.99rem) {
  /* Without JavaScript the navigation wraps below the brand. */
  .site-nav {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .nav-list a[aria-current="page"]::after {
    bottom: 0.25rem;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js.nav-open .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: block;
    max-height: calc(100vh - var(--header-h));
    padding: 0.5rem var(--gutter) 1.5rem;
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px -16px rgb(23 22 15 / 0.18);
  }

  .js.nav-open .nav-list {
    display: block;
  }

  .js.nav-open .nav-list li + li {
    border-top: 1px solid var(--border);
  }

  .js.nav-open .nav-list a {
    display: flex;
    padding-block: 0.875rem;
    font-size: 1.0625rem;
  }

  .js.nav-open .nav-list a[aria-current="page"]::after {
    top: 0.875rem;
    right: auto;
    bottom: 0.875rem;
    left: calc(var(--gutter) * -1);
    width: 3px;
    height: auto;
  }

  .js.nav-open .nav-cta {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-primary:hover {
  background: #33302a;
  border-color: #33302a;
  color: #fff;
}

.button-sm {
  min-height: 2.375rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 550;
  text-decoration: none;
}

.arrow-link .icon {
  transition: transform 0.15s ease;
}

.arrow-link:hover .icon {
  transform: translateX(2px);
}

/* Shared type */

.eyebrow {
  margin-bottom: 0.875rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lead {
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

/* Status pills */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

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

.status-neutral {
  background: var(--surface-sunk);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--border);
}

.status-neutral::before {
  background: var(--border-strong);
}

/* Sections */

.section {
  padding-block: var(--section);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-sunk {
  background: var(--surface-sunk);
}

.section-dark {
  background: var(--dark);
  color: var(--on-dark);
}

.section-dark + .section,
.section + .section-dark {
  border-top: 0;
}

.section-dark .eyebrow {
  color: var(--hygiene-on-dark);
}

.section-dark .lead,
.section-dark p {
  color: var(--on-dark-2);
}

.section-dark a:not(.button) {
  color: var(--on-dark);
}

.section-dark :focus-visible {
  outline-color: var(--hygiene-on-dark);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  letter-spacing: -0.03em;
}

.section-head .lead {
  margin-top: 1rem;
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
}

.section-head-row > div {
  max-width: 44rem;
}

.h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  letter-spacing: -0.03em;
}

.stack h2 + p,
.stack p + p {
  margin-top: 1.25rem;
}

/* Home hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}

.announce {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.announce:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.announce .status {
  font-size: 0.75rem;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 5.4vw, 4.125rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 34rem;
  margin-top: 1.5rem;
}

.hero .actions {
  margin-top: 2.25rem;
}

/* Faint system lines behind the hero diagram (wide layouts only).
   The SVG extends past the card; the card sits on top and hides the centre. */
.hero-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
}

.hero-lines {
  display: none;
  position: absolute;
  top: -12%;
  left: -14%;
  z-index: -1;
  width: 144%;
  height: 124%;
  max-width: none;
  color: var(--ink);
  opacity: 0.08;
  pointer-events: none;
}

.hero-lines g + g {
  color: var(--accent);
}

@media (min-width: 64rem) {
  .hero-lines {
    display: block;
  }
}

/* Audit model diagram */

.flow {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #2c2a23;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgb(23 22 15 / 0.45), 0 1px 2px rgb(23 22 15 / 0.08);
}

.flow-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--dark-border);
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.flow-head strong {
  color: var(--on-dark);
  font-weight: 600;
}

.flow-pill {
  margin-left: auto;
  padding: 0.1875rem 0.625rem;
  border: 1px solid var(--dark-border-strong);
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.flow-body {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.flow-node {
  display: grid;
  gap: 0.125rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  background: var(--dark-2);
}

.flow-node-core {
  border-color: #6a4a2c;
  background: #251e16;
  box-shadow: inset 3px 0 0 var(--hygiene-on-dark);
}

.flow-kicker {
  color: var(--on-dark-2);
  font-size: 0.75rem;
  font-weight: 500;
}

.flow-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.flow-note {
  color: var(--on-dark-2);
  font-size: 0.8125rem;
}

.flow-link {
  position: relative;
  width: 1px;
  height: 1.375rem;
  margin-inline: auto;
  background: var(--dark-border-strong);
}

.flow-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  border: 3.5px solid transparent;
  border-top-color: var(--dark-border-strong);
  border-bottom: 0;
}

.flow-split,
.flow-outputs {
  position: relative;
  display: grid;
  gap: 0.5rem;
  padding-top: 0.875rem;
}

.flow-split {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-outputs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Brackets that fan the flow out to, and back in from, each column. */
.flow-split::before,
.flow-outputs::before,
.flow-merge::before {
  content: "";
  position: absolute;
  top: 0;
  height: 0.875rem;
  border: 1px solid var(--dark-border-strong);
}

.flow-split::before,
.flow-outputs::before {
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.flow-split::before,
.flow-merge::before {
  right: calc((100% - 1rem) / 6);
  left: calc((100% - 1rem) / 6);
}

.flow-outputs::before {
  right: calc((100% - 0.5rem) / 4);
  left: calc((100% - 0.5rem) / 4);
}

.flow-split::after,
.flow-merge::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 0.875rem;
  background: var(--dark-border-strong);
}

.flow-merge {
  position: relative;
  height: 0.875rem;
}

.flow-merge::before {
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.flow-finding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.625rem 0.5rem;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  background: var(--dark-2);
  font-size: 0.875rem;
  font-weight: 550;
}

.flow-finding::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--dot);
}

.kind-security { --dot: var(--security-on-dark); }
.kind-hygiene { --dot: var(--hygiene-on-dark); }
.kind-info { --dot: var(--info-on-dark); }

.flow-outputs .flow-node {
  text-align: center;
}

.flow-caption {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--dark-border);
  color: var(--on-dark-2);
  font-size: 0.8125rem;
}

/* Product panel (home) */

.product-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1.125rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border);
}

.panel-bar h3 {
  font-size: 1.25rem;
}

.panel-meta {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.panel-bar .arrow-link {
  margin-left: auto;
  font-size: 0.9375rem;
}

.feature-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}

.feature {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
}

.feature .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.feature h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

/* Areas of work */

.area-grid {
  display: grid;
  gap: 2.5rem;
}

.area {
  display: flex;
  flex-direction: column;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.area .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.area h3 {
  font-size: 1.25rem;
}

.area p {
  margin-top: 0.625rem;
  color: var(--ink-2);
}

.area .area-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.9375rem;
}

/* Principles */

.principles {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  background: var(--dark-border);
}

.principle {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--dark);
}

.principle h3 {
  font-size: 1.125rem;
  color: var(--on-dark);
}

.principle p {
  margin-top: 0.625rem;
  font-size: 0.9688rem;
}

.principle .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--hygiene-on-dark);
}

/* Two-column split */

.split {
  display: grid;
  gap: 2rem clamp(3rem, 7vw, 6rem);
}

.split h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  letter-spacing: -0.03em;
}

.split-body > * + * {
  margin-top: 1.25rem;
}

.split-body p {
  color: var(--ink-2);
}

/* Call to action band */

.cta {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid #d8cfbd;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}

.cta h2 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.cta p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

/* Inner page hero */

.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.page-hero .lead {
  max-width: 40rem;
  margin-top: 1.25rem;
}

.page-hero .actions {
  margin-top: 2rem;
}

.page-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--border-strong);
}

.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

/* Release details card */

.details {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.details h2 {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}

.details dl div {
  display: grid;
  grid-template-columns: minmax(6.5rem, 2fr) 3fr;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
}

.details dl div + div {
  border-top: 1px solid var(--border);
}

.details dt {
  color: var(--ink-3);
}

.details dd {
  font-weight: 500;
}

/* In-page product navigation */

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgb(246 244 239 / 0.96);
  border-bottom: 1px solid var(--border);
}

.subnav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: block;
  padding-block: 0.875rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
}

.subnav a:hover {
  color: var(--ink);
}

/* Steps */

.steps {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--border);
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps h3 {
  font-size: 1.0625rem;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--ink-2);
  font-size: 0.9688rem;
}

/* Finding classes */

.finding-grid {
  display: grid;
  gap: 1rem;
}

.finding {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-top: 3px solid var(--kind);
  border-radius: var(--radius);
  background: var(--surface);
}

.finding-security { --kind: var(--security); }
.finding-hygiene { --kind: var(--hygiene); }
.finding-info { --kind: var(--info); }

.finding h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
}

.finding h3::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 2px;
  background: var(--kind);
}

.finding p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

/* Panels (reports, contact) */

.panel-grid {
  display: grid;
  gap: 1rem;
}

.panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.panel .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.panel h2,
.panel h3 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.panel p {
  margin-top: 0.625rem;
  color: var(--ink-2);
}

.panel-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  font-weight: 550;
  overflow-wrap: anywhere;
}

.copy {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.copy:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.copy-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* Work list */

.work-item {
  display: grid;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.work-item h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  letter-spacing: -0.025em;
}

.work-item p {
  max-width: 44rem;
  margin-top: 0.875rem;
  color: var(--ink-2);
}

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

.tag-list li {
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.work-item .actions {
  align-self: end;
}

.area-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.area-rows li {
  display: grid;
  gap: 0.75rem 2rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.area-rows h3 {
  font-size: 1.1875rem;
}

.area-rows p {
  color: var(--ink-2);
}

/* Documents: security, privacy, terms */

.doc {
  display: grid;
  gap: 2.5rem clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.doc-aside {
  min-width: 0;
  font-size: 0.9375rem;
}

.toc h2 {
  margin-bottom: 0.75rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 0.3125rem 0 0.3125rem 1rem;
  border-left: 1px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--ink);
  color: var(--ink);
}

.aside-card {
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.aside-card h2 {
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
}

.aside-card p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

.aside-card a {
  overflow-wrap: anywhere;
}

.prose {
  max-width: 44rem;
  min-width: 0;
}

.prose > * + * {
  margin-top: 1.125rem;
}

.prose h2 {
  margin-top: 3rem;
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  letter-spacing: -0.02em;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.5rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  overflow-wrap: anywhere;
}

.callout {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose .callout p {
  color: var(--ink);
}

.doc-meta {
  margin-top: 1rem;
  color: var(--ink-3);
  font-size: 0.9375rem;
}

/* About */

.facts {
  border-top: 1px solid var(--border);
}

.facts div {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) 2fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  font-weight: 500;
}

/* Footer */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  gap: 3rem;
}

.footer-brand .brand {
  color: var(--on-dark);
}

.footer-brand p {
  max-width: 20rem;
  margin-top: 1rem;
}

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  color: var(--on-dark);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.footer-nav h2 {
  margin-bottom: 1rem;
  color: var(--on-dark);
  font-size: 0.875rem;
  letter-spacing: 0;
}

.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li + li {
  margin-top: 0.625rem;
}

.footer-nav a {
  color: var(--on-dark-2);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-email:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  font-size: 0.875rem;
}

.site-footer :focus-visible {
  outline-color: var(--hygiene-on-dark);
}

/* Not found */

.not-found {
  padding-block: clamp(4rem, 10vw, 7rem);
}

.not-found h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.035em;
}

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

.link-list {
  max-width: 34rem;
  margin: 2.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.link-list a:hover {
  color: var(--accent);
}

/* Responsive layouts */

@media (min-width: 40rem) {
  .feature-grid,
  .principles,
  .panel-grid,
  .finding-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-rows li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
    align-items: baseline;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .area-grid,
  .finding-grid,
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .steps,
  .principles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .cta {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
  }

  .work-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .doc {
    grid-template-columns: 14rem minmax(0, 1fr);
  }

  .doc-aside {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  }

  .footer-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 55.99rem) {
  /* The document sections are short enough on small screens without a TOC. */
  .toc {
    display: none;
  }

  .aside-card {
    margin-top: 0;
  }

  .doc-aside:not(:has(.aside-card)) {
    display: none;
  }
}

@media (max-width: 30rem) {
  .hero .actions .button,
  .page-hero .actions .button {
    width: 100%;
  }
}

@media (max-width: 24rem) {
  .flow-label {
    display: none;
  }

  .flow-finding {
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.8125rem;
  }

  .details dl div,
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
