/* Nook 0.6: a small, hand-drawn garden. Decorative layers never receive input. */
:root { --garden: #eaf0e2; --peach: #e3b99a; }
:root[data-theme=dark] { --garden: #2b3529; --peach: #c8a68a; }
.container { width: min(1120px, calc(100% - 64px)); }
.quiet-hero { position: relative; }
.quiet-intro { position: relative; padding-top: 3px; margin: 24px 0 22px; }
.quiet-intro h1 { font-size: 48px; }
.quiet-opening { letter-spacing: .16em; }
.doodle { position: absolute; pointer-events: none; user-select: none; }
.intro-cloud { width: 139px; height: auto; left: 4%; top: 5px; transform: rotate(-5deg); }
.intro-breeze { width: 167px; height: auto; right: 1%; top: 22px; transform: rotate(-9deg); }
.writing-scene { min-height: 446px; padding: 35px 38px; border-radius: 24px; background: #edf0e4; overflow: visible; }
.garden-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 56%; border-radius: inherit; z-index: -1; pointer-events: none; }
.letter-sheet { width: 55%; padding: 27px 30px 23px; border-radius: 7px 9px 8px 6px; background: var(--raised); border-color: #dce0d0; box-shadow: 0 7px 22px #66704612; }
.letter-sheet::before { content: ''; width: 68px; height: 20px; position: absolute; top: -10px; left: calc(50% - 34px); background: #c6d2b69e; transform: rotate(-3deg); pointer-events: none; }
.letter-top { padding-right: 41px; position: relative; align-items: flex-start; flex-direction: column; gap: 1px; }
.letter-top label { font-size: 20px; }
.letter-date { font-size: 12px; letter-spacing: .05em; }
.letter-stamp { width: 39px; height: 46px; right: 0; top: -3px; transform: rotate(7deg); }
.letter-sheet #worry { min-height: 125px; height: 125px; padding-top: 18px; }
.letter-sheet #worry::placeholder { font-size: 18px; }
.letter-actions > span { max-width: 177px; }
.button.primary { box-shadow: 0 3px 0 #3c503b16; }
.writing-foot { padding-inline: 9px; }
.drawer-section { position: relative; padding-top: 24px; margin-top: 17px; }
.drawer-section > .container { position: relative; width: min(1000px, calc(100% - 64px)); padding: 32px 42px 17px; border: 0; border-radius: 25px; background: var(--garden); }
.drawer-heading { position: relative; z-index: 1; }
.drawer-heading h2 { font-size: 28px; }
.drawer-heading .section-caption { margin-bottom: 2px; }
.drawer-sprig { right: -21px; top: -45px; width: 80px; height: 100px; transform: rotate(17deg); }
.empty-state { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 35px; min-height: 245px; margin: 8px 0 0; padding: 8px 18px 20px; text-align: left; }
.empty-state[hidden] { display: none; }
.empty-cat { width: 252px; height: 216px; object-fit: contain; flex: 0 0 auto; pointer-events: none; }
.empty-copy { padding-top: 7px; }
.empty-state h3 { font-size: 22px; }
.empty-state .text-button { padding-left: 0; }
.drawer-footer { margin-top: 0; padding-top: 16px; border-color: #b5c5a64d; }
.record-list { padding-bottom: 25px; gap: 18px; }
.record-list:empty { display: none; }
.record-card { position: relative; border-radius: 6px 9px 7px 5px; padding: 22px 24px; background: var(--raised); }
.record-top { padding-right: 38px; }
.record-stamp { position: absolute; width: 29px; height: 34px; top: 16px; right: 17px; transform: rotate(8deg); pointer-events: none; }
.record-card .record-worry { font-size: 19px; }
.record-card:nth-child(3n+2) .record-stamp { transform: rotate(-6deg); }
.site-footer { position: relative; margin-top: 27px; padding-top: 38px; }
.footer-flower { width: 43px; height: 54px; position: static; margin-right: -12px; transform: rotate(-13deg); }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.dialog-top { position: relative; }
.dialog-breeze { position: absolute; width: 85px; height: 45px; left: calc(50% - 25px); top: 0; pointer-events: none; opacity: .85; }
.saved-note { position: relative; border: 1px solid var(--line); background: var(--surface); }
.saved-note::after { content: ''; display: block; width: 42px; height: 48px; background: url('assets/letter-stamp.svg') center / contain no-repeat; position: absolute; right: 15px; bottom: 13px; transform: rotate(7deg); pointer-events: none; }
.saved-note > div { padding-right: 50px; min-height: 37px; }
:root[data-theme=dark] .writing-scene { background: #384332; }
:root[data-theme=dark] .garden-scene { opacity: .56; filter: brightness(.7) saturate(.7); }
:root[data-theme=dark] .empty-cat { filter: brightness(.79) saturate(.78); }
:root[data-theme=dark] .doodle, :root[data-theme=dark] .record-stamp { filter: brightness(.8) saturate(.7); }
:root[data-theme=dark] .letter-sheet { border-color: var(--line); }
@media(hover:hover) and (pointer:fine) {
  .button.primary:hover { transform: translateY(-1px); }
  .button.primary:hover > span { transform: translateX(3px); }
  .button.primary > span { transition: transform .25s ease; }
}
@media(min-width:1450px) {
  .quiet-intro { margin-top: 35px; margin-bottom: 31px; }
  .writing-scene { min-height: 470px; padding: 40px 44px; }
  .letter-sheet { padding: 29px 34px 24px; }
  .letter-sheet #worry { min-height: 134px; height: 134px; }
}
@media(max-width:1050px) {
  .container, .site-header { width: calc(100% - 48px); }
  .intro-cloud { left: 0; width: 105px; top: 8px; }
  .intro-breeze { right: 0; width: 122px; top: 41px; }
  .writing-scene { padding: 29px; }
  .letter-sheet { width: 61%; padding: 24px; }
  .letter-actions > span { display: none; }
  .letter-actions { justify-content: flex-end; }
  .drawer-section > .container { padding-inline: 32px; }
}
@media(max-width:800px) {
  .container, .site-header { width: calc(100% - 40px); }
  .quiet-intro h1 { font-size: 40px; }
  .intro-cloud { width: 80px; top: 6px; left: -7px; }
  .intro-breeze { width: 99px; top: 65px; right: -8px; opacity: .8; }
  .writing-scene { padding: 26px 22px; min-height: 407px; }
  .letter-sheet { width: 68%; }
  .letter-top label { font-size: 19px; }
  .drawer-section > .container { width: calc(100% - 40px); padding: 29px 28px 18px; }
  .empty-state { gap: 9px; padding-inline: 0; }
  .empty-cat { width: 205px; height: 194px; }
  .empty-state h3 { font-size: 20px; }
}
@media(max-width:560px) {
  .quiet-intro { margin: 20px 0 21px; padding-top: 0; }
  .quiet-intro h1 { font-size: 36px; line-height: 1.55; }
  .quiet-opening { letter-spacing: .07em; }
  .quiet-intro > p:last-child { margin-top: 10px; }
  .intro-cloud { width: 68px; top: 49px; left: -7px; }
  .intro-breeze { width: 74px; top: 100px; right: -10px; }
  .writing-scene { padding: 122px 12px 13px; border-radius: 16px; background: var(--garden); overflow: hidden; }
  .garden-scene { height: 240px; width: 180%; max-width: none; left: -80%; object-position: 100% 90%; object-fit: cover; }
  .letter-sheet { width: 100%; padding: 20px 21px 18px; }
  .letter-top { flex-direction: row; align-items: center; gap: 10px; padding-right: 31px; }
  .letter-top label { font-size: 17px; letter-spacing: .02em; }
  .letter-date { display: none; }
  .letter-stamp { width: 31px; height: 37px; top: -8px; }
  .letter-sheet #worry { min-height: 122px; height: 122px; font-size: 19px; padding-top: 16px; }
  .letter-sheet #worry::placeholder { font-size: 17px; }
  .letter-actions { justify-content: space-between; gap: 8px; }
  .letter-actions > span { display: block; max-width: 127px; font-size: 12px; }
  .letter-actions .button { padding: 11px 18px; }
  .writing-foot { padding-inline: 0; }
  .drawer-section { margin-top: 9px; padding-top: 22px; }
  .drawer-section > .container { padding: 25px 22px 18px; border-radius: 19px; }
  .drawer-heading h2 { font-size: 25px; gap: 9px; }
  .drawer-heading .section-caption { max-width: 187px; }
  .drawer-heading .button { padding: 8px 11px; white-space: nowrap; }
  .drawer-sprig { width: 52px; height: 68px; right: -10px; top: -34px; }
  .empty-state { flex-direction: column; gap: 0; padding: 0 0 23px; margin-top: 5px; text-align: center; }
  .empty-cat { width: 211px; height: 173px; margin-bottom: -18px; }
  .empty-copy { padding-top: 0; }
  .empty-state h3 { font-size: 21px; }
  .empty-state p { margin-top: 5px; }
  .drawer-footer { padding-top: 14px; line-height: 1.9; }
  .record-list { padding-bottom: 21px; }
  .record-card { padding: 21px 20px; }
  .record-top { padding-right: 28px; }
  .record-stamp { width: 25px; height: 29px; right: 12px; top: 17px; }
  .footer-flower { width: 32px; height: 42px; }
  .site-footer { padding-top: 15px; }
}
@media(max-width:360px) {
  .container, .site-header { width: calc(100% - 32px); }
  .quiet-intro h1 { font-size: 33px; }
  .intro-cloud { width: 57px; left: -6px; }
  .intro-breeze { width: 62px; right: -6px; }
  .letter-sheet { padding-inline: 17px; }
  .letter-actions > span { max-width: 110px; }
  .drawer-section > .container { width: calc(100% - 32px); padding-inline: 19px; }
}
@media(prefers-reduced-motion:reduce) {
  .button.primary:hover, .button.primary:hover > span { transform: none; }
}
