:root {
  --paper: #E9EDEF;
  --ink: #1C2730;
  --muted: #56656F;
  --stone: #B7C3CA;
  --stone-edge: #9AA8B0;
  --accent: #2E7D74;
  --accent-ink: #FFFFFF;
  --rule: #C9D2D7;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151D23; --ink: #E3E8EB; --muted: #9AA8B0;
    --stone: #36434C; --stone-edge: #4A5862;
    --accent: #5FB3A8; --accent-ink: #0F1A1D; --rule: #2B363E;
  }
}
:root[data-theme="dark"] {
  --paper: #151D23; --ink: #E3E8EB; --muted: #9AA8B0;
  --stone: #36434C; --stone-edge: #4A5862;
  --accent: #5FB3A8; --accent-ink: #0F1A1D; --rule: #2B363E;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.site-header, main, .site-footer {
  width: min(72rem, 100% - 3rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.5rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; font-family: var(--display); font-size: 1.2rem;
}
.header-link { color: var(--muted); font-size: .95rem; text-underline-offset: 3px; }
.header-link:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: 3rem;
  padding-block: 4rem 5rem;
  border-bottom: 1px solid var(--rule);
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  max-width: 14ch;
}
.lede { max-width: 34rem; color: var(--muted); font-size: 1.15rem; margin: 0 0 2.25rem; }
.button {
  display: inline-block;
  background: var(--accent); color: var(--accent-ink);
  padding: .85rem 1.35rem; border-radius: 4px;
  font-weight: 600; text-decoration: none;
  overflow-wrap: anywhere;
}
.button:hover { filter: brightness(1.08); }

/* Arch: the one moment of motion. Stones set from the springing up, keystone last. */
.arch { margin: 0; }
.arch svg { width: 100%; height: auto; overflow: visible; }
.pier { fill: var(--stone); stroke: var(--stone-edge); stroke-width: 1; }
.ground { stroke: var(--ink); stroke-width: 2; }
.stone {
  fill: var(--stone); stroke: var(--stone-edge); stroke-width: 1;
  animation: set .55s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--i) * 90ms + 150ms);
}
.stone.key {
  fill: var(--accent); stroke: var(--accent);
  animation-name: drop; animation-duration: .7s;
  animation-delay: calc(var(--i) * 90ms + 350ms);
}
@keyframes set {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-48px); }
  70%  { opacity: 1; transform: translateY(3px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stone, .stone.key { animation: none; }
}

/* What we make */
.make {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 3rem;
  padding-block: 4.5rem;
  border-bottom: 1px solid var(--rule);
}
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 0;
}
.make-list { margin: 0; display: grid; gap: 2rem; }
.make-list div {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 1.5rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--rule);
}
.make-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.make-list dt { font-weight: 600; }
.make-list dd { margin: 0; color: var(--muted); max-width: 36rem; }

/* Support */
.support { padding-block: 4.5rem 5rem; max-width: 40rem; }
.support p { color: var(--muted); margin: 1rem 0 0; }
.support p.support-email { margin-top: 1.5rem; }
.support-email a {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 2rem 2.5rem; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: .9rem;
}
.site-footer p { margin: 0; }

/* Small screens */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 3.5rem; }
  .arch { order: -1; max-width: 18rem; }
  .make { grid-template-columns: 1fr; gap: 2rem; padding-block: 3.5rem; }
  .make-list div { grid-template-columns: 1fr; gap: .35rem; }
  .header-link { display: none; }
}
