:root {
  --ink: #1c1915;
  --muted: #4a453c;
  --stone: #e6e0d4;
  --sheet: #efeae1;
  --line: #cfc6b8;
  --brass: #6f4e1f;
  --danger: #7a221c;
  --ivory: #f7f4ee;
  --display: "Bodoni Moda", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --domain: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --body: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --arabic-display: "Amiri", "Bodoni Moda", serif;
  --arabic-body: "IBM Plex Sans Arabic", "Sora", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--stone);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-touch-callout: none;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(111, 78, 31, 0.08), transparent 70%),
    var(--stone);
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  font-synthesis: none;
}

::selection {
  background: #e4d3b0;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.wrap {
  width: min(70rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid rgba(28, 25, 21, 0.14);
}

.header-row,
.footer-row,
.hero-offer,
.handoff-actions,
.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.header-row {
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.75rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang {
  display: inline-flex;
  border: 1px solid rgba(28, 25, 21, 0.28);
}

.lang button {
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 0.88rem/1 var(--body);
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--ivory);
}

.wordmark {
  font-family: var(--domain);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1;
}

.header-link {
  font-size: 0.95rem;
  font-weight: 500;
  text-underline-offset: 0.28em;
}

.hero {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(2.5rem, 7vh, 5rem);
}

.domain {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  font-family: var(--domain);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: min(5.75rem, calc((100vw - 3rem) / 7.6));
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
  font-variant-ligatures: none;
}

.headline {
  max-width: 16em;
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-offer {
  align-items: flex-end;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.asking {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.asking-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asking-value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.asking-note {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  font: 600 0.98rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease);
}

.button:hover {
  background: #322c26;
}

.button:active {
  transform: translateY(1px);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
}

.button-quiet:hover {
  background: rgba(28, 25, 21, 0.06);
}

.value {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line);
}

.value h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 40rem);
  gap: 0.35rem 1rem;
  align-items: start;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-no::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1;
}

.steps h3 {
  font-family: var(--body);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.steps p {
  max-width: 40rem;
  margin-top: 0.3rem;
  color: var(--muted);
  text-wrap: pretty;
}

.inquiry {
  background: var(--sheet);
  padding-block: clamp(4rem, 8vw, 7rem);
  scroll-margin-top: 1.25rem;
}

.inquiry-inner {
  max-width: 46rem;
}

.inquiry h2,
.handoff h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.inquiry h2 {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
}

.inquiry-intro,
.hint,
.handoff p,
.noscript {
  color: var(--muted);
  text-wrap: pretty;
}

.inquiry-intro {
  max-width: 38rem;
  margin-top: 1rem;
}

.noscript {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.offer-form {
  margin-top: 2.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.field label,
.prepared-label {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.mark {
  margin-inline-start: 0.35rem;
  color: var(--brass);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mark.quiet {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea,
.prepared-label + textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b7ad9e;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.field input {
  min-height: 3rem;
  padding: 0.55rem 0;
}

.field textarea,
#prepared-email {
  padding: 0.75rem 0;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5c564e;
}

.field input:focus,
.field textarea:focus,
#prepared-email:focus {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-bottom-color: var(--ink);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: var(--danger);
}

.error {
  min-height: 0;
  margin-top: 0.4rem;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.4;
}

.submit-row {
  align-items: center;
  margin-top: 1.75rem;
}

.hint {
  max-width: 36rem;
  margin: 0;
  font-size: 0.95rem;
}

.status:not(:empty) {
  margin-top: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.handoff {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--brass);
}

.handoff h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.handoff p {
  max-width: 40rem;
  margin-top: 0.9rem;
}

.handoff-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row p {
  margin: 0;
}

.site-footer a {
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .span-2 {
    grid-column: span 2;
  }
}

html[lang="ar"] body {
  font-family: var(--arabic-body);
  font-size: 1.125rem;
  line-height: 1.85;
}

html[lang="ar"] .headline,
html[lang="ar"] .value h2,
html[lang="ar"] .inquiry h2,
html[lang="ar"] .handoff h3 {
  font-family: var(--arabic-display);
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang="ar"] .headline {
  max-width: 14em;
}

html[lang="ar"] .asking-label,
html[lang="ar"] .mark,
html[lang="ar"] .lang button {
  letter-spacing: 0;
  text-transform: none;
}

html[lang="ar"] .step-no::before {
  content: counter(step, arabic-indic);
}

html[lang="ar"] .domain,
html[lang="ar"] .wordmark {
  font-family: var(--domain);
  letter-spacing: 0.04em;
}

html[lang="ar"] .button,
html[lang="ar"] .field label,
html[lang="ar"] .steps h3 {
  font-family: var(--arabic-body);
}

@media (max-width: 800px) {
  .submit-row,
  .footer-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tools {
    flex-wrap: wrap;
  }

  .hero-offer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-offer .button,
  .submit-row .button,
  .handoff-actions .button {
    width: 100%;
  }

  .steps li {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }
}

@media (max-width: 380px) {
  .wrap {
    width: calc(100% - 1.5rem);
  }

  .domain {
    font-size: calc((100vw - 2rem) / 7.6);
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
