:root {
  --paper: #f4f0e7;
  --ink: #202b2e;
  --vermilion: #e4452f;
  --hairline: rgb(32 43 46 / 12%);
  --gutter: clamp(1.5rem, 4.7vw, 4.5rem);
  color: var(--ink);
  background: var(--paper);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 20rem;
  background-color: var(--paper);
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border-top: 1px solid transparent;
}

.site-header {
  z-index: 2;
  display: flex;
  min-height: clamp(5rem, 10.5vh, 6.5rem);
  align-items: center;
  padding-inline: var(--gutter);
  border-bottom: 1px solid color-mix(in srgb, var(--vermilion) 22%, transparent);
}

.wordmark {
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 0;
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: clamp(3.2rem, 10.5vw, 10rem);
  transform: translateY(-50%);
  animation: copy-arrival 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero h1 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.4rem);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.04;
}

.hero p {
  margin: clamp(1.35rem, 2.5vw, 2rem) 0 0;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  letter-spacing: 0.16em;
  line-height: 1.7;
}

.construction-mark {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.mark-line {
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: line-arrival 1.35s 180ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.mark-plane {
  fill: var(--vermilion);
  opacity: 0;
  animation: plane-arrival 700ms 680ms ease-out forwards;
}

.site-footer {
  z-index: 2;
  display: grid;
  min-height: clamp(4rem, 8vh, 5rem);
  place-items: center;
  border-top: 1px solid var(--hairline);
  font-family: Didot, "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  letter-spacing: 0.04em;
}

@keyframes copy-arrival {
  from {
    opacity: 0;
    transform: translateY(calc(-50% + 1rem));
  }

  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes line-arrival {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes plane-arrival {
  to {
    opacity: 1;
  }
}

@media (max-width: 48rem) {
  .site-header {
    min-height: 5rem;
  }

  .hero-copy {
    top: 32%;
    left: var(--gutter);
    right: var(--gutter);
  }

  .hero h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero p {
    max-width: 14em;
    letter-spacing: 0.1em;
  }

  .construction-mark {
    width: 180%;
    height: 85%;
    inset: auto -62% -4% auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .mark-line,
  .mark-plane {
    animation: none;
  }

  .mark-line {
    stroke-dashoffset: 0;
  }

  .mark-plane {
    opacity: 1;
  }
}
