:root {
  color-scheme: light;
  --paper: #f2eee5;
  --ink: #27211c;
  --muted: #746b61;
  --red: #b5232e;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 280px;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--paper);
}

body {
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 50%;
  padding: 0.7rem 1rem;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.75rem;
  text-decoration: none;
  transform: translate(-50%, -200%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.page-frame {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.return-link:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 0.4rem;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vh, 6rem) clamp(1.25rem, 5vw, 5rem);
}

.statement {
  width: min(100%, 68rem);
  text-align: center;
}

.seal {
  display: block;
  width: clamp(5rem, 8vw, 7.25rem);
  height: auto;
  margin: 0 auto clamp(2rem, 4vh, 3.5rem);
  border-radius: 50%;
  box-shadow: 0 0.75rem 2rem rgb(91 22 27 / 10%);
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Baskerville, Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-top: 0.08em;
  color: var(--red);
  font-weight: 400;
}

.statement > p {
  margin: clamp(2rem, 4vh, 3.25rem) auto 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(0.72rem, 0.85vw, 0.84rem);
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  text-wrap: balance;
}

.error-content {
  width: min(100%, 46rem);
  margin: auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.error-code {
  margin: 0 0 1.5rem;
  color: var(--red);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
}

.error-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.return-link {
  display: inline-block;
  margin-top: 2.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--red);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .seal {
    width: 5.25rem;
  }

  h1 {
    font-size: clamp(2.85rem, 14.5vw, 4.5rem);
    line-height: 0.98;
  }

  .statement > p {
    max-width: 22rem;
    font-size: 0.68rem;
  }
}

@media (max-height: 700px) and (min-width: 601px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .seal {
    width: 4.75rem;
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
  }

  .statement > p {
    margin-top: 1.5rem;
  }
}
