@font-face {
  font-family: Cairo;
  src: url('./assets/cairo-arabic.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

:root {
  color-scheme: light;
  --terracotta: #ae4726;
  --forest: #173a30;
  --ink: #18342d;
  --muted: #58685e;
  --cream: #f5eee2;
  --paper: #fffcf6;
  --line: #e5dccf;
  --focus: #256b54;
  font-family: Cairo, system-ui, sans-serif;
}

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

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  padding: 32px clamp(12px, 4vw, 56px) 22px;
  background: radial-gradient(ellipse at 86% 9%, #f0dcca 0%, transparent 53%), var(--cream);
  color: var(--ink);
}

.page { inline-size: min(100%, 62rem); }

.directory {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  border: 1px solid var(--line);
  border-radius: 29px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 28px 75px -43px #4c2d1b55, 0 4px 12px -8px #4c2d1b38;
}

.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  align-content: center;
  min-inline-size: 0;
  padding: 45px clamp(19px, 3vw, 48px);
  text-align: center;
  color: #fffdf7;
  background: radial-gradient(ellipse at 85% 0%, #af4927, transparent 60%),
    linear-gradient(155deg, var(--terracotta), #8c351e);
}

.identity::before, .identity::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: '';
}

.identity::before {
  inset: 13px;
  border: 1px solid #fff6e735;
  border-radius: 18px;
}

.identity::after {
  inline-size: 21rem;
  aspect-ratio: 1;
  inset-block-end: -12rem;
  inset-inline-start: -9rem;
  border: 1px solid #fff6e72d;
  border-radius: 50%;
  box-shadow: 0 0 0 29px #fff6e709, 0 0 0 58px #fff6e70a, 0 0 0 87px #fff6e709;
}

.identity-mark {
  display: block;
  inline-size: clamp(70px, 8vw, 100px);
  block-size: auto;
  aspect-ratio: 1;
  border: 1px solid #fff6e757;
  border-radius: 26%;
  box-shadow: 0 12px 29px #5b211f35;
}

h1, h2, h3, p { margin: 0; }

.identity h1 {
  margin-block-start: 13px;
  font-size: clamp(2.55rem, 5vw, 3.9rem);
  line-height: 1.22;
  font-weight: 850;
}

.wordmark {
  margin-block-start: 6px;
  font: 750 .77rem/1.5 system-ui, sans-serif;
  letter-spacing: .22em;
}

.mission {
  display: grid;
  gap: 2px;
  margin-block-start: 19px;
  font-size: clamp(.85rem, 1.7vw, 1.05rem);
  line-height: 1.75;
  font-weight: 600;
  text-wrap: balance;
}

.destinations {
  min-inline-size: 0;
  padding: clamp(25px, 4vw, 48px);
}

.destinations h2 {
  margin-block-end: 16px;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
  line-height: 1.35;
  font-weight: 800;
}

.destination {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-block-size: 64px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: #fffefa;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.destination-primary {
  min-block-size: 73px;
  border-color: var(--forest);
  background: var(--forest);
  color: #fffdf7;
}

.destination-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 11px;
  color: var(--terracotta);
  background: #f7eee5;
}

.destination-icon svg { inline-size: 24px; block-size: 24px; }

.destination-primary .destination-icon {
  background: #ffffff19;
  color: #fffdf7;
}

.destination-text { display: grid; justify-items: start; gap: 3px; }
.destination-title { font-size: 1rem; line-height: 1.25; font-weight: 750; }
.destination-primary .destination-title { font-size: 1.06rem; }

.destination-address {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 500 .79rem/1.35 system-ui, sans-serif;
}

.destination-primary .destination-address { color: #dce8de; }
.destination-arrow { inline-size: 22px; block-size: 22px; color: var(--terracotta); }
.destination-primary .destination-arrow { color: #fffdf7; }

.social-heading {
  margin-block: 18px 8px;
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.5;
  font-weight: 750;
}

.social-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.page-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-block-start: 9px;
  font-size: .81rem;
}

.page-footer a {
  display: grid;
  place-items: center;
  min-block-size: 44px;
  padding-inline: 4px;
  color: #4d5a51;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-footer span {
  inline-size: 3px;
  block-size: 3px;
  border-radius: 50%;
  background: #987d6a;
}

a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (hover: hover) {
  .destination:hover { border-color: #cc9e87; background: #fcf5eb; transform: translateY(-2px); }
  .destination-primary:hover { border-color: #245345; background: #245345; }
  .page-footer a:hover { color: var(--terracotta); }
}

.destination:active { transform: translateY(1px); }

@media (max-width: 45rem) {
  body { align-items: start; padding-block: 16px 6px; }
  .page { max-inline-size: 29rem; }
  .directory { grid-template-columns: minmax(0, 1fr); border-radius: 23px; }
  .identity { padding-block: 23px 25px; }
  .identity::before { inset: 9px; border-radius: 15px; }
  .identity-mark { inline-size: 65px; }
  .identity h1 { margin-block-start: 7px; font-size: 2.42rem; }
  .wordmark { margin-block-start: 4px; font-size: .7rem; }
  .mission { margin-block-start: 12px; }
  .destinations { padding: 19px clamp(12px, 4.6vw, 22px) 18px; }
  .destinations h2 { margin-block-end: 12px; }
  .destination { min-block-size: 56px; padding: 6px 10px; gap: 10px; border-radius: 13px; }
  .destination-primary { min-block-size: 63px; }
  .destination-icon { inline-size: 38px; block-size: 38px; border-radius: 9px; }
  .social-heading { margin-block: 14px 6px; }
  .page-footer { margin-block-start: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .destination { transition: none; }
  .destination:hover, .destination:active { transform: none; }
}
