:root {
  color-scheme: light;
  --sky: #e7f2f7;
  --ink: #153747;
  --orange: #d45d36;
  --muted: #526976;
  --rule: #15374726;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body { margin: 0; }

::selection { color: var(--sky); background: var(--ink); }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1800px;
  margin-inline: auto;
  padding: 0 clamp(24px, 4.3vw, 72px);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px 23px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  color: inherit;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 750;
  letter-spacing: -0.065em;
  line-height: 1;
}

.wordmark span { color: var(--orange); }

.wordmark:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 7px;
  border-radius: 2px;
}

.masthead__note {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: right;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(28px, 4vh, 54px);
  animation: arrive 900ms ease-out both;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 7.8vw, 7.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.065em;
  text-align: center;
  text-wrap: balance;
}

.period { color: var(--orange); }

.hero__art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 900px);
  height: clamp(300px, 53vh, 580px);
  margin: 0 auto;
}

.hero__art object,
.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__art object { pointer-events: none; }

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: 20px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.motion-toggle::before {
  content: "";
  width: 8px;
  height: 10px;
  border-inline: 2px solid currentColor;
}

.motion-toggle.is-paused::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.motion-toggle:hover { color: var(--ink); background: #15374709; }
.motion-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.motion-toggle:disabled { visibility: hidden; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 22px 27px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__domain { font-size: 0.75rem; letter-spacing: 0.13em; }
.footer p { margin: 0; letter-spacing: 0.08em; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .masthead { padding-block: 23px 20px; }
  .wordmark { font-size: 1.8rem; }
  .hero { padding-block: 40px 30px; }
  h1 { max-width: 8em; font-size: clamp(3.4rem, 12vw, 4.5rem); }
  .hero__art { width: calc(100% + 28px); height: auto; aspect-ratio: 3 / 2; margin-top: 28px; }
  .footer { padding-block: 20px 24px; }
}

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