/* Cloud Hub Tech
   Palette: Ink, Fog, Steel, Gate green, Rule gray.
   One bold element: the pipeline gate log on the home page. */

:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #15212c;
  --muted: #4a5866;
  --line: #d3dae1;
  --steel: #1c5a86;
  --steel-ink: #ffffff;
  --gate: #23704c;
  --log-bg: #15212c;
  --log-ink: #dfe7ee;
  --log-dim: #93a4b4;
  --log-pass: #7fd3a6;
  --focus: #c26a00;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  --measure: 68ch;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e151c;
    --surface: #151f29;
    --ink: #e4ebf1;
    --muted: #a6b3bf;
    --line: #2a3845;
    --steel: #7db8e3;
    --steel-ink: #0e151c;
    --gate: #6cc79a;
    --log-bg: #0a1016;
    --log-ink: #dfe7ee;
    --log-dim: #8597a8;
    --log-pass: #7fd3a6;
    --focus: #ffb454;
  }
}

:root[data-theme="dark"] {
  --bg: #0e151c;
  --surface: #151f29;
  --ink: #e4ebf1;
  --muted: #a6b3bf;
  --line: #2a3845;
  --steel: #7db8e3;
  --steel-ink: #0e151c;
  --gate: #6cc79a;
  --log-bg: #0a1016;
  --log-ink: #dfe7ee;
  --log-dim: #8597a8;
  --log-pass: #7fd3a6;
  --focus: #ffb454;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--steel);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
  margin: 0 0 1rem;
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

pre,
code {
  font-family: var(--mono);
}

pre {
  overflow-x: auto;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.brand-name::before {
  content: "";
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--gate);
  vertical-align: 0.02em;
}

.brand-desc {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--line);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--steel);
  font-weight: 600;
}

/* Main */

main {
  display: block;
}

.section {
  padding: 2.5rem 0;
}

@media (min-width: 48rem) {
  .section {
    padding: 3.5rem 0;
  }
}

.section + .section {
  border-top: 1px solid var(--line);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.page-head {
  padding: 2.5rem 0 1rem;
}

@media (min-width: 48rem) {
  .page-head {
    padding: 4rem 0 1.5rem;
  }
}

.page-head p {
  font-size: 1.2rem;
  color: var(--muted);
}

/* Hero with the gate log */

.hero {
  display: grid;
  gap: 2rem;
  padding: 2.5rem 0;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
    padding: 4.5rem 0;
  }
}

.gatelog {
  margin: 0;
  background: var(--log-bg);
  color: var(--log-ink);
  border-left: 6px solid var(--log-pass);
  border-radius: 4px;
  padding: 1.1rem 1.1rem 0.9rem;
}

.gatelog pre {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.75;
}

.gatelog .k {
  color: var(--log-dim);
}

.gatelog .ok {
  color: var(--log-pass);
  font-weight: 700;
}

.gatelog figcaption {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(147, 164, 180, 0.3);
  font-size: 0.85rem;
  color: var(--log-dim);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  background: var(--steel);
  color: var(--steel-ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.3;
}

.button:hover {
  filter: brightness(1.1);
}

/* Lists of services and industries */

.items {
  display: grid;
  gap: 1.75rem 3rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

@media (min-width: 48rem) {
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.items li + li {
  margin-top: 0;
}

.items h3 a {
  color: var(--ink);
  text-decoration-color: var(--steel);
}

.items p {
  margin: 0;
  color: var(--muted);
}

/* Experience */

.jobs {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}

.job {
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  max-width: var(--measure);
}

.job:first-child {
  border-left-color: var(--gate);
}

.job p {
  margin: 0;
}

.job .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Skills */

.skills {
  display: grid;
  gap: 0.25rem 1.5rem;
  max-width: 52rem;
}

@media (min-width: 40rem) {
  .skills {
    grid-template-columns: 10rem minmax(0, 1fr);
  }
}

.skills dt {
  font-weight: 700;
}

.skills dd {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* Steps and notes */

.steps li {
  padding-left: 0.25rem;
}

.note {
  max-width: var(--measure);
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.note p:last-child {
  margin-bottom: 0;
}

/* Call to action */

.cta {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cta .wrap {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.cta p {
  font-size: 1.15rem;
}

.related {
  margin-top: 2rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
