@font-face {
  font-family: Joy;
  src: local("Arial Rounded MT Bold");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
:root {
  --ink: #281e3b;
  --muted: #6c6175;
  --paper: #fff8ee;
  --coral: #ff684a;
  --lilac: #d9c6fc;
  --yellow: #ffe575;
  --mint: #c6ead8;
  --line: #e4dacf;
  --shadow: 0 18px 50px #40232b12;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, sans-serif;
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #7856cf;
  outline-offset: 4px;
}
header {
  max-width: 1280px;
  margin: auto;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 23px;
  line-height: 0.85;
  letter-spacing: -1.3px;
}
.brand-face {
  font-size: 52px;
  line-height: 1;
  background: var(--coral);
  width: 54px;
  height: 54px;
  text-align: center;
  border-radius: 18px;
  transform: rotate(-9deg);
}
.brand-dot {
  color: #d84327;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}
.btn,
button.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-align: center;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.btn:hover,
button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #281e3b20;
}
.btn.coral {
  background: var(--coral);
  color: var(--ink);
}
.btn.white {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn.outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}
.text-btn {
  background: none;
  border: 0;
  padding: 10px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 24px 40px 80px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  min-height: 620px;
  padding-top: 20px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--coral);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(45px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -3.5px;
  font-weight: 900;
  margin: 23px 0;
}
h1 em {
  font-style: normal;
  color: #e24b31;
  position: relative;
}
h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: -1.8px;
  line-height: 1.12;
  margin-bottom: 20px;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 480px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}
.micro {
  font-size: 12px;
  color: var(--muted);
}
.hero-art {
  height: 540px;
  position: relative;
  isolation: isolate;
}
.hero-art:before {
  content: "";
  position: absolute;
  inset: 40px 0 30px;
  border-radius: 48% 52% 43% 57%;
  background: var(--lilac);
  transform: rotate(-8deg);
  z-index: -1;
}
.sun {
  position: absolute;
  right: 0;
  top: 8px;
  font-size: 94px;
  line-height: 1;
  color: #eb5536;
  transform: rotate(12deg);
}
.paper {
  background: #fff;
  border: 1px solid #281e3b13;
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute;
  width: 75%;
  left: 10%;
  top: 125px;
  transform: rotate(-7deg);
  min-height: 270px;
  z-index: 2;
}
.hero-note blockquote {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 26px 0 22px;
  letter-spacing: -0.7px;
}
.tape {
  position: absolute;
  width: 110px;
  height: 26px;
  background: #ffe575d9;
  top: -13px;
  left: calc(50% - 55px);
  transform: rotate(3deg);
}
.pill {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--lilac);
}
.note-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.sticker {
  position: absolute;
  background: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  padding: 25px 16px;
  text-align: center;
  border-radius: 50%;
  width: 108px;
  height: 108px;
  right: -14px;
  bottom: -28px;
  transform: rotate(15deg);
  display: grid;
  place-items: center;
}
.bubble {
  position: absolute;
  border-radius: 20px;
  padding: 14px 20px;
  font-size: 14px;
  box-shadow: var(--shadow);
  font-weight: 700;
}
.bubble.first {
  top: 44px;
  left: 0;
  background: var(--mint);
  transform: rotate(-8deg);
}
.bubble.last {
  bottom: 48px;
  right: 8px;
  background: var(--coral);
  transform: rotate(6deg);
  z-index: 3;
}
.spark {
  position: absolute;
  left: 2px;
  bottom: 28px;
  font-size: 65px;
  color: #8361c3;
}
.ribbon {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.section {
  padding: 88px 0 0;
}
.section-title {
  max-width: 650px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.step {
  border-radius: 28px;
  padding: 30px;
  background: #f0e5ff;
  min-height: 270px;
}
.step:nth-child(2) {
  background: #ffe8a1;
  transform: rotate(1deg);
}
.step:nth-child(3) {
  background: #d5eddf;
}
.step-number {
  font-size: 12px;
  margin-bottom: 42px;
  display: flex;
  justify-content: space-between;
}
.step-number span {
  font-size: 34px;
  line-height: 1;
}
.step p {
  color: #52475e;
  font-size: 15px;
  margin-bottom: 0;
}
.big-quote {
  background: var(--coral);
  border-radius: 34px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 70px;
}
.big-quote h2 {
  font-size: 44px;
}
.big-quote .paper {
  transform: rotate(4deg);
  font-size: 22px;
  font-weight: 700;
}
.faq {
  max-width: 760px;
  margin: 60px auto 0;
}
details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  font-weight: 700;
  cursor: pointer;
}
details p {
  padding: 15px 0 0;
  color: var(--muted);
  margin: 0;
}
.center {
  text-align: center;
}
.center .eyebrow,
.center .actions {
  justify-content: center;
}
.center .lead {
  margin-inline: auto;
}
.narrow {
  max-width: 680px;
  margin: 24px auto 70px;
  padding: 0 24px;
}
.narrow h1 {
  font-size: 46px;
  letter-spacing: -2px;
}
.back {
  display: inline-block;
  font-size: 13px;
  margin: 15px 0 25px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 20px 0 8px;
}
label:first-child {
  margin-top: 0;
}
input,
textarea,
select {
  width: 100%;
  background: #fffdf9;
  border: 1px solid #cfc4bd;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
}
textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6438a1;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
}
.check input {
  flex-shrink: 0;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
}
.error {
  background: #ffe4dc;
  border-radius: 12px;
  padding: 14px;
  color: #9a2c17;
}
.info {
  background: #f0e8ff;
  border-radius: 16px;
  padding: 18px;
  font-size: 14px;
  margin: 22px 0;
}
.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.dashboard-head h1 {
  font-size: 48px;
  letter-spacing: -2px;
}
.badge {
  display: inline-flex;
  border-radius: 40px;
  background: var(--mint);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}
.invite-panel {
  background: var(--lilac);
  border-radius: 24px;
  padding: 26px;
}
.invite-panel .btn {
  width: 100%;
  margin-bottom: 10px;
}
.stack {
  display: grid;
  gap: 16px;
}
.story-row {
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 20px;
}
.row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.row-head small {
  display: block;
  color: var(--muted);
}
.row-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 15px;
}
.row-tools button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
}
.story-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.hidden-story {
  opacity: 0.6;
}
.empty {
  text-align: center;
  padding: 45px 24px;
  background: #fff;
  border: 2px dashed #d9c6fc;
  border-radius: 24px;
}
.empty .illustration {
  font-size: 70px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 12px 8px;
  font-size: 13px;
}
.tabs button.active {
  background: var(--lilac);
  border-color: #9b76d2;
}
.prompt {
  padding: 20px;
  border-radius: 18px;
  background: var(--yellow);
  margin: 20px 0;
}
.prompt p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.photo {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 16px;
  margin: 18px 0;
  background: #f4eee5;
}
.photo-preview {
  max-height: 180px;
}
.saved {
  font-size: 12px;
  color: #406d57;
}
.cover {
  max-width: 680px;
  text-align: center;
  margin: 30px auto 80px;
  padding: 20px;
}
.cover h1 {
  font-size: 62px;
  letter-spacing: -3px;
}
.gift-envelope {
  width: 240px;
  height: 170px;
  margin: 55px auto 35px;
  position: relative;
  background: #fd9078;
  border-radius: 12px;
  box-shadow: 0 24px 50px #dc563730;
  transform: rotate(-6deg);
}
.gift-envelope:before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 65%);
  background: #ffbba0;
  border-radius: 12px;
}
.gift-envelope:after {
  content: "♥";
  position: absolute;
  top: 64px;
  left: 94px;
  font-size: 42px;
  color: var(--ink);
  background: var(--yellow);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  transform: rotate(8deg);
}
.reader-wrap {
  max-width: 740px;
  margin: 20px auto 60px;
  padding: 0 24px;
}
.reader-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  align-items: center;
  margin: 15px 0;
}
.progress {
  display: flex;
  gap: 5px;
  margin: 20px 0;
}
.progress span {
  height: 5px;
  background: #e7dfd6;
  flex: 1;
  border-radius: 4px;
}
.progress span.done {
  background: var(--coral);
}
.reading-card {
  padding: 40px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow);
  animation: arrive 0.4s ease;
}
.reading-card:before {
  content: "✳";
  position: absolute;
  right: 25px;
  top: 14px;
  color: #d7c1fa;
  font-size: 45px;
}
.reading-card .quote {
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.6px;
  margin: 30px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.choices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choices button {
  flex: 1;
  min-width: 110px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  padding: 15px;
  font-weight: 700;
}
.choices button:hover {
  background: var(--yellow);
}
.reveal {
  background: var(--mint);
  padding: 23px;
  border-radius: 20px;
  margin-top: 22px;
  animation: arrive 0.5s ease;
}
.reveal .author {
  font-size: 24px;
  font-weight: 800;
  margin: 8px 0;
}
.reveal p:last-child {
  margin-bottom: 0;
}
.confetti {
  height: 48px;
  font-size: 34px;
  letter-spacing: 18px;
  color: #a479d9;
  overflow: hidden;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.album-card {
  padding: 25px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
}
.album-card:nth-child(3n + 2) {
  background: #f0e6ff;
}
.album-card:nth-child(3n) {
  background: #fff0b7;
}
.album-card .story-text {
  font-size: 18px;
}
.final-heart {
  font-size: 90px;
  line-height: 1.5;
  color: var(--coral);
}
.recent {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 12px 0;
}
.recent strong {
  display: block;
  font-size: 19px;
}
.recent small {
  color: var(--muted);
}
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.wordmark {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}
footer span {
  margin-left: auto;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  z-index: 30;
  max-width: 90%;
  width: max-content;
  box-shadow: var(--shadow);
  display: none;
}
#toast.visible {
  display: block;
}
dialog {
  border: 0;
  border-radius: 26px;
  padding: 30px;
  width: calc(100% - 32px);
  max-width: 500px;
  box-shadow: var(--shadow);
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop {
  background: #20152d88;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 30px;
}
dialog input {
  font-size: 13px;
}
.loading {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.prose {
  font-size: 16px;
}
.prose h2 {
  font-size: 28px;
  margin-top: 32px;
}
.all-width {
  width: 100%;
}
.offline {
  background: var(--yellow);
  padding: 12px;
  text-align: center;
  font-size: 13px;
}
.is-preview {
  background: var(--yellow);
  padding: 8px;
  text-align: center;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 850px) {
  header {
    padding: 18px 22px;
  }
  .wrap {
    padding: 20px 22px 60px;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 25px;
    gap: 5px;
  }
  .hero h1 {
    max-width: 600px;
  }
  .hero-art {
    height: 440px;
    width: 100%;
    max-width: 490px;
    margin: auto;
  }
  .hero-note {
    top: 100px;
  }
  .bubble.first {
    top: 20px;
  }
  .bubble.last {
    bottom: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    min-height: auto;
  }
  .step-number {
    margin-bottom: 24px;
  }
  .big-quote {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .invite-panel {
    order: -1;
  }
  .dashboard-head {
    flex-direction: column;
  }
  .section {
    padding-top: 60px;
  }
  .album-grid {
    grid-template-columns: 1fr;
  }
  .cover h1 {
    font-size: 48px;
  }
  footer span {
    margin-left: 0;
  }
  .ribbon {
    font-size: 12px;
    gap: 12px;
  }
  .hero .actions .btn {
    flex: 1;
    white-space: nowrap;
    padding-inline: 18px;
  }
  .reading-card {
    padding: 27px;
  }
  .reader-wrap {
    padding: 0 18px;
  }
}
@media (max-width: 420px) {
  nav {
    gap: 12px;
    font-size: 12px;
  }
  nav .btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-face {
    width: 43px;
    height: 43px;
    font-size: 43px;
  }
  h1 {
    font-size: 48px;
    letter-spacing: -2.5px;
  }
  .hero-note blockquote {
    font-size: 22px;
  }
  .hero-art {
    height: 420px;
  }
  .hero-note {
    width: 80%;
    left: 6%;
    padding: 22px;
  }
  .bubble.last {
    font-size: 12px;
  }
  .panel {
    padding: 22px;
  }
  .narrow h1 {
    font-size: 39px;
  }
  .tabs button {
    font-size: 12px;
  }
  .cover {
    padding: 18px;
  }
  .dashboard-head h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  header,
  footer,
  button,
  .actions,
  .back,
  .no-print {
    display: none !important;
  }
  body {
    background: white;
  }
  .album-grid {
    display: block;
  }
  .album-card {
    break-inside: avoid;
    margin: 20px 0;
  }
  .wrap {
    padding: 0;
  }
}

main:focus {
  outline: none;
}
nav > a {
  white-space: nowrap;
}
.brand > span:last-child {
  white-space: nowrap;
}
@media (max-width: 480px) {
  header {
    padding: 18px;
    gap: 8px;
  }
  .brand {
    font-size: 18px;
    gap: 7px;
  }
  .brand-face {
    font-size: 38px;
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
  header nav {
    gap: 10px;
    font-size: 11px;
  }
  header nav .btn.small {
    font-size: 11px;
    padding: 10px 12px;
    gap: 0;
  }
  header nav .btn.small span {
    display: none;
  }
}
