/* Hallmark · macrostructure: Marquee Hero · tone: atmospheric · anchor hue: warm amber · theme: Midnight · enrichment: E6 custom SVG leaf field · nav: none · footer: none */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · contrast: pass (40–41) · slop: pass (42–45) · honest: pass (46) · tokens: pass (48) · responsive: pass (34, 49–52) */
@import url("tokens.css");

html { overflow-x: clip; background: var(--color-paper); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }

.page-shell { position: relative; min-height: 100dvh; isolation: isolate; }
.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: clip;
  padding: clamp(6rem, 12vh, 8rem) clamp(1rem, 6vw, 6rem) clamp(8rem, 18vh, 12rem);
  background: var(--color-paper);
}
.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  content: "";
  width: min(44vw, 36rem);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.12;
}
.hero::before { top: 4%; left: -18%; background: var(--color-leaf-russet); }
.hero::after { right: -18%; bottom: -14%; background: var(--color-accent); opacity: 0.09; }

.leaf-field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.leaf {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: var(--leaf-size);
  height: calc(var(--leaf-size) * 1.18);
  opacity: var(--leaf-opacity);
  transform: translate3d(var(--leaf-x), var(--leaf-y), 0) rotate(var(--leaf-rotation));
  transform-origin: 50% 50%;
  will-change: transform;
}
.leaf svg { display: block; width: 100%; height: 100%; overflow: visible; }
.leaf path { fill: currentColor; stroke: var(--color-paper); stroke-width: 0.7; stroke-opacity: 0.18; }
.leaf--amber { color: var(--color-leaf-amber); }
.leaf--russet { color: var(--color-leaf-russet); }
.leaf--ochre { color: var(--color-leaf-ochre); }

.poem-lockup {
  position: relative;
  z-index: var(--z-raised);
  width: min(100%, 76rem);
  text-align: center;
  animation: poem-arrive var(--dur-long) var(--ease-out) both;
}
.poem__title {
  max-width: 24ch;
  margin: 0 auto;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.poem__accent {
  position: relative;
  color: var(--color-accent);
  font-weight: 600;
}
.poem__accent::after {
  position: absolute;
  right: 0.08em;
  bottom: 0.08em;
  left: 0.08em;
  height: 1px;
  background: var(--color-accent);
  content: "";
  transform-origin: left;
  animation: underline-arrive 700ms var(--ease-out) 450ms both;
}

@keyframes poem-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes underline-arrive { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 40rem) {
  .hero { padding-inline: clamp(2rem, 8vw, 8rem); }
  .poem__title { max-width: none; }
}
@media (min-width: 60rem) {
  .hero { padding-top: 8rem; }
  .poem__title { white-space: nowrap; }
}
@media (max-width: 40rem) {
  .hero { padding: 6rem var(--space-md) 8rem; }
  .poem__title { max-width: 17ch; font-size: clamp(2rem, 9vw, 3.2rem); line-height: 1.42; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 150ms !important; animation-iteration-count: 1 !important; transition-duration: 150ms !important; }
  .leaf { will-change: auto; }
  .poem-lockup, .poem__accent::after { animation: none; }
}
