:root {
  color-scheme: dark;
  --night: #171a31;
  --night-mid: #22243e;
  --night-light: #2e2b45;
  --cream: #fff8ee;
  --paper: #fff9f0;
  --ink: #393343;
  --ink-soft: #635b6a;
  --rose: #d69aa6;
  --rose-light: #f0c9c7;
  --gold: #e4c68f;
  --muted: #d8d0dd;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 8%, rgba(99, 81, 111, .36), transparent 42rem),
    linear-gradient(165deg, #191c35 0%, #202139 51%, #29253b 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a,
summary {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.night-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-star {
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: .62;
}

.star-one { top: 12%; left: 8%; }
.star-two { top: 22%; right: 10%; width: 12px; opacity: .48; }
.star-three { top: 53%; left: 5%; width: 7px; }
.star-four { top: 72%; right: 7%; width: 8px; background: var(--rose-light); }

.sky-flower {
  position: absolute;
  width: 82px;
  fill: none;
  stroke: rgba(224, 174, 183, .52);
  stroke-width: 2;
}

.flower-one { top: 37%; right: 2%; transform: rotate(10deg); }

.story-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 36px, 920px);
  margin: 0 auto;
}

.cover {
  position: relative;
  display: grid;
  min-height: min(820px, 96vh);
  min-height: min(820px, 96svh);
  place-items: center;
  padding: 66px 12px 80px;
  text-align: center;
}

.cover-copy {
  width: min(100%, 690px);
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.55;
}

.eyebrow-rule {
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 9px 4px 0;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

.cover h1 {
  max-width: 14ch;
  margin: 20px auto 15px;
  color: var(--cream);
  font-size: clamp(2.5rem, 10vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

.cover h1 em {
  color: var(--rose-light);
  font-weight: 500;
}

.cover-intro {
  margin: 0 auto;
  color: #d6cfdb;
  font-size: 1rem;
}

.start-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 13px;
  margin-top: 29px;
  padding: 0 4px 5px;
  border-bottom: 1px solid rgba(228, 198, 143, .6);
  color: var(--cream);
  font-size: .89rem;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}

.start-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.down-arrow {
  position: relative;
  width: 12px;
  height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.cover-note {
  position: absolute;
  bottom: 30px;
  color: rgba(216, 208, 221, .58);
  font-size: .59rem;
  letter-spacing: .18em;
}

.cover-flower {
  position: absolute;
  right: 4%;
  bottom: 10%;
  width: clamp(70px, 13vw, 125px);
  fill: none;
  stroke: rgba(221, 165, 174, .72);
  stroke-width: 2;
}

.flower-stem,
.feeling-flower > path,
.letter-flower > path {
  fill: none;
  stroke: #c88795;
  stroke-linecap: round;
  stroke-width: 2;
}

.flower-leaf {
  fill: rgba(214, 154, 166, .18);
  stroke: #c88795;
  stroke-width: 1.5;
}

.flower-petals {
  fill: rgba(214, 154, 166, .25);
  stroke: #d69aa6;
  stroke-width: 1.5;
}

.flower-center {
  fill: var(--gold);
  stroke: none;
}

.chapter {
  padding: 56px 0 72px;
  border-top: 1px solid rgba(248, 238, 224, .13);
}

.chapter-header {
  width: min(100%, 630px);
  margin: 0 auto 29px;
  text-align: center;
}

.page-number {
  margin: 0 0 11px;
  color: rgba(228, 198, 143, .66);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.chapter-header .eyebrow,
.feeling-panel .eyebrow,
.closing-panel .eyebrow {
  margin-bottom: 8px;
}

.chapter-header h2,
.feeling-panel h2,
.closing-panel h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.chapter-intro {
  max-width: 490px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .91rem;
}

.envelope-reveal {
  width: min(100%, 580px);
  margin: 0 auto;
}

.envelope-summary {
  display: flex;
  min-height: 130px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid rgba(236, 216, 191, .28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 248, 238, .09), rgba(214, 154, 166, .08));
  cursor: pointer;
  list-style: none;
  transition: border-color 220ms ease, background 220ms ease;
}

.envelope-summary::-webkit-details-marker,
.memory-card summary::-webkit-details-marker,
.note-card summary::-webkit-details-marker {
  display: none;
}

.envelope-summary::marker,
.memory-card summary::marker,
.note-card summary::marker {
  content: '';
}

.envelope-summary:hover,
.envelope-reveal[open] .envelope-summary {
  border-color: rgba(228, 198, 143, .72);
  background: linear-gradient(135deg, rgba(255, 248, 238, .13), rgba(214, 154, 166, .13));
}

.envelope-art {
  position: relative;
  display: block;
  flex: 0 0 152px;
  height: 96px;
  perspective: 550px;
  filter: drop-shadow(0 10px 12px rgba(6, 8, 20, .28));
}

.envelope-paper {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 20px;
  left: 20px;
  height: 70px;
  border-radius: 3px;
  background: var(--paper);
  transition: transform 520ms cubic-bezier(.2, .7, .25, 1);
}

.envelope-pocket {
  position: absolute;
  z-index: 2;
  inset: 15px 7px 4px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 5px;
  background: linear-gradient(145deg, #f3d7cc, #d59aa5);
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
  position: absolute;
  z-index: 3;
  top: 15px;
  right: 7px;
  left: 7px;
  height: 47px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(155deg, #f8e0d5, #e4b8c0);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform 580ms cubic-bezier(.2, .7, .25, 1), z-index 0s 250ms;
}

.envelope-seal {
  position: absolute;
  z-index: 4;
  top: 55px;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  background: #b77687;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.envelope-reveal[open] .envelope-paper {
  transform: translateY(-18px);
}

.envelope-reveal[open] .envelope-flap {
  z-index: 0;
  transform: rotateX(180deg);
}

.envelope-reveal[open] .envelope-seal {
  opacity: 0;
  transform: translateX(-50%) scale(.7);
}

.envelope-caption {
  display: grid;
  gap: 5px;
  text-align: left;
}

.summary-title {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}

.summary-hint {
  display: block;
  color: #d7c6a5;
  font-size: .72rem;
  letter-spacing: .04em;
}

.hint-open,
.hint-visited {
  display: none;
}

details[open] .hint-default {
  display: none;
}

details[open] .hint-open {
  display: inline;
}

details[data-visited="true"]:not([open]) .hint-default {
  display: none;
}

details[data-visited="true"]:not([open]) .hint-visited {
  display: inline;
}

.letter-paper {
  position: relative;
  width: min(100% - 8px, 560px);
  margin: 22px auto 0;
  padding: 34px 29px 28px;
  border: 1px solid #ead7c6;
  border-radius: 4px 4px 12px 12px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(215, 174, 158, .2) 23px 24px, transparent 24px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(183, 167, 156, .13) 33px 34px),
    var(--paper);
  box-shadow: 0 20px 48px rgba(5, 7, 18, .25);
  animation: page-arrive 500ms ease-out both;
}

.letter-kicker {
  margin: 0 0 8px;
  color: #995969;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.letter-paper h3 {
  max-width: 82%;
  margin: 0 0 17px;
  color: #342d3d;
  font-size: 1.7rem;
  line-height: 1.2;
}

.letter-paper > p:not(.letter-kicker):not(.letter-signoff) {
  margin: 0;
  color: #514a58;
  font-size: .94rem;
  line-height: 1.85;
}

.letter-signoff {
  margin: 21px 0 0;
  color: #995969;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.letter-flower {
  position: absolute;
  top: 20px;
  right: 17px;
  width: 38px;
  fill: none;
  stroke: #c88795;
  stroke-width: 1.5;
}

.memory-grid,
.poem-grid,
.note-grid {
  display: grid;
  gap: 14px;
}

.memory-card {
  overflow: hidden;
  border: 1px solid rgba(248, 231, 213, .16);
  border-radius: 12px;
  background: rgba(255, 248, 238, .065);
  backdrop-filter: blur(6px);
  transition: border-color 220ms ease, background 220ms ease;
}

.memory-card:hover,
.memory-card[open] {
  border-color: rgba(228, 198, 143, .62);
  background: rgba(255, 248, 238, .1);
}

.memory-card summary {
  display: grid;
  min-height: 124px;
  grid-template-columns: 54px 1fr 16px;
  gap: 15px;
  align-items: center;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.memory-art {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(228, 198, 143, .38);
  border-radius: 50%;
}

.billiard-ball {
  background: #292c47;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .1);
}

.billiard-ball > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: #28263a;
  background: #fff9f0;
  font-size: .72rem;
  font-weight: 700;
}

.film-art {
  color: var(--rose-light);
  background: rgba(214, 154, 166, .12);
}

.film-art svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.film-art .screen-line {
  fill: rgba(228, 198, 143, .18);
  stroke: var(--gold);
}

.memory-summary {
  display: grid;
  gap: 3px;
}

.memory-kicker {
  color: var(--gold);
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.memory-title {
  color: #fff7ed;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.28;
}

.memory-card .summary-hint {
  margin-top: 2px;
  color: #cec3d2;
  font-size: .68rem;
}

.disclosure-mark {
  position: relative;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 180ms ease;
}

.memory-card[open] .disclosure-mark,
.note-card[open] .disclosure-mark {
  transform: translateY(3px) rotate(225deg);
}

.memory-reveal {
  padding: 0 22px 21px 87px;
  animation: reveal-soft 320ms ease-out both;
}

.memory-reveal p {
  margin: 0;
  color: #e4dce6;
  font-size: .88rem;
  line-height: 1.8;
}

.poem-grid {
  grid-template-columns: 1fr;
}

.poem {
  position: relative;
  min-height: 190px;
  padding: 23px 24px 20px;
  border: 1px solid #ebddce;
  border-radius: 4px 12px 12px 12px;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 17px, rgba(215, 174, 158, .19) 17px 18px, transparent 18px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(183, 167, 156, .12) 31px 32px),
    #fff9f0;
  box-shadow: 0 12px 29px rgba(5, 7, 18, .16);
}

.poem-number {
  margin: 0 0 9px;
  color: #a26977;
  font-size: .59rem;
  font-weight: 700;
  letter-spacing: .15em;
}

.poem-lines {
  margin: 0;
  color: #494352;
  font-family: var(--serif);
  font-size: 1.17rem;
  line-height: 1.57;
}

.poem-caption {
  margin: 15px 0 0;
  color: #8b6570;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.poem-feeling {
  background:
    linear-gradient(90deg, transparent 0 17px, rgba(215, 174, 158, .19) 17px 18px, transparent 18px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(183, 167, 156, .12) 31px 32px),
    #fcf2eb;
}

.poem-future {
  background:
    linear-gradient(90deg, transparent 0 17px, rgba(215, 174, 158, .19) 17px 18px, transparent 18px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(183, 167, 156, .12) 31px 32px),
    #f8f1f3;
}

.note-grid {
  grid-template-columns: 1fr;
}

.note-card {
  overflow: hidden;
  border: 1px solid rgba(239, 220, 193, .24);
  border-radius: 8px;
  background: rgba(255, 248, 238, .055);
  transition: border-color 200ms ease, background 200ms ease;
}

.note-card:hover,
.note-card[open] {
  border-color: rgba(228, 198, 143, .65);
  background: rgba(255, 248, 238, .09);
}

.note-card summary {
  display: grid;
  min-height: 86px;
  grid-template-columns: 36px 1fr 15px;
  grid-template-rows: auto auto;
  gap: 0 12px;
  align-items: center;
  padding: 15px 17px;
  cursor: pointer;
  list-style: none;
}

.note-number {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid rgba(228, 198, 143, .5);
  border-radius: 50%;
  color: var(--gold);
  font-size: .68rem;
}

.note-label {
  align-self: end;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.07rem;
}

.note-card .summary-hint {
  grid-column: 2;
  align-self: start;
  color: #cfc5d3;
  font-size: .66rem;
}

.note-card .disclosure-mark {
  grid-column: 3;
  grid-row: 1 / 3;
}

.note-card > p {
  margin: 0;
  padding: 0 18px 19px 65px;
  color: #e2dbe5;
  font-size: .87rem;
  line-height: 1.75;
  animation: reveal-soft 280ms ease-out both;
}

.feeling-chapter {
  padding-top: 48px;
}

.feeling-panel {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  padding: 43px 28px 39px;
  border: 1px solid rgba(228, 198, 143, .34);
  border-radius: 15px;
  text-align: center;
  background:
    radial-gradient(circle at 92% 15%, rgba(214, 154, 166, .17), transparent 13rem),
    linear-gradient(145deg, rgba(255, 248, 238, .09), rgba(214, 154, 166, .06));
}

.feeling-flower {
  width: 44px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.5;
}

.feeling-panel h2 {
  margin-bottom: 19px;
  font-size: clamp(2rem, 7vw, 2.7rem);
}

.feeling-panel blockquote {
  max-width: 540px;
  margin: 0 auto 16px;
  color: var(--rose-light);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  line-height: 1.38;
}

.feeling-panel blockquote p {
  margin: 0;
}

.feeling-copy {
  max-width: 500px;
  margin: 0 auto;
  color: #dbd4e0;
  font-size: .91rem;
}

.closing-chapter {
  padding-top: 53px;
  padding-bottom: 52px;
}

.closing-panel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 43px 25px 39px;
  border: 1px solid rgba(228, 198, 143, .43);
  border-radius: 4px 17px 17px 17px;
  text-align: center;
  background:
    linear-gradient(90deg, transparent 0 18px, rgba(215, 174, 158, .16) 18px 19px, transparent 19px),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(255, 248, 238, .045) 34px 35px),
    rgba(255, 248, 238, .055);
}

.closing-panel h2 {
  color: var(--rose-light);
  font-size: clamp(2.5rem, 9vw, 4rem);
}

.closing-panel > p:not(.eyebrow):not(.closing-signoff) {
  max-width: 535px;
  margin: 0 auto;
  color: #e2dbe5;
  font-size: .94rem;
  line-height: 1.85;
}

.closing-signoff {
  margin: 21px 0 0;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.page-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 0 0 27px;
  color: rgba(216, 208, 221, .65);
  font-size: .7rem;
  letter-spacing: .04em;
}

.page-footer a {
  min-height: 38px;
  color: #e8d4ad;
  text-decoration: underline;
  text-decoration-color: rgba(228, 198, 143, .45);
  text-underline-offset: 4px;
}

@keyframes page-arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-soft {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 620px) {
  .story-shell {
    width: min(100% - 64px, 900px);
  }

  .cover {
    min-height: min(900px, 100vh);
    padding-inline: 45px;
  }

  .cover-flower {
    right: 7%;
    bottom: 13%;
  }

  .chapter {
    padding-top: 72px;
    padding-bottom: 86px;
  }

  .envelope-summary {
    min-height: 150px;
    gap: 31px;
  }

  .envelope-art {
    flex-basis: 180px;
    height: 112px;
  }

  .envelope-paper {
    right: 25px;
    left: 25px;
    height: 81px;
  }

  .envelope-pocket {
    inset: 18px 10px 4px;
  }

  .envelope-flap {
    top: 18px;
    right: 10px;
    left: 10px;
    height: 55px;
  }

  .envelope-seal {
    top: 64px;
  }

  .envelope-reveal[open] .envelope-paper {
    transform: translateY(-21px);
  }

  .letter-paper {
    padding: 42px 51px 36px;
  }

  .letter-paper h3 {
    font-size: 2rem;
  }

  .letter-paper > p:not(.letter-kicker):not(.letter-signoff) {
    font-size: 1rem;
  }

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

  .memory-card summary {
    min-height: 145px;
    grid-template-columns: 56px 1fr 16px;
    gap: 15px;
    padding: 20px;
  }

  .memory-reveal {
    padding-left: 91px;
  }

  .poem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .poem {
    min-height: 230px;
    padding: 27px 24px 22px;
  }

  .poem-feeling {
    transform: translateY(17px);
  }

  .poem-future {
    transform: translateY(34px);
  }

  .poem-chapter {
    padding-bottom: 120px;
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feeling-panel {
    padding: 53px 70px 48px;
  }

  .closing-panel {
    padding: 52px 60px 46px;
  }

  .page-footer {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.serenata-art,
.lights-art,
.bicycle-art {
  color: var(--rose-light);
  background: rgba(214, 154, 166, .1);
}

.serenata-art svg,
.lights-art svg,
.bicycle-art svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.lights-art { color: var(--gold); }
.bicycle-art { color: #c7c1da; }

.memory-card summary {
  grid-template-columns: 54px minmax(0, 1fr) 16px;
}

.memory-reveal p + p {
  margin-top: 11px;
}

.starry-layout {
  display: grid;
  gap: 23px;
  align-items: center;
}

.starry-copy {
  max-width: 450px;
  margin: 0 auto;
  color: #e0d9e4;
  font-size: .98rem;
}

.starry-copy > p:first-child {
  margin-bottom: 17px;
}

.starry-quote {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
  color: var(--rose-light);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
}

.terrace-illustration {
  width: min(100%, 580px);
  margin: 0 auto;
}

.terrace-scene {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(228, 198, 143, .25);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(5, 7, 18, .24);
}

.scene-background { fill: url(#scene-sky); }
.scene-star { fill: #f2d79f; }
.scene-moon { fill: #e9cc96; opacity: .9; }
.scene-horizon { fill: none; stroke: #89748a; stroke-width: 3; opacity: .65; }
.scene-house { fill: #3a344e; stroke: #958094; stroke-width: 2; }
.scene-window { fill: #d7a77d; opacity: .78; }
.scene-window-line { fill: none; stroke: #4c4056; stroke-width: 2; }
.scene-floor { fill: url(#scene-floor); }
.scene-rail,
.scene-bench { fill: none; stroke: #bc9e93; stroke-linecap: round; stroke-width: 5; }
.scene-bench { stroke: #d5b4a4; stroke-width: 7; }
.figure-back { fill: #a96d80; }
.figure-front { fill: #e2b5a9; }
.figure-head-back { fill: #392f45; stroke: #c98594; stroke-width: 2; }
.figure-head-front { fill: #4a394a; stroke: #f0c9b4; stroke-width: 2; }
.figure-leg-back,
.figure-leg-front { fill: #63445c; }
.figure-leg-front { fill: #805366; }
.figure-arm { fill: none; stroke: #d28f98; stroke-linecap: round; stroke-width: 8; }
.scene-speech { fill: rgba(255, 248, 238, .08); stroke: #e4c68f; stroke-width: 1.5; }
.scene-speech-line { fill: none; stroke: #e4c68f; stroke-linecap: round; stroke-width: 1.5; }

.terrace-illustration figcaption {
  margin-top: 10px;
  color: rgba(216, 208, 221, .72);
  text-align: center;
  font-size: .69rem;
  letter-spacing: .025em;
}

.affection-panel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 37px 26px 34px;
  border: 1px solid rgba(228, 198, 143, .35);
  border-radius: 14px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(214, 154, 166, .18), transparent 18rem),
    rgba(255, 248, 238, .055);
}

.affection-mark {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 19px;
  border: 1px solid var(--rose);
  border-radius: 50% 50% 45% 50%;
  transform: rotate(45deg) scale(.8);
}

.affection-mark::before,
.affection-mark::after {
  position: absolute;
  width: 17px;
  height: 26px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  content: '';
}

.affection-mark::before {
  top: -8px;
  left: 6px;
  transform: rotate(-35deg);
}

.affection-mark::after {
  top: 4px;
  left: -8px;
  transform: rotate(35deg);
}

.affection-lead {
  max-width: 560px;
  margin: 0 auto 10px;
  color: var(--rose-light);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  line-height: 1.25;
}

.affection-copy {
  max-width: 495px;
  margin: 0 auto;
  color: #ded7e2;
  font-size: .94rem;
}

.open-book-note {
  max-width: 660px;
  margin: 0 auto 27px;
  padding: 24px 23px;
  border-left: 2px solid var(--rose);
  background: rgba(255, 248, 238, .055);
}

.open-book-note .eyebrow {
  margin-bottom: 6px;
}

.open-book-note h2 {
  margin: 0 0 8px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.open-book-note > p:last-child {
  margin: 0;
  color: #d9d2df;
  font-size: .86rem;
}

@media (min-width: 620px) {
  .starry-layout {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 32px;
  }

  .starry-copy {
    font-size: 1.02rem;
  }

  .affection-panel {
    padding: 47px 62px 42px;
  }

  .open-book-note {
    padding: 27px 31px;
  }
}

