@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/Fraunces-VariableFont.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0d;
  --surface: #14141a;
  --raised: #1d1d24;
  --line: #2e2e36;
  --paper: #ecebe6;
  --muted: #99968d;
  --faint: #5a5751;
  --amber: #e8a44b;
  --amber-deep: #c98935;
  --green: #4aaa6a;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence baseFrequency='.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 .9 0 0 0 0 .8 0 0 0 0 .6 0 0 0 .14 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: var(--amber); text-underline-offset: .18em; }
a:hover { color: #f6bc70; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 40; padding: .7rem 1rem; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.skip-link:hover { color: var(--ink); }

.site-header,
footer,
main { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.site-header nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.75rem); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: .86rem; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--paper); }
.wordmark { color: var(--paper); text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.site-header .repo-link { gap: .55rem; }
.repo-link span { font: .78rem var(--mono); }
.site-header .community-link { justify-content: center; min-width: 44px; }
.site-header nav img { flex-shrink: 0; opacity: .7; }
.site-header nav a:hover img,
.site-header nav a:focus-visible img { opacity: 1; }

.hero {
  display: grid;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--line);
}
h1,
h2,
h3,
p { margin-top: 0; }
h1,
h2 { font-family: var(--serif); font-weight: 520; letter-spacing: -.03em; }
h1 { max-width: 960px; margin-bottom: 1.6rem; font-size: clamp(3.8rem, 7.2vw, 6rem); line-height: 1; text-wrap: balance; }
h1 em { color: var(--amber); font-weight: 420; }
h2 { margin-bottom: 1.4rem; font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 1; }
h3 { margin-bottom: .7rem; font-size: 1.15rem; line-height: 1.25; }
.lede { max-width: 680px; color: #c5c2ba; font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 45px; align-items: center; padding: .65rem 1rem; border: 1px solid var(--line); color: var(--paper); background: var(--surface); text-decoration: none; font-size: .84rem; }
.button:hover { border-color: var(--amber); color: var(--paper); }
.button.primary { border-color: var(--amber); color: var(--ink); background: var(--amber); font-weight: 600; }
.button.primary:hover { background: #f1b15d; }

.project-status { max-width: 70ch; margin: 1.5rem 0 0; color: #c5c2ba; }
.product-view { min-width: 0; margin: 0; }
.product-view img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.product-view figcaption { margin-top: .8rem; color: var(--muted); font-size: .9rem; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

.site-section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; margin-bottom: 2rem; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; }
.section-heading h2 { margin-bottom: 0; }
.section-note { max-width: 70ch; margin: 2rem auto 0; color: var(--muted); }
.workflow-backup { max-width: 75ch; margin: 2rem 0 0; color: var(--muted); }

.asset-graph { display: grid; grid-template-columns: .7fr 100px 1.3fr; align-items: center; max-width: 950px; margin: 0 auto; }
.asset-node,
.file-nodes > div { padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); }
.asset-node { border-color: var(--amber-deep); box-shadow: 0 0 40px rgba(232,164,75,.09); }
.asset-node strong,
.asset-node span,
.file-nodes strong,
.file-nodes span { display: block; }
.asset-node strong { margin-bottom: .4rem; font-family: var(--serif); font-size: 1.7rem; }
.asset-node span,
.file-nodes span { color: var(--muted); font-size: .78rem; }
.graph-line { border-top: 1px solid var(--amber-deep); }
.file-nodes { display: grid; gap: 12px; }
.file-nodes > div { position: relative; }
.file-nodes > div::before { content: ""; position: absolute; right: 100%; top: 50%; width: 51px; border-top: 1px solid var(--amber-deep); }
.file-nodes strong { font-family: var(--mono); font-size: .88rem; }

.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.proof-grid article { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.proof-grid article p:last-child { max-width: 48ch; color: var(--muted); }
.direction { background: radial-gradient(circle at 80% 15%, rgba(232,164,75,.12), transparent 32rem); }
.direction > div:first-child { max-width: 850px; }
.direction-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #6d4d26; }
.direction-details p { max-width: 54ch; color: var(--muted); }
.direction-details strong { color: var(--paper); }
footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
footer a { color: var(--muted); }

.guide-hero { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.guide-hero h1 { max-width: 1000px; font-size: clamp(3.1rem, 6.2vw, 5.5rem); }
.guide-hero .lede { max-width: 760px; }
.guide-hero .project-status { max-width: none; font-size: .9rem; }
.guide-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.guide-nav a { display: flex; flex-direction: column; min-height: 44px; padding: .8rem 0; border-top: 1px solid var(--amber-deep); color: var(--paper); text-decoration: none; }
.guide-nav strong { font-size: 1.15rem; }
.guide-nav span { margin-top: .25rem; color: var(--muted); font-size: .88rem; }
.guide-nav a:hover { color: var(--amber); border-color: var(--amber); }
.guide-chapter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 5rem; align-items: center; padding: 4rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.chapter-copy h2 { font-size: clamp(2.4rem, 4vw, 3.6rem); }
.chapter-copy p { max-width: 58ch; color: #c5c2ba; }
.chapter-copy > a { display: inline-flex; align-items: center; min-height: 44px; }
.guide-chapter figure { min-width: 0; margin: 0; }
.guide-chapter figcaption { margin-top: 1rem; color: var(--muted); font-size: .88rem; }
.file-bundle { padding: 1.6rem; border: 1px solid var(--line); background: var(--surface); }
.file-bundle h3 { margin-bottom: 1.5rem; }
.file-list { margin: 0; }
.file-list > div { padding: .9rem 0; border-top: 1px solid var(--line); }
.file-list dt { display: flex; align-items: center; gap: .9rem; }
.file-list code { font: .86rem var(--mono); overflow-wrap: anywhere; }
.file-type { display: grid; place-items: center; flex: 0 0 2.5rem; height: 3rem; border: 1px solid var(--amber-deep); color: var(--amber); font: .65rem var(--mono); }
.file-list dd { margin: -.55rem 0 0 3.4rem; color: var(--muted); font-size: .82rem; }
.storage-roles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.storage-roles dt { margin-bottom: .65rem; font-size: 1.1rem; font-weight: 600; }
.storage-roles dd { margin: 0; color: var(--muted); }
.guide-browse { align-items: start; }
.guide-browse .product-view { grid-column: 1 / -1; }
.version-flow ol { margin: 0 0 0 .5rem; padding: 0 0 0 2rem; border-left: 1px solid var(--amber-deep); list-style: none; }
.version-flow li { position: relative; padding: .5rem 0 1.75rem; }
.version-flow li:last-child { padding-bottom: .5rem; }
.version-flow li::before { content: ""; position: absolute; top: 1rem; left: -2.4rem; width: .75rem; height: .75rem; border: 1px solid var(--amber); border-radius: 50%; background: var(--ink); }
.version-flow .working-version::before { background: var(--amber); }
.version-label { display: block; margin-bottom: .5rem; color: var(--amber); font-size: .85rem; }
.version-flow strong { font-size: 1.2rem; }
.version-flow p { margin: .3rem 0 0; color: var(--muted); }
.archive-contents { padding: 1.6rem; border: 1px solid var(--amber-deep); background: var(--surface); }
.archive-contents h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.archive-contents dl { margin: 0; }
.archive-contents dl > div { padding: 1rem 0; border-top: 1px solid var(--line); }
.archive-contents dt { font-weight: 600; }
.archive-contents dd { margin: .4rem 0 0; color: var(--muted); }
.recovery-limits { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.recovery-limits p { margin: 0; color: var(--muted); }
.guide-direction { max-width: 900px; margin: 0 auto; padding: 4rem 0; }
.guide-direction h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.guide-direction p { color: var(--muted); }

@media (max-width: 900px) {
  .hero,
  .section-heading { grid-template-columns: 1fr; }
  .asset-graph { grid-template-columns: 1fr; gap: 0; }
  .graph-line { height: 55px; width: 50%; border-top: 0; border-right: 1px solid var(--amber-deep); }
  .file-nodes > div::before { display: none; }
  .direction-details { grid-template-columns: 1fr; }
  .guide-chapter { gap: 2rem; }
  .storage-roles { gap: 2rem; }
}

@media (max-width: 620px) {
  .site-header,
  footer,
  main { width: min(100% - 28px, 1180px); }
  .site-header { flex-wrap: wrap; gap: .5rem; }
  .site-header nav { gap: .75rem; }
  .site-header .repo-link { justify-content: center; min-width: 44px; }
  .repo-link span { display: none; }
  h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  h2 { font-size: 2.4rem; }
  .hero,
  .guide-hero { padding: 2rem 0; }
  .site-section { padding: 3rem 0; }
  .section-heading { gap: 1.25rem; }
  .proof-grid { grid-template-columns: 1fr; }
  .guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.25rem; margin-top: 1.5rem; }
  .guide-chapter { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .storage-roles,
  .recovery-limits { grid-template-columns: 1fr; gap: 1.5rem; }
  .file-bundle,
  .archive-contents { padding: 1.25rem; }
  .guide-direction { padding: 2.5rem 0; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
