:root {
  --bg: #0c1117;
  --bg-soft: #121922;
  --panel: rgba(18, 25, 34, 0.88);
  --panel-strong: rgba(24, 33, 45, 0.96);
  --text: #e7edf4;
  --muted: #9aa8b7;
  --accent: #f4c46f;
  --accent-soft: #7db6f2;
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(148, 163, 184, 0.32);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
  --radius: 20px;
  --radius-sm: 14px;
  --content-width: 1400px;
  --sans: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(125, 182, 242, 0.12), transparent 38%),
    radial-gradient(circle at 20% 20%, rgba(244, 196, 111, 0.09), transparent 24%),
    linear-gradient(180deg, #0a0f15 0%, #0c1117 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

code {
  font-size: 0.95em;
}

pre {
  margin: 0;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  border: 1px solid rgba(125, 182, 242, 0.14);
  border-radius: 16px;
  background: #0a1017;
  color: #dbe8f5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 15, 21, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.header-shell,
.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.wordmark,
.footer-title {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero {
  padding-top: 5rem;
}

.hero-grid,
.section-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 7vw, 5.2rem);
}

.lede,
.section-intro,
.footer-copy {
  color: var(--muted);
}

.hero-copy .lede + .lede,
.section-head .section-intro + .section-intro,
.section-head p + p {
  margin-top: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.button,
.button.secondary,
.text-link {
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #121212;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.eyebrow,
.card-type {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-facts,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts {
  display: grid;
  gap: 0.8rem;
}

.hero-facts li {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-facts span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-media,
.callout,
.summary-card,
.stack-card,
.timeline-card,
.insight-card,
.placeholder-card,
.image-card {
  padding: 1.3rem;
}

.hero-media img,
.image-card img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b1016;
}

.hero-media figcaption,
.image-card figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-summary h2 {
  margin: 0;
  line-height: 1.14;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.hero-summary p:last-child {
  margin-bottom: 0;
}

.hero-summary .guide-steps {
  margin-top: 0;
}

.image-card figcaption strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.section-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
}

.section-head {
  max-width: 78rem;
  margin-bottom: 1.6rem;
}

.overview-grid,
.hardware-grid,
.hardware-detail-grid,
.architecture-grid,
.build-grid,
.protocol-grid,
.showcase-grid,
.stack-grid,
.insight-grid,
.extras-grid,
.photo-placeholders,
.timeline {
  align-items: stretch;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.summary-card,
.architecture-card,
.build-card,
.stack-card,
.timeline-card,
.insight-card,
.placeholder-card,
.image-card,
.protocol-card,
.hardware-detail-card,
.callout {
  height: 100%;
}

.summary-card p:last-child,
.architecture-card p:last-child,
.build-card p:last-child,
.timeline-card p:last-child,
.insight-card p:last-child,
.placeholder-card p:last-child,
.protocol-card p:last-child,
.hardware-detail-card p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.map-card p {
  margin-top: 0;
}

.section-callout {
  margin-bottom: 1.25rem;
}

.map-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.35rem;
}

.map-list-grid li + li {
  margin-top: 0;
}

.callout h3,
.summary-card h3,
.stack-card h3,
.timeline-card h3,
.insight-card h3,
.placeholder-card h3 {
  margin: 0 0 0.6rem;
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.plain-list.compact li + li {
  margin-top: 0.35rem;
}

.hardware-grid,
.hardware-detail-grid,
.architecture-grid,
.build-grid,
.protocol-grid,
.showcase-grid,
.stack-grid,
.insight-grid,
.extras-grid,
.photo-placeholders,
.timeline {
  display: grid;
  gap: 1.25rem;
}

.hardware-note {
  margin-top: 1.25rem;
  padding: 1.15rem 1.3rem;
}

.hardware-note p {
  margin: 0;
  color: var(--muted);
}

.hardware-note p + p {
  margin-top: 0.9rem;
}

.architecture-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.build-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.protocol-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-grid {
  grid-template-columns: 1fr;
}

.architecture-card,
.build-card,
.compare-card,
.protocol-card,
.hardware-detail-card {
  padding: 1.3rem;
}

.architecture-card h3,
.build-card h3,
.compare-card h4,
.protocol-card h3,
.hardware-detail-card h3 {
  margin-top: 0;
}

.hardware-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hardware-detail-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.stack-grid {
  grid-template-columns: 1fr;
}

.insight-grid,
.timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.extras-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid {
  display: grid;
  gap: 1rem;
}

.compare-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.hardware-detail-card > p:first-of-type,
.protocol-card > p:not(.card-type):first-of-type {
  margin-top: 0;
}

.hardware-inline-link {
  margin: 0.25rem 0 0;
}

.photo-placeholders {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.stack-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-columns,
.guide-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-block {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.guide-block h4 {
  margin: 0 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.guide-block p:last-child {
  margin-bottom: 0;
}

.guide-block pre {
  margin-top: 0.8rem;
}

.guide-steps {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

.guide-steps li + li {
  margin-top: 0.45rem;
}

.span-two {
  grid-column: span 2;
}

.span-all {
  grid-column: 1 / -1;
}

.schematic-card img,
.hero-media img {
  width: 100%;
}

.schematic-card figcaption {
  max-width: 82ch;
}

.showcase-shot figcaption {
  max-width: 92ch;
}

.schematic-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 1rem;
}

.build-card ul,
.architecture-card ul,
.timeline-card ul,
.insight-card ul {
  margin-top: auto;
}

.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.card-header h3 {
  margin-bottom: 0;
}

.text-link {
  color: var(--accent-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.9rem;
  white-space: nowrap;
}

.muted-link {
  color: var(--muted);
  opacity: 0.72;
  cursor: default;
}

.mini-tutorial {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(125, 182, 242, 0.14);
  border-radius: 14px;
  background: rgba(125, 182, 242, 0.05);
}

.mini-tutorial pre {
  margin-top: 0.8rem;
}

.mini-title {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.tutorial-note {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.tutorial-label {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.tutorial-list {
  margin: 0;
  padding-left: 1.2rem;
}

.tutorial-list li + li {
  margin-top: 0.4rem;
}

.placeholder-block,
.photo-slot {
  border: 1px dashed rgba(244, 196, 111, 0.32);
  border-radius: 14px;
  background: rgba(244, 196, 111, 0.04);
}

.placeholder-block {
  padding: 1rem;
}

.photo-slot {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.9rem;
}

.progress-photo {
  margin: 0;
}

.progress-photo img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #0b1016;
}

.progress-photo figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.doc-link-row {
  margin-top: 0.9rem;
}

.materials-status-card {
  margin-bottom: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.85rem 0 1rem;
  font-size: 0.96rem;
}

.cost-table th,
.cost-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cost-table th {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-table td:nth-child(2) {
  font-family: var(--mono);
  white-space: nowrap;
}

.status-table th:nth-child(1),
.status-table td:nth-child(1) {
  width: 24%;
}

.status-table th:nth-child(2),
.status-table td:nth-child(2) {
  width: 11rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  padding: 1rem 0 2rem;
}

.footer-copy {
  max-width: 56ch;
  margin: 0.4rem 0 0;
}

.footer-contact {
  margin-top: 0.9rem;
}

.footer-contact a {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

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

@media (max-width: 1240px) {
  .overview-grid,
  .hardware-grid,
  .protocol-grid,
  .extras-grid,
  .architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .section-grid,
  .overview-grid,
  .stack-grid,
  .insight-grid,
  .extras-grid,
  .hardware-grid,
  .hardware-detail-grid,
  .timeline,
  .architecture-grid,
  .build-grid,
  .protocol-grid,
  .map-list-grid,
  .guide-columns,
  .guide-examples {
    grid-template-columns: 1fr;
  }

  .span-two,
  .span-all {
    grid-column: auto;
  }

  .header-shell,
  .footer-shell {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .hero,
  .section {
    padding: 3.5rem 0;
  }

  .shell {
    width: min(var(--content-width), calc(100% - 1.25rem));
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .photo-placeholders {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
  }
}
