/* Amocat Networks. System fonts and inline SVG only. Light: slate on mist; dark: the inverse. */
:root {
  --bg: #f1f5f9;
  --logo: #334155;
  --ink: #1e293b;
  --muted: #475569;
  --rule: #cbd5e1;
  --focus: #1d4ed8;
}

html {
  color-scheme: light dark;
}

:root:has(#theme:checked) {
  --bg: #334155;
  --logo: #f1f5f9;
  --ink: #f8fafc;
  --muted: #cbd5e1;
  --rule: #64748b;
  --focus: #93c5fd;
}

@media (prefers-color-scheme: dark) {
  :root:has(#theme:checked) {
    --bg: #f1f5f9;
    --logo: #334155;
    --ink: #1e293b;
    --muted: #475569;
    --rule: #cbd5e1;
    --focus: #1d4ed8;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #334155;
    --logo: #f1f5f9;
    --ink: #f8fafc;
    --muted: #cbd5e1;
    --rule: #64748b;
    --focus: #93c5fd;
  }
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
}

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

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.top, .page, .doc, .foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.top {
  padding-block: clamp(1rem, 3.2vh, 2rem) 0;
}

.brand {
  display: inline-block;
  color: var(--logo);
  border-radius: 0.3rem;
}

.brand svg {
  display: block;
  height: clamp(2.3rem, 5.6vh, 3.2rem);
  width: auto;
}

.page {
  display: grid;
  align-content: center;
  padding-block: clamp(1rem, 3vh, 2.5rem);
}

h1 {
  margin: 0;
  max-width: 23ch;
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.lede {
  margin: clamp(0.7rem, 2vh, 1.2rem) 0 0;
  max-width: 60ch;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  color: var(--muted);
}

.lede a {
  color: inherit;
  text-underline-offset: 0.15em;
}

.services {
  list-style: none;
  margin: clamp(1rem, 2.8vh, 1.7rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem 2.5rem;
}

.services li {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
}

.services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--logo);
}

.contact {
  margin-top: clamp(1.3rem, 4vh, 2.4rem);
}

.contact h2 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.email {
  margin: 0;
  font-size: clamp(1.2rem, 0.95rem + 1.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.email a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.06em;
}

.foot {
  padding-block: 0 clamp(0.75rem, 2.2vh, 1.4rem);
  font-size: 0.85rem;
  color: var(--muted);
}

.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: clamp(0.75rem, 2.2vh, 1.4rem);
  border-top: 1px solid var(--rule);
}

.foot p {
  margin: 0;
}

.theme {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.theme-label {
  display: inline-flex;
  flex: none;
  padding: 0.35rem;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
}

.theme-label:hover {
  color: var(--ink);
}

.theme-label svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

.theme:focus-visible + .theme-label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.foot span {
  white-space: nowrap;
}

.foot a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.doc {
  padding-block: clamp(1.5rem, 5vh, 3rem);
}

.doc article {
  max-width: 68ch;
}

.doc h1 {
  max-width: none;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
}

.doc .updated {
  margin: 0.4rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  margin: 1.6rem 0 0.35rem;
  font-size: 1.1rem;
}

.doc p {
  margin: 0 0 0.75rem;
}

.doc article a {
  color: inherit;
  text-underline-offset: 0.15em;
}

@media (width >= 700px) {
  .services {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (width < 900px) {
  .top {
    padding-block: 0.9rem 0;
  }

  .brand svg {
    height: 2.2rem;
  }

  .page {
    padding-block: 0.75rem;
  }

  h1 {
    font-size: clamp(1.4rem, 0.85rem + 2.4vw, 2.2rem);
    line-height: 1.1;
  }

  .lede {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .services {
    margin-top: 0.7rem;
    gap: 0.2rem;
  }

  .services li {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .contact {
    margin-top: 1rem;
  }

  .contact h2 {
    margin-bottom: 0.25rem;
  }

  .foot {
    padding-block: 0 0.6rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .foot-row {
    padding-top: 0.6rem;
  }
}

@media (height <= 760px) and (width >= 900px) {
  h1 {
    font-size: clamp(1.7rem, 1rem + 2.2vw, 2.6rem);
  }
}

@media print {
  .skip {
    display: none;
  }

  body {
    min-height: 0;
  }
}
