/* Fonts are hosted with the site (SIL Open Font License), so no third-party requests */
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("assets/fonts/marcellus-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Marcellus"; font-weight: 400; font-display: swap; src: url("assets/fonts/marcellus-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400 500; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400 500; font-display: swap; src: url("assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+1E00-1E9F; }
@font-face { font-family: "Noto Naskh Arabic"; font-weight: 400; font-display: swap; src: url("assets/fonts/noto-naskh-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --night: #1b0a30;
  --plum: #34135a;
  --gold: #b89a5a;
  --ink: #201a29;
  --muted: #524a5e;
  --line: #e2dde8;
  --on-night: #cbc2d8;
  --serif: "Marcellus", Georgia, serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --edge: 1.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

::selection { background: var(--plum); color: #fff; }
.top ::selection, footer ::selection { background: var(--gold); color: var(--night); }

a { color: var(--plum); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: min(70rem, 100% - 2 * var(--edge)); margin-inline: auto; }

.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 1; background: #fff; padding: 0.5rem 1rem; }

/* Masthead and hero share one night-purple field */
.top { background: var(--night); color: #fff; }
.top a { color: #fff; }

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.brand { display: flex; align-items: center; gap: 0.85rem; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 0.01em; text-decoration: none; }
.brand img { width: 2.75rem; height: 2.75rem; }
.bar nav { display: flex; gap: 2.5rem; font-size: 1rem; letter-spacing: 0.01em; }
.bar nav a, footer nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.top .bar nav a { color: var(--on-night); text-decoration: none; transition: color 0.2s; }
.top .bar nav a:hover { color: #fff; }

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
  padding-block: 6rem 6.5rem;
}
.hero h1 { font-size: clamp(3.75rem, 9vw, 6rem); line-height: 1; letter-spacing: -0.005em; }
.hero .full { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.4; margin-top: 1.25rem; max-width: 32ch; text-wrap: balance; }
.hero .ku { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 1.3125rem; line-height: 1.9; margin-top: 0.75rem; color: var(--gold); text-align: left; text-wrap: balance; }
.hero .lead { position: relative; margin-top: 2rem; padding-top: 2rem; max-width: 50ch; font-size: 1.125rem; color: var(--on-night); }
.hero .lead::before { content: ""; position: absolute; top: 0; left: 0; width: 4rem; height: 1px; background: var(--gold); }
.hero .emblem { width: clamp(16rem, 28vw, 22rem); }

.button {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.button:hover { background: var(--gold); }
.top a.button:hover { color: var(--night); }

/* Sections: a heading column and a content column, divided by hairlines */
.section { padding-block: 6.5rem; }
.section + .section { padding-top: 0; }
.section + .section > .wrap { border-top: 1px solid var(--line); padding-top: 6.5rem; }
.split { display: grid; grid-template-columns: 15rem 1fr; gap: 2rem 4rem; align-items: baseline; }
h2 { font-size: 2.25rem; line-height: 1.2; color: var(--plum); }

.prose { max-width: 40rem; }
.prose p:first-child { font-family: var(--serif); font-size: 1.625rem; line-height: 1.55; }
.prose p + p { margin-top: 1.5rem; max-width: 62ch; color: var(--muted); }

.services { list-style: none; border-bottom: 1px solid var(--line); }
.services li { display: grid; grid-template-columns: 1fr 1.2fr; align-items: baseline; gap: 0.5rem 2.5rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.services li:first-child { border-top-color: var(--plum); }
h3 { font-size: 1.4375rem; line-height: 1.35; }
.services p { color: var(--muted); }

.team { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.team li { padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); }
.team li:nth-child(-n + 2) { border-top-color: var(--plum); }
.team p { color: var(--muted); margin-top: 0.15rem; }

.contact { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.contact li { border-top: 1px solid var(--line); }
.contact li:nth-child(-n + 2) { border-top-color: var(--plum); }
.contact li > * { display: flex; align-items: flex-start; gap: 1.1rem; padding-block: 1.35rem; color: var(--ink); text-decoration: none; }
.contact li span:last-child { min-width: 0; font-size: 1.125rem; line-height: 1.55; overflow-wrap: anywhere; }
.contact strong { display: block; font-size: 0.9375rem; font-weight: 400; color: var(--muted); }
.contact a:hover span:last-child { color: var(--plum); text-decoration: underline; text-underline-offset: 0.25em; }
.icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; color: var(--plum); }
.icon svg { display: block; width: 100%; height: 100%; }

/* Legal pages */
.page-title { padding-block: 4.5rem; }
.page-title h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.15; }
.legal { padding-block: 4.5rem 6rem; }
.legal > div > div { max-width: 66ch; }
.legal h2 { font-size: 1.5rem; margin: 3rem 0 0.75rem; }
.legal p + p { margin-top: 1rem; }

footer { background: var(--night); color: var(--on-night); padding-block: 3rem; font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
footer a { color: #fff; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer nav { display: flex; gap: 2rem; }

@media (max-width: 860px) {
  .hero { gap: 2rem; padding-block: 3.5rem 4.5rem; }
  .hero .emblem { width: 14rem; }
  .split, .services li { grid-template-columns: 1fr; }
  .section { padding-block: 4rem; }
  .section + .section { padding-top: 0; }
  .section + .section > .wrap { padding-top: 4rem; }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero .emblem { order: -1; width: 10rem; }
}

@media (max-width: 560px) {
  :root { --edge: 1.25rem; }
  .bar nav { width: 100%; justify-content: space-between; gap: 1rem; }
  .team, .contact { grid-template-columns: 1fr; }
  .team li:nth-child(2), .contact li:nth-child(2) { border-top-color: var(--line); }
  .prose p:first-child { font-size: 1.375rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3125rem; }
}

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