@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fragment Mono";
  src: url("/fonts/fragment-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f1efe7;
  --paper-high: #f8f7f2;
  --white: #fff;
  --ink: #242821;
  --ink-deep: #111410;
  --muted: #565c4c;
  --rule: #9b9f94;
  --rule-soft: #cfd0c6;
  --red: #a03923;
  --focus: #1f56a8;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1rem, 3vw, 2rem);
  --max: 90rem;
  --section-y: clamp(3rem, 7vw, 5.5rem);

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

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

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 18em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 720;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

.skip:focus {
  top: 0.75rem;
}

/* Masthead */

.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.lockup {
  display: block;
  padding: 0.35rem 0;
}

.lockup img {
  width: 140px;
}

.product {
  white-space: nowrap;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.9;
}

.masthead-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.masthead-nav a:not(.button) {
  font-size: 1rem;
  padding: 0.5rem 0;
}

/* Buttons and links */

.button {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border: 1.5px solid var(--ink);
  font: inherit;
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out;
}

.button-solid {
  background: var(--ink);
  color: var(--paper);
}

.button-solid:hover {
  background: var(--ink-deep);
}

.button-small {
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  font-size: 1rem;
}

.text-link {
  font-weight: 600;
  padding: 0.75rem 0;
}

/* Hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) var(--section-y);
  display: grid;
  gap: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  display: grid;
  gap: 1.5rem 3rem;
}

.hero-head,
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kicker {
  font-weight: 650;
  color: var(--red);
  font-size: 1.0625rem;
}

h1 {
  font-size: clamp(2.75rem, 6.2vw, 5.75rem);
  font-weight: 830;
  line-height: 0.98;
  letter-spacing: -0.02em;
  word-spacing: 0.02em;
  text-wrap: balance;
}

.h1-second {
  display: block;
  color: var(--muted);
}

.lede {
  max-width: 32em;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  margin-top: 0.25rem;
}

.status-line {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Figure: a real screenshot with numbered callouts */

.figure {
  min-width: 0;
}

.shot {
  position: relative;
}

.shot img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 1px 0 var(--rule-soft);
}

.dot,
.num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1;
}

.dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  outline: 2px solid var(--paper-high);
}

.dot-1 {
  --x: 3%;
  --y: 12%;
}

.dot-2 {
  --x: 3%;
  --y: 36.8%;
}

.dot-3 {
  --x: 3%;
  --y: 61.5%;
}

.dot-4 {
  --x: 69%;
  --y: 3%;
}

.dot-5 {
  --x: 59.4%;
  --y: 8.8%;
}

.figure figcaption {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.caption-lead {
  font-weight: 650;
  font-size: 1.0625rem;
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem 1.5rem;
}

.legend li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.legend .num {
  margin-top: -0.1rem;
}

.caption-note,
.section-note {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Sections */

.jobs,
.works,
.record,
.limits,
.faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.job-list {
  margin-top: 2.25rem;
  border-top: 1px solid var(--ink);
}

.job-list li {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}

.job-list h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  font-weight: 760;
}

.job-list p {
  max-width: 36em;
}

.section-note {
  margin-top: 1rem;
}

.works {
  display: grid;
  gap: 2.5rem;
}

.points {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.75rem;
}

.points li {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--ink);
}

.points p {
  max-width: 34em;
  color: var(--muted);
}

.phone {
  justify-self: center;
  width: min(100%, 20rem);
}

.phone img {
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--white);
}

.phone figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.record-cols {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.25rem 3rem;
}

.record-cols p {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.45;
  max-width: 30em;
}

.limits {
  background: var(--paper-high);
  max-width: none;
}

.limits > * {
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
}

.limit-list {
  margin-top: 2rem;
  border-top: 2px solid var(--ink);
}

.limit-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.125rem;
  max-width: none;
}

.limit-list strong {
  font-weight: 750;
}

.limits-later {
  margin-top: 1.25rem;
  color: var(--muted);
}

.faq dl {
  margin-top: 2rem;
  display: grid;
  gap: 0 3rem;
}

.faq dl > div {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.faq dt {
  font-weight: 720;
  font-size: 1.125rem;
}

.faq dd {
  margin-top: 0.4rem;
  color: var(--muted);
  max-width: 34em;
}

.faq dd a {
  color: var(--ink);
}

/* Close and form */

.close {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  gap: 2rem 4rem;
  border-bottom: 1px solid var(--ink);
}

.close h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 830;
  line-height: 0.98;
  max-width: 11em;
}

.close-copy {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.close-copy p {
  font-size: 1.1875rem;
  max-width: 26em;
}

.request {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  padding: 1.5rem;
  border: 1.5px solid var(--ink);
  background: var(--paper-high);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-weight: 650;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.request .button {
  justify-self: start;
}

.form-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.owners {
  color: var(--muted);
}

.owners a {
  color: var(--ink);
  font-weight: 600;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-size: 0.9375rem;
}

.footer-note {
  color: var(--muted);
}

/* Simple pages: thank-you, error, 404 */

.simple {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  border-bottom: 1px solid var(--ink);
}

.simple p {
  font-size: 1.1875rem;
  max-width: 32em;
}

/* Wider layouts. Breakpoints are in em so larger text gets the stacked layout. */

@media (min-width: 48em) {
  .job-list li {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: baseline;
  }

  .record-cols,
  .faq dl {
    grid-template-columns: 1fr 1fr;
  }

  .works {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }

  .close {
    grid-template-columns: minmax(0, 1fr) minmax(0, 28rem);
  }

  .owners {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64em) {
  .hero-copy {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: end;
  }

  .hero-side {
    padding-bottom: 0.4rem;
  }

  .legend {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 30em) {
  .lockup img {
    width: 112px;
  }

  .product {
    padding-left: 0.9rem;
    font-size: 1rem;
  }

  .masthead {
    gap: 0.9rem;
  }

  .masthead-nav {
    gap: 1rem;
  }

  .masthead-nav .button {
    display: none;
  }

  .dot {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
