/* hallmark v2 · storo.cloud · direction: technical, modern-minimal (B2B infrastructure) */
/* critique: eyebrow labels, a coloured headline word, middle-dot meta strings and the editorial serif were removed after review */

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("/assets/fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans";
  src: url("/assets/fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #fbfbf9;
  --surface: #f2f2ee;
  --ink: #15171a;
  --ink-mid: #4b5157;
  --ink-soft: #6f757b;
  --rule: #dedcd4;
  --rule-strong: #c6c3b9;
  --accent: #1b3a57;
  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --maxw: 74rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--accent); }

.site-head nav {
  display: flex;
  gap: 1.6rem;
  font-size: 0.98rem;
}
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 1.15rem;
  max-width: 22ch;
  overflow-wrap: break-word;
  min-width: 0;
  text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-mid);
  max-width: 50ch;
  margin: 0 0 1.9rem;
}
.hero-action { margin: 0; }
.hero-action a {
  display: inline-block;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
}
.hero-action a:hover { background: var(--ink); color: #ffffff; }

/* ---------- sections ---------- */
section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-top: 1px solid var(--rule); }
section.band { background: var(--surface); }
section h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.3rem;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  max-width: 30ch;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
p { margin: 0 0 1rem; max-width: 66ch; color: var(--ink-mid); text-wrap: pretty; }
.section-intro { max-width: 62ch; margin-bottom: 2.4rem; }

/* ---------- services ---------- */
.services { display: grid; gap: 0; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3.5rem);
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.service:first-child { border-top: 0; padding-top: 0; }
.service h3 { max-width: none; margin-bottom: 0; }
.service .body p { margin-bottom: 0.7rem; max-width: 58ch; }
.tech {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}

/* ---------- infrastructure ---------- */
.net-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.topo { width: 100%; height: auto; }
.topo text { font-family: var(--mono); font-size: 9.5px; fill: var(--ink-mid); }
.topo .accent-text { fill: var(--accent); }
.topo .box { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
.topo .fill { fill: var(--bg); }
.topo .thin { stroke: var(--rule-strong); stroke-width: 1; fill: none; }
.topo .dash { stroke: var(--ink-soft); stroke-width: 1.2; fill: none; stroke-dasharray: 5 4; }
.topo .accent { stroke: var(--accent); stroke-width: 1.4; fill: none; }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }

/* ---------- contact ---------- */
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.address-block {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--ink-mid);
  border-left: 1px solid var(--rule);
  padding-left: 1.2rem;
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding: 1.8rem 0 2.6rem; }
.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.foot-row nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.foot-row nav a { color: var(--ink-mid); text-decoration: none; }
.foot-row nav a:hover { text-decoration: underline; }
.foot-row .spacer { flex: 1 1 2rem; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(2.5rem, 5vw, 4rem) 0 4rem; }
.legal h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
}
.legal h2 {
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 2rem 0 0.6rem;
  max-width: none;
}
.legal p, .legal li { font-size: 0.98rem; max-width: 70ch; }
.legal ul { padding-left: 1.15rem; }
.legal address { font-style: normal; font-size: 0.98rem; line-height: 1.9; color: var(--ink-mid); }
.note { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- looking glass ---------- */
.lg-form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: stretch; margin: 1.6rem 0 1.2rem; }
.lg-form select, .lg-form input, .lg-form button {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}
.lg-form input { flex: 1 1 16rem; min-width: 0; }
.lg-form button {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  cursor: pointer;
}
.lg-form button:hover { background: var(--ink); border-color: var(--ink); }
.lg-form button:disabled { opacity: 0.55; cursor: default; }
pre.terminal {
  background: #14171a;
  color: #d9dade;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  padding: 1rem 1.15rem;
  overflow-x: auto;
  min-height: 10rem;
  margin: 1rem 0 0;
  border-radius: 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .service { grid-template-columns: 1fr; gap: 0.4rem; }
  .service h3 { max-width: none; }
  .net-grid { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .address-block { border-left: 0; padding-left: 0; }
}
@media (max-width: 40rem) {
  .site-head nav { gap: 1.1rem; font-size: 0.9rem; }
  .hero h1 { font-size: clamp(1.75rem, 7.5vw, 2.3rem); }
}
