@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk-latin-wght-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
p {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The wordmark, as on ExtantBible: the mark, then "Extant" upright and the second word in italic and the accent color. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  padding: 14px 0;
  font-size: var(--fs-wordmark);
  line-height: 1.2;
  text-decoration: none;
}
.brand svg {
  align-self: center;
  flex: none;
  margin-right: 9px;
}
.brand .w1 {
  color: var(--text);
  font-weight: var(--weight-medium);
}
.brand .w2 {
  color: var(--accent);
  font-style: italic;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-10) 0;
}
h1 {
  margin: 0 0 var(--space-5);
  color: var(--text);
  font-size: var(--fs-hero);
  font-weight: var(--weight-medium);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  text-wrap: balance;
}
.lead {
  max-width: var(--measure);
  color: var(--text-lead);
  font-size: var(--fs-lead);
}

/* The mark: each facet takes one of three tones, fill and stroke alike. The card carries ExtantBible's tones. */
.mk-l {
  fill: var(--mark-light);
  stroke: var(--mark-light);
}
.mk-m {
  fill: var(--mark-mid);
  stroke: var(--mark-mid);
}
.mk-d {
  fill: var(--mark-dark);
  stroke: var(--mark-dark);
}
.mk-l,
.mk-m,
.mk-d {
  stroke-width: 0.4;
  stroke-linejoin: round;
}
.sister {
  --mark-light: var(--eb-mark-light);
  --mark-mid: var(--eb-mark-mid);
  --mark-dark: var(--eb-mark-dark);
}

/* The sister site's card keeps ExtantBible's own colors. */
.sister {
  display: flex;
  align-items: center;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--eb-background);
  border: 1px solid var(--eb-line);
  border-radius: var(--radius-md);
  color: var(--eb-text-2);
  text-decoration: none;
}
.sister-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-size: var(--fs-wordmark);
  line-height: 1.2;
}
.sister-brand svg {
  align-self: center;
  flex: none;
  margin-right: 9px;
}
.sister-brand .w1 {
  color: var(--eb-text);
  font-weight: var(--weight-medium);
}
.sister-brand .w2 {
  color: var(--eb-accent);
  font-style: italic;
}
.sister-covers {
  flex: 1;
  color: var(--eb-text-2);
  font-size: var(--fs-small);
}
.sister-status {
  flex: none;
  padding: var(--space-1) var(--space-3);
  background: var(--eb-tint);
  border: 1px solid var(--eb-accent);
  border-radius: var(--radius-pill);
  color: var(--eb-accent);
  font-size: var(--fs-label);
  font-weight: var(--weight-medium);
  line-height: var(--lh-ui);
}
/* Once ExtantBible has launched the card is a link; the underline on hover keeps the cue from resting on color alone. */
.sister-link {
  transition: border-color var(--dur-fast) ease;
}
.sister-link:hover {
  color: var(--eb-text-2);
  border-color: var(--eb-accent);
}
.sister-link:hover .sister-covers {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sister-link:hover .sister-brand .w2 {
  color: var(--eb-accent-hover);
}
.sister-link:focus-visible {
  border-radius: var(--radius-md);
}

.more {
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--fs-small);
}

footer {
  padding: var(--space-5) 0 var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-label);
}

@media (max-width: 640px) {
  main {
    justify-content: flex-start;
    padding: var(--space-8) 0 var(--space-10);
  }
  h1 br {
    display: none;
  }
  .sister {
    flex-wrap: wrap;
    margin-top: var(--space-8);
    padding: var(--space-5);
  }
  .sister-covers {
    order: 3;
    flex-basis: 100%;
  }
  .sister-status {
    margin-left: auto;
  }
}
