:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --ink: #1d1d1b;
  --muted: #66665f;
  --line: #e2e1dc;
  --accent: #1d1d1b;
  --accent-ink: #ffffff;
  --wash: #efeee9;

  --font: "Hanken Grotesk", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --radius-sm: 2px;
  --radius-lg: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-weight: 600;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

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

.wrap {
  width: min(68rem, 100% - 2rem);
  margin-inline: auto;
}

.narrow {
  max-width: 42rem;
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
}

.logo {
  display: block;
}

.logo img {
  display: block;
  height: 1.875rem;
  width: auto;
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-header nav a:hover {
  color: var(--ink);
}

.header-cta {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* Buttons */

.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--accent);
  transition: background-color 0.15s;
}

.button:hover {
  background: color-mix(in srgb, var(--accent) 82%, white);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button-quiet:hover {
  background: var(--surface);
}

.button-light {
  background: var(--wash);
  border-color: var(--wash);
  color: var(--ink);
}

.button-light:hover {
  background: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

/* Hero */

.hero {
  padding-block: 7rem 6rem;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero-body {
  display: grid;
  gap: 2rem;
  max-width: 30rem;
  margin: 3.5rem 0 0 auto;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-facts {
  display: grid;
  gap: 0.25rem;
  list-style: none;
  margin: -0.75rem 0 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.hero-price {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
}

/* Sections */

.section {
  padding-block: 5rem;
  border-top: 1px solid var(--line);
}

.section h2,
.contact h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 500;
  max-width: 24ch;
}

.section-lede {
  margin-top: 0.75rem;
  color: var(--muted);
}

.included {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
  margin: 3rem 0 0;
}

.included dt {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.included dd {
  margin: 0;
  color: var(--muted);
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 3rem 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.steps h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--muted);
}

/* Sample sites */

.work {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 2.5rem;
  margin-top: 3rem;
}

.work-lead {
  grid-column: 1 / -1;
}

.work-item {
  position: relative;
}

.work-frame {
  padding: 1.75rem 0.5rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    0 1px 2px rgb(29 29 27 / 0.04),
    0 18px 40px -24px rgb(29 29 27 / 0.28);
  position: relative;
  transition:
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s;
}

/* Three window dots so the frame reads as a browser, drawn from one element. */
.work-frame::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: 0.875rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--line);
  box-shadow:
    0.625rem 0 var(--line),
    1.25rem 0 var(--line);
}

.work-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  outline: 1px solid rgb(29 29 27 / 0.06);
  outline-offset: -1px;
}

.work-item:hover .work-frame {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--line) 75%, var(--ink));
  box-shadow:
    0 1px 2px rgb(29 29 27 / 0.05),
    0 26px 48px -24px rgb(29 29 27 / 0.34);
}

.work-item:has(a:focus-visible) .work-frame {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.work-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.25rem 1rem;
  margin-top: 1.25rem;
}

.work-caption h3 {
  font-size: 1.25rem;
}

.work-lead .work-caption h3 {
  font-size: 1.5rem;
}

.work-caption h3 a {
  text-decoration: none;
}

/* The name link covers the whole card, so the screenshot is clickable too. */
.work-caption h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work-caption h3 a:focus-visible {
  outline: none;
}

.work-item:hover h3 a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.work-caption p {
  grid-column: 1 / -1;
  color: var(--muted);
}

.work-caption .work-plan {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.plan + .plan {
  border-left: 1px solid var(--line);
}

.plan-featured {
  background: var(--wash);
  box-shadow: inset 0 2px 0 var(--ink);
}

.plan h3 {
  font-size: 1.25rem;
}

.price {
  margin-top: 1rem;
  color: var(--muted);
}

.price span {
  font-size: 2.5rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-right: 0.25rem;
}

.plan-for {
  margin-top: 0.5rem;
  color: var(--muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  flex: 1;
}

.plan li {
  padding-left: 1.5rem;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.6rem;
  height: 0.35rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.sample-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--accent);
  text-underline-offset: 3px;
}

/* FAQ */

#faq h2 {
  margin-bottom: 2rem;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  padding-block: 1.25rem;
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: 60ch;
}

/* Contact */

.contact {
  margin-block: 2rem 4rem;
  padding: 4rem;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem 4rem;
  align-items: start;
}

.contact-intro p {
  margin-block: 1rem 0;
  max-width: 40ch;
  font-size: 1.125rem;
  line-height: 1.6;
  letter-spacing: 0.005em;
  opacity: 0.85;
}

.contact-intro .contact-alt {
  margin-top: 2rem;
  font-size: 1rem;
}

.contact-alt a {
  font-weight: 500;
}

.contact :focus-visible {
  outline-color: var(--accent-ink);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.optional,
.hint {
  font-weight: 400;
  opacity: 0.7;
}

.hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--wash);
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.field [aria-invalid="true"] {
  border-color: #f2b8a8;
  box-shadow: inset 0 0 0 1px #f2b8a8;
}

.field-trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.form-end .button {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.form-end .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-status {
  margin: 0;
  flex: 1 1 16rem;
  line-height: 1.5;
}

.form-status.is-error {
  color: #f2b8a8;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Responsive */

@media (max-width: 860px) {
  .header-inner {
    gap: 1.5rem;
  }
  .site-header nav a:not(.nav-keep) {
    display: none;
  }
  .site-header nav a,
  .header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .hero {
    padding-block: 4rem;
  }
  .hero-body {
    margin: 2rem 0 0;
  }
  .included,
  .steps,
  .plans,
  .work {
    grid-template-columns: 1fr;
  }
  .work {
    row-gap: 3rem;
  }
  .work-frame {
    padding: 1.375rem 0.375rem 0.375rem;
  }
  .work-frame::before {
    top: 0.5625rem;
    left: 0.625rem;
  }
  .work-lead .work-caption h3 {
    font-size: 1.25rem;
  }
  .plan + .plan {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .contact {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
}
