@font-face {
  font-family: "Yadoom Sans";
  src: url("./assets/yadoom-sans-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Yadoom Sans";
  src: url("./assets/yadoom-sans-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Yadoom Kufi";
  src: url("./assets/yadoom-kufi-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --stone: #eee6d9;
  --white: #fbf8f1;
  --ink: #183c2b;
  --forest: #1c4733;
  --forest-hover: #285941;
  --muted: #4d574b;
  --rust: #963e27;
  --line: #d7ccbc;
  --max: 1216px;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html[lang="ar"] { --sans: "Yadoom Sans", system-ui, "Segoe UI", sans-serif; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { line-height: 1.85; }

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-inline-size: 100%; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }

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

.wrap {
  inline-size: min(calc(100% - clamp(36px, 10vw, 144px)), var(--max));
  margin-inline: auto;
}

.icon { inline-size: 20px; block-size: 20px; flex: none; }

.skip {
  position: fixed;
  z-index: 10;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  background: var(--white);
  padding: 10px 16px;
  transform: translateY(-180%);
}

.skip:focus { transform: translateY(0); }

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

.header-row {
  min-block-size: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.brand {
  justify-self: start;
  display: inline-flex;
  gap: 11px;
  align-items: center;
  line-height: 1;
}

.brand > img {
  inline-size: 47px;
  block-size: 47px;
  border-radius: 50%;
}

.brand-name {
  display: grid;
  gap: 6px;
  white-space: nowrap;
}

.brand-name strong {
  font: 700 17px/1.05 "Yadoom Kufi", var(--sans);
  text-align: start;
}

.brand-name > span {
  font: 600 10px/1.15 system-ui, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: end;
}

html[dir="ltr"] .brand-name > span { text-align: start; }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.3vw, 44px);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a, .text-link {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.main-nav a:hover, .text-link:hover { text-decoration-line: underline; }

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-instagram {
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--forest);
  background: #efe8db;
}

.header-instagram:hover { background: #e4dbcc; }

.language {
  display: flex;
  gap: 2px;
  align-items: center;
  background: #efe8db;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 999px;
}

.language a {
  display: grid;
  place-items: center;
  min-inline-size: 44px;
  min-block-size: 38px;
  padding-inline: 8px;
  border-radius: 999px;
  font: 700 12px/1 system-ui, sans-serif;
}

.language a[lang="ar"] { font-family: "Yadoom Sans", sans-serif; }
.language a:hover { background: #e4dbcc; }
.language a[aria-current="page"] { background: var(--forest); color: #fff9ee; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5.5vw, 84px);
  padding-block: clamp(38px, 5.4vw, 76px) clamp(47px, 6.4vw, 92px);
}

.hero-copy { padding-block: 16px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rust);
  font-weight: 700;
  font-size: 13px;
}

.kicker::before {
  content: "";
  inline-size: 22px;
  block-size: 1px;
  background: currentColor;
  flex: none;
}

html[lang="en"] .kicker {
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 11px;
}

h1, h2 { font-family: Georgia, "Times New Roman", serif; }

h1 {
  font-weight: 400;
  font-size: clamp(44px, 6.3vw, 91px);
  line-height: 1.02;
  letter-spacing: -.062em;
  margin-block: 23px 21px;
}

h1 em {
  display: block;
  color: var(--rust);
  font-weight: inherit;
}

html[lang="ar"] h1, html[lang="ar"] h2 {
  font-family: "Yadoom Kufi", "Yadoom Sans", sans-serif;
  font-weight: 700;
}

html[lang="ar"] h1 {
  font-size: clamp(33px, 5.05vw, 73px);
  line-height: 1.43;
  letter-spacing: normal;
  margin-block: 15px 19px;
}

html[lang="ar"] h1 em { font-style: normal; }

.hero-description {
  color: var(--muted);
  font-size: clamp(16px, 1.65vw, 19px);
  max-inline-size: 37ch;
}

.hero-actions, .starter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-actions { margin-block-start: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-block-size: 52px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background-color .16s ease, border-color .16s ease;
}

.button-primary { background: var(--forest); color: #fffaf0; }
.button-primary:hover { background: var(--forest-hover); }

.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: #a9a598;
}

.button-outline:hover { background: #e9e2d6; border-color: var(--forest); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-block-size: 44px;
  padding-inline: 4px;
  font-size: 14px;
  font-weight: 700;
}

.text-link .icon { inline-size: 16px; block-size: 16px; }

.hero-visual {
  position: relative;
  align-self: stretch;
  background: #b99b7c;
  border-radius: 6px;
  overflow: hidden;
  min-block-size: 380px;
}

.hero-visual img {
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: 1.06;
  object-fit: cover;
  object-position: 50% 65%;
}

.hero-visual figcaption {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 14px;
  padding: 5px 10px;
  border-radius: 3px;
  background: #fbf8f1;
  color: #423a30;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.guide {
  background: var(--stone);
  padding-block: clamp(42px, 6.5vw, 88px);
  border-block: 1px solid var(--line);
}

.section-intro { margin-block-end: 29px; }

h2 {
  font-weight: 400;
  font-size: clamp(33px, 4.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.043em;
  margin-block: 10px;
  text-wrap: balance;
}

html[lang="ar"] h2 {
  font-size: clamp(26px, 3.35vw, 47px);
  line-height: 1.45;
  letter-spacing: normal;
}

.section-intro > p:last-child,
.step > p { color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: clamp(18px, 2.5vw, 33px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block-end: 24px;
}

.step-number {
  color: var(--rust);
  font: 400 34px/1 Georgia, serif;
  font-variant-numeric: lining-nums;
}

.step-top .icon { inline-size: 26px; block-size: 26px; }
.step h3 { font-size: clamp(16px, 1.75vw, 22px); margin-block-end: 5px; }
.step > p { font-size: 15px; }

.starter {
  position: relative;
  margin-block-start: 17px;
  padding: 20px clamp(16px, 2.45vw, 30px);
  border: 1px solid #bfb5a4;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.starter-location {
  flex: 0 0 100%;
  min-inline-size: 0;
  margin: 0 0 4px;
  padding: 0 0 18px;
  border: 0;
  border-block-end: 1px solid #bfb5a4;
}

.starter-location legend {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
}

.starter-location > p {
  color: var(--muted);
  font-size: 14px;
  margin-block: 3px 13px;
}

.location-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.location-field {
  display: grid;
  gap: 4px;
  min-inline-size: 0;
}

.location-field label {
  font-size: 14px;
  font-weight: 700;
}

.location-fields :is(select, input) {
  inline-size: 100%;
  min-inline-size: 0;
  min-block-size: 48px;
  padding: 8px 11px;
  border: 1px solid #a9a598;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
}

.location-fields input::placeholder { color: var(--muted); opacity: 1; }

.starter-message { min-inline-size: 0; }
.starter-message > span { color: var(--muted); font-size: 13px; }
.starter-message > p { font-size: 17px; font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.copy-status:empty { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.copy-status { flex-basis: 100%; color: var(--ink); font-size: 14px; }

.instagram-instruction {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 14px;
}

.browse { padding-block: clamp(35px, 6.4vw, 85px); }

.browse-panel {
  display: grid;
  grid-template-columns: 1fr minmax(275px, auto);
  gap: 30px;
  align-items: center;
  border-radius: 6px;
  padding: clamp(24px, 5.2vw, 70px);
  background: var(--forest);
  color: #fff9ed;
}

.browse-panel .kicker { color: #f4bf9e; }
.browse-copy h2 { font-size: clamp(30px, 3.8vw, 52px); }
html[lang="ar"] .browse-copy h2 { font-size: clamp(25px, 3.15vw, 44px); }
.browse-copy > p:last-child { color: #f4e7d8; }

.profile-link {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #95a797;
  border-radius: 6px;
  background: #28513e;
  min-block-size: 76px;
  transition: background-color .16s ease;
}

.profile-link:hover { background: #35654e; }
.profile-link:focus-visible { outline-color: #f4bf9e; }
.profile-link img { border-radius: 50%; }
.profile-link > span { display: grid; justify-items: start; }
.profile-link strong { font: 700 15px/1.25 system-ui, sans-serif; }
.profile-link > span > span { color: #f5e9da; font-size: 13px; }
.profile-link > .icon { margin-inline-start: 2px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  border-block-start: 1px solid var(--line);
  padding-block: 16px 23px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}

.footer-brand [lang="en"] { font-family: system-ui, sans-serif; }

@media (max-width: 950px) {
  .hero-visual { min-block-size: 340px; }
  .hero-actions { gap: 7px; }
  .starter-actions { gap: 8px; }
}

@media (max-width: 740px) {
  .header-row { min-block-size: 72px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block-start: 31px; gap: 25px; }
  .hero-copy { padding-block: 0; }
  h1 { font-size: clamp(48px, 9vw, 70px); margin-block-start: 15px; }
  html[lang="ar"] h1 { font-size: clamp(35px, 7.5vw, 59px); }
  .hero-actions { margin-block-start: 21px; }
  .hero-visual { min-block-size: auto; }
  .hero-visual img { aspect-ratio: 1.23; }
  .steps { grid-template-columns: 1fr; }
  .step-top { margin-block-end: 12px; }
  .browse-panel { grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .profile-link { justify-self: start; }
}

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

@media (max-width: 375px) {
  .header-row { gap: 7px; }
  .brand { gap: 7px; }
  .brand > img { inline-size: 40px; block-size: 40px; }
  .brand-name strong { font-size: 15px; }
  .brand-name > span { font-size: 9px; }
  .profile-link img { inline-size: 40px; block-size: 40px; }
  .profile-link strong { font-size: 13px; }
}

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

.photo-field { margin-block-start: 16px; }
.photo-field p { color: var(--muted); font-size: 14px; }
.photo-field input { max-inline-size: 100%; }
.photo-preview { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-preview img {
  inline-size: 72px;
  block-size: 72px;
  border-radius: 5px;
  object-fit: cover;
}

.market-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 12px 28px;
}
.market-nav strong { margin-inline-end: 4px; }
.market-nav a {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 12px;
}
.market-nav a:hover, .market-nav a[aria-current="page"] {
  background: var(--forest);
  color: #fff9ee;
}

.listings { padding-block: 8px 34px; }
.listings h2 { margin-block-end: 10px; }
.listings > .text-link { margin-block-start: 12px; }
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.listing-card {
  max-inline-size: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.listing-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing-card img.listing-photo-portrait { aspect-ratio: 4 / 5; }
.listing-card-natural-photos img { aspect-ratio: auto; }
.listing-card > div { padding: 12px 16px; }
.listing-card :is(h3, p) { margin: 0; }
.listing-card > div > .button { margin-block-start: 12px; }
