:root {
  --porcelain: #f5f0e6;
  --cobalt: #1b2c68;
  --ember: #e56647;
  --stone: #dcd4c8;
  --deep-ember: #a63e2a;

  color: var(--cobalt);
  background: var(--porcelain);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: clamp(48px, 9svh, 96px) clamp(48px, 5vw, 80px);
}

.sheet {
  inline-size: min(100%, 600px);
  display: grid;
  gap: clamp(36px, 7svh, 76px);
}

.statement {
  max-inline-size: 28rem;
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.375rem, 1.16rem + 0.65vw, 1.75rem);
  font-weight: 400;
  line-height: 1.24;
  text-wrap: pretty;
}

.atlas {
  position: relative;
  margin: 0;
}

.atlas__plate {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 25 / 14;
  overflow: visible;
}

.atlas__registration,
.atlas__guide,
.atlas__mesh,
.atlas__detail {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atlas__registration {
  stroke-width: 0.8;
  opacity: 0.26;
}

.atlas__guide {
  stroke-width: 0.62;
  opacity: 0.23;
}

.atlas__mesh {
  stroke-width: 0.75;
  opacity: 0.68;
}

.atlas__detail {
  stroke-width: 0.95;
  opacity: 0.88;
}

.atlas__marker {
  fill: var(--ember);
}

.atlas__toggle {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: -12px;
  display: grid;
  inline-size: 44px;
  block-size: 44px;
  place-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.atlas__toggle svg {
  stroke: currentColor;
  stroke-width: 1.1;
  fill: none;
  opacity: 0.64;
}

.atlas__toggle:is(:hover, :focus-visible) svg {
  opacity: 1;
}

.atlas__toggle .atlas__play,
.atlas__toggle[data-paused] .atlas__pause {
  display: none;
}

.atlas__toggle[data-paused] .atlas__play {
  display: initial;
}

.signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--stone);
}

.wordmark {
  display: block;
  inline-size: clamp(112px, 23vw, 148px);
  block-size: auto;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(16px, 4vw, 28px);
  font-size: clamp(0.875rem, 0.83rem + 0.24vw, 1rem);
}

.links a {
  display: flex;
  min-block-size: 44px;
  align-items: center;
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--cobalt) 35%, transparent);
  text-underline-offset: 0.26em;
}

.links a:hover {
  color: var(--deep-ember);
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 1px solid var(--deep-ember);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    padding-inline: clamp(20px, 4vw, 24px);
  }
}
