/* Warnia — site styles. No external requests: fonts are served from this domain. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  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;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #d6def7;
  --sheet: #ffffff;
  --ink: #1b2559;
  --ink-deep: #111a45;
  --ink-soft: #454f88;
  --rule: #a9b4df;
  --evidence: #eef1fb;

  /* Colour is reserved for severity and status. */
  --sev-critical: #a80f3b;
  --sev-high: #b8400e;
  --sev-medium: #8a5f00;
  --sev-low: #1f6480;
  --sev-info: #5b6480;
  --fixed: #17694b;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.3125rem;
  --s2: 1.75rem;
  --s3: 2.25rem;
  --s4: 3rem;
  --s5: 4.25rem;

  --gutter: clamp(20px, 5vw, 56px);
  --band: clamp(56px, 8vw, 108px);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--s0);
  font-stretch: 100%;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 12px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

/* Header */

.masthead {
  padding-block: 22px;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark svg {
  display: block;
  width: 46px;
  height: 22px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  font-size: var(--s-1);
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  padding-block: 6px;
}
.nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 14px 24px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-stretch: 108%;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover {
  background: var(--ink-deep);
}
.nav .button {
  padding: 10px 18px;
}
.nav .button:hover {
  text-decoration: none;
}
.button.on-ink {
  background: #fff;
  color: var(--ink);
}
.button.on-ink:hover {
  background: var(--ground);
}
.button.on-ink:focus-visible {
  outline-color: #fff;
}

/* Hero */

.hero {
  padding-block: clamp(28px, 5vw, 64px) var(--band);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, var(--s5));
  font-weight: 660;
  font-stretch: 120%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero .lede {
  margin-top: 28px;
  max-width: 30em;
  font-size: var(--s1);
  line-height: 1.45;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 36px;
}
.hero .actions a:not(.button) {
  font-weight: 500;
}

/* The finding: a page from a report */

.finding {
  background: var(--sheet);
  border-radius: 3px;
  padding: clamp(22px, 3vw, 38px);
  box-shadow:
    0 1px 0 rgba(27, 37, 89, 0.1),
    0 2px 6px rgba(27, 37, 89, 0.08),
    0 28px 60px -24px rgba(27, 37, 89, 0.55);
}
.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--ink);
  font-size: var(--s-1);
  font-variant-numeric: tabular-nums;
}
.finding-id {
  font-weight: 700;
  font-stretch: 112%;
}
.finding-score {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.finding-title {
  margin-top: 20px;
  font-size: var(--s2);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.finding-class {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: var(--s-1);
}
.evidence {
  margin-top: 20px;
}
.evidence-label {
  font-size: var(--s-1);
  font-weight: 600;
}
.evidence pre {
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--evidence);
  border-left: 3px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  tab-size: 2;
}
.evidence pre mark {
  background: none;
  color: var(--sev-high);
  font-weight: 700;
}
.evidence-note {
  margin-top: 8px;
  font-size: var(--s-1);
}

.finding-facts {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.finding-facts div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.45;
}
.finding-facts dt {
  font-weight: 650;
}
.finding-facts .retest {
  border-bottom: 0;
  padding-bottom: 0;
}

.chip {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.chip.critical {
  background: var(--sev-critical);
}
.chip.high {
  background: var(--sev-high);
}
.chip.medium {
  background: var(--sev-medium);
}
.chip.low {
  background: var(--sev-low);
}
.chip.info {
  background: var(--sev-info);
}
.chip.fixed {
  background: var(--fixed);
  margin-right: 6px;
}

/* The one moment of motion: the retest result lands. */
@media (prefers-reduced-motion: no-preference) {
  .finding .retest .chip {
    animation: land 520ms 900ms cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
  }
  .finding .retest dd span {
    animation: appear 400ms 1250ms ease-out both;
  }
}
@keyframes land {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.finding-caption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: var(--s-1);
}

/* Bands: heading in the margin column, content beside it */

.band {
  padding-block: var(--band);
  border-top: 1.5px solid var(--ink);
}
.band > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: start;
}
.band h2 {
  font-size: clamp(1.9rem, 3.2vw, var(--s3));
  font-weight: 650;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.016em;
  text-wrap: balance;
}
.band-intro {
  margin-top: 16px;
  max-width: 24em;
  color: var(--ink-soft);
}
.prose > * + * {
  margin-top: 1em;
}
.prose p,
.prose li {
  max-width: 38em;
}
.prose h3 {
  margin-top: 2em;
  font-size: var(--s1);
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.2;
}
.prose h3:first-child {
  margin-top: 0;
}
.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}
.prose ul li + li {
  margin-top: 0.4em;
}

/* What we test: rows, not cards */

.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 8px 32px;
  padding-block: 22px;
  border-bottom: 1px solid var(--rule);
}
.rows > div:first-child {
  padding-top: 0;
}
.rows > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.rows dt {
  font-size: var(--s1);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.2;
}
.rows dt small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--s-1);
  font-weight: 450;
  font-stretch: 100%;
}
.rows dd {
  max-width: 36em;
}

/* Fixed scopes: a real table */

.scopes {
  width: 100%;
  border-collapse: collapse;
  background: var(--sheet);
  border-radius: 3px;
  box-shadow: 0 18px 40px -26px rgba(27, 37, 89, 0.5);
}
.scopes th,
.scopes td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-size: 0.98rem;
  line-height: 1.4;
}
.scopes thead th {
  padding-block: 22px 18px;
  border-bottom: 1.5px solid var(--ink);
  font-size: var(--s1);
  font-weight: 650;
  font-stretch: 112%;
  line-height: 1.15;
}
.scopes tbody th {
  width: 32%;
  font-weight: 600;
}
.scopes tbody tr:last-child th,
.scopes tbody tr:last-child td {
  border-bottom: 0;
}
.scopes .yes {
  color: var(--fixed);
  font-weight: 650;
}
.after-table {
  margin-top: 22px;
  max-width: 40em;
  color: var(--ink-soft);
}

/* How an engagement runs: a true sequence, so it is numbered */

.steps {
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 0 12px;
  padding-block: 20px;
  border-bottom: 1px solid var(--rule);
}
.steps li:first-child {
  padding-top: 0;
}
.steps li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.steps li::before {
  content: counter(step);
  font-size: var(--s2);
  font-weight: 300;
  font-stretch: 125%;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: var(--s1);
  font-weight: 640;
  font-stretch: 112%;
  line-height: 1.2;
}
.steps p {
  grid-column: 2;
  margin-top: 6px;
  max-width: 36em;
}

/* Who does the testing: the one inverse band */

.band.tester {
  background: var(--ink);
  color: #dfe5fb;
  border-top: 0;
}
.band.tester h2 {
  color: #fff;
}
.band.tester .band-intro {
  color: #b9c3ee;
}
.tester .lead {
  max-width: 28em;
  color: #fff;
  font-size: var(--s2);
  font-weight: 500;
  font-stretch: 108%;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.facts {
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}
.facts li {
  max-width: 44em;
  padding-block: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}
.tester .under {
  margin-top: 26px;
  max-width: 38em;
}
.tester a:focus-visible {
  outline-color: #fff;
}

/* Contact */

.contact .address {
  display: inline-block;
  margin-top: 4px;
  font-size: clamp(1.7rem, 4vw, var(--s4));
  font-weight: 640;
  font-stretch: 118%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact .prose {
  margin-top: 28px;
}

/* Severity scale (method page) */

.scale {
  width: 100%;
  border-collapse: collapse;
}
.scale th,
.scale td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  font-size: 0.98rem;
}
.scale thead th {
  border-bottom: 1.5px solid var(--ink);
  font-weight: 650;
}
.scale td:nth-child(2) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.page-head {
  padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 72px);
}
.page-head h1 {
  max-width: 14em;
  font-size: clamp(2.2rem, 4.6vw, var(--s4));
  font-weight: 660;
  font-stretch: 120%;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.page-head p {
  margin-top: 22px;
  max-width: 34em;
  font-size: var(--s1);
  line-height: 1.45;
}

/* Footer */

.foot {
  padding-block: 40px 56px;
  border-top: 1.5px solid var(--ink);
  font-size: var(--s-1);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
}
.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

/* Small screens */

@media (max-width: 920px) {
  .hero .wrap,
  .band > .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .band-intro {
    max-width: 36em;
  }
}

@media (max-width: 640px) {
  .rows > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    gap: 6px 20px;
  }
  .scopes,
  .scopes thead,
  .scopes tbody,
  .scopes tr,
  .scopes th,
  .scopes td {
    display: block;
  }
  .scopes thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .scopes tbody th {
    width: auto;
    padding-bottom: 4px;
    border-bottom: 0;
  }
  .scopes td {
    padding-block: 4px;
    border-bottom: 0;
  }
  .scopes td::before {
    content: attr(data-scope) ": ";
    color: var(--ink-soft);
    font-size: var(--s-1);
  }
  .scopes tbody tr {
    padding-block: 10px;
    border-bottom: 1px solid var(--rule);
  }
  .scopes tbody tr:last-child {
    border-bottom: 0;
  }
  .finding-facts div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media print {
  body {
    background: #fff;
  }
  .nav,
  .skip {
    display: none;
  }
}
