/* One stylesheet for the site. Dark first, light when the visitor's system asks for it.
   System fonts only: the site makes no external requests. Palette: Tailwind's zinc greys with a sky accent. */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --well: #111113;
  --line: #27272a;
  --line-strong: #3f3f46;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #7dd3fc;
  --accent-ink: #082f49;
  --accent-soft: rgb(125 211 252 / 0.14);
  --grid: rgb(255 255 255 / 0.045);
  --header: rgb(9 9 11 / 0.78);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --header-h: 4rem;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --surface: #ffffff;
    --well: #f4f4f5;
    --line: #e4e4e7;
    --line-strong: #d4d4d8;
    --text: #18181b;
    --muted: #52525b;
    --accent: #0369a1;
    --accent-ink: #ffffff;
    --accent-soft: rgb(3 105 161 / 0.1);
    --grid: rgb(0 0 0 / 0.05);
    --header: rgb(250 250 250 / 0.82);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

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

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

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 32px;
  }
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.875rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.skip:focus {
  top: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, var(--text));
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-quiet:hover {
  border-color: var(--muted);
  background: var(--surface);
}

.btn-small {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

.btn-large {
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  font-size: 1.0625rem;
}

/* Sticky header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand svg {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.logo-tile {
  fill: var(--surface);
  stroke: var(--line-strong);
}

.logo-mark {
  stroke: var(--accent);
}

.nav {
  display: none;
  gap: 0.25rem;
}

.nav a {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
}

@media (min-width: 48rem) {
  .nav {
    display: flex;
  }
}

@media (max-width: 22rem) {
  .brand-name {
    display: none;
  }
}

/* Sections: anchors land below the sticky header */

section {
  scroll-margin-top: var(--header-h);
}

.band {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.band h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

/* Hero: text, and an abstract dashboard over a faint grid */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 90%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
  }
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 32rem;
  font-size: 1.1875rem;
  color: var(--muted);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-art {
  width: 100%;
  max-width: 34rem;
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.35));
}

.a-window { fill: var(--surface); stroke: var(--line-strong); }
.a-well { fill: var(--well); stroke: var(--line); }
.a-rule { stroke: var(--line); fill: none; }
.a-dot { fill: var(--line-strong); }
.a-bar { fill: var(--line-strong); }
.a-strong { fill: var(--muted); opacity: 0.55; }
.a-accent { fill: var(--accent); }
.a-accent-soft { fill: var(--accent-soft); }
.a-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.area-top { stop-color: var(--accent); stop-opacity: 0.28; }
.area-bottom { stop-color: var(--accent); stop-opacity: 0; }

@media (prefers-color-scheme: light) {
  .hero-art {
    filter: drop-shadow(0 20px 40px rgb(24 24 27 / 0.1));
  }
}

/* Services: one icon, a name and one plain line each */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.services li:hover {
  border-color: var(--line-strong);
}

.icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.625rem;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border-radius: 10px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

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

.icon-inline {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Work: a screenshot in a browser frame */

.work {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .work {
    grid-template-columns: 1.6fr 1fr;
  }
}

.frame {
  display: block;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s;
}

.frame:hover {
  border-color: var(--muted);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--line);
}

.frame-dots {
  display: inline-flex;
  gap: 0.375rem;
}

.frame-dots i {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.frame-url {
  flex: 1;
  max-width: 16rem;
  padding: 0.125rem 0.75rem;
  background: var(--well);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.work-text h3 {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.work-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.ext {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

/* About, with the business details as registered */

.about {
  display: grid;
  gap: 2rem 4rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .about {
    grid-template-columns: 1fr 1.15fr;
  }
}

.about-text p {
  margin: 0 0 1rem;
  max-width: 32rem;
  font-size: 1.125rem;
  color: var(--muted);
}

.about-text p:first-of-type {
  color: var(--text);
}

.record-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-card h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.record {
  display: grid;
  grid-template-columns: minmax(9.5rem, max-content) 1fr;
  gap: 0.625rem 1.5rem;
  margin: 0;
}

.record dt {
  color: var(--muted);
}

.record dd {
  margin: 0;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Contact */

.contact {
  padding: clamp(2rem, 6vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
}

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

.contact p {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--muted);
}

/* Footer */

.foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
}

.foot p {
  margin: 0;
}

/* Phones */

@media (max-width: 34rem) {
  body {
    font-size: 1rem;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .band {
    padding: 3.5rem 0;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .services li {
    padding: 1.25rem;
  }

  .record {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .record dd {
    margin-bottom: 0.75rem;
  }

  .btn-large {
    width: 100%;
    font-size: 1rem;
  }

  .foot-inner {
    flex-direction: column;
  }
}
