:root {
  --bg: #ffffff;
  --fg: #000000;
  --card: #f5f5f5;
  --muted: #5c5c5c;
  --secondary: #f0f0f0;
  --border: rgb(0 0 0 / 12%);
  --shadow: 0 0 0 1px rgb(0 0 0 / 10%);
  --shadow-hover: 0 0 0 1px rgb(0 0 0 / 18%);
  --danger: #b42318;
  --radius: 1rem;
  --font-sans: "Barlow", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --text-display: clamp(2.35rem, 1.1rem + 4.2vw, 4.35rem);
  --text-title: clamp(1.85rem, 1.2rem + 2.2vw, 3rem);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

button:not(:disabled),
[role="button"]:not(:disabled) {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-narrow {
  max-width: 48rem;
}

.wrap-mid {
  max-width: 64rem;
}

main {
  flex: 1;
}

.kicker {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-size: var(--text-display);
  font-style: italic;
}

.title {
  font-size: var(--text-title);
  font-style: italic;
}

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4rem;
}

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

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a.is-active {
  color: var(--fg);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.nav-mobile a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-mobile.is-open {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--fg);
  color: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  transition: opacity 150ms ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  transform: scale(0.96);
}

.link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.hero .logo img {
  margin: 0 auto;
  height: 3.5rem;
}

.hero h1 {
  margin-top: 2rem;
}

.hero .lead {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
}

.hero .btn {
  margin-top: 2rem;
}

.band {
  background: var(--card);
  border-top: 1px solid var(--border);
}

.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
}

.section-head p {
  max-width: 32rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card.plain {
  background: var(--bg);
}

.card.hover {
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card.hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card h3,
.card h2 {
  font-size: 1.25rem;
}

.price {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
}

.card .summary {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.list li {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.work-card {
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: var(--card);
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.work-card .pad {
  padding: 1.5rem;
}

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  margin-top: 0.75rem;
}

.page > .lead,
.page .intro {
  max-width: 36rem;
  margin-top: 1.25rem;
}

.job {
  margin-top: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.job-top {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job .price {
  margin-top: 0;
}

.example {
  max-width: 48rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.example .kicker {
  margin-bottom: 0.75rem;
}

.example p {
  margin: 0 0 1rem;
  line-height: 1.65;
}

.example p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 3rem;
}

.rows {
  margin: 1.5rem 0 0;
  padding: 0;
  max-width: 36rem;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.rows li:last-child {
  border-bottom: 0;
}

.form {
  display: grid;
  gap: 1rem;
}

.form label {
  display: grid;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--secondary);
  color: var(--fg);
  font: inherit;
  box-shadow: var(--shadow);
  outline: none;
}

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  box-shadow: var(--shadow-hover);
}

.error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
}

.thanks {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--muted);
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0;
}

.footer-copy {
  max-width: 24rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.footer-nav a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-links a {
  text-transform: none;
  letter-spacing: 0;
}

.footer-links a:hover {
  color: var(--fg);
}

.rule {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.contact-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (min-width: 640px) {
  .logo img {
    height: 3rem;
  }

  .hero .logo img {
    height: 4rem;
  }

  .hero .lead {
    font-size: 1.25rem;
  }

  .job {
    padding: 2rem;
  }

  .job-top {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .nav-mobile,
  .nav-mobile.is-open {
    display: none;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active,
  .card.hover,
  .card.hover:hover {
    transform: none;
  }
}


/* Demo page */
.demo {
  display: grid;
  gap: 1.25rem;
  margin: 2.5rem 0 3rem;
}
@media (min-width: 900px) {
  .demo {
    grid-template-columns: minmax(16rem, 20rem) 1fr;
    align-items: start;
  }
}
.demo-controls {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}
.demo-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.demo-field select {
  font: inherit;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
}
.demo-stage {
  padding: 1.5rem 1.35rem 1.75rem;
  min-height: 18rem;
}
.demo-stage .title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 1rem + 1.2vw, 1.85rem);
}
.demo-out h4 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
}
.demo-out p {
  margin: 0.35rem 0;
}
.demo-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-fields {
  margin: 0.5rem 0 1rem;
  padding-left: 1.1rem;
}
.demo-fields li {
  margin: 0.25rem 0;
}
.demo-mail {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border-radius: 0.75rem;
}
.demo-phone {
  display: grid;
  gap: 0.75rem;
}
.demo-bubble {
  margin: 0;
  padding: 0.9rem 1rem;
  background: #111;
  color: #fff;
  border-radius: 1rem 1rem 1rem 0.25rem;
  max-width: 28rem;
  line-height: 1.45;
}
.demo-phone-from,
.demo-phone-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
