﻿:root {
  color-scheme: light;
  --paper: #faf8ef;
  --ink: #201c34;
  --purple: #5942bb;
  --lilac: #c9bbf8;
  --lemon: #f7ee79;
  --line: #cfcbda;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--purple); outline-offset: 5px; border-radius: 3px; }

.page {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header {
  min-height: 5.3rem;
  border-bottom: 1px solid var(--line);
}

.brand, .profiles a, .handle {
  font-weight: 700;
  text-decoration: none;
}

.brand { font-size: 1.08rem; letter-spacing: -.04em; white-space: nowrap; }
.brand > span:first-child { color: var(--purple); margin-right: .2em; font-size: 1.28em; }
.domain { color: var(--purple); }

.profiles { display: flex; gap: clamp(.85rem, 3vw, 2rem); }
.profiles a { display: inline-flex; min-height: 44px; min-width: 24px; align-items: center; font-size: .94rem; }
.profiles a:hover, .handle:hover { color: var(--purple); text-decoration: underline; text-underline-offset: .25em; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.8rem, 7vw, 6rem);
}

.intro h1 {
  margin: 0;
  font-size: clamp(4rem, 9.5vw, 8.2rem);
  font-weight: 800;
  line-height: .87;
  letter-spacing: -.085em;
}

.intro em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--purple);
  letter-spacing: -.09em;
}

.intro p {
  max-width: 27ch;
  margin: 1.8rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.print {
  isolation: isolate;
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--lilac);
  border: 1px solid var(--ink);
  border-radius: 1.4rem;
  box-shadow: 5px 6px 0 var(--ink);
}

.print-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, #28145f22 1px, transparent 1px),
    linear-gradient(#28145f22 1px, transparent 1px);
  background-size: 6% 7%;
  mask-image: radial-gradient(ellipse, #000, transparent 78%);
}

.loop {
  position: absolute;
  width: 84%;
  height: 45%;
  border: 1px solid var(--purple);
  border-radius: 50%;
}

.loop-one { transform: rotate(-32deg); }
.loop-two { transform: rotate(28deg); }
.loop-three { transform: rotate(78deg); }

.sticker {
  z-index: 1;
  width: 48%;
  aspect-ratio: 1.15;
  display: grid;
  place-items: center;
  background: var(--lemon);
  border: 1px solid var(--ink);
  border-radius: 34% 32% 33% 29% / 43% 40% 40% 42%;
  box-shadow: 4px 5px 0 var(--ink);
  transform: rotate(-12deg);
  transition: transform .25s ease;
  container-type: inline-size;
}

.sticker > span {
  font-family: Georgia, serif;
  font-size: 33cqw;
  font-weight: 700;
  font-style: italic;
  line-height: .86;
  padding-bottom: .12em;
  letter-spacing: -.08em;
}

.question { color: var(--purple); }
@media (hover: hover) { .print:hover .sticker { transform: rotate(-5deg) scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .sticker { transition: none; } }

.spark { position: absolute; z-index: 1; color: var(--ink); line-height: 1; }
.spark-one { top: 17%; left: 19%; font-size: clamp(1rem, 4vw, 3rem); }
.spark-two { bottom: 18%; right: 16%; font-size: clamp(1.35rem, 5vw, 4rem); }
.spark-three { top: 21%; right: 14%; font-size: clamp(1rem, 3vw, 2rem); }

.note {
  display: grid;
  grid-template-columns: minmax(12rem, .6fr) 1fr;
  gap: 1.5rem 3rem;
  padding: clamp(1.9rem, 4.5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: #f2edf9;
}

.note h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
}

.note-body { max-width: 53ch; font-size: clamp(1rem, 1.5vw, 1.13rem); line-height: 1.65; }
.note-body p { margin: 0; }
.note-body p + p { margin-top: 1em; }

.footer {
  min-height: 5.2rem;
  color: #5c536b;
  font-size: .88rem;
}

@media (max-width: 690px) {
  .page { width: calc(100% - 2rem); }
  .header { min-height: 4.1rem; }
  .hero { grid-template-columns: 1fr; gap: 2.4rem; }
  .intro h1 { font-size: clamp(4rem, 14vw, 6rem); }
  .intro p { margin-top: 1.2rem; }
  .note { grid-template-columns: 1fr; }
}
