:root {
  color-scheme: light dark;

  --paper: #edefec;
  --ink: #101b2a;
  --ink-soft: #3b4654;
  --muted: #5d6875;
  --hairline: rgb(16 27 42 / 0.16);
  --grid-line: rgb(16 27 42 / 0.12);
  --axis: #b4322a;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --aside-width: clamp(20rem, 34vw, 32.5rem);
  --gutter: clamp(1.5rem, 3.4vw, 3.5rem);
  --axis-gap: 1.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1420;
    --ink: #e9ecea;
    --ink-soft: #bcc4cc;
    --muted: #95a0ac;
    --hairline: rgb(233 236 234 / 0.16);
    --grid-line: rgb(233 236 234 / 0.11);
    --axis: #e0584b;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

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

.page {
  --axis-x: calc(100% - var(--aside-width));
  --fan: calc(var(--aside-width) * 2);
  --columns: minmax(0, 1fr) var(--aside-width);

  position: relative;
  isolation: isolate;
  /* Older Safari cannot parse `clip` or `dvh`, and falls back to the declaration before each. */
  overflow: hidden;
  overflow: clip;
  display: grid;
  grid-template-columns: var(--columns);
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.page::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: var(--axis-x);
  width: 1px;
  background: var(--axis);
  transform-origin: top;
}

.graticule {
  position: absolute;
  z-index: -2;
  top: 0;
  left: calc(var(--axis-x) - var(--fan) / 2);
  width: var(--fan);
  height: 100%;
  mask-image: linear-gradient(to right, transparent 8%, #000 60%);
}

.graticule line,
.graticule circle {
  fill: none;
  stroke: var(--grid-line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.head,
main,
.foot {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--columns);
}

.head {
  align-items: center;
  padding-block: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
  margin-left: var(--gutter);
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.6;
}

.brand:active {
  opacity: 0.4;
}

.brand-mark {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke-width: 1.25;
}

.brand-mark circle {
  stroke: currentColor;
}

.brand-mark line {
  stroke: var(--axis);
}

.head-nav {
  padding-inline: var(--axis-gap) var(--gutter);
  font-size: 0.9375rem;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.35em;
  transition: text-decoration-color 0.2s ease;
}

.link:hover {
  text-decoration-color: var(--axis);
}

.link:active {
  opacity: 0.6;
}

main {
  align-items: end;
  padding-block: 2rem clamp(2.25rem, 7vh, 4.5rem);
}

.hero {
  padding-inline: var(--gutter);
}

.eyebrow,
.services h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  max-width: 12em;
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, min(5.5vw, 9.5vh), 5.5rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.lead {
  max-width: 31em;
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.25rem;
  padding: 0.9375rem 1.375rem;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.cta svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.2s ease;
}

.cta:hover {
  background: var(--axis);
}

.cta:active {
  opacity: 0.85;
}

.cta:hover svg {
  transform: translateX(3px);
}

.services {
  padding-inline: var(--axis-gap) var(--gutter);
}

.service {
  position: relative;
  margin-top: 2rem;
}

.service::before {
  content: "";
  position: absolute;
  top: 0.9375rem;
  left: calc(var(--axis-gap) * -1);
  width: 0.75rem;
  height: 1px;
  background: var(--axis);
}

.service h3 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.service p {
  max-width: 37ch;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.foot {
  align-items: center;
  padding-block: 1.25rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--muted);
}

.foot p:first-child {
  padding-inline: var(--gutter);
}

.foot p:last-child {
  padding-inline: var(--axis-gap) var(--gutter);
}

@media (max-width: 51.25em) {
  .page {
    --axis-x: 1.25rem;
    --fan: 190vw;
    --columns: minmax(0, 1fr);
    --content-start: calc(var(--axis-x) + var(--axis-gap));
  }

  .graticule {
    height: 44rem;
    mask-image: linear-gradient(to right, #000 50%, transparent 88%), linear-gradient(to bottom, #000 35%, transparent);
    mask-composite: intersect;
  }

  .head {
    display: flex;
    justify-content: space-between;
    padding-block: 1.25rem;
    padding-inline: var(--content-start) var(--gutter);
  }

  .brand {
    margin-left: 0;
    font-size: 1.1875rem;
  }

  .head-nav {
    padding-inline: 0;
  }

  main {
    display: block;
    padding-block: 3.5rem 3.5rem;
  }

  .hero,
  .services {
    padding-inline: var(--content-start) var(--gutter);
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9.4vw, 3.25rem);
    line-height: 1.05;
  }

  .services {
    margin-top: 4rem;
  }

  .foot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    padding-inline: var(--content-start) var(--gutter);
  }

  .foot p:first-child,
  .foot p:last-child {
    padding-inline: 0;
  }
}

/* Filled backwards only: a forwards fill would go on overriding the hover and active states. */
@media (prefers-reduced-motion: no-preference) {
  .page::before {
    animation: draw-meridian 1.2s cubic-bezier(0.65, 0, 0.35, 1) backwards;
  }

  .graticule {
    animation: reveal-graticule 1.8s ease-out 0.15s backwards;
  }

  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    animation-delay: calc(var(--i, 0) * 70ms + 200ms);
  }
}

@keyframes draw-meridian {
  from {
    transform: scaleY(0);
  }
}

@keyframes reveal-graticule {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }

  to {
    opacity: 1;
    clip-path: inset(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
