:root {
  --bg: #f0f0f0;
  --text: #1a1a1a;
  --card: #ffffff;
  --accent: #d64516;
  --border: #000000;
  --muted: #5f5f5f;
  --heading-font: "Roboto Mono", "Courier New", monospace;
  --body-font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-wrap.narrow {
  max-width: 800px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--heading-font);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--heading-font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.main-nav a {
  color: var(--text);
}

.main-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

main {
  flex: 1;
}

.hero {
  padding: 6rem 1.5rem 4rem;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 6vw, 3.5rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin: 0;
}

.hero-label,
.blueprint-hero .hero-label {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--border);
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.hero-secondary-link {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.contract {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.dispatch-frame iframe {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  min-height: 720px;
}

.validator {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.validator p {
  font-size: 1.4rem;
  max-width: 720px;
  margin: 0 auto;
  font-family: "IBM Plex Serif", "Georgia", serif;
}

.inventory {
  padding: 4rem 1.5rem 5rem;
}

.inventory-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.inventory h2 {
  font-family: var(--heading-font);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.inventory-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inventory-card h3 {
  font-family: var(--heading-font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
}

.inventory-card p {
  margin: 0;
  color: var(--muted);
}

.footer {
  border-top: 1px solid var(--border);
  background: #e6e6e6;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer h4 {
  font-family: var(--heading-font);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0 0 0.75rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer small {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-link {
  font-family: var(--heading-font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.field-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.field-wrapper h1 {
  font-family: var(--heading-font);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* Blueprint / About */
.blueprint-hero {
  padding: 5rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.blueprint-hero h1 {
  font-family: var(--heading-font);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-block {
  padding: 3rem 1.5rem;
  border-bottom: 1px solid #d4d4d4;
}

.section-block h2 {
  font-family: var(--heading-font);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0;
}

.section-block p {
  max-width: 760px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.list-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.list-card h3 {
  font-family: var(--heading-font);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-top: 0;
}

.list-card p {
  margin-bottom: 0;
}

.list-card ul,
.list-card ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.muted,
.list-card .muted,
.media-card .muted {
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.media-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-card h3 {
  font-family: var(--heading-font);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0;
}

.media-card p {
  margin: 0;
}

.media-card iframe,
.media-card .media-embed {
  width: 100%;
  border: 1px solid var(--border);
  background: #000;
}

.field-wrapper p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.signup-module {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.signup-module label {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--heading-font);
}

.signup-module input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: var(--body-font);
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
