/* =========================================================
   OUR LITTLE CORNER — NEOCITIES STYLE
   scrapbook / whimsical / old personal website
   ========================================================= */

:root {
  --paper: #f7f7f0;
  --paper-light: #fffdf5;
  --sage-paper: #eef0e8;
  --sage: #59665c;
  --sage-soft: #89968a;
  --sage-line: #c7cec4;
  --pink-old: #a27f8c;
  --ink: #59615b;
  --muted: #858d86;
  --shadow: rgba(67, 75, 67, .15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  line-height: 1.45;
  background-color: #e5e7df;
  background-image:
    radial-gradient(rgba(76, 85, 77, .18) .7px, transparent .7px);
  background-size: 8px 8px;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

.site-shell {
  width: min(1080px, 94%);
  margin: 34px auto;
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  align-items: start;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
  position: sticky;
  top: 25px;
  z-index: 5;
}

.side-paper {
  min-height: 740px;
  padding: 28px 21px;
  border: 1px solid var(--sage-line);
  border-right: 0;
  background-color: var(--sage-paper);
  background-image:
    radial-gradient(var(--sage-soft) 1px, transparent 1px);
  background-size: 8px 8px;
}

.site-title {
  font-family: "Berkshire Swash", cursive;
  font-size: 43px;
  line-height: .93;
  color: var(--sage);
  transform: rotate(-2deg);
  margin-bottom: 18px;
}

.side-subtitle {
  margin: 0 0 36px;
  font-family: "Patrick Hand", cursive;
  color: #7b857c;
  font-size: 18px;
}

.nav {
  display: flex;
  flex-direction: column;
}

.nav a {
  padding: 8px 7px;
  border-bottom: 1px dashed #b7c0b6;
  color: var(--ink);
  text-decoration: none;
  transition: .2s ease;
}

.nav a:hover,
.nav a.active {
  padding-left: 16px;
  color: var(--pink-old);
}

.nav a.active::after {
  content: "  ♡";
  font-size: 13px;
}

.side-card {
  margin-top: 42px;
  padding: 12px;
  border: 1px solid #c7cec4;
  background: rgba(255, 255, 255, .38);
  font-size: 15px;
}

.side-card span,
.side-card small {
  display: block;
}

.side-card span {
  font-family: "Patrick Hand", cursive;
}

.side-card strong {
  display: block;
  margin: 4px 0;
  color: var(--sage);
}

.side-card small {
  color: #888f88;
  font-size: 12px;
}

.side-doodle {
  margin-top: 36px;
  text-align: center;
  color: #929d92;
  line-height: 1.7;
}

/* =========================
   MAIN CONTENT
   ========================= */

.content {
  min-width: 0;
  height: min(86vh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--sage-line);
  background: rgba(249, 249, 244, .84);
  box-shadow: 0 8px 24px rgba(55, 63, 55, .06);
  scrollbar-width: thin;
  scrollbar-color: #aeb8ae #e8ebe4;
}

.content::-webkit-scrollbar {
  width: 12px;
}

.content::-webkit-scrollbar-track {
  background: #e8ebe4;
}

.content::-webkit-scrollbar-thumb {
  background: #aeb8ae;
  border: 3px solid #e8ebe4;
  border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: #8f9b91;
}

.section {
  display: none;
}

.section.active {
  display: block;
}


.top-bar {
  padding: 10px 18px;
  border-bottom: 1px solid #d2d6cf;
  color: #737b74;
  font-size: 14px;
}

.top-bar span {
  float: right;
  opacity: .7;
}

.section {
  position: relative;
  padding: 58px 46px;
  border-bottom: 1px solid #d2d6cf;
  overflow: hidden;
}

.section::after {
  content: "✧";
  position: absolute;
  right: 25px;
  bottom: 18px;
  color: #a6afa5;
  opacity: .55;
}

.home {
  min-height: 610px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 45px;
  align-items: center;
}

.eyebrow,
.handwritten,
.scroll-note,
.section-description,
.click-note,
.open-hint {
  font-family: "Patrick Hand", cursive;
}

.eyebrow {
  color: var(--pink-old);
  font-size: 22px;
  margin: 0;
}

.hero-copy h1 {
  margin: 12px 0 25px;
  font-family: "Berkshire Swash", cursive;
  font-size: clamp(48px, 7vw, 70px);
  line-height: .94;
  font-weight: normal;
  color: var(--sage);
}

.hero-copy h1 em {
  color: var(--pink-old);
  font-style: normal;
}

.hero-copy > p {
  max-width: 510px;
}

.handwritten {
  color: #7d867d;
  font-size: 19px;
  transform: rotate(-1.5deg);
}

.scroll-note {
  display: inline-block;
  margin-top: 15px;
  color: var(--sage);
  text-decoration: none;
  border-bottom: 1px dashed #aeb7ad;
}

.scroll-note:hover {
  color: var(--pink-old);
}

.photo-frame {
  position: relative;
  display: inline-block;
  background: #fff;
  padding: 10px 10px 36px;
  box-shadow: 0 7px 17px var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.photo-frame p,
.photo-frame > span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  text-align: center;
  font-family: "Patrick Hand", cursive;
  color: #606960;
}

.hero-frame {
  transform: rotate(3deg);
}

.tape {
  position: absolute;
  width: 78px;
  height: 22px;
  z-index: 2;
  background: rgba(208, 214, 201, .72);
}

.tape-a {
  top: -9px;
  left: 18px;
  transform: rotate(-11deg);
}

.quote {
  max-width: 650px;
  margin: 65px auto 0;
  padding: 18px 28px;
  border-top: 1px dashed #b9c1b8;
  border-bottom: 1px dashed #b9c1b8;
  text-align: center;
  font-family: "Patrick Hand", cursive;
  font-size: 21px;
  color: #7a837b;
}

/* =========================
   HEADINGS
   ========================= */

.section-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 25px;
}

.section-title > span {
  color: #9ca59d;
  font-family: "Patrick Hand", cursive;
}

.section-title h2 {
  margin: 0;
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-weight: normal;
  font-size: 39px;
  line-height: 1;
}

.centered-title {
  justify-content: center;
}

.section-description {
  margin-top: -10px;
  color: #818a82;
  font-size: 20px;
}

/* =========================
   FIRST DAY
   ========================= */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

.large-frame {
  width: 88%;
}

.rotate-left {
  transform: rotate(-2.5deg);
}

.date-label {
  color: var(--pink-old);
  font-family: "Patrick Hand", cursive;
}

.story-text h3 {
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-size: 31px;
  font-weight: normal;
}

.signature,
.diary-signature {
  font-family: "Patrick Hand", cursive;
  text-align: right;
  color: #7f887f;
}

/* =========================
   TIMELINE
   ========================= */

.timeline {
  position: relative;
  max-width: 700px;
  margin: 35px auto 0;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  bottom: 7px;
  border-left: 1px dashed #adb7ad;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  color: var(--pink-old);
  background: var(--paper);
  width: 20px;
  text-align: center;
}

.timeline-item h3 {
  margin: 3px 0 2px;
  color: var(--sage);
  font-family: "Patrick Hand", cursive;
  font-size: 23px;
  font-weight: normal;
}

.timeline-item p {
  margin-top: 2px;
}

/* =========================
   MEMORIES
   ========================= */

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 24px;
  margin-top: 35px;
}

.memory-card {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.memory-card .polaroid {
  width: 100%;
  transition: .25s ease;
}

.memory-card:hover .polaroid {
  transform: rotate(0deg) translateY(-7px);
  box-shadow: 0 12px 22px var(--shadow);
}

.memory-card small {
  display: block;
  margin-top: 9px;
  color: #8d958e;
  font-family: "Patrick Hand", cursive;
}

.tilt-left {
  transform: rotate(-5deg);
}

.tilt-right {
  transform: rotate(4deg);
}

.memory-footer {
  margin: 45px 0 0;
  text-align: center;
  color: #8c958d;
  font-family: "Patrick Hand", cursive;
}

/* =========================
   LITTLE NOTES
   ========================= */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 38px;
}

.note {
  min-height: 145px;
  padding: 22px 20px;
  background: #fffdf5;
  border: 1px solid #deddd2;
  box-shadow: 4px 6px 12px rgba(70, 75, 69, .08);
}

.note span {
  color: var(--pink-old);
}

.note p {
  margin: 8px 0 0;
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  color: #687169;
}

.note-a { transform: rotate(-2deg); }
.note-b { transform: rotate(1.5deg); }
.note-c { transform: rotate(-1deg); }
.note-d { transform: rotate(2.5deg); }
.note-e { transform: rotate(-1.5deg); }
.note-f { transform: rotate(1deg); }

/* =====================================================
   ✉ MY WHIMSICAL SECRET LETTER
   ===================================================== */


/* =====================================================
   ✿ A LITTLE SECRET — whimsical folded note
   ===================================================== */

.secret-section {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 15% 18%, rgba(231,143,179,.11) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 76%, rgba(113,157,114,.10) 0 2px, transparent 3px),
    rgba(255,250,252,.72);
}

.secret-garden {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--sage);
  opacity: .72;
  font-family: Georgia, serif;
}

.secret-garden span {
  position: absolute;
  animation: secretFloat 5s ease-in-out infinite;
}
.secret-garden span:nth-child(1) { top: 12%; left: 12%; font-size: 20px; }
.secret-garden span:nth-child(2) { top: 17%; right: 13%; font-size: 22px; color: var(--pink-old); animation-delay: .8s; }
.secret-garden span:nth-child(3) { top: 39%; left: 8%; font-size: 17px; animation-delay: 1.5s; }
.secret-garden span:nth-child(4) { bottom: 23%; right: 10%; font-size: 27px; color: var(--pink-old); animation-delay: 2.2s; }
.secret-garden span:nth-child(5) { bottom: 13%; left: 15%; font-size: 19px; animation-delay: 2.8s; }
.secret-garden span:nth-child(6) { top: 51%; right: 7%; font-size: 15px; animation-delay: 3.4s; }

@keyframes secretFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.secret-heading {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin: 0 auto;
}

.secret-heading .tiny-label {
  display: inline-block;
  margin-bottom: 9px;
  color: #9a9f98;
  font: 13px/1.2 "Patrick Hand", cursive;
  letter-spacing: 1.5px;
  text-transform: lowercase;
}

.secret-heading h2 {
  margin: 0;
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-size: clamp(34px, 5vw, 53px);
  font-weight: 400;
}

.secret-heading p {
  margin: 10px auto 0;
  color: #7f877f;
  font-size: 17px;
}

.secret-envelope-wrap {
  position: relative;
  display: block;
  width: min(430px, 84vw);
  height: 330px;
  margin: 62px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
}

.secret-envelope-wrap:focus-visible {
  outline: 2px dashed var(--pink-old);
  outline-offset: 12px;
}

.secret-envelope {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: min(360px, 80vw);
  height: 235px;
  transform: translateX(-50%) rotate(-1deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 18px 18px rgba(95, 93, 83, .13));
  transition: transform .7s cubic-bezier(.2,.75,.25,1);
}

.secret-envelope-wrap:hover .secret-envelope {
  transform: translateX(-50%) translateY(-6px) rotate(1deg);
}

.envelope-back,
.envelope-pocket {
  position: absolute;
  inset: 0;
  border: 1px solid #d9c8b6;
  border-radius: 5px;
  background: #f8e8d7;
}

.envelope-back {
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.25);
}

.envelope-pocket {
  z-index: 4;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #f6e2cf, #f9eadb);
}

.envelope-letter {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 17px;
  width: 77%;
  height: 178px;
  padding: 23px 18px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background: #fffaf0;
  border: 1px solid #eadcc7;
  box-shadow: 0 5px 12px rgba(88,79,72,.09);
  transition: transform .85s cubic-bezier(.2,.8,.2,1), bottom .85s ease;
}

.letter-topline {
  display: block;
  color: #a2a29a;
  font: 12px "Patrick Hand", cursive;
  letter-spacing: 1px;
}

.letter-title {
  display: block;
  margin-top: 15px;
  color: #647b67;
  font: 27px/1.1 "Berkshire Swash", cursive;
}

.letter-hint {
  display: block;
  margin-top: 13px;
  color: #b18b9b;
  font: 14px "Patrick Hand", cursive;
}

.envelope-flap {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: calc(min(360px, 80vw) / 2) solid transparent;
  border-right: calc(min(360px, 80vw) / 2) solid transparent;
  border-top: 128px solid #f0d5bf;
  transform-origin: 50% 0;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 1px 1px rgba(100,75,65,.08));
}

.wax-seal {
  position: absolute;
  z-index: 8;
  top: 105px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  transform: translateX(-50%) rotate(-5deg);
  border-radius: 52% 48% 50% 50%;
  background: #d8849e;
  color: #fff7f8;
  font: 25px Georgia, serif;
  box-shadow: 0 3px 7px rgba(112,70,83,.18);
  transition: transform .55s ease, opacity .35s ease;
}

.wax-seal::after {
  content: "✦";
  position: absolute;
  right: -11px;
  top: -13px;
  color: #a9b79e;
  font-size: 14px;
}

.secret-envelope-wrap.opened .envelope-flap {
  transform: rotateX(180deg);
}

.secret-envelope-wrap.opened .wax-seal {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(.7);
}

.secret-envelope-wrap.opened .envelope-letter {
  bottom: 82px;
  transform: translateX(-50%) translateY(-85px);
}

.secret-envelope-wrap.opened .secret-envelope {
  transform: translateX(-50%) rotate(0deg);
}

.secret-note {
  position: relative;
  z-index: 10;
  width: min(610px, 88vw);
  margin: -5px auto 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(.97) rotate(.7deg);
  transition: opacity .6s ease .25s, transform .7s cubic-bezier(.2,.8,.2,1) .25s, visibility 0s linear .9s;
  pointer-events: none;
}

.secret-open .secret-note {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) rotate(-.4deg);
  transition-delay: .35s;
  pointer-events: auto;
}

.secret-paper {
  position: relative;
  padding: 50px 64px 55px;
  text-align: left;
  color: #66615d;
  background: #fffaf0;
  border: 1px solid #e7d8c6;
  box-shadow: 0 18px 35px rgba(93,82,73,.13);
  clip-path: polygon(1% 1%, 98% 0, 100% 97%, 2% 100%, 0 50%);
}

.secret-paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(176,143,151,.32);
  pointer-events: none;
}

.secret-paper p {
  position: relative;
  z-index: 2;
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.75;
}

.note-greeting {
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-size: 27px !important;
}

.note-final {
  margin-top: 28px !important;
  color: #8d7180;
  text-align: right;
}

.note-final em {
  color: var(--pink-old);
  font-family: "Berkshire Swash", cursive;
  font-size: 25px;
}

.paper-sprig,
.paper-star {
  position: absolute;
  z-index: 3;
  color: #91a58f;
  font-family: Georgia, serif;
  pointer-events: none;
}
.paper-sprig { font-size: 17px; opacity: .7; }
.sprig-left { top: 25px; left: 28px; transform: rotate(-12deg); }
.sprig-right { top: 25px; right: 28px; transform: rotate(12deg); }
.paper-star { color: #d28ca4; font-size: 17px; }
.star-one { bottom: 25px; left: 33px; }
.star-two { top: 52%; right: 30px; }

.secret-caption {
  position: relative;
  z-index: 3;
  margin: 36px 0 0;
  color: #a1a29d;
  font: 14px "Patrick Hand", cursive;
  letter-spacing: .8px;
}

@media (max-width: 650px) {
  .secret-section { min-height: 820px; }
  .secret-envelope-wrap { margin-top: 48px; height: 275px; }
  .secret-envelope { width: min(310px, 82vw); height: 205px; }
  .envelope-flap {
    border-left-width: min(155px, 41vw);
    border-right-width: min(155px, 41vw);
    border-top-width: 112px;
  }
  .envelope-letter { height: 155px; padding: 18px 13px; }
  .letter-title { font-size: 23px; }
  .wax-seal { top: 91px; width: 43px; height: 43px; }
  .secret-envelope-wrap.opened .envelope-letter { bottom: 70px; transform: translateX(-50%) translateY(-68px); }
  .secret-paper { padding: 42px 27px 42px; }
  .secret-paper p { font-size: 16px; line-height: 1.65; }
  .note-greeting { font-size: 24px !important; }
}

/* =========================
   SONGS
   ========================= */

.songs-list {
  margin-top: 32px;
}

.song {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 17px 8px;
  border-bottom: 1px dashed #c2c9c0;
}

.song-number {
  color: #9ba39b;
  font-family: "Patrick Hand", cursive;
}

.song h3 {
  margin: 0;
  color: var(--sage);
  font-family: "Patrick Hand", cursive;
  font-size: 23px;
  font-weight: normal;
}

.song p {
  margin: 0;
  color: #929a93;
  font-size: 14px;
}

.song a {
  color: var(--sage);
  text-decoration: none;
  font-family: "Patrick Hand", cursive;
}

.song a:hover {
  color: var(--pink-old);
}

.music-box {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 600px;
  margin: 35px auto 0;
  padding: 15px;
  border: 1px solid #c8cfc6;
  background: rgba(255,255,255,.35);
}

.music-box > span {
  font-size: 28px;
  color: var(--pink-old);
}

.music-box strong,
.music-box small {
  display: block;
}

.music-box strong {
  font-family: "Patrick Hand", cursive;
  font-size: 20px;
  font-weight: normal;
}

.music-box small {
  color: #858d86;
  font-size: 13px;
}

/* =========================
   FINAL QUESTION
   ========================= */

.question-section {
  min-height: 660px;
  text-align: center;
  background:
    radial-gradient(rgba(145,157,144,.18) 1px, transparent 1px);
  background-size: 9px 9px;
}

.stars {
  margin-bottom: 35px;
  color: #9aa69b;
  font-size: 21px;
}

.question-small {
  font-family: "Patrick Hand", cursive;
  font-size: 21px;
  color: #818a82;
}

.question-section h2 {
  margin: 25px 0;
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-size: clamp(48px, 8vw, 68px);
  line-height: .94;
  font-weight: normal;
}

.question-section h2 em {
  color: var(--pink-old);
  font-style: normal;
}

.question-text {
  max-width: 530px;
  margin: 0 auto;
}

.answers {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 38px;
}

.answers button {
  padding: 10px 25px;
  border: 1px solid #bdc6bc;
  background: #f7f5ed;
  color: var(--sage);
  cursor: pointer;
  box-shadow: 3px 3px 0 #d4d8d0;
  font-family: "Patrick Hand", cursive;
  font-size: 21px;
  transition: .2s ease;
}

.answers button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #d4d8d0;
}

.answer-message {
  margin-top: 35px;
  color: #8f7180;
  font-family: "Patrick Hand", cursive;
  font-size: 24px;
}

.answer-message small {
  color: #747e76;
  font-size: 18px;
}

.sparkle-answer {
  font-size: 28px;
}

.final-decoration {
  margin-top: 70px;
  color: #9ba69c;
}

/* =========================
   DIARY MODAL
   ========================= */

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: rgba(60, 68, 61, .38);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.diary-window {
  position: relative;
  width: min(570px, 100%);
  max-height: 82vh;
  overflow-y: auto;
  padding: 42px;
  background:
    repeating-linear-gradient(
      to bottom,
      #fffdf5 0,
      #fffdf5 28px,
      #e0e4d9 29px
    );
  border: 1px solid #c6ccc2;
  box-shadow: 9px 10px 0 rgba(84, 93, 84, .13);
  transform: rotate(-1deg);
}

.diary-window h2 {
  margin: 10px 0 20px;
  color: var(--sage);
  font-family: "Berkshire Swash", cursive;
  font-size: 38px;
  font-weight: normal;
}

.diary-rule {
  border-top: 1px dashed #aeb7ad;
  margin-bottom: 25px;
}

.diary-window #diaryText {
  white-space: pre-line;
}

.close-button {
  position: absolute;
  top: 7px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #747d75;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   FOOTER
   ========================= */

footer {
  padding: 30px;
  text-align: center;
  color: #828b83;
  font-family: "Patrick Hand", cursive;
}

footer span {
  font-size: 14px;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 850px) {
  .site-shell {
    display: block;
  }

  .content {
    height: 76vh;
    min-height: 560px;
  }

  .sidebar {
    position: relative;
    top: auto;
  }

  .side-paper {
    min-height: auto;
    border-right: 1px solid var(--sage-line);
    border-bottom: 0;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero-frame,
  .large-frame {
    width: min(330px, 90%);
    margin: 10px auto;
  }

  .memory-grid,
  .notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-bar span {
    display: none;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .site-shell {
    width: 96%;
    margin: 12px auto;
  }

  .section {
    padding: 40px 22px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  .memory-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 49px;
  }

  .answers {
    flex-direction: column;
    align-items: center;
  }

  .answers button {
    width: 190px;
  }

  .song {
    grid-template-columns: 35px 1fr;
  }

  .song a {
    grid-column: 2;
  }

  .envelope-wrap {
    width: min(280px, 88vw);
    height: 220px;
    margin-top: 65px;
  }

  .letter-section {
    min-height: 760px;
  }

  .letter-sheet {
    height: 430px;
  }

  .letter-inner {
    padding: 15px;
    font-size: 16px;
    line-height: 1.55;
  }

  .envelope-wrap.opened .letter-sheet {
    height: 470px;
    transform: translateY(-155px);
  }

  .flap {
    border-left-width: 140px;
    border-right-width: 140px;
  }

  .diary-window {
    padding: 34px 25px;
  }

}

/* ✦☾☼ Efecto mágico del cursor ✦☾☼ */

.cursor-magic {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  left: 0;
  top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  color: #ffffff;
  text-shadow:
    0 0 3px #ffffff,
    0 0 7px #e78fb3,
    0 0 12px rgba(231, 143, 179, 0.8);
  animation: magic-float 1s ease-out forwards;
  transform: translate(-50%, -50%);
}

@keyframes magic-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--move-x)),
      calc(-50% + var(--move-y))
    ) scale(0.7) rotate(25deg);
  }
}