@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ptserif-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ptserif-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Almarai";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/almarai-400-normal.woff2") format("woff2");
}

:root {
  --sand: #b9a590;
  --espresso: #36302a;
  --linen: #ece4da;
  --umber: #574c3f;
  --cream: #f6f3ec;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "Almarai", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --band-pad: clamp(4rem, 9vw, 8rem);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .statement, .hero__lede, .wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.75rem, 5.2vw, 4.15rem); line-height: 1.06; }
h2 { font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: 1.12; }
h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.15; }
p { margin: 0 0 1em; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--sand);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Layout */

.band { padding-block: var(--band-pad); }
.band--sand { background: var(--sand); color: var(--espresso); }
.band--espresso { background: var(--espresso); color: var(--sand); }
.band--linen { background: var(--linen); color: var(--espresso); }
.band--umber { background: var(--umber); color: var(--cream); }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 58rem; }

/* Buttons */

.button {
  display: inline-block;
  padding: 1.35rem 3.5rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--sand);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.button:hover { opacity: 0.88; transform: translateY(-1px); }
.button--light { color: var(--cream); }
.button--sand { background: var(--sand); color: var(--espresso); }

/* Header */

.site-header {
  padding: 1.75rem var(--gutter) 0;
  background: var(--sand);
}
.site-header .wordmark {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  text-decoration: none;
}

/* Hero */

.hero { padding-block: 2.5rem 0; }
.hero__inner {
  display: grid;
  gap: 3rem;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero__text { align-self: center; }
.hero__lede {
  margin: 1.5rem 0 2.5rem;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.2;
  max-width: 28ch;
}
.hero__image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
}

/* Learned */

.learned { text-align: center; }
.learned .statement {
  margin: 2.5rem 0 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.18;
}

/* Split sections (image + text) */

.split { display: grid; gap: 3rem; align-items: center; }
.split__image img {
  width: 100%;
  border-radius: 8px;
}
.split__text > p { max-width: 36rem; }
.split__text h2 { margin-bottom: 1.75rem; }
.split__text .button { margin-top: 1.5rem; }

.service + .service { margin-top: 2.5rem; }
.service h3 { margin-bottom: 1.25rem; }
.service .tagline { font-style: italic; }

/* Testimonials */

.testimonials__list { display: grid; gap: 2rem; }
.quote {
  margin: 0;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.25rem);
  border-radius: 16px;
  text-align: center;
}
.quote figcaption { margin-bottom: 1rem; font-size: 0.95rem; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; }
.quote blockquote p:last-child { margin-bottom: 0; }
.quote--sand { background: var(--sand); color: var(--espresso); }
.quote--cream { background: var(--cream); color: var(--espresso); }
.quote--umber { background: var(--umber); color: var(--cream); }
.quote--umber figcaption { color: #d6c8b8; }

/* Contact */

.contact h2 { font-size: clamp(2.75rem, 5.2vw, 4.15rem); line-height: 1.06; }
.contact__inner { display: grid; gap: 2rem; }
.contact__body p { max-width: 32rem; margin-bottom: 2rem; }
.contact .button { overflow-wrap: anywhere; }

/* Footer */

.site-footer { padding-block: 4.5rem; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.site-footer .wordmark { font-size: 1.6rem; }
.site-footer a { text-underline-offset: 3px; }

/* Mobile tweaks */

@media (max-width: 799px) {
  .hero__text { padding-top: 1rem; }
  .hero__text .button { width: 100%; }
  .hero__image { margin-inline: auto; width: 100%; max-width: 30rem; }
  .button { padding: 1.15rem 2rem; }
  .split__text .button,
  .contact .button { width: 100%; }
}

/* Desktop */

@media (min-width: 800px) {
  .hero { padding-top: 3rem; }
  .hero__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: clamp(3rem, 8vw, 8rem);
    padding-left: clamp(2rem, 8vw, 7rem);
  }
  .hero__text { padding-bottom: 4rem; }
  .hero__image img { aspect-ratio: 2 / 3; max-height: 56rem; }

  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 4.5rem); }
  .split--reverse .split__text { padding-left: clamp(0rem, 5vw, 7rem); }
  .services .split__image { align-self: start; }

  .testimonials__list {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem 0;
  }
  .quote { grid-column: 1 / span 7; }
  .quote--cream { grid-column: 6 / span 7; }

  .contact__inner { grid-template-columns: 1fr 1fr; align-items: start; gap: 4rem; }
  .contact__body { padding-top: 1rem; }
}
