:root {
  color-scheme: light;
  --paper: #fafafa;
  --ink: #201e1d;
  --muted: #615b55;
  --rule: #d6d0cb;
  background: var(--paper);
  color: var(--ink);
  font: 100%/1.5 system-ui, sans-serif;
}

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

body {
  --gutter: clamp(1rem, 5vw, 5rem);
  max-inline-size: 100rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  min-block-size: 4.5rem;
  border-block-end: 1px solid var(--rule);
}

.languages { position: relative; }

.languages summary {
  display: list-item;
  padding: .65rem 0;
  cursor: pointer;
  font-size: .875rem;
}

.languages summary bdi {
  margin-inline-start: .45em;
  font-weight: 650;
}

.languages nav {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  inline-size: min(19rem, calc(100vw - 2 * var(--gutter)));
  margin-block-start: .25rem;
  padding: .35rem;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.languages a {
  display: block;
  min-block-size: 2.75rem;
  padding: .6rem .8rem;
  color: inherit;
  text-decoration: none;
}

.languages a:hover, .languages a[aria-current="page"] {
  background: #eeeae6;
  text-decoration: underline;
  text-underline-offset: .2em;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  grid-template-rows: 1fr 1fr;
  align-items: start;
  column-gap: clamp(2.5rem, 8vw, 8rem);
  row-gap: 2rem;
  padding-block: clamp(2rem, 5vh, 5rem);
}

.hero-copy { align-self: end; }

.hero h1 {
  margin: .2em 0 0;
  font: 400 clamp(3.25rem, 8vw, 9rem)/.96 "Iowan Old Style", Palatino, Georgia, serif;
  letter-spacing: -.04em;
}

.hero h1 span { display: block; }

.intro {
  max-inline-size: 37ch;
  margin-block: 1.2rem 0;
  color: var(--muted);
}

[dir="rtl"] .hero h1 { text-align: right; }

.official, .explore h2 {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

:lang(ar) .official, :lang(ar) .explore h2 { letter-spacing: normal; }

.explore { max-inline-size: 27rem; }

.explore h2 { margin-block-end: .7rem; }

.explore ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-end: 1px solid var(--rule);
}

.explore li > a, .explore-panel summary {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: baseline;
  min-block-size: 2.85rem;
  padding-block: .55rem;
  border-block-start: 1px solid var(--rule);
  color: inherit;
  text-decoration: none;
  font-size: 1.1rem;
}

.explore a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.index {
  color: var(--muted);
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
}

.portrait {
  display: block;
  grid-area: 1 / 2 / span 2;
  align-self: center;
  justify-self: center;
  inline-size: min(100%, 69svh);
  block-size: auto;
}

@media (max-width: 43rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .hero h1 { font-size: clamp(3.25rem, 12vw, 5.5rem); }
  .portrait {
    grid-area: auto;
    inline-size: min(100%, 27rem);
  }
}


.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.75rem;
  border-block-start: 1px solid var(--rule);
  padding-block: 1.5rem;
  font-size: .875rem;
}

.site-footer a {
  color: inherit;
  text-underline-offset: .2em;
}


.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-inline-start: auto;
}

.footer-company {
  flex-basis: 100%;
  border-block-start: 1px solid var(--rule);
  padding-block-start: .85rem;
  color: var(--muted);
}

.footer-company p { margin: .15rem 0; }

.music-bar {
  position: sticky;
  inset-block-end: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  padding: .35rem 0;
  border-block-start: 1px solid var(--rule);
  background: var(--paper);
  font-size: .875rem;
}

.music-bar button {
  padding: .35rem .55rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.music-bar[hidden] { display: none; }

.explore-panel summary {
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  list-style: none;
  cursor: pointer;
}

.explore-panel summary::-webkit-details-marker { display: none; }

.explore-panel summary::after {
  content: "+";
  color: var(--muted);
}

.explore-panel[open] summary::after { content: "−"; }

.explore-panel dl {
  display: grid;
  gap: .85rem;
  margin: 0;
  padding-block: .25rem 1rem;
  padding-inline-start: 2.25rem;
}

.explore-panel dt { font-weight: 600; }
.explore-panel dt a { color: inherit; text-underline-offset: .2em; }
.explore-panel dd { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }

.explore-panel .credit-link {
  margin: 0;
  padding-block-end: 1rem;
  padding-inline-start: 2.25rem;
  font-size: .9rem;
}

.explore-panel .credit-link a { color: inherit; text-underline-offset: .2em; }

.contact {
  border-block-start: 1px solid var(--rule);
  padding-block: 2rem;
}

.contact form {
  display: grid;
  gap: .8rem;
  max-inline-size: 34rem;
}

.contact form[hidden] { display: none; }
.contact label { display: grid; gap: .25rem; }
.contact :is(input, textarea, select, button) {
  font: inherit;
  color: inherit;
  background: transparent;
  padding: .55rem .7rem;
  border: 1px solid var(--rule);
}
.contact button { justify-self: start; cursor: pointer; }
.contact a { color: inherit; }
.contact .form-status { margin: 0; }
