/* Single Port Robot - v1.0 2026-04-22 */
:root {
  --ink: #0f1115;
  --surface: #f7f7f5;
  --surface-2: #edeeea;
  --hairline: #1c1f25;
  --accent: #00d2c5;
  --accent-dim: rgba(0, 210, 197, 0.12);
  --muted: #5b6270;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1120px;
  --pad: clamp(1rem, 4vw, 2rem);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: var(--pad);
  top: var(--pad);
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--surface);
  outline: 2px solid var(--accent);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--surface);
  border-bottom: 1px solid rgba(28, 31, 37, 0.12);
}

.top-bar {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(28, 31, 37, 0.08);
}

.top-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.45rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.top-bar a { text-decoration: none; color: var(--muted); }
.top-bar a:hover { color: var(--accent); }

.top-bar-sep { color: rgba(91, 98, 112, 0.45); }

.main-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem var(--pad) 0;
}

.main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--surface);
  cursor: pointer;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

/* --- Nav --- */
.primary-nav {
  border-top: 1px solid rgba(28, 31, 37, 0.08);
  background: var(--surface);
}

.primary-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.25rem;
}

.nav-list > li > a {
  display: block;
  padding: 0.65rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  color: var(--muted);
}

.nav-list > li > a:hover { color: var(--accent); }

.nav-list a.is-current,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.25rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}

.has-submenu { position: relative; }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid rgba(28, 31, 37, 0.12);
}

.submenu a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}

.submenu a:hover { background: var(--accent-dim); color: var(--ink); }

@media (min-width: 1024px) {
  .primary-nav-inner { padding-bottom: 0; }
  .nav-list { flex-wrap: nowrap; gap: 0.1rem 0.35rem; }
  .has-submenu .submenu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 950;
    box-shadow: 0 8px 24px rgba(15, 17, 21, 0.08);
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu { display: block; }
  .nav-cta { margin-left: auto; }
}

@media (max-width: 1023px) {
  .primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    padding-top: 5.5rem;
    overflow-y: auto;
    border-top: none;
    background: var(--surface);
  }
  .primary-nav.open { display: block; }
  body.menu-open { overflow: hidden; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 2rem;
    gap: 0;
  }
  .nav-list > li { border-bottom: 1px solid rgba(28, 31, 37, 0.08); }
  .nav-list > li > a {
    padding: 0.9rem var(--pad);
    font-size: 0.78rem;
  }
  .has-submenu .submenu {
    display: none;
    border: none;
    background: var(--surface);
    padding-left: 0.5rem;
  }
  .has-submenu.open .submenu { display: block; }
  .nav-cta { margin-top: 0.5rem; }
  .nav-cta .btn { margin: 0 var(--pad); display: block; text-align: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.btn-primary:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: var(--surface);
  color: var(--ink);
}

.btn-nav { padding: 0.5rem 0.9rem; }

/* --- Hero home --- */
.hero {
  border-bottom: 1px solid rgba(28, 31, 37, 0.12);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) var(--pad);
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 280px;
    gap: 3rem;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  display: flex;
  justify-content: center;
}

.hero-media img,
.hero-media svg {
  max-width: 260px;
  width: 100%;
}

.hero-photo {
  border-radius: var(--radius);
  border: 1px solid rgba(28, 31, 37, 0.15);
}

/* --- Stats --- */
.stats-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.25rem;
  border-bottom: 1px solid rgba(28, 31, 37, 0.12);
}

@media (min-width: 720px) {
  .stats-strip { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: left;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* --- Sections --- */
.section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section-header {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section-header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.section-soft { background: var(--surface-2); }

.section-accent {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 0.75rem;
}

/* --- Tiles --- */
.tile-grid {
  display: grid;
  gap: 1px;
  background: rgba(28, 31, 37, 0.15);
  border: 1px solid rgba(28, 31, 37, 0.15);
}

@media (min-width: 640px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  display: block;
  padding: 1.35rem 1.25rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.tile:hover { background: var(--accent-dim); }

.tile-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.tile h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.tile-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1rem;
  display: inline-block;
  color: var(--ink);
}

.tile:hover .tile-link { color: var(--accent); }

/* --- Tombstones --- */
.tombstone-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .tombstone-grid { grid-template-columns: repeat(3, 1fr); }
}

.tombstone {
  border: 1px solid rgba(28, 31, 37, 0.15);
  padding: 1.25rem;
  background: var(--surface);
}

.tombstone cite {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
}

.tombstone p {
  margin: 0;
  font-size: 0.88rem;
}

/* --- About strip --- */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-grid { grid-template-columns: 220px 1fr; }
}

.portrait-card {
  border: 1px solid rgba(28, 31, 37, 0.15);
  overflow: hidden;
  border-radius: var(--radius);
}

.portrait-card img { width: 100%; }

.credentials {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.credentials li {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(28, 31, 37, 0.08);
  font-size: 0.9rem;
}

/* --- Locations --- */
.location-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .location-grid { grid-template-columns: repeat(3, 1fr); }
}

.location-card {
  border: 1px solid rgba(28, 31, 37, 0.15);
  padding: 1.15rem;
  background: var(--surface);
}

.location-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.location-address {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.location-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.location-meta li { margin-bottom: 0.35rem; }

/* --- CTA band --- */
.cta-band {
  background: var(--ink);
  color: var(--surface);
  border-top: 1px solid var(--hairline);
}

.cta-band-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--surface);
}

.cta-band p {
  margin: 0;
  color: rgba(247, 247, 245, 0.75);
  max-width: 32rem;
  font-size: 0.92rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta-band .btn-primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.cta-band .btn-primary:hover {
  background: var(--surface);
  border-color: var(--surface);
}

.cta-band .btn-ghost {
  color: var(--surface);
  border-color: rgba(247, 247, 245, 0.35);
}

.cta-band .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Footer --- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid rgba(28, 31, 37, 0.1);
  padding: 2.5rem 0 0;
}

.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 2rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .site-footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 0.65rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li { margin-bottom: 0.4rem; }

.footer-list a { text-decoration: none; font-size: 0.9rem; }

.site-footer-base {
  border-top: 1px solid rgba(28, 31, 37, 0.1);
  padding: 1rem var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-disclaimer { margin: 0.35rem 0 0; }

/* --- Inner pages --- */
.page-hero {
  border-bottom: 1px solid rgba(28, 31, 37, 0.12);
  background: var(--surface-2);
}

.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--pad);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

.page-hero .lede {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.body {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 3rem;
}

.body-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .body-inner--toc {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
  }
}

.prose {
  font-size: 0.98rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(28, 31, 37, 0.1);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }

.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }

.prose ul, .prose ol { padding-left: 1.2rem; }

.prose li { margin-bottom: 0.35rem; }

.prose sup {
  font-size: 0.7em;
  vertical-align: super;
}

.figure {
  margin: 1.25rem 0;
  border: 1px solid rgba(28, 31, 37, 0.12);
  padding: 0.5rem;
  background: var(--surface);
}

.figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.5rem 0.25rem 0;
}

.callout {
  border-left: 3px solid var(--accent);
  padding: 0.85rem 1rem;
  background: var(--accent-dim);
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.page-toc {
  position: sticky;
  top: 5.5rem;
  align-self: start;
  border: 1px solid rgba(28, 31, 37, 0.12);
  padding: 1rem;
  background: var(--surface-2);
  font-size: 0.82rem;
}

.page-toc h2 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.page-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-toc li { margin-bottom: 0.4rem; }

.page-toc a { text-decoration: none; color: var(--ink); }
.page-toc a:hover { color: var(--accent); }

.references {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 31, 37, 0.15);
}

.references summary {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  color: var(--muted);
}

.references ol {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 1.1rem;
}

.references li { margin-bottom: 0.65rem; }

.sup { font-size: 0.65em; vertical-align: super; }

.gp-card {
  border: 1px solid rgba(28, 31, 37, 0.15);
  padding: 1.25rem;
  background: var(--surface);
  margin-bottom: 1.5rem;
}

.gp-card-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 600px) {
  .gp-card-grid { grid-template-columns: repeat(2, 1fr); }
}

.gp-card-item .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.2rem;
}

.gp-card-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.mt-1 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }

.text-muted { color: var(--muted); }

@media (max-width: 359px) {
  html { font-size: 93%; }
}
