:root {
  --canvas: #f3f4f6;
  --paper: #ffffff;
  --paper-shadow: rgba(17, 24, 39, 0.16);
  --ink: #111827;
  --muted: rgba(17, 24, 39, 0.68);
  --line: rgba(17, 24, 39, 0.12);
  --tape: rgba(17, 24, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 36%),
    linear-gradient(180deg, #fafafa 0%, var(--canvas) 100%);
  color: var(--ink);
  font-family:
    "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.note {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 660px);
  min-height: 980px;
  padding: 82px 34px 42px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  border: 1.5px solid rgba(17, 24, 39, 0.1);
  box-shadow:
    0 38px 70px -30px var(--paper-shadow),
    0 16px 24px -16px rgba(17, 24, 39, 0.2);
  transform: rotate(-1deg);
  animation: settle 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 82px;
  height: 82px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.08) 0%, rgba(17, 24, 39, 0.02) 50%, transparent 50%);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.note::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(17, 24, 39, 0.04);
  pointer-events: none;
}

.note-tape {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 168px;
  height: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(17, 24, 39, 0.04)),
    var(--tape);
  border: 1px solid rgba(17, 24, 39, 0.06);
  transform: translateX(-50%) rotate(3deg);
  backdrop-filter: blur(2px);
}

.eyebrow,
.label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  color: rgba(17, 24, 39, 0.54);
}

h1 {
  margin: 18px 0 14px;
  max-width: 10ch;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.lede,
.pillars p:last-child,
.note-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.lede {
  max-width: 48ch;
  font-size: 1.05rem;
}

.rule {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}

.pillars article {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 500ms ease forwards;
}

.pillars article:nth-child(1) {
  animation-delay: 150ms;
}

.pillars article:nth-child(2) {
  animation-delay: 220ms;
}

.pillars article:nth-child(3) {
  animation-delay: 290ms;
}

.pillars article:nth-child(4) {
  animation-delay: 360ms;
}

.label {
  margin-bottom: 8px;
  color: var(--ink);
}

.note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -14px rgba(17, 24, 39, 0.55);
  background: #000000;
}

.cta:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 3px;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(-2.4deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .note {
    width: min(100%, 560px);
    min-height: 860px;
    padding: 68px 24px 30px;
    transform: rotate(-0.35deg);
  }

  .pillars,
  .note-footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .note-footer {
    gap: 12px;
  }

  .cta {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .note,
  .pillars article,
  .note-footer {
    opacity: 1;
    transform: none;
  }
}
