/* =========================================================
   给林鹏洁的恋爱空间
   Paper, ink, one red pen.
   ========================================================= */

@font-face {
  font-family: "LPJ Serif";
  src: url("../assets/fonts/lpj-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LPJ Hand";
  src: url("../assets/fonts/lpj-hand.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1e9dc;
  --paper-light: #faf5ea;
  --paper-deep: #e4d8c4;
  --ink: #29231f;
  --ink-soft: #5c5248;
  --muted: #8d7f70;
  --faint: #b4a692;
  --red: #9f3a3c;
  --red-deep: #7f2c2e;
  --rose: #c58a88;
  --sage: #737d67;
  --mustard: #a77c3b;
  --line: rgba(41, 35, 31, 0.16);
  --line-dark: rgba(41, 35, 31, 0.58);
  --shadow-paper: 0 1px 0 rgba(41, 35, 31, 0.06), 0 20px 35px -30px rgba(41, 35, 31, 0.42);
  --serif: "LPJ Serif", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --hand: "LPJ Hand", "LXGW WenKai", "Kaiti SC", "KaiTi", "Microsoft YaHei", serif;
  --mono: "Courier New", "Cascadia Mono", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
  font-family: var(--hand);
  font-size: 15px;
  line-height: 1.9;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--paper-light);
  background: var(--red);
}

h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px dashed var(--red);
  outline-offset: 5px;
}

.container {
  width: min(1040px, calc(100% - 72px));
  margin-inline: auto;
}

.main {
  position: relative;
}

.hand {
  font-family: var(--hand);
}

.mono {
  font-family: var(--mono);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 20px;
  border-top: 1px solid var(--red);
}

.lede {
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2;
  text-wrap: pretty;
}

.small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.hand-red {
  color: var(--red);
  font-family: var(--hand);
}

.tape {
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 74px;
  height: 22px;
  background: rgba(207, 189, 157, 0.62);
  box-shadow: inset 0 0 0 1px rgba(134, 111, 79, 0.08);
  opacity: 0.9;
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.tape::before,
.tape::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--paper);
  opacity: 0.32;
}

.tape::before { left: 2px; }
.tape::after { right: 2px; }

.paper-sheet {
  position: relative;
  border: 1px solid var(--line);
  background-color: var(--paper-light);
  background-image:
    linear-gradient(rgba(41, 35, 31, 0.018) 1px, transparent 1px);
  background-size: 100% 34px;
  box-shadow: var(--shadow-paper);
}

.ink-link,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.5;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ink-link:hover,
.text-button:hover {
  color: var(--red);
  border-color: var(--red);
}

.ink-link span,
.text-button span {
  font-family: var(--mono);
  font-size: 12px;
}

.ink-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ink-button:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(159, 58, 60, 0.04);
}

.ink-button:active {
  transform: translateY(1px);
}

/* =========================================================
   Masthead
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 65px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-seal {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  box-shadow: inset 0 0 0 2px rgba(159, 58, 60, 0.09);
  transform: rotate(-3deg);
  transition: transform 0.25s ease;
}

.brand:hover .brand-seal {
  transform: rotate(3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.brand-sub {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.love-clock {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.clock-label {
  margin-right: 2px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.clock-days {
  color: var(--ink-soft);
}

.clock-days b {
  color: var(--red);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.clock-time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.clock-time b {
  font-weight: 400;
}

.clock-time i {
  margin: 0 1px;
  color: var(--faint);
  font-style: normal;
}

.site-nav {
  border-top: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  min-height: 38px;
}

.nav-link {
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}

.nav-link[aria-current="page"]::before {
  content: "·";
  position: absolute;
  top: -1px;
  left: -9px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 14px;
}

/* =========================================================
   Home
   ========================================================= */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
  padding: 76px 0 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 18px 0 22px;
  font-family: var(--serif);
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.22;
}

.hero-name {
  color: var(--red);
}

.hero-lead {
  max-width: 465px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 2.05;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
}

.hero-sign {
  margin-top: 33px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.hero-desk {
  position: relative;
  min-height: 500px;
  isolation: isolate;
}

.desk-note {
  position: absolute;
  border: 1px solid rgba(41, 35, 31, 0.17);
  background-color: var(--paper-light);
  box-shadow: var(--shadow-paper);
}

.desk-main {
  top: 32px;
  right: 22px;
  width: min(75%, 325px);
  min-height: 290px;
  padding: 48px 31px 27px;
  background-color: #fbf5e9;
  transform: rotate(2.4deg);
}

.desk-main .small-caps {
  margin-bottom: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.desk-quote {
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(23px, 2.5vw, 28px);
  line-height: 1.65;
}

.desk-main .hand {
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
  transform: rotate(-1deg);
}

.desk-calendar {
  left: 2px;
  bottom: 52px;
  width: 176px;
  padding: 18px 20px 16px;
  background-color: #f0e4d1;
  text-align: center;
  transform: rotate(-3.2deg);
}

.calendar-month {
  display: block;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.desk-calendar strong {
  display: block;
  margin: 4px 0 -4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 78px;
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1.1;
}

.calendar-caption {
  display: block;
  margin-top: 7px;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 11px;
}

.calendar-year {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.desk-ticket {
  right: 28px;
  bottom: 2px;
  width: min(78%, 292px);
  padding: 15px 20px 17px;
  background-color: #ebe9df;
  transform: rotate(-1.2deg);
}

.desk-ticket::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  border-left: 1px dashed rgba(41, 35, 31, 0.2);
  pointer-events: none;
}

.ticket-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.desk-ticket p {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 12px;
  line-height: 1.5;
}

.ticket-seal {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 6px;
  border: 1px solid rgba(159, 58, 60, 0.65);
  color: var(--red);
  font-family: var(--serif);
  font-size: 9px;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}

.botanical {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 37px;
  width: 135px;
  color: var(--sage);
  opacity: 0.8;
  transform: rotate(-13deg);
}

.desk-scribble {
  position: absolute;
  right: 14px;
  bottom: 175px;
  z-index: 4;
  color: var(--red);
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.4;
  transform: rotate(4deg);
}

.arrow-doodle {
  position: absolute;
  right: 44px;
  bottom: 143px;
  z-index: 4;
  width: 42px;
  color: var(--red);
  transform: rotate(-15deg);
}

/* table of contents */

.toc-section {
  padding-top: 34px;
  border-top: 1px solid var(--ink);
}

.toc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 0 20px;
}

.toc-head h2 {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 39px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.3;
}

.toc-aside {
  color: var(--red);
  font-size: 13px;
  transform: rotate(-1.5deg);
}

.toc-list {
  border-top: 1px solid var(--line-dark);
}

.toc-item {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 138px 34px;
  gap: 22px;
  align-items: center;
  min-height: 96px;
  padding: 17px 5px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding 0.2s ease;
}

.toc-item:hover {
  padding-left: 12px;
  background: rgba(255, 255, 255, 0.22);
}

.toc-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.toc-main strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 2.35vw, 27px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.toc-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 12px;
  line-height: 1.6;
}

.toc-item:hover .toc-main strong {
  color: var(--red);
}

.toc-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-align: right;
}

.toc-arrow {
  justify-self: end;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 17px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.toc-item:hover .toc-arrow {
  color: var(--red);
  transform: translateX(3px);
}

/* daily note */

.daily-section {
  display: flex;
  justify-content: center;
  padding: 80px 0 20px;
}

.daily-paper {
  position: relative;
  width: min(720px, 100%);
  padding: 40px 48px 23px;
  border: 1px solid rgba(41, 35, 31, 0.18);
  background-color: #f8f1e5;
  box-shadow: var(--shadow-paper);
  transform: rotate(-0.55deg);
}

.daily-quote {
  min-height: 74px;
  margin: 17px 0 22px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: clamp(20px, 2.7vw, 26px);
  line-height: 1.7;
}

.daily-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.daily-meta .text-button {
  flex: none;
  color: var(--ink-soft);
  font-size: 11px;
}

/* =========================================================
   Shared inner page head
   ========================================================= */

.page-head {
  padding: 64px 0 44px;
}

.page-head h1 {
  max-width: 880px;
  margin: 13px 0 19px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.2vw, 63px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.26;
}

.page-head h1 em {
  color: var(--red);
  font-family: var(--hand);
  font-style: normal;
}

.page-head .lede {
  max-width: 570px;
}

/* =========================================================
   Story
   ========================================================= */

.story-head {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(220px, 0.68fr);
  gap: 70px;
  align-items: end;
  padding: 62px 0 42px;
  border-bottom: 1px solid var(--ink);
}

.story-head h1 {
  margin: 15px 0 20px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.1vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.27;
}

.story-side {
  padding: 3px 0 5px 28px;
  border-left: 1px solid var(--line);
}

.story-facts {
  display: grid;
  gap: 7px;
  margin-bottom: 28px;
}

.story-facts p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.story-facts b {
  color: var(--ink);
  font-family: var(--hand);
  font-size: 13px;
  font-weight: 400;
}

.story-facts b.red {
  color: var(--red);
}

.story-side .hand {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  transform: rotate(-1.5deg);
}

.story-list {
  max-width: 885px;
  margin: 0 auto;
  padding: 18px 0 0;
  list-style: none;
}

.story-entry {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 42px;
  padding: 35px 0 36px;
  border-bottom: 1px solid var(--line);
}

.story-date {
  padding-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.story-date strong {
  display: block;
  margin: 1px 0 2px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.story-date small {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.story-copy h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.7vw, 28px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.story-copy > p {
  max-width: 650px;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 13.5px;
  line-height: 2;
}

.story-note {
  display: inline-block;
  margin-top: 9px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 12px;
  transform: rotate(-1deg);
}

.story-entry.current .story-date strong {
  color: var(--red);
}

.story-entry.current .story-copy h2::after {
  content: "现在";
  display: inline-block;
  margin-left: 11px;
  padding: 2px 6px;
  border: 1px solid rgba(159, 58, 60, 0.55);
  color: var(--red);
  font-family: var(--hand);
  font-size: 9px;
  letter-spacing: 0.08em;
  vertical-align: 5px;
  transform: rotate(-4deg);
}

.story-end {
  max-width: 885px;
  margin: 58px auto 0;
  text-align: center;
}

.story-end .hand {
  color: var(--muted);
  font-size: 13px;
}

.story-end-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin-top: 20px;
}

/* =========================================================
   Development / photo wall
   ========================================================= */

.development-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
  gap: 64px;
  align-items: end;
  padding: 62px 0 40px;
  border-bottom: 1px solid var(--ink);
}

.development-head h1 {
  margin: 15px 0 19px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.27;
}

.development-aside {
  padding: 3px 0 5px 27px;
  border-left: 1px solid var(--line);
}

.development-days {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.development-days b {
  margin: 0 2px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.development-aside .hand {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  transform: rotate(-1deg);
}

.development-body {
  padding-top: 33px;
}

.development-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 25px;
  margin-bottom: 35px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.development-bar .hand {
  color: var(--red);
  font-size: 12px;
  transform: rotate(-1deg);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 42px;
  align-items: start;
}

.memory {
  position: relative;
  margin: 0;
}

.memory:nth-child(even) {
  margin-top: 38px;
}

.memory-photo {
  position: relative;
  padding: 12px 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: var(--shadow-paper);
  transform: rotate(-0.5deg);
}

.memory-b .memory-photo { transform: rotate(0.8deg); }
.memory-c .memory-photo { transform: rotate(0.6deg); }
.memory-d .memory-photo { transform: rotate(-0.7deg); }

.memory-photo .tape {
  width: 64px;
  height: 19px;
  top: -9px;
}

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  aspect-ratio: 4 / 3;
  min-height: 205px;
  border: 1px solid rgba(41, 35, 31, 0.11);
  background-color: #e8ddcc;
  text-align: center;
}

.memory-b .photo-placeholder,
.memory-d .photo-placeholder {
  aspect-ratio: 4 / 5;
}

.photo-placeholder--rose { background-color: #eadcd6; }
.photo-placeholder--sage { background-color: #e5e9df; }
.photo-placeholder--butter { background-color: #ede4cf; }

.photo-placeholder p {
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.65;
}

.photo-count {
  color: var(--red);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.photo-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.memory-copy {
  padding: 15px 6px 0;
}

.memory-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.memory-copy h2 {
  margin: 3px 0 5px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.memory-copy p:last-child {
  max-width: 430px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.development-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.46fr);
  gap: 65px;
  margin-top: 70px;
  padding-top: 33px;
  border-top: 1px solid var(--ink);
}

.development-lede {
  max-width: 660px;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.7vw, 30px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.6;
}

.development-text {
  max-width: 620px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2.05;
}

.development-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 23px;
}

/* =========================================================
   Birthday
   ========================================================= */

.birthday-page {
  padding-top: 10px;
}

.birthday-head {
  padding: 58px 0 26px;
  text-align: center;
}

.birthday-head .section-label {
  justify-content: center;
}

.birthday-date {
  margin: 22px 0 2px;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
}

.birthday-head h1 {
  margin: 8px auto 16px;
  max-width: 730px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.3;
}

.birthday-head .lede {
  margin-inline: auto;
  text-align: center;
}

.countdown-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  padding: 17px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.countdown-label {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 12px;
}

.countdown {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-left: auto;
  font-family: var(--mono);
}

.countdown-unit {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.countdown-unit b {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-unit small {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 10px;
}

.countdown-note {
  width: 100%;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-align: right;
}

.birthday-content {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  gap: 24px;
  align-items: start;
  padding-top: 48px;
}

.cake-card {
  position: relative;
  padding: 35px 37px 31px;
  background-color: #fbf4e8;
  transform: rotate(-0.4deg);
}



.cake-card h2 {
  margin: 7px 0 2px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.cake-hint {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 12px;
}

.cake-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 8px 0 2px;
}

.birthday-cake {
  width: min(100%, 420px);
}

.flame {
  transform-origin: 50% 100%;
  animation: flame-flicker 0.78s ease-in-out infinite alternate;
}

.flame:nth-of-type(2) { animation-delay: -0.2s; }
.flame:nth-of-type(3) { animation-delay: -0.45s; }

.cake-smoke {
  opacity: 0;
}

.cake-card.is-wished .flame {
  animation: none;
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cake-card.is-wished .cake-smoke {
  opacity: 0.65;
  animation: smoke-rise 2.4s ease-out forwards;
}

.cake-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
}

.wish-message {
  min-height: 24px;
  margin-top: 12px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.7;
}

.wish-message.is-visible {
  animation: note-in 0.4s ease both;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.paper-bit {
  position: absolute;
  top: 28%;
  left: var(--x, 50%);
  width: var(--w, 7px);
  height: var(--h, 13px);
  background: var(--color, #9f3a3c);
  opacity: 0;
  transform: rotate(var(--tilt, 15deg));
  animation: paper-fall var(--duration, 1.8s) cubic-bezier(0.18, 0.62, 0.32, 1) var(--delay, 0s) forwards;
}

.birthday-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.birthday-letter {
  position: relative;
  padding: 32px 30px 25px;
  background-color: #f1e7d8;
  transform: rotate(1deg);
}

.birthday-letter p {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 2;
}

.birthday-letter .letter-to {
  margin: 7px 0 12px;
  color: var(--red);
  font-family: var(--hand);
  font-size: 17px;
}

.birthday-letter .birthday-sign {
  margin-top: 15px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11px;
  text-align: right;
}

.birthday-tickets {
  display: grid;
  gap: 10px;
}

.birthday-tickets > .section-label {
  margin-bottom: 1px;
}

.coupon {
  position: relative;
  padding: 15px 17px 13px;
  border: 1px dashed rgba(41, 35, 31, 0.42);
  background: rgba(250, 245, 234, 0.58);
  transition: background 0.2s ease, transform 0.2s ease;
}

.coupon:nth-child(2) { transform: rotate(-0.35deg); }
.coupon:nth-child(3) { transform: rotate(0.45deg); }
.coupon:nth-child(4) { transform: rotate(-0.25deg); }

.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1px dashed rgba(41, 35, 31, 0.42);
  border-radius: 50%;
  background: var(--paper);
  transform: translateY(-50%);
}

.coupon::before { left: -6px; }
.coupon::after { right: -6px; }

.coupon:hover {
  background: rgba(255, 252, 245, 0.9);
}

.coupon.claimed {
  background: rgba(232, 218, 192, 0.5);
}

.ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.coupon h3 {
  display: inline-block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.coupon > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.ticket-action {
  display: block;
  margin: 6px 0 0 auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--hand);
  font-size: 10px;
  line-height: 1.4;
}

.ticket-action:hover {
  color: var(--red);
  border-color: var(--red);
}

.coupon.claimed .ticket-action {
  border-color: var(--red);
  color: var(--red);
}

.birthday-footnote {
  margin-top: -4px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
}

.birthday-footnote a {
  color: var(--red);
  border-bottom: 1px solid rgba(159, 58, 60, 0.5);
}

/* =========================================================
   Letters
   ========================================================= */

.letters-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 60px;
  align-items: end;
  padding: 64px 0 38px;
  border-bottom: 1px solid var(--ink);
}

.letters-head h1 {
  margin: 15px 0 17px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.3vw, 64px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.26;
}

.letters-aside {
  padding: 4px 0 6px 25px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  transform: rotate(-1deg);
}

.letters-desk {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  padding-top: 47px;
}

.letter-card {
  position: relative;
  padding: 13px 13px 19px;
  border: 1px solid rgba(41, 35, 31, 0.2);
  box-shadow: var(--shadow-paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.letter-card--one {
  background-color: #f8f0e4;
  transform: rotate(-1.5deg);
}

.letter-card--two {
  margin-top: 18px;
  background-color: #f2e7e1;
  transform: rotate(1deg);
}

.letter-card--three {
  margin-top: 5px;
  background-color: #eef0e6;
  transform: rotate(1.8deg);
}

.letter-card:hover {
  z-index: 2;
  box-shadow: 0 2px 0 rgba(41, 35, 31, 0.06), 0 23px 40px -28px rgba(41, 35, 31, 0.5);
  transform: translateY(-5px) rotate(0deg);
}

.letter-card .tape {
  width: 62px;
  height: 18px;
  top: -9px;
}

.envelope {
  position: relative;
  padding: 6px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(41, 35, 31, 0.12);
}

.envelope-svg {
  width: 100%;
  height: auto;
}

.letter-when {
  margin: 16px 0 3px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
}

.letter-card h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(20px, 2.25vw, 26px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.letter-preview {
  min-height: 48px;
  margin: 7px 0 16px;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.8;
}

.letter-open-hint {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.stretched-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.stretched-link:focus-visible {
  outline-offset: -4px;
}

.letters-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0 0;
}

.letters-foot .hand {
  color: var(--muted);
  font-size: 12px;
}

.letter-dialog {
  width: min(700px, calc(100% - 32px));
  max-height: min(88vh, 920px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.letter-dialog::backdrop {
  background: rgba(35, 29, 24, 0.6);
}

.letter-dialog[open] {
  animation: dialog-in 0.28s ease both;
}

.letter-paper {
  position: relative;
  max-height: min(88vh, 920px);
  overflow-y: auto;
  padding: 37px clamp(23px, 6vw, 48px) 28px 62px;
  border: 1px solid rgba(41, 35, 31, 0.25);
  background-color: #fbf4e7;
  background-image:
    linear-gradient(90deg, rgba(159, 58, 60, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(41, 35, 31, 0.06) 1px, transparent 1px);
  background-position: 36px 0, 0 0;
  background-size: 100% 100%, 100% 30px;
  box-shadow: 0 25px 90px rgba(25, 19, 14, 0.3);
}

.letter-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--hand);
  font-size: 11px;
}

.letter-close:hover {
  color: var(--red);
  border-color: var(--red);
}

.letter-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.letter-meta::before {
  content: "";
  width: 18px;
  border-top: 1px solid var(--red);
}

.letter-title {
  margin: 0 0 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.38;
  text-wrap: balance;
}

.letter-body {
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 14.5px;
  line-height: 2.1;
}

.letter-body p {
  margin-bottom: 15px;
}

.letter-highlight {
  background: linear-gradient(transparent 48%, rgba(194, 154, 104, 0.33) 48%);
}

.letter-sign {
  margin-top: 25px;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1.7;
  text-align: right;
}

.letter-sign small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.letter-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.letter-footer span:last-child {
  color: var(--red);
  font-family: var(--hand);
  font-size: 10px;
}

/* =========================================================
   Quiz
   ========================================================= */

.quiz-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 62px 0 30px;
}

.quiz-head h1 {
  margin: 14px 0 17px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.26;
}

.quiz-section {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 20px;
}

.quiz-sheet {
  position: relative;
  min-height: 460px;
  padding: 27px 37px 34px;
  border: 1px solid rgba(41, 35, 31, 0.25);
  background-color: #fbf5e9;
  background-image:
    linear-gradient(90deg, transparent 26px, rgba(159, 58, 60, 0.17) 26px, rgba(159, 58, 60, 0.17) 27px, transparent 27px),
    linear-gradient(rgba(41, 35, 31, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 32px;
  box-shadow: var(--shadow-paper);
}

.quiz-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.quiz-progress {
  height: 1px;
  margin-top: 24px;
  overflow: hidden;
  background: var(--line);
}

.quiz-progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.3s ease;
}

.quiz-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 9px 0 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.quiz-question {
  max-width: 630px;
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(23px, 3.2vw, 31px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.55;
  text-wrap: balance;
}

.quiz-options {
  display: grid;
  border-top: 1px dashed var(--line);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 3px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease, padding 0.18s ease;
}

.quiz-option:hover:not(:disabled) {
  padding-left: 8px;
  color: var(--red);
  background: rgba(255, 252, 245, 0.45);
}

.quiz-option:disabled {
  cursor: default;
}

.option-letter {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-dark);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  line-height: 1;
}

.quiz-option.is-correct {
  color: var(--red);
}

.quiz-option.is-correct .option-letter {
  border-color: var(--red);
  color: var(--paper-light);
  background: var(--red);
}

.quiz-option.is-wrong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(159, 58, 60, 0.4);
}

.quiz-option.is-wrong .option-letter {
  border-color: var(--red);
  color: var(--red);
}

.quiz-feedback {
  display: none;
  margin-top: 18px;
  padding-left: 15px;
  border-left: 2px solid var(--red);
  color: var(--red);
  font-family: var(--hand);
  font-size: 12.5px;
  line-height: 1.8;
}

.quiz-feedback.is-visible {
  display: block;
  animation: note-in 0.3s ease both;
}

.quiz-feedback.is-correct {
  color: var(--red);
}

.quiz-feedback.is-wrong {
  color: var(--ink-soft);
}

.quiz-next {
  display: none;
  margin-top: 19px;
}

.quiz-next.is-visible {
  display: inline-flex;
}

.quiz-view.is-hidden {
  display: none;
}

.quiz-result {
  display: none;
  padding: 14px 0 3px;
}

.quiz-result.is-visible {
  display: block;
  animation: note-in 0.4s ease both;
}

.result-badge {
  display: inline-block;
  min-width: 64px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  transform: rotate(-4deg);
}

.result-score {
  color: var(--red);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.result-title {
  margin: 5px 0 9px;
  font-family: var(--serif);
  font-size: clamp(25px, 3.3vw, 33px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.4;
}

.result-copy {
  max-width: 500px;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 13px;
  line-height: 1.95;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 25px;
}

/* =========================================================
   The list
   ========================================================= */

.wish-head {
  max-width: 760px;
  margin: 0 auto;
  padding: 62px 0 32px;
}

.wish-head h1 {
  margin: 14px 0 17px;
  font-family: var(--serif);
  font-size: clamp(39px, 5.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.27;
}

.wish-section {
  max-width: 900px;
  margin: 0 auto;
}

.wish-sheet {
  position: relative;
  padding: 30px 37px 20px;
  border: 1px solid rgba(41, 35, 31, 0.24);
  background-color: #fbf5e9;
  box-shadow: var(--shadow-paper);
}

.wish-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 30px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-dark);
}

.wish-toolbar-title {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.wish-toolbar-sub {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.wish-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 235px;
}

.wish-progress {
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.wish-progress-bar {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.35s ease;
}

.wish-count {
  flex: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.wish-count small {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 9px;
}

.wish-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 19px;
}

.filter-btn {
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-family: var(--hand);
  font-size: 11px;
  line-height: 1.5;
}

.filter-btn:hover {
  color: var(--ink);
}

.filter-btn.is-active {
  border-color: var(--red);
  color: var(--ink);
}

.wish-actions {
  display: flex;
  gap: 18px;
}

.wish-actions .text-button {
  padding-bottom: 1px;
  border-bottom: 0;
  color: var(--muted);
  font-size: 10.5px;
}

.wish-actions .text-button:hover {
  color: var(--red);
}

.wish-status {
  min-height: 27px;
  padding: 10px 0 0;
  color: var(--red);
  font-family: var(--hand);
  font-size: 11px;
  line-height: 1.6;
}

.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 42px;
  padding: 2px 0 12px;
}

.wish-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 51px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background 0.18s ease;
}

.wish-item:hover {
  background: rgba(255, 252, 245, 0.5);
}

.wish-check {
  position: relative;
  display: grid;
  width: 17px;
  height: 17px;
  flex: none;
  place-items: center;
  margin-top: 2px;
  border: 1px solid rgba(41, 35, 31, 0.4);
  background: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wish-check::after {
  content: "✓";
  color: var(--red);
  font-family: var(--hand);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: rotate(-12deg) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wish-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wish-item input:focus-visible + .wish-check {
  outline: 2px dashed var(--red);
  outline-offset: 3px;
}

.wish-item input:checked + .wish-check {
  border-color: var(--red);
}

.wish-item input:checked + .wish-check::after {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
}

.wish-body {
  min-width: 0;
  flex: 1;
}

.wish-index {
  display: inline-block;
  margin-right: 7px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.wish-text {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.7;
  transition: color 0.2s ease;
}

.wish-item input:checked ~ .wish-body .wish-text {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(159, 58, 60, 0.48);
  text-decoration-thickness: 1px;
}

.wish-item input:checked ~ .wish-body .wish-index {
  color: var(--red);
}

.wish-item.is-highlight {
  background: rgba(199, 170, 119, 0.2);
  outline: 1px dashed rgba(159, 58, 60, 0.55);
  outline-offset: -3px;
}

.wish-item.is-filtered-out {
  display: none;
}

.wish-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 15px 0 3px;
  border-top: 1px solid var(--line);
}

.wish-footer .hand {
  color: var(--red);
  font-size: 12px;
  transform: rotate(-1deg);
}

.wish-footer .mono {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.empty-state {
  display: none;
  padding: 35px 0 25px;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 14px;
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.wish-tip {
  max-width: 660px;
  margin: 25px auto 0;
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11.5px;
  line-height: 1.9;
  text-align: center;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--ink);
  background-color: rgba(227, 215, 195, 0.28);
}

.footer-wrap {
  padding: 36px 0 34px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 32px;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}

.footer-brand span {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 5px;
  border: 1px solid rgba(159, 58, 60, 0.65);
  color: var(--red);
  font-size: 8px;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.footer-line {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11px;
}

.footer-note-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 23px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.footer-date-block {
  margin-top: 31px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-date-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.footer-date {
  margin: 7px 0 4px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(37px, 5.2vw, 60px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.footer-date span {
  color: var(--red);
}

.footer-date-sub {
  color: var(--muted);
  font-family: var(--hand);
  font-size: 11px;
}

.footer-date-sub b {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
}

/* =========================================================
   Little animations
   ========================================================= */

@keyframes flame-flicker {
  from { transform: scaleY(0.93) rotate(-3deg); opacity: 0.88; }
  to { transform: scaleY(1.05) rotate(3deg); opacity: 1; }
}

@keyframes smoke-rise {
  from { opacity: 0.65; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-22px); }
}

@keyframes paper-fall {
  0% {
    opacity: 0;
    transform: translateY(-30px) translateX(0) rotate(var(--tilt, 15deg));
  }
  10% { opacity: 0.9; }
  100% {
    opacity: 0;
    transform: translateY(310px) translateX(var(--drift, 30px)) rotate(calc(var(--tilt, 15deg) + 260deg));
  }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 920px) {
  .container {
    width: min(100% - 48px, 760px);
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 50px 0 34px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero-copy h1 {
    font-size: clamp(43px, 8.4vw, 65px);
  }

  .hero-desk {
    width: min(100%, 560px);
    min-height: 460px;
    margin-inline: auto;
  }

  .story-head,
  .development-head,
  .letters-head {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 45px;
  }

  .story-side,
  .development-aside,
  .letters-aside {
    max-width: 490px;
    padding-left: 20px;
  }

  .development-note {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story-facts {
    max-width: 360px;
  }

  .birthday-content {
    grid-template-columns: 1fr;
  }

  .birthday-aside {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
  }

  .birthday-tickets {
    grid-column: 1 / -1;
  }

  .birthday-footnote {
    grid-column: 1 / -1;
  }

  .letters-desk {
    gap: 16px;
  }

  .footer-wrap {
    padding-top: 30px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 120px;
  }

  .container {
    width: min(100% - 32px, 620px);
  }

  .header-main {
    min-height: 57px;
    gap: 13px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 29px;
    height: 29px;
    font-size: 8px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    margin-top: 3px;
    font-size: 8.5px;
    letter-spacing: 0.08em;
  }

  .love-clock {
    gap: 4px;
    font-size: 10px;
  }

  .clock-label {
    font-size: 9.5px;
  }

  .clock-days b {
    font-size: 16px;
  }

  .nav-row {
    min-height: 34px;
    gap: 0;
    justify-content: space-between;
  }

  .nav-link {
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .nav-link[aria-current="page"] {
    text-underline-offset: 5px;
  }

  .nav-link[aria-current="page"]::before {
    left: -6px;
    font-size: 12px;
  }

  .home-hero {
    padding-top: 39px;
  }

  .hero-copy h1 {
    margin-top: 14px;
    font-size: clamp(38px, 11.2vw, 53px);
    line-height: 1.26;
  }

  .hero-lead {
    font-size: 13px;
    line-height: 1.9;
  }

  .hero-actions {
    gap: 20px;
    margin-top: 24px;
  }

  .ink-link {
    font-size: 12px;
  }

  .hero-sign {
    margin-top: 25px;
    font-size: 8.5px;
  }

  .hero-desk {
    min-height: 405px;
    margin-top: 4px;
  }

  .desk-main {
    top: 24px;
    right: 3%;
    width: 76%;
    min-height: 244px;
    padding: 37px 24px 21px;
  }

  .desk-main .small-caps {
    margin-bottom: 17px;
    font-size: 8px;
  }

  .desk-quote {
    font-size: 22px;
  }

  .desk-main .hand {
    margin-top: 15px;
    font-size: 10px;
  }

  .desk-calendar {
    left: 0;
    bottom: 31px;
    width: 142px;
    padding: 13px 14px 12px;
  }

  .desk-calendar strong {
    font-size: 64px;
  }

  .calendar-caption {
    font-size: 10px;
  }

  .desk-ticket {
    right: 0;
    bottom: 0;
    width: 74%;
    padding: 12px 15px 13px;
  }

  .desk-ticket p {
    font-size: 10.5px;
  }

  .botanical {
    top: -5px;
    left: 8%;
    width: 95px;
  }

  .desk-scribble {
    right: 0;
    bottom: 155px;
    font-size: 11px;
  }

  .arrow-doodle {
    right: 24px;
    bottom: 128px;
    width: 32px;
  }

  .toc-section {
    padding-top: 28px;
  }

  .toc-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 21px 0 13px;
  }

  .toc-head h2 {
    margin-top: 4px;
    font-size: 28px;
  }

  .toc-aside {
    font-size: 11px;
  }

  .toc-item {
    grid-template-columns: 27px minmax(0, 1fr) 26px;
    gap: 10px;
    min-height: 82px;
    padding: 13px 1px;
  }

  .toc-item:hover {
    padding-left: 5px;
  }

  .toc-num {
    font-size: 8.5px;
  }

  .toc-main strong {
    font-size: 21px;
  }

  .toc-main span {
    font-size: 10.5px;
  }

  .toc-meta {
    display: none;
  }

  .toc-arrow {
    font-size: 15px;
  }

  .daily-section {
    padding-top: 55px;
  }

  .daily-paper {
    padding: 32px 23px 17px;
  }

  .daily-quote {
    min-height: 96px;
    margin: 12px 0 17px;
    font-size: 20px;
    line-height: 1.75;
  }

  .daily-meta {
    font-size: 8px;
  }

  .page-head,
  .story-head,
  .development-head,
  .letters-head,
  .quiz-head,
  .wish-head {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .story-head h1,
  .development-head h1,
  .letters-head h1,
  .quiz-head h1,
  .wish-head h1 {
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.32;
  }

  .development-head {
    gap: 22px;
  }

  .development-aside {
    padding-left: 15px;
  }

  .development-days {
    font-size: 8.5px;
  }

  .development-days b {
    font-size: 19px;
  }

  .development-aside .hand {
    margin-top: 8px;
    font-size: 11px;
  }

  .development-body {
    padding-top: 24px;
  }

  .development-bar {
    margin-bottom: 25px;
    padding-bottom: 11px;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .memory:nth-child(even) {
    margin-top: 0;
  }

  .memory-b .photo-placeholder,
  .memory-d .photo-placeholder {
    aspect-ratio: 4 / 3;
  }

  .photo-placeholder {
    min-height: 190px;
  }

  .memory-copy {
    padding-top: 12px;
  }

  .memory-copy h2 {
    font-size: 23px;
  }

  .memory-copy p:last-child {
    font-size: 11.5px;
  }

  .development-note {
    margin-top: 48px;
    padding-top: 24px;
  }

  .development-lede {
    margin-top: 13px;
    font-size: 22px;
  }

  .development-text {
    font-size: 12.5px;
  }

  .development-links {
    gap: 12px;
    margin-top: 17px;
  }

  .lede {
    font-size: 12.5px;
    line-height: 1.9;
  }

  .story-side {
    max-width: none;
    padding-left: 15px;
  }

  .story-facts {
    max-width: none;
    margin-bottom: 17px;
  }

  .story-side .hand {
    font-size: 11px;
  }

  .story-list {
    padding-top: 2px;
  }

  .story-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 25px 0 27px;
  }

  .story-date {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }

  .story-date strong {
    display: inline;
    margin: 0;
    font-size: 23px;
  }

  .story-date small {
    font-size: 9.5px;
  }

  .story-copy h2 {
    font-size: 23px;
  }

  .story-copy > p {
    font-size: 12.5px;
    line-height: 1.95;
  }

  .story-note {
    font-size: 11px;
  }

  .story-end {
    margin-top: 42px;
  }

  .story-end-links {
    gap: 18px;
    margin-top: 14px;
  }

  .birthday-head {
    padding: 39px 0 21px;
  }

  .birthday-date {
    margin-top: 16px;
    font-size: 65px;
  }

  .birthday-head h1 {
    margin-top: 5px;
    font-size: clamp(33px, 9.4vw, 45px);
    line-height: 1.35;
  }

  .countdown-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px 12px;
    padding: 13px 0;
  }

  .countdown-label {
    font-size: 11px;
  }

  .countdown {
    gap: 8px;
    margin-left: 0;
  }

  .countdown-unit b {
    font-size: 23px;
  }

  .countdown-unit small {
    font-size: 8.5px;
  }

  .countdown-note {
    grid-column: 1 / -1;
    font-size: 8px;
    text-align: left;
  }

  .birthday-content {
    gap: 20px;
    padding-top: 30px;
  }

  .cake-card {
    padding: 27px 21px 22px;
  }

  .cake-card h2 {
    font-size: 28px;
  }

  .cake-stage {
    min-height: 250px;
  }

  .cake-card::after {
    right: 17px;
    bottom: 17px;
    width: 38px;
    height: 38px;
  }

  .wish-message {
    font-size: 12px;
  }

  .birthday-aside {
    display: flex;
  }

  .birthday-letter {
    padding: 28px 22px 21px;
  }

  .letters-head {
    padding-bottom: 22px;
  }

  .letters-aside {
    font-size: 11px;
  }

  .letters-desk {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 30px;
  }

  .letter-card {
    padding: 11px 11px 17px;
  }

  .letter-card--one,
  .letter-card--two,
  .letter-card--three {
    margin-top: 0;
    transform: rotate(-0.7deg);
  }

  .letter-card--two { transform: rotate(0.8deg); }
  .letter-card--three { transform: rotate(-0.4deg); }

  .envelope {
    max-width: none;
  }

  .letter-when {
    margin-top: 13px;
  }

  .letter-card h2 {
    font-size: 23px;
  }

  .letter-preview {
    min-height: 0;
    margin-bottom: 11px;
    font-size: 11px;
  }

  .letters-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
  }

  .quiz-head {
    padding-bottom: 20px;
  }

  .quiz-sheet {
    min-height: 0;
    padding: 21px 20px 26px;
    background-image:
      linear-gradient(rgba(41, 35, 31, 0.045) 1px, transparent 1px);
    background-size: 100% 32px;
  }

  .quiz-sheet-head {
    font-size: 8px;
  }

  .quiz-progress {
    margin-top: 17px;
  }

  .quiz-question {
    margin-bottom: 19px;
    font-size: 22px;
    line-height: 1.55;
  }

  .quiz-option {
    gap: 10px;
    padding: 12px 0;
    font-size: 12px;
  }

  .quiz-option:hover:not(:disabled) {
    padding-left: 3px;
  }

  .quiz-feedback {
    margin-top: 15px;
    font-size: 11.5px;
  }

  .quiz-next {
    margin-top: 16px;
  }

  .result-badge {
    font-size: 23px;
  }

  .result-score {
    font-size: 31px;
  }

  .result-title {
    font-size: 25px;
  }

  .result-copy {
    font-size: 12px;
  }

  .result-actions {
    gap: 17px;
    margin-top: 21px;
  }

  .wish-head {
    padding-bottom: 20px;
  }

  .wish-sheet {
    padding: 24px 17px 14px;
  }

  .wish-toolbar {
    gap: 12px;
    padding-bottom: 13px;
  }

  .wish-toolbar-title {
    font-size: 23px;
  }

  .wish-progress-wrap {
    width: 100%;
    min-width: 0;
  }

  .wish-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 10px 0;
  }

  .filter-group {
    gap: 16px;
  }

  .wish-actions {
    width: 100%;
    justify-content: space-between;
  }

  .wish-status {
    min-height: 21px;
    padding-top: 7px;
    font-size: 10.5px;
  }

  .wish-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    padding-bottom: 7px;
  }

  .wish-item {
    min-height: 45px;
    padding: 9px 0;
  }

  .wish-text {
    font-size: 12px;
  }

  .wish-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding-top: 11px;
  }

  .wish-tip {
    margin-top: 19px;
    font-size: 10.5px;
  }

  .letter-dialog {
    width: calc(100% - 20px);
    max-height: 92vh;
  }

  .letter-paper {
    max-height: 92vh;
    padding: 32px 20px 23px 40px;
    background-position: 24px 0, 0 0;
  }

  .letter-body {
    font-size: 13px;
    line-height: 2;
  }

  .letter-title {
    font-size: 26px;
  }

  .letter-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .story-end-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-brand {
    font-size: 18px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-line {
    font-size: 10.5px;
  }

  .footer-note-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
    font-size: 7.5px;
  }

  .footer-date-block {
    margin-top: 23px;
    padding-top: 18px;
  }

  .footer-date {
    margin-top: 4px;
    font-size: clamp(35px, 10vw, 47px);
  }

  .footer-date-sub {
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .countdown-bar {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .countdown {
    margin-left: 0;
  }

  .countdown-note {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .container {
    width: calc(100% - 26px);
  }

  .header-main {
    gap: 8px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-sub {
    font-size: 8px;
  }

  .love-clock {
    font-size: 9.5px;
  }

  .clock-days b {
    font-size: 15px;
  }

  .clock-time i {
    margin: 0;
  }

  .nav-link {
    font-size: 10.5px;
  }

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

  .desk-main {
    width: 77%;
    padding-inline: 20px;
  }

  .desk-quote {
    font-size: 20px;
  }

  .desk-calendar {
    width: 129px;
  }

  .desk-calendar strong {
    font-size: 58px;
  }

  .desk-ticket {
    width: 76%;
  }

  .daily-quote {
    min-height: 112px;
    font-size: 18.5px;
  }

  .birthday-head h1 {
    font-size: 33px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown-unit b {
    font-size: 21px;
  }

  .countdown-unit small {
    font-size: 8px;
  }

  .quiz-question {
    font-size: 20px;
  }

  .footer-date {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
