:root {
  color-scheme: light;
  --paper: #fff;
  --ash: #f4f4f4;
  --ink: #171a20;
  --text: #393c41;
  --quiet: #5c5e62;
  --blue: #3e6ae1;
  --rule: #dedfe1;
  --header: 64px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  scroll-padding-top: calc(var(--header) + 12px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.18; margin: 0; }
h1 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { max-width: 68ch; margin: .75rem 0 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.reading { max-width: 760px; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.ash { background: var(--ash); }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .5rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--paper); color: var(--ink); }
.header-inner { display: flex; min-height: var(--header); align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; }
.wordmark img { width: 152px; height: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a, .menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: 4px;
  font: 500 .875rem/1.2 system-ui, sans-serif;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current], .menu-toggle:hover { background: var(--ash); }
.menu-toggle { background: var(--paper); border: 1px solid var(--rule); cursor: pointer; }

.hero {
  min-height: clamp(30rem, 78svh, 51rem);
  display: grid;
  place-items: center;
  background: #111925 url("/assets/cloud-infrastructure.webp") center 48% / cover no-repeat;
  color: var(--paper);
  text-align: center;
}
.hero-content { padding-block: 4rem; }
.hero h1 { color: inherit; text-wrap: balance; }
.hero p { margin: 1rem auto 0; max-width: 53ch; text-wrap: balance; font-size: 1.0625rem; }
.actions, .page-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.hero .actions { justify-content: center; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .75rem 1.25rem;
  border-radius: 4px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .33s ease;
}
.primary { background: var(--blue); color: var(--paper); }
.primary:hover { background: #3157bf; }
.secondary { background: var(--paper); color: var(--ink); }
.secondary:hover { background: #e9e9eb; }
.hero a:focus-visible { outline-color: white; }

.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem; }
.feature-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 1.75rem; }
.architecture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature { display: block; padding: 1rem 0; border-top: 1px solid var(--rule); text-decoration: none; }
.feature h2, .feature h3 { font-size: 1.25rem; }
.feature:hover :is(h2, h3) { text-decoration: underline; text-underline-offset: .2em; }
.descriptor { color: var(--quiet); font-weight: 500; }
.profile { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.portrait { width: 100%; background: var(--ash); }
.profile-text a { display: inline-block; margin-top: 1rem; }
.contact { text-align: center; }
.contact p { margin-inline: auto; }
.email { display: inline-block; margin-top: 1rem; color: var(--ink); font-size: clamp(1.125rem, 3vw, 1.5rem); overflow-wrap: anywhere; }

.page { padding-block: clamp(2.5rem, 7vw, 6rem); min-height: 60vh; }
.page-intro { margin-bottom: 2.5rem; }
.about-intro { grid-template-columns: .65fr 1fr; }
.about-reading { margin-inline: auto; }
.content-section + .content-section { margin-top: 2.5rem; }
.content-section h3 { margin-top: 1.5rem; }
.content-section .button { margin-top: 1rem; }
.local-nav { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.breadcrumb { margin-bottom: .75rem; color: var(--quiet); font-size: .875rem; }
.project-subtitle { color: var(--ink); font-size: 1.125rem; font-weight: 500; }
.definitions { display: grid; gap: .75rem 1.5rem; margin-block: 1rem 0; }
.definitions div { border-top: 1px solid var(--rule); padding-top: .6rem; }
dt { color: var(--ink); font-weight: 500; }
dd { margin: .15rem 0 0; }
.runtime-diagram { margin: 1rem 0 0; }
.runtime-diagram figcaption { margin-top: .75rem; color: var(--quiet); }
.runtime-path, .runtime-destinations ul, .runtime-concepts { list-style: none; margin: 0; padding: 0; }
.runtime-path { display: grid; gap: 1.5rem; }
.runtime-path > li { position: relative; }
.runtime-path > li + li::before {
  content: "";
  position: absolute;
  top: -1.5rem;
  left: 50%;
  height: 1.5rem;
  border-left: 1px solid var(--blue);
}
.runtime-node, .runtime-concepts li { padding: 1rem; border: 1px solid var(--rule); border-radius: 4px; }
.runtime-node { background: var(--paper); }
.runtime-node h3, .runtime-concepts h3 { margin: 0; }
.runtime-node p, .runtime-concepts p { margin-top: .375rem; }
.runtime-core { background: #eef2fc; border-color: #c4d1f1; }
.runtime-core p + p { margin-top: .125rem; }
.runtime-destinations ul {
  display: grid;
  gap: .625rem;
  padding: .625rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--ash);
}
.runtime-concepts { display: grid; gap: .75rem; margin-top: 1rem; }

@media (min-width: 600px) {
  .runtime-node { padding: 1rem 1.25rem; }
  .runtime-destinations ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.workflow-figures { display: grid; gap: 1.5rem 1rem; margin-top: 1rem; }
.workflow-figures figure { margin: 0; }
.workflow-figures a, .workflow-figures img { display: block; }
.workflow-figures img { width: 100%; }
.workflow-figures figcaption { margin-top: .5rem; color: var(--quiet); font-size: .875rem; }

.assessment-steps { margin: 1rem 0 0; padding-left: 1.5rem; }
.assessment-steps li { border-top: 1px solid var(--rule); padding: 1rem 0 1rem .3rem; }
.assessment-steps li::marker { color: var(--quiet); font-weight: 500; }
.assessment-steps h3 { margin: 0; }
.assessment-steps p { margin-top: .4rem; }
.step-output { color: var(--quiet); }
.step-output strong { margin-right: .3rem; color: var(--ink); font-weight: 500; }
.career { padding-left: 1.25rem; }
.career li + li { margin-top: .55rem; }
.page-actions { margin-top: 2rem; gap: .75rem 1.25rem; }

.overview { margin: 1rem 0 0; }
.overview figcaption { margin-top: .65rem; color: var(--quiet); font-size: .875rem; }
.flow, .flow ul { padding: 0; margin: 0; list-style: none; }
.flow { display: flex; align-items: stretch; gap: 20px; }
.flow > li { flex: 1 1 0; min-width: 0; position: relative; }
.flow > li:not(.flow-inputs), .flow-inputs li {
  display: grid;
  place-items: center;
  padding: .65rem .5rem;
  min-height: 66px;
  text-align: center;
  background: var(--ash);
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.35;
}
.flow-inputs ul { display: grid; gap: 4px; height: 100%; }
.flow > li + li::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 1px;
  top: 50%;
  right: calc(100% + 4px);
  background: var(--quiet);
}
.flow > li + li::after {
  content: "";
  position: absolute;
  top: calc(50% - 2px);
  right: calc(100% + 4px);
  width: 4px;
  height: 4px;
  border-top: 1px solid var(--quiet);
  border-right: 1px solid var(--quiet);
  transform: rotate(45deg);
}
.site-footer { color: var(--quiet); border-top: 1px solid var(--rule); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem 2.5rem; padding-block: 2rem; font-size: .875rem; }
.footer-inner p { margin-top: .375rem; }

@media (min-width: 768px) {
  .workflow-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .definitions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --header: 56px; }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 6px; }
  .wordmark img { width: 132px; }
  .menu-toggle { margin-left: auto; }
  .site-nav { flex-direction: column; align-items: stretch; width: 100%; padding-block: .25rem; }
  .site-nav a { padding-inline: 0.65rem; }
  .hero { min-height: 0; align-items: start; background-position: center bottom; background-size: auto 16rem; padding-bottom: 15rem; }
  .hero-content { padding-block: 2.25rem; color: var(--ink); background: var(--paper); width: 100%; padding-inline: 24px; }
  .hero a:focus-visible { outline-color: var(--blue); }
  .hero .actions { flex-direction: column; align-items: stretch; max-width: 18rem; margin: 1.4rem auto 0; }
  .hero .secondary { background: var(--ash); }
  .architecture, .projects, .profile { grid-template-columns: 1fr; }
  .profile-text { order: -1; }
  .feature-grid { gap: .75rem; }
  .flow { flex-direction: column; }
  .flow > li + li::before { height: 12px; width: 1px; top: auto; bottom: calc(100% + 4px); right: 50%; }
  .flow > li + li::after { top: auto; bottom: calc(100% + 4px); right: calc(50% - 2px); transform: rotate(135deg); }
  .flow-inputs ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
