/* The look of the app (Tiferet): Lora in royal blue for headings, Nunito Sans for text, background #F8F8F6. */

@font-face {
  font-family: 'Lora';
  src: url('/fonts/Lora-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/NunitoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/fonts/NunitoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --blue: #003198;
  --background: #f8f8f6;
  --text: #1d1d1f;
  --muted: #5c5c60;
  --line: #e2e2de;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

header,
main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

main {
  padding-bottom: 4rem;
}

h1,
h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.25;
}

h1 {
  font-size: 1.875rem;
  margin: 1.5rem 0 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.5rem;
}

p {
  margin: 0 0 0.875rem;
}

a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.lang {
  font-weight: 700;
  text-decoration: none;
}

.intro,
.updated {
  color: var(--muted);
}

.back {
  margin-top: 1.5rem;
}

ul {
  margin: 0;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.375rem;
}

dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.375rem 1.25rem;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  min-width: 0;
}

@media (max-width: 30rem) {
  dl {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dd {
    margin-bottom: 0.625rem;
  }
}
