/*
 * Mobile schematic styles.
 * Scope: /mobile/ and /mobile/resume/ only.
 *
 * Design: white (#FFFFFF) background, black (#000000) text,
 *         #FF6700 flare accent. Flat 1px borders. No animations.
 *
 * See Design.md for canonical industrialist aesthetic.
 */

/* ========================================
   Base — scoped to .schematic-mobile
   ======================================== */

.schematic-mobile {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: #000000;
  background: #FFFFFF;
}

.schematic-mobile a {
  color: #000000;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.schematic-mobile a:hover,
.schematic-mobile a:focus-visible {
  color: #FF6700;
}

/* ========================================
   Topbar
   ======================================== */

.schematic-mobile .mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border-bottom: 1px solid #000000;
}

.schematic-mobile .mobile-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border: 1px solid #000000;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  background: #FFFFFF;
}

.schematic-mobile .mobile-brand:hover,
.schematic-mobile .mobile-brand:focus-visible {
  border-color: #FF6700;
  color: #FF6700;
}

.schematic-mobile .mobile-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.schematic-mobile .mobile-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid #000000;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  text-decoration: none;
  background: #FFFFFF;
}

.schematic-mobile .mobile-nav-link:hover,
.schematic-mobile .mobile-nav-link:focus-visible {
  border-color: #FF6700;
  color: #FF6700;
}

.schematic-mobile .mobile-nav-link-active {
  color: #FF6700;
  border-color: #FF6700;
}

/* ========================================
   Sections
   ======================================== */

.schematic-mobile .mobile-section {
  padding: 2.75rem 1rem;
  border-bottom: 1px solid #000000;
}

.schematic-mobile .mobile-hero {
  padding-top: 3rem;
}

/* ========================================
   Metadata labels
   ======================================== */

.schematic-mobile .mobile-kicker,
.schematic-mobile .mobile-section-label,
.schematic-mobile .mobile-item-meta {
  margin: 0 0 0.75rem;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========================================
   Headings
   ======================================== */

.schematic-mobile h1,
.schematic-mobile h2,
.schematic-mobile h3,
.schematic-mobile p {
  overflow-wrap: anywhere;
}

.schematic-mobile h1 {
  margin: 0 0 1rem;
  max-width: 12ch;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.schematic-mobile h2 {
  margin: 0 0 1rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.schematic-mobile h3 {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
}

/* ========================================
   Body copy
   ======================================== */

.schematic-mobile .mobile-section > p:not(.mobile-section-label),
.schematic-mobile .mobile-hero-copy,
.schematic-mobile .mobile-detail-block p,
.schematic-mobile .mobile-list-item p {
  margin: 0 0 1rem;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 200;
}

.schematic-mobile .mobile-hero-copy {
  max-width: 34rem;
  font-size: 1.12rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}

/* ========================================
   Buttons
   ======================================== */

.schematic-mobile .mobile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.schematic-mobile .mobile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 400;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
  background: #FFFFFF;
  color: #000000;
}

.schematic-mobile .mobile-button-primary {
  color: #FFFFFF;
  background: #FF6700;
  border-color: #FF6700;
}

.schematic-mobile .mobile-button-secondary {
  color: #000000;
  background: #FFFFFF;
}

.schematic-mobile .mobile-button:hover,
.schematic-mobile .mobile-button:focus-visible {
  border-color: #FF6700;
}

.schematic-mobile .mobile-button-primary:hover,
.schematic-mobile .mobile-button-primary:focus-visible {
  color: #FFFFFF;
  background: #000000;
  border-color: #000000;
}

/* ========================================
   Feature image
   ======================================== */

.schematic-mobile .mobile-feature-image {
  margin: 0;
  padding: 0 1rem 2.75rem;
  border-bottom: 1px solid #000000;
}

.schematic-mobile .mobile-feature-image img {
  display: block;
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
  border: 1px solid #000000;
  background: #FFFFFF;
  filter: grayscale(100%) contrast(1.2);
}

.schematic-mobile .mobile-feature-image figcaption {
  margin-top: 0.75rem;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.78rem;
  font-weight: 200;
}

/* ========================================
   Stat grid
   ======================================== */

.schematic-mobile .mobile-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 1.5rem;
  background: #000000;
  border: 1px solid #000000;
}

.schematic-mobile .mobile-stat {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  background: #FFFFFF;
  border: none;
}

.schematic-mobile .mobile-stat strong {
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.3rem;
  font-weight: 800;
}

.schematic-mobile .mobile-stat span {
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 200;
}

/* ========================================
   List / Cards
   ======================================== */

.schematic-mobile .mobile-list {
  display: grid;
  gap: 0.85rem;
}

.schematic-mobile .mobile-list-item,
.schematic-mobile .mobile-detail-block {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #000000;
  background: #FFFFFF;
}

.schematic-mobile .mobile-list-item a {
  font-weight: 700;
}

.schematic-mobile .mobile-detail-block p:last-child,
.schematic-mobile .mobile-list-item p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Chips / Tags
   ======================================== */

.schematic-mobile .mobile-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.schematic-mobile .mobile-chip-group span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #000000;
  color: #000000;
  background: transparent;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
}

/* ========================================
   Bullet list
   ======================================== */

.schematic-mobile .mobile-bullet-list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 200;
}

/* ========================================
   Skill stack
   ======================================== */

.schematic-mobile .mobile-skill-stack {
  display: grid;
  gap: 1.35rem;
}

.schematic-mobile .mobile-skill-stack h3 {
  margin-bottom: 0.75rem;
  color: #000000;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}

/* ========================================
   Contact links
   ======================================== */

.schematic-mobile .mobile-contact-links {
  display: grid;
  gap: 0.75rem;
}

.schematic-mobile .mobile-contact-links a {
  display: block;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  border: 1px solid #000000;
  color: #000000;
  background: #FFFFFF;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
}

.schematic-mobile .mobile-contact-links a:hover,
.schematic-mobile .mobile-contact-links a:focus-visible {
  border-color: #FF6700;
  color: #FF6700;
}

/* ========================================
   Footer
   ======================================== */

.schematic-mobile .mobile-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1rem 2rem;
  color: #000000;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  font-weight: 200;
  border-top: 1px solid #000000;
}

.schematic-mobile .mobile-footer p {
  margin: 0;
}

.schematic-mobile .mobile-footer a {
  font-weight: 700;
  color: #000000;
}

.schematic-mobile .mobile-footer a:hover,
.schematic-mobile .mobile-footer a:focus-visible {
  color: #FF6700;
}

/* ========================================
   Focus visible
   ======================================== */

.schematic-mobile :focus-visible {
  outline: 2px solid #FF6700;
  outline-offset: 2px;
}

.schematic-mobile :focus:not(:focus-visible) {
  outline: none;
}

/* ========================================
   Responsive — ≥ 36rem (576px)
   ======================================== */

@media (min-width: 36rem) {
  .schematic-mobile .mobile-topbar,
  .schematic-mobile .mobile-section,
  .schematic-mobile .mobile-feature-image,
  .schematic-mobile .mobile-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .schematic-mobile h1 {
    max-width: 16ch;
    font-size: 3.85rem;
  }

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

/* ========================================
   Responsive — ≤ 22rem (352px)
   ======================================== */

@media (max-width: 22rem) {
  .schematic-mobile .mobile-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .schematic-mobile .mobile-nav {
    justify-content: stretch;
  }

  .schematic-mobile .mobile-nav-link {
    flex: 1;
  }

  .schematic-mobile h1 {
    font-size: 2.7rem;
  }

  .schematic-mobile h2 {
    font-size: 1.8rem;
  }
}
