:root {
  --cream: #F3EDE3;
  --honey: #FAE4AA;
  --paper: #FFFDF6;
  --ink: #17171A;
  --grey: #5E5E66;
  --pink: #FF5FC8;
  --violet: #7B5CFA;
  --line: #E4DCC2;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
a { color: var(--ink); }
a:hover { color: var(--grey); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 2px solid var(--ink); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Instrument Serif", Georgia, serif; font-size: 30px; }
.brand svg { width: 40px; height: 40px; }
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(52px, 8vw, 96px); line-height: 0.98; margin: 14px 0 22px; }
.hero p.lead { font-size: 20px; color: var(--ink); max-width: 30ch; margin: 0 0 28px; }
.hero .art { position: relative; display: flex; justify-content: center; }
.hero .art img { width: min(300px, 80%); border-radius: 36px; border: 3px solid #E4E4E8; box-shadow: 0 24px 60px rgba(0,0,0,0.14); display: block; }
.hero .art .blob { position: absolute; top: -46px; right: 8%; width: 120px; height: 120px; }

/* Forms */
form { margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; }
input[type=email], input[type=text], textarea {
  font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid var(--violet); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row input[type=email] { flex: 1 1 240px; }
button {
  font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--violet);
  border: 0; border-radius: 999px; padding: 14px 28px; min-height: 52px; cursor: pointer;
}
button:hover { background: #6646E8; }
.small { font-size: 14px; color: var(--grey); margin-top: 10px; }
.hidden { position: absolute; left: -9999px; }

/* Sections */
section.block { padding: 56px 0; border-top: 1.5px solid var(--line); }
section.block h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(40px, 5.5vw, 60px); line-height: 1.02; margin: 10px 0 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature img { width: 100%; max-width: 260px; border-radius: 28px; border: 3px solid #E4E4E8; display: block; margin-bottom: 18px; background: #fff; }
.feature h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--grey); }

.note {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 34px 36px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.12); transform: rotate(-1.2deg); max-width: 760px;
}
.note p { font-family: "Instrument Serif", Georgia, serif; font-size: 30px; line-height: 1.25; margin: 0 0 14px; }
.note .sig { font-family: "Reenie Beanie", cursive; font-size: 34px; color: #7D7680; margin: 0; }

.join { background: var(--honey); border-radius: 28px; padding: 40px; }
.join h2 { margin-top: 0 !important; }

/* Text pages */
.page { padding: 48px 0 64px; max-width: 720px; }
.page h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(48px, 7vw, 72px); line-height: 1; margin: 10px 0 24px; }
.page h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 32px; margin: 36px 0 10px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }

footer { border-top: 2px solid var(--ink); padding: 26px 0 40px; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 56px; }
  .features { grid-template-columns: 1fr; gap: 40px; }
  .feature img { max-width: 240px; }
  .top nav { gap: 14px; }
  .join { padding: 28px 22px; }
  .note { padding: 26px 24px; }
  .note p { font-size: 25px; }
}

/* One-screen home */
body.solo { min-height: 100vh; min-height: 100svh; display: flex; }
.screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; min-height: 100vh; min-height: 100svh; }
.screen .mark svg { width: 96px; height: 96px; display: block; }
.screen .label { margin: 18px 0 0; }
.screen h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(48px, 9vw, 92px); line-height: 1; margin: 14px 0 16px; }
.screen .lead { font-size: 19px; max-width: 30ch; margin: 0 auto 24px; color: var(--ink); }
.screen form { width: 100%; max-width: 460px; }
.screen .row { justify-content: center; }
.screen .links { display: flex; gap: 22px; justify-content: center; margin-top: 22px; font-size: 15px; }
.screen .links a { color: var(--grey); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }




/* Taped note home */
body.taped { min-height: 100vh; min-height: 100svh; display: flex; }
.tp { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: clamp(22px, 4.5svh, 44px); padding: 40px 32px; min-height: 100vh; min-height: 100svh; }
.brand-big { margin: 0; font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; font-weight: 700; font-size: clamp(48px, 7.5svh, 72px); line-height: 1; letter-spacing: -0.03em; }
.brand-big svg { width: clamp(56px, 8.5svh, 84px); height: clamp(56px, 8.5svh, 84px); }
.scrapwrap { position: relative; width: min(420px, 100%); margin-top: 8px; }
.peekblob { position: absolute; z-index: 0; right: 14%; top: -22px; width: 92px; height: 92px; transform: rotate(8deg); }
.peekblob svg { width: 100%; height: 100%; display: block; }
.scrap { position: relative; z-index: 1; width: 100%; background: #fff; padding: 30px 28px 26px; text-align: left; box-shadow: 0 14px 30px rgba(0,0,0,0.12); transform: rotate(1.5deg); transition: transform .26s ease, opacity .26s ease; }
.scrap::before { content: ""; position: absolute; top: -14px; left: 38%; width: 120px; height: 30px; transform: translateX(-50%) rotate(-3deg); background: rgba(255,95,200,0.35); }
.scrap.out { opacity: 0; transform: rotate(-6deg) translateY(-18px) scale(.96); }
.scrap.in { animation: settle .36s ease; }
@keyframes settle { from { opacity: 0; transform: rotate(7deg) translateY(16px) scale(.96); } to { opacity: 1; transform: rotate(1.5deg); } }
.note-top { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.note-top .stamp { width: 26px; height: 26px; flex: none; }
.scrap-title { font-family: "Instrument Serif", Georgia, serif; font-size: clamp(30px, 4.6svh, 40px); line-height: 1.08; margin: 12px 0 0; min-height: 2.16em; }
.shuffle { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); background: #fff; border: 2px solid var(--ink); }
.shuffle:hover { background: #FFF1C7; }
.tp form { width: min(440px, 100%); }
.tp .row { justify-content: center; }
.tp input[type=email] { border-radius: 999px; }
.tlinks { display: flex; gap: 22px; font-size: 14px; }
.tlinks a { color: var(--grey); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .scrap { transition: none; } .scrap.in { animation: none; } }
@media (max-width: 520px) { .tp { padding: 32px 36px; } .scrap { padding: 26px 22px 22px; } }
@media (max-height: 680px) { .tp { gap: 18px; padding-top: 20px; padding-bottom: 20px; } }

/* Name in Fredoka; the blob peeks over the note */
.brand-big { font-family: "Fredoka", "DM Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: clamp(48px, 7.5svh, 72px); }
.scrapwrap { position: relative; width: min(420px, 100%); margin-top: clamp(20px, 3.5svh, 34px); }
.scrapwrap .scrap { position: relative; z-index: 1; width: 100%; }
.peekblob { position: absolute; z-index: 0; right: 14%; top: -22px; width: 92px; height: 92px; transform: rotate(8deg); }
.peekblob svg { width: 100%; height: 100%; }
.tp .scrap::before { left: 38%; }
