:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #55635d;
  --leaf: #2d644d;
  --leaf-dark: #1e4937;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dbe2dc;
  --warm: #f0e7d8;
  --focus: #a53d00;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  text-size-adjust: 100%;
}

body {
  margin: 0;
}

a {
  color: var(--leaf-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.2rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.18rem;
}

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 10;
}

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

header,
main,
footer {
  margin-inline: auto;
  max-width: 74rem;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 750;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  border-radius: 22%;
  height: 2.5rem;
  width: 2.5rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
}

nav a[aria-current="page"] {
  font-weight: 750;
  text-decoration-thickness: 0.15em;
}

.hero {
  background: linear-gradient(135deg, var(--warm), #e4efe8);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  margin-block: clamp(1rem, 4vw, 3rem);
  padding: clamp(1.5rem, 6vw, 4.5rem);
}

.eyebrow {
  color: var(--leaf-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 4.8rem);
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  margin-top: 2.6rem;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 62ch;
}

.content {
  max-width: 50rem;
  padding-bottom: 4rem;
}

.notice,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
}

.notice {
  border-left: 0.35rem solid var(--leaf);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  margin-block: 1.5rem;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.evidence h1 {
  margin-bottom: 1rem;
}

.evidence video {
  background: #071a3b;
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: block;
  max-height: 46rem;
  width: min(100%, 24rem);
}

.evidence figure {
  margin: 0;
}

.evidence-screenshot {
  border: 1px solid var(--line);
  border-radius: 1rem;
  display: block;
  height: auto;
  max-height: 46rem;
  max-width: 100%;
  width: auto;
}

.evidence figcaption,
.technical-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.hash {
  overflow-wrap: anywhere;
}

dt {
  font-weight: 750;
  margin-top: 1.2rem;
}

dd {
  margin: 0.25rem 0 0;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.93rem;
  padding-block: 2rem 3rem;
}

@media (max-width: 38rem) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf3ef;
    --muted: #b8c6bf;
    --leaf: #8cc5a6;
    --leaf-dark: #a8dabd;
    --paper: #101713;
    --surface: #19231e;
    --line: #33463b;
    --warm: #3b3022;
    --focus: #ffb784;
  }

  .hero {
    background: linear-gradient(135deg, var(--warm), #183427);
  }
}
