@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f3eb;
  --white: #fffcf5;
  --ink: #202622;
  --muted: #505951;
  --line: #d2cec0;
  --rust: #a43c25;
  --rust-hover: #862d1a;
  --sand: #ded7c6;
  --light-ink: #d7ded3;
  --display: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.019em;
}

h2 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); }
h3 { font-size: 1.125rem; }

a {
  color: inherit;
  text-underline-offset: .24em;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.frame {
  width: min(100% - var(--gutter) * 2, 78rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  transform: translateY(-150%);
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner {
  min-height: 4.7rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.wordmark {
  justify-self: start;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .95;
  text-decoration: none;
}

.wordmark span { color: var(--rust); }

.main-nav, .footer-nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.6rem);
  align-items: center;
  font-size: .9375rem;
  font-weight: 600;
}

.main-nav a, .footer-nav a { text-decoration: none; }
.main-nav a:hover, .footer-nav a:hover, .main-nav [aria-current] { text-decoration: underline; }

.button {
  min-height: 3.5rem;
  padding: .72rem 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--rust);
  color: white;
  border: 1px solid transparent;
  border-radius: .2rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.button:hover { background: var(--rust-hover); }
.button:focus-visible { outline-color: var(--ink); }

.button-small {
  min-height: 2.75rem;
  padding: .5rem 1.18rem;
  font-size: .9375rem;
}

.button-ink { background: var(--ink); }
.button-ink:hover { background: #3b4840; }
.header-cta { justify-self: end; }

.text-link {
  width: fit-content;
  font-weight: 700;
  color: var(--rust);
  text-decoration-thickness: 1px;
}

.hero {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.5rem);
  padding-block: clamp(2rem, 4vw, 4rem) clamp(2.6rem, 4.7vw, 4.25rem);
}

.hero h1 {
  font-size: clamp(3.35rem, 7.35vw, 7rem);
  line-height: .89;
  letter-spacing: -.024em;
}

.hero h1 span { display: block; color: var(--rust); }

.hero-copy > p {
  max-width: 29rem;
  margin-top: 1.6rem;
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem 1.55rem;
  margin-top: 1.7rem;
}

.hero-image {
  position: relative;
  aspect-ratio: 1.13;
  min-width: 0;
  background: #465047;
}

.hero-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 46%;
}

.hero-image figcaption {
  position: absolute;
  inset: auto auto 1rem 1rem;
  background: var(--ink);
  color: var(--white);
  max-width: calc(100% - 2rem);
  padding: .46rem .72rem;
  font-size: .8125rem;
  font-weight: 600;
}

.dark-section {
  background: var(--ink);
  color: var(--white);
}

.workflow-inner { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.workflow h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: 0;
  margin: 1.65rem 0 0;
}

.steps li {
  border-top: 1px solid #68766c;
  padding-top: 1.1rem;
}

.steps h3 { font-size: 1.17rem; line-height: 1.28; }
.steps p { margin-top: .55rem; color: var(--light-ink); max-width: 25rem; }

.app-preview {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.app-preview-copy p {
  max-width: 25rem;
  margin-top: 1rem;
  color: var(--muted);
}

.app-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 15rem));
  justify-content: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding: clamp(.75rem, 3.3vw, 2rem);
  background: #eae5d7;
  border: 1px solid var(--line);
}

.app-screens a {
  display: block;
  border: 1px solid #adb6b0;
  border-radius: .45rem;
  cursor: zoom-in;
}

.app-screens img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.app-screens figcaption {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.35;
}

.guide-teaser {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.guide-teaser h2 { max-width: 11em; }
.guide-teaser > div:first-child p { margin-block: 1rem 1.05rem; color: var(--muted); max-width: 33rem; }

.worked-example {
  padding: clamp(1.5rem, 3.2vw, 2.8rem);
  border: 1px solid #c8bfac;
  background-color: #efeadc;
  background-image:
    linear-gradient(#dbd3bf85 1px, transparent 1px),
    linear-gradient(90deg, #dbd3bf85 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center;
}

.example-label { font-weight: 700; }
.example-total {
  color: var(--rust);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -.03em;
}

.example-total span { font-size: .57em; }
.example-total sup { font-size: .56em; }
.example-formula { margin-top: .57rem; color: var(--muted); }

.questions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.questions h2 { font-size: clamp(2.6rem, 4.8vw, 3.8rem); }
.accordions { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
details p { margin: 0 2.75rem 1.05rem 0; color: var(--muted); }

summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-weight: 700;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--rust); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }

.closing { background: var(--sand); }

.closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
}

.closing h2 { font-size: clamp(2.25rem, 4vw, 3.35rem); }
.closing p { margin-top: .55rem; color: var(--muted); }
.closing .button { flex: none; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 1.5rem;
  row-gap: 1rem;
  min-height: 6.5rem;
  padding-block: 1.25rem;
}

.footer-inner .wordmark { font-size: 2.15rem; }

.article-head { border-bottom: 1px solid var(--line); }
.article-intro { padding-block: clamp(2.5rem, 7vw, 5.8rem); }

.article-intro h1 {
  max-width: 11em;
  font-size: clamp(3.25rem, 7.4vw, 6.8rem);
  line-height: .94;
}

.article-intro p {
  color: var(--muted);
  max-width: 40rem;
  font-size: clamp(1rem, 2vw, 1.23rem);
  margin-top: 1.2rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(12rem, .7fr) 2fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2rem, 6vw, 5.2rem);
}

.article-nav {
  align-self: start;
  border-top: 3px solid var(--rust);
  padding-top: 1rem;
  font-size: .9375rem;
}
.article-nav p, .article-nav a { font-weight: 700; }
.article-nav ol { padding-left: 1.25rem; margin-block: .5rem 0; }
.article-nav li + li { margin-top: .35rem; }
.article-nav a { display: inline-block; min-height: 1.55rem; }

.article-body { max-width: 44rem; }
.article-body section { scroll-margin-top: 1.5rem; }
.article-body section + section { margin-top: 2.85rem; }
.article-body h2 { font-size: clamp(2.15rem, 4.2vw, 3.4rem); }
.article-body :is(h2, p) + p { margin-top: .95rem; }
.article-body p { color: var(--muted); }

.article-example {
  background: #ede7d8;
  border-left: 3px solid var(--rust);
  padding: 1.2rem 1.3rem;
  margin-block: 1.2rem;
}
.article-example h3 + p { margin-top: .7rem; }
.article-example p + p { margin-top: .35rem; }
.article-example strong { color: var(--ink); }

@media (max-width: 800px) {
  .app-preview { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { font-size: clamp(4rem, 12.4vw, 6.2rem); }
  .hero-image { aspect-ratio: 1.47; }
  .questions { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-nav { max-width: 25rem; }
}

@media (max-width: 550px) {
  .hero h1 { font-size: clamp(3.5rem, 13.5vw, 4.9rem); }
  .hero-image { aspect-ratio: 1.12; }
  .hero-image figcaption { inset: auto auto .65rem .65rem; }
  .steps, .guide-teaser { grid-template-columns: 1fr; }
  .closing-inner { align-items: flex-start; flex-direction: column; }
}

.article-photo { margin-top: 1.5rem; }

.article-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 38%;
}

.article-photo figcaption {
  color: var(--muted);
  font-size: .875rem;
  margin-top: .4rem;
}

.main-nav, .footer-nav { flex-wrap: wrap; }

.main-nav { column-gap: clamp(1rem, 2vw, 2rem); }
.footer-nav { row-gap: .45rem; }

.breadcrumb {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: .9375rem;
}

.prose-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.prose-section > .article-body { margin-inline: auto; }
.article-body li + li { margin-top: .4rem; }
.article-body ol { padding-left: 1.4rem; }
.article-body a { color: var(--rust); font-weight: 600; }

.training-note {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.training-note h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }

.directory {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.directory h2 { font-size: clamp(2.35rem, 4.5vw, 3.6rem); }

.city-grid, .city-links, .related-pages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .8rem;
  margin-top: 1.25rem;
}

.city-grid a {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.city-grid a:hover { border-color: var(--rust); }
.city-grid a:hover strong { text-decoration: underline; }

.city-grid strong {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.05;
}

.city-grid span { color: var(--muted); }

.related-pages {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 4.5vw, 3.5rem);
}

.related-pages h2 { font-size: clamp(2rem, 3.8vw, 3rem); }

.related-pages ul, .city-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
}

.related-pages ul { margin-top: .9rem; }
.related-pages a, .city-links a { color: var(--rust); font-weight: 650; }

.quantity-table { margin-top: 1.2rem; }
.quantity-table table { width: 100%; border-collapse: collapse; }
.quantity-table caption { text-align: left; margin-bottom: .4rem; color: var(--muted); }
.quantity-table th, .quantity-table td {
  padding: .65rem .5rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.35;
}
.quantity-table + p { margin-top: .9rem; }

.home-service, .offer-detail {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(1.4rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.home-service h2, .offer-detail h2 { font-size: clamp(2.4rem, 4.7vw, 3.8rem); }
.home-service p, .offer-detail h2 + p { margin-block: .8rem 1rem; color: var(--muted); }
.home-service p { max-width: 36rem; }

.home-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: clamp(1.4rem, 3.6vw, 2.8rem);
  background: var(--sand);
}

.home-offer h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.home-offer p { margin-top: .5rem; color: var(--muted); }

.offer-card {
  padding: clamp(1.6rem, 5vw, 3.3rem);
  background: var(--ink);
  color: var(--white);
}

.offer-amount {
  display: flex;
  gap: .45rem .8rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.offer-amount strong {
  font-family: var(--display);
  font-size: clamp(3.8rem, 8vw, 6rem);
  line-height: .96;
}

.offer-card p + p { margin-top: .8rem; font-weight: 700; }
.contact-address { margin-top: .65rem; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: .65rem 1rem;
    padding-block: .9rem .65rem;
  }
  .header-cta { grid-column: 2; grid-row: 1; }
  .main-nav { grid-column: 1 / -1; row-gap: .25rem; }
  .main-nav a { padding-block: .25rem; }
}

@media (max-width: 680px) {
  .home-service, .offer-detail { grid-template-columns: 1fr; }
}

.home-contact, .contact-page {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-block: clamp(2.8rem, 6vw, 5.5rem);
}

.home-contact h2, .contact-intro h1 {
  font-size: clamp(3rem, 6.4vw, 5.2rem);
}

.home-contact h2 + p, .contact-intro p {
  margin-top: .75rem;
  color: var(--muted);
}

.contact-intro { min-width: 0; }
.contact-intro a { overflow-wrap: anywhere; }

.contact-form {
  min-width: 0;
  padding: clamp(1.15rem, 3.4vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
  margin-bottom: .95rem;
}

.contact-form label {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
}

.contact-form :is(input:not([type="hidden"], [hidden]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: .3rem;
  padding: .6rem .7rem;
  border: 1px solid #8a8d84;
  border-radius: .2rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.contact-form textarea { resize: vertical; }
.contact-form button { margin-top: 1.15rem; cursor: pointer; }
.contact-form button:disabled { opacity: .72; cursor: wait; }
.contact-hint { font-size: .875rem; font-weight: 400; color: var(--muted); }
.contact-status:not(:empty) { margin-top: .85rem; }

@media (max-width: 800px) {
  .home-contact, .contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .contact-fields { grid-template-columns: 1fr; }
}
