:root {
  --paper: #fffefa;
  --ink: #12120f;
  --muted: #625f55;
  --line: #12120f;
  --accent: #8de8ff;
  --soft: #eafaff;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 19rem),
    linear-gradient(90deg, rgba(18, 18, 15, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(18, 18, 15, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(1rem, 2vw, 1.5rem);
  padding: 0.72rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 6px 6px 0 var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 1000;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.nav { display: flex; gap: 0.55rem; }

.nav a {
  display: grid;
  place-items: center;
  min-width: 76px;
  height: 42px;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.nav a:hover { background: var(--accent); }

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(330px, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.5rem);
  padding: clamp(1rem, 4vw, 4.5rem);
}

.copy {
  max-width: 650px;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.55rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--line);
}

h1 {
  display: flex;
  gap: clamp(0.25rem, 1.2vw, 0.8rem);
  margin: 0;
  color: var(--ink);
  font-size: clamp(5.2rem, 16vw, 14rem);
  font-weight: 1000;
  line-height: 0.78;
  letter-spacing: 0;
}

h1 span {
  display: inline-block;
  min-width: 0.68em;
  text-align: center;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 10px 10px 0 var(--accent), 16px 16px 0 var(--line);
  transform-origin: bottom center;
  animation: letter-move 1.55s cubic-bezier(0.18, 0.92, 0.22, 1) infinite;
}

h1 span:nth-child(2) { animation-delay: 0.15s; }
h1 span:nth-child(3) { animation-delay: 0.3s; }
h1 span:nth-child(4) { animation-delay: 0.45s; }

.bio {
  max-width: 590px;
  margin: 1.6rem 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 2vw, 1.76rem);
  font-weight: 700;
  line-height: 1.28;
}

.copy p:last-child {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
}

.poster {
  position: relative;
  justify-self: center;
  width: min(42vw, 520px);
  min-width: 320px;
  aspect-ratio: 1;
  border: 3px solid var(--line);
  border-radius: 42px;
  background: #ffffff;
  box-shadow: 16px 16px 0 var(--accent), 28px 28px 0 var(--line);
  animation: poster-float 3.8s ease-in-out infinite;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  display: block;
}

.stamp {
  position: absolute;
  left: -1.1rem;
  top: 1.2rem;
  z-index: 2;
  padding: 0.72rem 1.05rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  font-size: clamp(1rem, 2vw, 1.7rem);
  font-weight: 1000;
  box-shadow: 5px 5px 0 var(--line);
  transform: rotate(-8deg);
}

.ribbon {
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: var(--accent);
  overflow: hidden;
}

.ribbon-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0.9rem 1rem;
  animation: ribbon-move 18s linear infinite;
}

.ribbon-track span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.15rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--line);
}

@keyframes letter-move {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  36% { transform: translateY(-0.16em) rotate(-3deg); }
  62% { transform: translateY(0.05em) rotate(2deg); }
}

@keyframes poster-float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}

@keyframes ribbon-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 820px) {
  .topbar {
    align-items: stretch;
    border-radius: 26px;
    box-shadow: 4px 4px 0 var(--line);
  }

  .nav a { min-width: 62px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1rem 1rem 2rem;
  }

  h1 { font-size: clamp(4.1rem, 23vw, 7.3rem); }

  h1 span {
    border-radius: 20px;
    box-shadow: 6px 6px 0 var(--accent), 10px 10px 0 var(--line);
  }

  .poster {
    width: min(82vw, 420px);
    min-width: 0;
    border-radius: 30px;
    box-shadow: 8px 8px 0 var(--accent), 15px 15px 0 var(--line);
  }

  .poster img { border-radius: 26px; }
}
