/* fishwicksecurity.com: one stylesheet, system fonts, no external files. */

:root {
  --ink: #0f1b2d;
  --ink-soft: #1b2a40;
  --text: #1b2533;
  --muted: #4a5568;
  --paper: #ffffff;
  --paper-alt: #f3f6f9;
  --line: #dde3ea;
  --accent: #0e7469;        /* on light backgrounds */
  --accent-light: #5fd4c4;  /* on dark backgrounds */
  --radius: 10px;
  --wrap: 68rem;
  --narrow: 46rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
}

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

body {
  margin: 0;
  font-size: 1.0625rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow > * {
  max-width: var(--narrow);
}

/* Skip link: hidden until focused. */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  background: var(--ink);
  color: #ffffff;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

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

.nav a {
  color: #d7e0ea;
  text-decoration: none;
  font-size: 0.97rem;
}

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

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #e6ecf2;
  padding: 4.5rem 0 4rem;
}

.hero.small {
  padding: 3rem 0 2.5rem;
}

.hero h1 {
  color: #ffffff;
  max-width: 22ch;
}

.hero .lede {
  font-size: 1.15rem;
  max-width: 42rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-light);
}

.button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.3rem;
  background: var(--accent-light);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.button:hover {
  background: #8be3d7;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section.alt {
  background: var(--paper-alt);
}

.cards {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 0.5rem;
}

.principles,
.steps {
  margin: 0;
  padding-left: 1.25rem;
  max-width: var(--narrow);
}

.principles li,
.steps li {
  margin-bottom: 0.75rem;
}

.area {
  padding: 0 0 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.area:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.prose h2 {
  margin-top: 2.25rem;
}

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

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

.prose li {
  margin-bottom: 0.35rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #b9c4d0;
  font-size: 0.92rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-row p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #d7e0ea;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
