/* Basic, accessible styling for a small static site. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --bg: #0b0f19;
  --surface: #121a2b;
  --surface-2: #0f1627;
  --text: #e9eefc;
  --muted: #aab4d6;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Stark/dossier accent palette */
  --primary: #334155;
  --primary-2: #475569;
  --accent: #3b82f6;

  --warn: #ffb020;
  --danger: #ff4d6d;
  --good: #3ddc97;
  --focus: rgba(59, 130, 246, 0.42);

  --reading-width: 750px;
  --embargo-bg: color-mix(in srgb, var(--warn) 12%, transparent);

  --radius: 16px;
  --radius-sm: 12px;
  --container: 1040px;
}

/* Light theme overrides */
html[data-theme="light"] {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f0f2f9;
  --text: #111827;
  --muted: #4b5563;
  --border: rgba(17, 24, 39, 0.22);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.10);
  --primary: #334155;
  --primary-2: #475569;
  --accent: #2563eb;
  --warn: #c98600;
  --danger: #d93659;
  --good: #0aa870;
  --focus: rgba(37, 99, 235, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--focus);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  text-decoration: none;
  color: inherit;
}
.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--primary),
    color-mix(in srgb, var(--primary-2) 70%, var(--accent))
  );
  box-shadow: var(--shadow);
}
.brand__title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand__subtitle {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav__toggle {
  display: none;
}
.nav__links {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
}
.nav__link {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}
.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border-color: var(--border);
}

.nav__link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.header-actions {
  min-width: 140px;
  display: flex;
  justify-content: flex-end;
}
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}
.theme-toggle:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--focus);
}
.theme-toggle__icon {
  opacity: 0.9;
}
.theme-toggle__text {
  font-size: 13px;
  font-weight: 700;
}

.site-main {
  padding: 18px 0 64px;
}

.hero {
  padding: 18px 0 10px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  align-items: start;
}
.hero__title {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 62ch;
}

/* Center the homepage "Evidence Locker" button */
.hero__right .card__body {
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
}
.pill--warning {
  border-color: color-mix(in srgb, var(--warn) 35%, var(--border));
  background: color-mix(in srgb, var(--warn) 14%, transparent);
}

.card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 88%, transparent));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card--highlight {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}
.card--soft {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: none;
}

.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.card--link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.card--link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.card__title {
  padding: 14px 16px 0;
  font-weight: 900;
  letter-spacing: 0.2px;
}
.card__body {
  padding: 14px 16px 16px;
}

.section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type {
  border-top: none;
}
.section h2 {
  margin: 0 0 14px;
  font-size: 22px;
}
.lead {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

.callout {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 16px;
}
.callout--info {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.callout--warn {
  border-color: color-mix(in srgb, var(--warn) 30%, var(--border));
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

.grid {
  display: grid;
  gap: 14px;
}
.grid--2 {
  grid-template-columns: 1fr 1fr;
}

.kvs {
  display: grid;
  gap: 10px;
}
.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}
.kv__k {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}
.kv__v {
  font-weight: 800;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 120ms ease, border-color 160ms ease, background 160ms ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    color-mix(in srgb, var(--primary-2) 75%, var(--accent) 25%)
  );
  border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  color: white;
}
.btn--primary:focus-visible {
  outline: 3px solid var(--focus);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .theme-toggle,
  .nav__link,
  .card {
    transition: none !important;
  }

  .btn:hover,
  .theme-toggle:hover {
    transform: none !important;
  }
}

a[aria-disabled="true"] {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}
.list li {
  margin: 14px 0;
  line-height: 1.7;
}

.prose {
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

.prose p {
  margin: 16px 0;
  line-height: 1.7;
}

.verbatim {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 auto;
  max-width: var(--reading-width);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13.5px;
  line-height: 1.7;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 16px;
  max-width: var(--reading-width);
  margin-left: auto;
  margin-right: auto;
}

.page-head__title {
  margin: 0;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.back-link::before {
  content: "← ";
  font-weight: 900;
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
}
.back-link:hover {
  color: var(--text);
  text-decoration: underline;
}
.back-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 10px;
}

.form-row {
  margin-top: 8px;
}
.label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}
.code {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text);
  word-break: break-word;
}

.site-footer {
  padding: 22px 0 0;
}
.footer-inner {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Responsive nav */
@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header-actions {
    min-width: 120px;
  }
  .nav {
    justify-content: flex-start;
    position: relative;
    width: 100%;
    align-items: flex-start;
  }
  .nav__toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    align-self: flex-start;
    flex: 0 0 auto;
  }
  .nav__toggle:focus-visible {
    outline: 3px solid var(--focus);
  }
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 400;
    /* Keep dropdown usable regardless of where it opens. */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav__link {
    width: 100%;
  }
  .nav__links[data-open="true"] {
    display: flex;
  }
}

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .nav {
    justify-content: flex-start;
    position: relative;
    width: 100%;
    align-items: flex-start;
  }
  .hero__right .btn--primary {
    width: auto;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .nav__toggle {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
    font-weight: 900;
    cursor: pointer;
    line-height: 1;
    align-self: flex-start;
    flex: 0 0 auto;
  }
  .nav__toggle:focus-visible {
    outline: 3px solid var(--focus);
  }
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    justify-content: flex-start;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    z-index: 400;
    /* Keep dropdown usable regardless of where it opens. */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav__link {
    width: 100%;
  }
  .nav__links[data-open="true"] {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .brand {
    min-width: 0;
    width: auto;
  }
  .header-actions {
    min-width: 120px;
  }
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  /* On very small screens, keep key/value pairs from spreading. */
  .kv {
    justify-content: flex-start;
  }

  /* Center the "STATUS: ..." value within the first Release key/value row. */
  .kvs .kv:first-of-type .kv__v {
    flex: 1;
    text-align: center;
  }

  /* Center the "What" value within the second Release key/value row. */
  .kvs .kv:nth-of-type(2) .kv__v {
    flex: 1;
    text-align: center;
  }
}

