@font-face {
  font-family: Cormorant;
  src: url(assets/fonts/cormorant.ttf) format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(assets/fonts/inter.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Naskh;
  src: url(assets/fonts/noto-naskh-arabic-arabic-400-normal.woff2) format("woff2");
  font-display: swap;
}

:root {
  --canvas: #f7f0e5;
  --ink: #35272d;
  --rule: #b7a799;
  --heading: Cormorant, Georgia, serif;
  --body: Inter, Arial, sans-serif;
}
[dir="rtl"] { --heading: Naskh, Georgia, serif; --body: Arial, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 1rem/1.55 var(--body); }
h1, h2, h3, p { margin: 0; }
.masthead, main, footer { width: min(91%, 1280px); margin-inline: auto; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: 4.75rem;
  gap: 1rem;
  border-block-end: 1px solid var(--rule);
}
.brand { font: 600 clamp(1.3rem, 3vw, 1.75rem)/1.25 var(--heading); }
.locale {
  min-block-size: 44px;
  padding: .4rem 1rem;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3.7vw, 3rem); }
.intro h1 { font: 500 clamp(2.9rem, 7vw, 6.4rem)/1.04 var(--heading); }
[dir="rtl"] .intro h1 { line-height: 1.32; }
.intro p { margin-block-start: .65rem; }
.choices + .choices { margin-block-start: clamp(2.75rem, 6vw, 5.5rem); }
.choices > h2 {
  padding-block-start: .75rem;
  margin-block-end: 1.1rem;
  border-block-start: 1px solid var(--rule);
  font: 600 clamp(1.65rem, 3.5vw, 2.65rem)/1.3 var(--heading);
}
.options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.1rem, 2.8vw, 2.4rem);
}
.original-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.option {
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--palette-ink);
  background: var(--palette-paper);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--palette-ink) 25%, transparent);
  text-decoration: none;
}
.option img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 42%; }
.option[data-palette="pomegranate"] img { object-position: 50% 34%; }
.option-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: .35rem;
  padding: clamp(1rem, 2.4vw, 1.65rem);
  border-block-start: .25rem solid var(--palette-accent);
}
.option h3 { color: var(--palette-accent); font: 600 clamp(1.8rem, 3.5vw, 2.7rem)/1.1 var(--heading); }
.original-options .option h3 { font-size: clamp(1.65rem, 2.75vw, 2.3rem); }
[dir="rtl"] .option h3 { line-height: 1.4; }
.option p { font-size: .875rem; }
.option:is(:hover, :focus-visible) h3 { text-decoration: underline; text-underline-offset: .13em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.swatches { display: flex; gap: .24rem; margin-block-start: .65rem; }
.swatches span { flex: 1; block-size: .74rem; background: var(--swatch); border: 1px solid #0002; }
footer {
  margin-block-start: clamp(2.2rem, 5vw, 4rem);
  padding-block: 1rem;
  border-block-start: 1px solid var(--rule);
  font-size: .875rem;
}
@media (max-width: 960px) { .original-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 510px) { .options { grid-template-columns: minmax(0, 1fr); } }
