/* Official palette from Opentensor graphic standards (Dec 2024 media pack).
   Official type is Haffer. It is not licensed for this site, so Host Grotesk
   is used as a close alternative. DM Mono is the official code face. */
:root {
  --white: #ffffff;
  --grey-100: #f8f9fa;
  --grey-200: #f1f3f4;
  --grey-300: #dbdde1;
  --grey-400: #bdc1c6;
  --grey-500: #5f6368;
  --grey-600: #2e3134;
  --grey-700: #282a2d;
  --grey-800: #17181b;
  --grey-900: #0e1013;
  --black: #000000;
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --content: 40rem;
  --wide: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--white);
  background: var(--grey-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--grey-100); }
a.ext::after { content: ""; } /* keep links clean; aria-label notes they leave the site */

.wrap {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
}
.wrap-wide {
  width: min(calc(100% - 2rem), var(--wide));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0;
}
.site-header .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--white);
}
.brand img {
  height: 1.35rem;
  width: auto;
}
.brand span {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--grey-400);
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}
nav a {
  color: var(--grey-400);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--white); text-decoration: underline; }

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 8vw, 3.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--grey-300); }
.lede { font-size: 1.125rem; color: var(--grey-200); max-width: 36rem; }

.hero { padding: 3.25rem 0 2.5rem; }
.hero p { max-width: 36rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--grey-900);
  text-decoration: none;
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: var(--grey-100); color: var(--black); }
.btn-ghost {
  background: transparent;
  color: var(--white);
}
.btn-ghost:hover { background: var(--grey-800); color: var(--white); }

section { padding: 2.75rem 0; border-top: 1px solid var(--grey-700); }
.section-head { margin-bottom: 1.25rem; }

.source {
  font-size: 0.875rem;
  color: var(--grey-500);
  margin-top: -0.25rem;
}
.source a { color: var(--grey-400); }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.list h3 { margin-bottom: 0.35rem; }
.list p { margin-bottom: 0.5rem; }
.list a { color: var(--white); }

.grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .grid.two { grid-template-columns: 1fr 1fr; }
  .grid.cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .grid.cards { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--grey-800);
  padding: 1.25rem 1.25rem 1.35rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }
.card a { color: var(--white); }

.group { margin-bottom: 2.25rem; }
.group:last-child { margin-bottom: 0; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.links li { padding: 0; }
.links a { color: var(--white); }
.links .note { display: block; color: var(--grey-400); font-size: 0.95rem; margin-top: 0.15rem; text-decoration: none; }

form {
  display: grid;
  gap: 0.85rem;
  max-width: 28rem;
  margin-top: 1.25rem;
}
label { display: grid; gap: 0.35rem; color: var(--grey-200); font-size: 0.95rem; }
input, textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--white);
  background: var(--grey-900);
  border: 1px solid var(--grey-600);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  width: 100%;
  min-height: 2.75rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, textarea:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4rem; font-size: 0.95rem; color: var(--grey-200); margin: 0; }
.form-status.error { color: #f1f3f4; }
.fine { font-size: 0.875rem; color: var(--grey-500); max-width: 28rem; }

.learn-block { margin-bottom: 2.25rem; }
.learn-block:last-child { margin-bottom: 0; }

.site-footer {
  border-top: 1px solid var(--grey-700);
  padding: 2rem 0 2.5rem;
  color: var(--grey-500);
  font-size: 0.875rem;
  line-height: 1.5;
}
.site-footer p { color: var(--grey-500); margin-bottom: 0.6rem; }
.site-footer a { color: var(--grey-400); }
.commit { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--grey-500); }

@media (min-width: 800px) {
  .hero { padding: 4.5rem 0 3.25rem; }
  section { padding: 3.5rem 0; }
  .site-header { padding-top: 1.75rem; }
}
