@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Noto+Sans+Arabic:wght@400;500;600;700&family=Noto+Serif+Arabic:wght@500;600&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f5ec;
  --ink: #233b32;
  --muted: #486055;
  --sage: #e7ece1;
  --line: #d9ded0;
  --amber: #edbb69;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
}
:lang(ar) {
  --display: "Noto Serif Arabic", "Geeza Pro", serif;
  --body: "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #85552d; outline-offset: 5px; }
h1, h2 { font: 600 2.6rem/1.12 var(--display); margin: 0; text-wrap: balance; }
:lang(ar) :is(h1, h2) { line-height: 1.5; }
p { margin: 0; }
.wrap { max-inline-size: 1280px; padding-inline: clamp(20px, 5vw, 70px); margin-inline: auto; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-block-size: 87px; }
.brand, nav { display: flex; align-items: center; }
.brand {
  /* The lettering column is approximately phi times the symbol width. */
  --symbol-width: 2.75rem;
  display: inline-grid;
  grid-template-columns: var(--symbol-width) calc(var(--symbol-width) * 1.618);
  column-gap: .5rem;
  align-items: center;
  flex: none;
}
.readers-mark { display: block; width: 100%; height: auto; }
.brand-type {
  display: grid;
  justify-items: start;
  align-content: center;
  row-gap: 0;
  white-space: nowrap;
}
.brand-type strong { font: 600 1.7rem/1.04 "Noto Serif Arabic", "Geeza Pro", serif; }
.brand-type span { font: 500 .8rem/1.1 Fraunces, Georgia, serif; }
nav { gap: clamp(16px, 4vw, 40px); font-weight: 600; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.language { border: 1px solid #a9b7a8; border-radius: 100px; padding: 7px 17px; }
.hero { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(25px, 5vw, 72px); align-items: center; padding-block: 40px 92px; }
.hero h1 { font-size: clamp(3rem, 5.4vw, 5.5rem); letter-spacing: -.04em; text-wrap: initial; }
html[lang="ar"] .hero h1 { letter-spacing: normal; font-size: clamp(2.65rem, 4.8vw, 4.8rem); }
.hero-copy p { max-inline-size: 33ch; margin-block: 20px 26px; color: var(--muted); font-size: 1.1rem; }
html[lang="ar"] .hero-copy p { max-inline-size: 38ch; }
.button { display: inline-flex; gap: 14px; align-items: center; padding: 12px 20px; border-radius: 100px; background: var(--ink); color: var(--paper); font-weight: 700; }
.button:hover { background: #365747; }
.ages { display: block; margin-block-start: 15px; color: var(--muted); }
.hero-art { margin: 0; overflow: hidden; border-radius: 160px 160px 22px 22px; background: #3a584b; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.skip { position: absolute; inset-inline-start: 18px; inset-block-start: 10px; z-index: 1; padding: 10px; background: var(--paper); transform: translateY(-150%); }
.skip:focus { transform: none; }
.hero { padding-block: clamp(24px, 3vw, 42px) clamp(42px, 5vw, 68px); }
.hero-art { border-radius: 45% 45% 16px 16px / 26% 26% 16px 16px; }
.hero-art img { aspect-ratio: 1.38; }
.book, .studio { display: grid; align-items: center; grid-template-columns: 1fr 1fr; }
.book { background: var(--sage); border-radius: 18px; overflow: hidden; }
.book-art { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.book-copy { padding: clamp(24px, 4vw, 54px); }
.label, .journey p { font-size: .85rem; font-weight: 600; }
.book-copy h2 { margin-block: 10px 14px; }
.book-copy > p, .studio p { max-width: 42ch; color: var(--muted); }
.journey { margin-block-start: 26px; }
.ticks { display: flex; gap: 4px; max-width: 195px; margin-block-end: 8px; }
.ticks i { height: 5px; flex: 1; border-radius: 8px; background: #afbdaf; }
.ticks i:nth-child(-n+2) { background: var(--ink); }
.studio { gap: clamp(30px, 6vw, 84px); padding-block: clamp(44px, 6vw, 82px); }
.studio h2 { margin-block-end: 14px; }
.studio-art { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; border-radius: 14px; }
.footer { display: flex; align-items: center; justify-content: space-between; border-block-start: 1px solid var(--line); padding-block: 24px; }
.text-link { font-weight: 600; }
@media (max-width: 720px) {
  .header { min-block-size: 68px; }
  .desktop-link { display: none; }
  .hero, .book, .studio { grid-template-columns: 1fr; }
  .hero { gap: 20px; }
  .hero h1 { max-inline-size: 15ch; }
  .hero-art img { aspect-ratio: 1.65; }
  .hero-copy p { margin-block: 12px 16px; }
  .ages { margin-block-start: 8px; }
  .book-art { height: auto; min-height: 0; aspect-ratio: 1.8; }
  .studio { gap: 20px; }
  .studio-art { aspect-ratio: 2; }
}
