/* Advantage Offensive Security — static site styles.
   No external requests: fonts are self-hosted (Barlow, SIL OFL 1.1). */

@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper:   #EEF1F3;  /* shop-floor steel grey, light */
  --surface: #FFFFFF;
  --ink:     #15222F;  /* deep blue-black, like a work-order stamp */
  --steel:   #536170;
  --rule:    #C3CCD5;
  --signal:  #F2C230;  /* safety yellow, used only as a fill */
  --on-signal: #15222F;
  --focus:   #1F6FD1;

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-hero: clamp(2.75rem, 7.2vw, 5.25rem);

  --gutter: 16px;
  --max: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #111A23;
    --surface: #18232F;
    --ink:     #E3E9EF;
    --steel:   #9BA9B7;
    --rule:    #2D3B49;
    --focus:   #6FA8F0;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--signal); color: var(--on-signal);
  padding: 0.5rem 0.75rem; font-weight: 600; z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 600; letter-spacing: 0.01em;
}
.brand-mark { width: 28px; height: 28px; fill: var(--ink); flex: none; }
.brand-mark rect { fill: var(--signal); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
nav a { text-decoration: none; font-weight: 500; color: var(--steel); }
nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 3.5rem 0 4rem; }
@media (min-width: 60rem) { .hero { padding: 5.5rem 0 6rem; } }

.hero-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
}

.hero-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-hero);
  line-height: 0.95;
  letter-spacing: -0.01em;
  max-width: 11em;
}

.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34em; margin: 0 0 1rem; }
.lede-sub { color: var(--steel); max-width: 36em; margin: 0 0 2rem; }

.button {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 0.85rem 1.25rem;
  font-weight: 600; text-decoration: none;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.button:hover { background: var(--steel); color: var(--surface); }

/* HTTP request/response finding */
.http {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
.http-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; background: var(--ink); color: var(--paper);
  padding: 0.75rem 1.1rem;
}
.http-title { font-weight: 600; line-height: 1.3; }
.http-sev {
  flex: none; background: var(--signal); color: var(--on-signal);
  font-weight: 600; font-size: var(--step--1);
  padding: 0.15rem 0.55rem; border-radius: 2px;
}
.http-body { padding: 1rem 1.1rem 1.1rem; }
.http-label { margin: 0 0 0.4rem; color: var(--steel); font-size: var(--step--1); font-weight: 500; }
.http pre {
  margin: 0 0 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.75rem 0.85rem;
  overflow-x: auto;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
}
.http mark { background: var(--signal); color: var(--on-signal); padding: 0 0.15em; border-radius: 2px; }
.http mark.ok { background: transparent; color: inherit; font-weight: 700; }
.http .dim { color: var(--steel); }
.http-note { margin: 0; font-size: 0.9375rem; line-height: 1.5; }
.http figcaption {
  padding: 0.7rem 1.1rem;
  border-top: 1px dashed var(--rule);
  color: var(--steel); font-size: var(--step--1);
}

/* Bands */
.band { padding: 4rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 60rem) { .band { padding: 5.5rem 0; } }
.band-alt { background: var(--surface); }

h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--step-3); line-height: 1.05;
  margin: 0 0 2rem;
}
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }

.services { display: grid; gap: 2.5rem; }
@media (min-width: 52rem) {
  .services { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 4rem; }
}
.service p { max-width: 38em; }
.checks { margin: 0; padding: 0; list-style: none; max-width: 38em; }
.checks li { padding: 0.55rem 0 0.55rem 1.4rem; border-top: 1px solid var(--rule); position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 0.55rem; height: 0.55rem; background: var(--signal);
}

/* Working principles: not a sequence, so not numbered */
.principles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2rem;
}
@media (min-width: 52rem) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; } }
.principles li { border-top: 4px solid var(--ink); padding-top: 1rem; }
.principles h3 { margin-bottom: 0.5rem; }
.principles p { color: var(--steel); margin: 0; }
.service:not(.service-main) { color: var(--steel); }
.service:not(.service-main) h3 { color: var(--ink); }
.service-main { padding-left: 1.25rem; border-left: 4px solid var(--signal); }

.about-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 52rem) { .about-grid { grid-template-columns: 16rem minmax(0, 1fr); } }
.about-grid h2 { margin-bottom: 0.5rem; }
.about-name { color: var(--steel); font-weight: 500; }
.about-body { max-width: 40em; }
.creds {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  border-top: 1px solid var(--rule);
}
.creds li { padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-weight: 500; }

.contact-grid { display: grid; gap: 1rem 4rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 16rem minmax(0, 1fr); } }
.contact-list { margin: 0; display: grid; gap: 1.5rem; }
.contact-list dt { color: var(--steel); font-size: var(--step--1); font-weight: 500; margin-bottom: 0.15rem; }
.contact-list dd { margin: 0; font-size: var(--step-1); font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.75rem 0; color: var(--steel); font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-row p { margin: 0; }

/* 404 */
.notfound { padding: 5rem 0 6rem; }
.notfound p { max-width: 34em; }
