/* ProgramandoAndo — plain CSS, no JS, no third-party requests. */

@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  /* Trust navy + restrained gold. */
  --bg: #f8fafc;
  --surface: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #0f172a;
  --on-primary: #ffffff;
  --link: #1e3a8a;
  --accent: #a16207;
  --band: #0f172a;
  --on-band: #f8fafc;
  --band-muted: #cbd5e1;
  --band-accent: #eab308;
  --band-border: #1e293b;
  --ring: #1e3a8a;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;

  --gutter: 16px;
  --section-pad: var(--s8);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --fg: #f1f5f9;
    --muted: #94a3b8;
    --border: #1e293b;
    --primary: #f1f5f9;
    --on-primary: #0b1220;
    --link: #93c5fd;
    --accent: #eab308;
    --band: #111a2e;
    --on-band: #f1f5f9;
    --band-muted: #94a3b8;
    --band-accent: #eab308;
    --band-border: #1e293b;
    --ring: #93c5fd;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
  }
  .site-nav ul {
    column-gap: var(--s3);
  }
}
@media (min-width: 1024px) {
  :root {
    --section-pad: var(--s12);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 3.5vw + 1rem, 3.75rem);
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.75rem, 1.5vw + 1rem, 2.25rem);
}
h3 {
  font-size: 1.2rem;
}
p {
  margin: 0;
  max-width: 65ch;
}

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  padding: var(--s1) var(--s2);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip:focus {
  top: var(--s1);
}

/* Small uppercase label, the only place gold appears in body text. */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-block: var(--s2);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark svg {
  width: 28px;
  height: 28px;
  flex: none;
}
.mark-bg {
  fill: var(--primary);
}
.mark-fg {
  fill: none;
  stroke: var(--on-primary);
  stroke-width: 3;
}
.mark-dot {
  fill: var(--band-accent);
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--fg);
}
.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  min-height: 48px;
  padding: 12px var(--s3);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover {
  background: transparent;
  color: var(--primary);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
.btn-link:hover {
  text-decoration: underline;
}
.btn svg,
.btn-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero */
.hero {
  padding-block: var(--section-pad) var(--s6);
}
.hero .eyebrow {
  margin-bottom: var(--s3);
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: var(--s3);
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: var(--s4);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
}

/* Proof strip */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin: var(--s8) 0 0;
  padding: var(--s4) 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
@media (min-width: 640px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stats li {
  color: var(--muted);
  font-size: 0.95rem;
}
.stats strong {
  display: block;
  margin-bottom: 4px;
  color: var(--fg);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* Sections */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--border);
}
.section-head {
  margin-bottom: var(--s6);
}
.section-head .eyebrow {
  margin-bottom: var(--s2);
}
.section-head p:not(.eyebrow) {
  margin-top: var(--s2);
  color: var(--muted);
  font-size: 1.1rem;
}
.section-head:last-child {
  margin-bottom: 0;
}
.section-alt {
  background: var(--surface);
}

/* Experience rows */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}
.rows > li {
  display: grid;
  gap: var(--s1) var(--s6);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .rows > li {
    grid-template-columns: 200px 1fr;
  }
}
.rows h3 {
  margin-bottom: var(--s1);
}
.rows p {
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Services */
.services {
  display: grid;
  gap: 0 var(--s4);
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}
@media (min-width: 768px) {
  .services {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}
.services li {
  padding: var(--s3) 0 var(--s4);
  border-top: 2px solid var(--fg);
  counter-increment: svc;
}
.services li::before {
  content: counter(svc, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s2);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.services h3 {
  margin-bottom: var(--s1);
}
.services p {
  color: var(--muted);
}

/* App cards */
.apps {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .apps {
    grid-template-columns: 1fr 1fr;
  }
}
.app {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.app-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.app-icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
}
.app-head h3 {
  margin-bottom: 2px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
}
.badge.soon::before {
  background: transparent;
  border: 2px solid var(--muted);
}
.app > p {
  color: var(--muted);
}
.app .tags {
  margin-top: 0;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s1) var(--s3);
  margin-top: auto;
  padding-top: var(--s1);
}
.app-actions .note {
  color: var(--muted);
}
.app-actions .link {
  display: inline-block;
  padding: 12px 0;
}

/* Contact band */
.contact {
  padding-block: var(--section-pad);
  background: var(--band);
  color: var(--on-band);
  border-top: 1px solid var(--band-border);
}
.contact .eyebrow {
  color: var(--band-accent);
  margin-bottom: var(--s2);
}
.contact h2 {
  max-width: 22ch;
  margin-bottom: var(--s2);
}
.contact p {
  color: var(--band-muted);
  font-size: 1.1rem;
  margin-bottom: var(--s4);
}
.contact .btn {
  background: var(--on-band);
  border-color: var(--on-band);
  color: var(--band);
}
.contact .btn:hover {
  background: transparent;
  color: var(--on-band);
}
.contact .social {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s3);
  margin: var(--s3) 0 0;
  padding: 0;
  list-style: none;
}
.contact .social a {
  display: inline-block;
  padding: 12px 0;
  color: var(--on-band);
}

/* Footer */
.site-footer {
  padding-block: var(--s4);
  background: var(--band);
  color: var(--band-muted);
  border-top: 1px solid var(--band-border);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-block;
  padding: 8px 0;
  color: var(--on-band);
}

/* Legal pages (privacy policies) */
.legal h2 {
  margin-bottom: var(--s4);
}
.legal h3 {
  margin: var(--s6) 0 var(--s2);
}
.legal p,
.legal ul {
  margin: 0 0 var(--s2);
}
.legal ul {
  max-width: 65ch;
  padding-left: 1.25em;
}
.legal li + li {
  margin-top: var(--s1);
}
.legal code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* 404 */
.notfound {
  padding-block: var(--section-pad);
}
.notfound h1 {
  margin-bottom: var(--s3);
}
.notfound p {
  margin-bottom: var(--s4);
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
