/* ============ Brittani Fagel — "Pass me a note" comments ============ */
.notes-wall { position: relative; margin: 80px calc(50% - 50vw) 0; margin-top: 80px; padding: 100px 0 80px; background-color: #F6DFE2; background-image: var(--grain), repeating-linear-gradient(90deg, rgba(201, 122, 138, .09) 0 1px, transparent 1px 8px); }
.notes-wall > .lace--down { position: absolute; top: 0; left: 0; right: 0; }
.notes-inner { max-width: 820px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.notes-head { display: grid; justify-items: center; gap: 10px; margin-bottom: 30px; text-align: center; }
.notes-head .eyebrow { background: var(--ivory); padding: 6px 12px; }
.notes-title { margin: 0; padding: 10px 28px 12px; background-color: var(--ivory); background-image: var(--grain); font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.6vw, 62px); line-height: 1; color: var(--burgundy); transform: rotate(-1.2deg); box-shadow: 0 12px 20px -12px rgba(59, 37, 27, .45); }
.notes-title em { font-style: italic; color: var(--rose-ink); }
.notes-sub { margin: 0; padding: 6px 12px; background: var(--ivory); font-size: 15px; color: var(--brown); }
.notes-closed { text-align: center; font-style: italic; color: var(--brown); }

/* ---------- composer: stationery card ---------- */
.note-form { position: relative; display: grid; gap: 14px; padding: 30px clamp(18px, 4vw, 34px) 22px; background-color: var(--ivory); background-image: repeating-linear-gradient(transparent 0 31px, rgba(90, 59, 42, .08) 31px 32px), var(--grain); box-shadow: 0 22px 34px -22px rgba(59, 37, 27, .55); }
.note-form::before { content: ""; position: absolute; top: -12px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: rgba(245, 184, 200, .85); transform: rotate(-3deg); clip-path: polygon(2% 0, 98% 6%, 100% 94%, 0 100%); }
.note-form--reply { margin: 14px 0 4px; padding: 22px 18px 16px; box-shadow: 0 12px 20px -14px rgba(59, 37, 27, .5); }
.note-form--reply::before { width: 70px; margin-left: -35px; height: 20px; top: -9px; }
.note-form-title { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 26px; line-height: 1.1; color: var(--burgundy); }
.note-form--reply .note-form-title { font-size: 20px; }
.note-as { margin: 0; font-size: 14px; color: var(--brown); }
.note-field { display: grid; gap: 5px; }
.note-field > span { font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-ink); }
.note-field input, .note-field textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(94, 22, 36, .3); border-radius: 0; background: #fff; font: 16px/1.55 var(--f-body); color: var(--cocoa); }
.note-field textarea { resize: vertical; min-height: 96px; }
.note-field input:focus, .note-field textarea:focus { outline: none; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(224, 125, 152, .25); }
.note-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note-form-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.note-chars { font-size: 12px; color: var(--brown); font-variant-numeric: tabular-nums; }
.note-form-btns { display: flex; gap: 8px; }
.note-send { border: 0; cursor: pointer; font-family: var(--f-body); }
.note-send:disabled { opacity: .6; cursor: progress; }
.note-cancel { padding: 10px 14px; border: 1px solid rgba(94, 22, 36, .35); background: var(--ivory); color: var(--burgundy); font: 500 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.note-form-msg { min-height: 20px; margin: 0; font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--burgundy); }
.note-form-msg.err { color: #A0283C; }

/* ---------- notes ---------- */
.notes-list, .note-replies { margin: 0; padding: 0; list-style: none; }
.notes-list { display: grid; gap: 22px; margin-top: 34px; }
.note { position: relative; }
.note-card { position: relative; padding: 18px 20px 12px; background-color: var(--ivory); background-image: var(--grain); box-shadow: 0 14px 24px -18px rgba(59, 37, 27, .55); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease); }
.note-card:hover { transform: rotate(0); }
.note-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px; }
.note-name { font-family: var(--f-display); font-weight: 500; font-size: 22px; line-height: 1.1; color: var(--burgundy); }
.note-badge { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--velvet); color: var(--ivory); font-size: 11px; line-height: 1; }
.note-time { font-size: 12px; color: var(--brown); opacity: .85; }
.note-flag { padding: 2px 8px; background: var(--butter); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--burgundy); }
.note-body { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--cocoa); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 8px; }
.note-act { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 6px 10px; border: 0; background: none; color: var(--rose-ink); font: 500 11.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.note-act:hover { color: var(--burgundy); background: rgba(242, 201, 207, .35); }
.note-like svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.note-like[aria-pressed="true"] { color: #C24466; }
.note-like[aria-pressed="true"] svg { fill: #E07D98; stroke: #C24466; }
.note-like.pop svg { animation: note-pop .45s var(--ease); }
@keyframes note-pop { 50% { transform: scale(1.4) rotate(-10deg); } }
.note-like-n { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.note-mod { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: auto; padding-left: 8px; border-left: 1px dashed rgba(94, 22, 36, .25); }
.note-act--mod { color: var(--brown); letter-spacing: .08em; }

/* Brittani's own notes */
.note--owner { background-color: #FBE7EC; box-shadow: 0 0 0 1px rgba(158, 74, 94, .35), 0 14px 24px -18px rgba(59, 37, 27, .55); }
.note-kiss { position: absolute; right: 14px; top: 10px; width: 64px; opacity: .85; mix-blend-mode: multiply; transform: rotate(12deg); pointer-events: none; }
.note--pending, .note--hidden { opacity: .72; outline: 1px dashed rgba(94, 22, 36, .45); }
.note--removed { background: transparent; box-shadow: none; padding: 8px 20px; }
.note--removed .note-body { font-style: italic; color: var(--brown); opacity: .8; }
.note--fresh { animation: note-arrive .7s var(--ease); }
@keyframes note-arrive { 0% { transform: translateY(-14px) rotate(-4deg) scale(.96); opacity: 0; } 100% { transform: rotate(var(--tilt, 0deg)); opacity: 1; } }

/* threads */
.note-replies { position: relative; display: grid; gap: 14px; margin: 14px 0 0 clamp(18px, 5vw, 44px); padding-left: clamp(12px, 3vw, 22px); }
.note-replies::before { content: ""; position: absolute; left: 0; top: -6px; bottom: 18px; border-left: 2px dashed rgba(158, 74, 94, .45); }
.note-replies > .note > .note-card::before { content: ""; position: absolute; left: calc(-1 * clamp(12px, 3vw, 22px)); top: 26px; width: clamp(10px, 2.6vw, 18px); border-top: 2px dashed rgba(158, 74, 94, .45); }
.note-replies .note-name { font-size: 20px; }

/* count sticker in the post header */
.notes-sticker { padding: 7px 14px 6px; background: var(--blush); color: var(--burgundy); font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transform: rotate(-2deg); box-shadow: 0 6px 12px -8px rgba(59, 37, 27, .5); }
.notes-sticker:hover { background: var(--velvet); color: var(--ivory); }

/* post anonymously */
.note-name-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px; }
.note-anon { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 4px; font-size: 14px; color: var(--burgundy); cursor: pointer; white-space: nowrap; }
.note-anon input { position: absolute; opacity: 0; }
.note-anon-box { position: relative; width: 22px; height: 22px; border: 1.5px solid var(--burgundy); background: #fff; }
.note-anon-box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid var(--rose-ink); border-width: 0 3px 3px 0; transform: rotate(40deg) scale(0); transition: transform .25s var(--ease); }
.note-anon input:checked + .note-anon-box::after { transform: rotate(40deg) scale(1); }
.note-anon input:focus-visible + .note-anon-box { outline: 2px solid var(--burgundy); outline-offset: 3px; }
.note-form.is-anon .note-field input[name="name"] { opacity: .45; background: var(--blush-2); }
.note-mask { display: inline-grid; width: 30px; color: var(--velvet); align-self: center; }
.note-mask svg { width: 100%; height: auto; }
.note-name--anon { font-style: italic; }

@media (max-width: 640px) {
  .note-name-row { grid-template-columns: 1fr; gap: 6px; }
  .notes-wall { padding: 84px 0 60px; }
  .note-card { padding: 14px 14px 8px; }
  .note-name { font-size: 20px; }
  .note-kiss { width: 46px; }
  .note-mod { margin-left: 0; border-left: 0; padding-left: 0; }
  .note-replies { margin-left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .note--fresh { animation: none; } }
