:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --paper-soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #66666b;
  --line: #d6d6db;
  --clay: #a34f22;
  --clay-dark: #843a19;
  --shield-outer: rgba(29, 29, 31, 0.16);
  --shield-mid: rgba(29, 29, 31, 0.34);
  --shield-inner: rgba(29, 29, 31, 0.62);
  --font-display: "Iowan Old Style", "New York", Baskerville, Georgia, serif;
  --font-sans: "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1c1e;
    --paper-soft: #242426;
    --ink: #f5f5f7;
    --ink-soft: #c7c7cc;
    --line: #3a3a3e;
    --clay: #e07a3d;
    --clay-dark: #f09661;
    --shield-outer: rgba(245, 245, 247, 0.14);
    --shield-mid: rgba(245, 245, 247, 0.32);
    --shield-inner: rgba(245, 245, 247, 0.62);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

.masthead,
main,
footer {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
}

.masthead {
  min-height: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.wordmark img {
  width: 2rem;
  height: 2rem;
}

.masthead-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead-status span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--clay);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: center;
  padding-block: clamp(4rem, 10vh, 8rem);
}

.hero {
  max-width: 48rem;
  animation: arrive 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
  margin: 0 0 1.6rem;
  color: var(--clay-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.4vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.97;
}

h1 em {
  color: var(--clay);
  font-weight: 400;
}

.lede {
  max-width: 39rem;
  margin: 2.3rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  line-height: 1.6;
}

.boundary {
  max-width: 38rem;
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.boundary div {
  padding: 1rem 0;
}

.boundary div + div {
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.boundary dt {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.boundary dd {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.seal {
  position: relative;
  justify-self: end;
  width: min(100%, 26rem);
  margin: 0;
  text-align: center;
  animation: arrive 800ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 9% 0 auto;
  height: 70%;
  border-radius: 50%;
  background: var(--paper-soft);
  z-index: -1;
}

.seal img {
  display: block;
  width: 100%;
  height: auto;
}

.seal p {
  margin: -1.5rem 0 0;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
}

@media (max-width: 820px) {
  .masthead,
  main,
  footer {
    width: min(100% - 2rem, 42rem);
  }

  .masthead {
    min-height: 5.2rem;
  }

  main {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-block: 4rem;
  }

  .seal {
    justify-self: center;
    width: min(75vw, 19rem);
  }
}

@media (max-width: 480px) {
  .masthead-status {
    font-size: 0;
  }

  .masthead-status span {
    width: 0.55rem;
    height: 0.55rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  .boundary {
    grid-template-columns: 1fr;
  }

  .boundary div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .seal {
    animation: none;
  }
}
