/* Input Output — inputoutput.rs. Plain CSS, no build step. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d2329;
  --muted: #5f6b76;
  --rule: #e5e8eb;
  --accent: #0b5d8e;
  --measure: 56rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --fg: #e6e8ea;
    --muted: #9aa4ad;
    --rule: #2a3036;
    --accent: #80c2ec;
  }
}

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

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

body {
  margin: 0;
  font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }

h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 600; }
h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h3 { font-size: 1.125rem; font-weight: 600; }
p, dl, ul { margin: 0 0 1em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; top: 0.5rem; padding: 0.5rem 1rem; background: var(--bg); }
.skip:focus { left: 0.5rem; z-index: 1; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark { font-size: 1.125rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

/* Sections: label on the left, content on the right; stacked on small screens */
.band { padding: 3rem 0; border-top: 1px solid var(--rule); }
.band .wrap { display: grid; gap: 1rem 2.5rem; align-items: start; }
.band .wrap > :last-child > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
  .band { padding: 4rem 0; }
  .band .wrap { grid-template-columns: 1fr 2fr; }
  .band h2 { padding-top: 0.35rem; }
}

/* Hero */
.hero { border-top: 0; }
.hero h1 { margin-bottom: 0.2em; }
.role { color: var(--muted); margin-bottom: 1.25rem; }
.lede { font-size: 1.1875rem; max-width: 36rem; }
.portrait {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  background: var(--rule);
}
.inline-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; padding: 0; list-style: none; }
@media (min-width: 48rem) { .hero h1 { font-size: 2.5rem; } }

/* Services */
.service + .service { margin-top: 2rem; }
.service h3 { margin-bottom: 0.3em; }

/* Key/value lists */
.facts { display: grid; gap: 0.25rem 1.5rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0 0 0.75rem; }
@media (min-width: 36rem) {
  .facts { grid-template-columns: max-content 1fr; }
  .facts dd { margin-bottom: 0; }
}

/* Footer */
.site-footer { font-size: 0.9375rem; }
.copyright { margin: 2rem 0 0; color: var(--muted); }

/* Plain pages (404) */
.page { padding: 4rem 0; }

@media print {
  .skip, .site-nav { display: none; }
  .band { padding: 1.5rem 0; }
}
