@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-700.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-latin-400italic.woff2") format("woff2");
  font-display: swap;
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-600.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --amber: #e0aa50;
  --bg: #1a1816;
  --border: #3d3833;
  --card: #292622;
  --copper: #d4956a;
  --danger: #ef8467;
  --ink: #f0e7da;
  --muted: #b6a99d;
  --surface: #211f1c;
  --teal: #3ecfbf;
  --teal-dark: #1a8b80;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.7;
  margin: 0;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #76e2d7;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.shell {
  margin-inline: auto;
  max-width: 800px;
  padding-inline: 24px;
}

.skip-link {
  background: var(--amber);
  color: #17130d;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 200;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0 0;
}

.back-link {
  color: var(--muted);
  display: inline-block;
  font: 12px/1.4 "JetBrains Mono", monospace;
  margin-bottom: 7px;
  text-decoration: none;
}

.title-row {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.title-row h1 {
  font: 700 34px/1 "Cormorant Garamond", Georgia, serif;
  margin: 0;
}

.title-row span {
  border: 1px solid var(--teal-dark);
  border-radius: 3px;
  color: var(--teal);
  font: 11px/1.2 "JetBrains Mono", monospace;
  padding: 3px 7px;
}

.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

nav {
  display: flex;
  margin-top: 13px;
}

nav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 14px;
  text-decoration: none;
}

nav a.active {
  border-bottom-color: var(--teal);
  color: var(--teal);
  font-weight: 600;
}

main {
  padding-bottom: 110px;
}

.opening {
  border-bottom: 1px solid var(--border);
  padding: 58px 0 52px;
}

.opening h2 {
  font: 600 42px/1.15 "Cormorant Garamond", Georgia, serif;
  margin: 0 0 18px;
}

.opening p {
  font: 400 25px/1.45 "Cormorant Garamond", Georgia, serif;
  margin: 6px 0;
  max-width: 38ch;
}

.content-section {
  border-bottom: 1px solid var(--border);
  padding: 58px 0;
}

.section-label,
.demo-label {
  color: var(--teal);
  font: 11px/1.4 "JetBrains Mono", monospace;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.content-section > h2 {
  font: 600 31px/1.22 "Cormorant Garamond", Georgia, serif;
  margin: 0 0 18px;
}

.content-section > p,
.content-section > ul {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 17px;
}

.content-section strong {
  color: var(--ink);
}

.artifact-demo {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 32px;
  padding: 20px;
}

.artifact-pair {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.artifact-pair > div {
  background: var(--surface);
  border-left: 3px solid var(--copper);
  min-height: 130px;
  padding: 15px;
}

.artifact-pair > div:last-child {
  border-left-color: var(--danger);
}

.artifact-pair span,
.artifact-pair strong {
  display: block;
}

.artifact-pair span {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.artifact-pair strong {
  font: 600 18px/1.35 "Cormorant Garamond", Georgia, serif;
}

.criteria {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.criteria li {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1.45fr);
  padding-top: 10px;
}

.criteria strong {
  color: var(--danger);
  font-size: 13px;
}

.criteria span {
  color: var(--muted);
  font-size: 13px;
}

.verdict {
  background: #38201a;
  border-left: 3px solid var(--danger);
  color: var(--muted);
  font-size: 13px;
  margin: 18px 0 0;
  padding: 13px 15px;
}

.determinations {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.determinations article {
  border-top: 2px solid var(--teal-dark);
  padding-top: 12px;
}

.determinations h3 {
  font: 600 18px/1.25 "Cormorant Garamond", Georgia, serif;
  margin: 0 0 7px;
}

.determinations p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.architecture-list {
  display: grid;
  margin-top: 26px;
}

.architecture-list article {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 17px;
  grid-template-columns: 36px 1fr;
  padding: 20px 0;
}

.architecture-list article > span {
  color: var(--copper);
  font: 12px/1.4 "JetBrains Mono", monospace;
}

.architecture-list h3 {
  font: 600 21px/1.2 "Cormorant Garamond", Georgia, serif;
  margin: 0 0 6px;
}

.architecture-list p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.more-than-human {
  border-left: 3px solid var(--copper);
  padding-left: 28px;
}

blockquote {
  background: var(--surface);
  border-left: 3px solid var(--copper);
  color: var(--ink);
  font: 400 19px/1.65 "Cormorant Garamond", Georgia, serif;
  margin: 28px 0;
  padding: 20px 22px;
}

blockquote p {
  margin: 0 0 14px;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.lessons {
  list-style: none;
  padding: 0;
}

.lessons li {
  border-top: 1px solid var(--border);
  padding: 13px 0;
}

.limits-note {
  background: #342a18;
  border: 1px solid #6a5228;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  margin-top: 26px;
  padding: 17px;
}

.limits-note p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0 0;
}

.closing {
  color: var(--ink) !important;
  font: 400 22px/1.6 "Cormorant Garamond", Georgia, serif;
  margin-top: 28px !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 40px;
}

.actions a {
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 15px;
  text-decoration: none;
}

.actions a.primary {
  background: var(--teal);
  border-color: var(--teal);
  color: #101b19;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font: 12px/1.8 "JetBrains Mono", monospace;
  padding: 26px 0;
}

footer p {
  margin: 0 0 4px;
}

@media (max-width: 680px) {
  .shell {
    padding-inline: 16px;
  }

  .opening {
    padding-block: 42px;
  }

  .opening h2 {
    font-size: 36px;
  }

  .opening p {
    font-size: 22px;
  }

  .content-section {
    padding-block: 44px;
  }

  .artifact-pair,
  .determinations {
    grid-template-columns: 1fr;
  }

  .criteria li {
    grid-template-columns: 1fr;
  }

  .more-than-human {
    padding-left: 18px;
  }
}

@media (max-width: 420px) {
  .title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  nav a {
    padding-inline: 11px;
  }

  .artifact-demo {
    padding: 14px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page { margin: 18mm; }

  :root {
    --amber: #765000;
    --bg: #ffffff;
    --border: #aaa39a;
    --card: #ffffff;
    --copper: #7b451f;
    --danger: #8b2d19;
    --ink: #171513;
    --muted: #3f3933;
    --surface: #ffffff;
    --teal: #006f65;
    --teal-dark: #006f65;
  }

  html {
    background: #ffffff !important;
    color-scheme: light;
  }

  body {
    background: #ffffff !important;
    color: #171513 !important;
    font-size: 11pt;
  }

  .skip-link,
  nav,
  .reference-status__dismiss,
  .reference-status__restore {
    display: none !important;
  }

  .reference-status {
    background: #ffffff !important;
    border: 1px solid #777069;
    color: #171513 !important;
    margin-bottom: 20px;
    position: static !important;
  }

  .reference-status__inner,
  .reference-status.is-collapsed .reference-status__inner {
    display: block !important;
    max-width: none;
    padding: 12px 14px;
  }

  .reference-status__copy,
  .reference-status__copy strong {
    color: #171513 !important;
    font-size: 9pt;
  }

  .shell {
    max-width: none;
    padding-inline: 0;
  }

  .site-header {
    border-color: #aaa39a;
    padding-top: 0;
  }

  main {
    padding-bottom: 24px;
  }

  .opening,
  .content-section,
  footer {
    border-color: #aaa39a;
  }

  .opening {
    padding-block: 28px;
  }

  .content-section {
    padding-block: 30px;
  }

  .artifact-demo,
  .artifact-pair > div,
  blockquote,
  .verdict,
  .limits-note {
    background: #ffffff !important;
    border-color: #777069 !important;
    color: #171513 !important;
  }

  .artifact-pair > div,
  .determinations article,
  .architecture-list article,
  blockquote,
  .limits-note,
  .criteria li {
    break-inside: avoid;
  }

  .content-section p,
  .content-section li,
  .content-section span,
  .verdict,
  .limits-note p,
  footer {
    color: #171513 !important;
  }

  a {
    color: #171513 !important;
    text-decoration: underline;
  }

  a[href^='http']::after {
    color: #3f3933;
    content: ' (' attr(href) ')';
    font-family: "Source Sans 3", system-ui, sans-serif;
    font-size: 0.8em;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .actions {
    padding-top: 24px;
  }
}

