@import url('../component/comment/comment.css');

@font-face {
    font-family: WallNote;
    src: url('/public/assets/talk2wall/fonts/Gaegu-Regular.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family:WallHand;
    src:url('/public/assets/talk2wall/fonts/NanumPenScript-Regular.woff') format('woff');
    font-weight:400;
    font-display:swap;
}

@font-face {
    font-family:WallSans;
    src:url('/public/assets/talk2wall/fonts/NotoSansKR.woff') format('woff');
    font-weight:100 900;
    font-display:swap;
}

:root {
    --ink:#232424;
    --motion-ease-out:cubic-bezier(.23,1,.32,1);
    --motion-ease-spring:cubic-bezier(.16,1.4,.36,1);
    --muted:#84858c;
    --pink:#e86399;
    --sidebar:278px;
    --header:77px;
    --hand:WallHand,cursive;
    --sans:WallSans,-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',sans-serif;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
    color:var(--ink);
    font-family:var(--sans);
    font-size:15px;
    background:#f4f1eb;
}

button,input,textarea,select {
    font:inherit;
}

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

button {
    color:inherit;
    cursor:pointer;
}

button,a {
    touch-action:manipulation;
}

button {
    border:0;
}

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

html[data-input='pointer'] button:not(:disabled):not(.sidebar-scrim):active {
    transform:scale(.97);
}

button {
    transition:background-color 140ms ease,opacity 140ms ease,transform 140ms var(--motion-ease-out);
}

button:disabled {
    cursor:wait;
    opacity:.6;
}

button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline:2px solid #d74782;
    outline-offset:5px;
}

svg {
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0;
}

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

[hidden] {
    display:none!important;
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.skip-link {
    position:fixed;
    left:20px;
    top:-100px;
    z-index:100;
    padding:12px 20px;
    background:white;
    border-radius:8px;
}

.skip-link:focus {
    top:10px;
}

.topbar {
    height:var(--header);
    position:fixed;
    inset:0 0 auto;
    z-index:20;
    display:flex;
    align-items:center;
    gap:32px;
    padding:9px 42px;
    background:#fcfcfdee;
    border-bottom:1px solid #dedee1;
    backdrop-filter:blur(15px);
}

.brand {
    flex:0 0 calc(var(--sidebar) - 42px);
    height:63px;
    display:flex;
    align-items:center;
}

.brand img {
    width:245px;
    max-height:62px;
}

.top-nav {
    display:flex;
    align-items:center;
    gap:13px;
    white-space:nowrap;
    margin-left:25px;
}

.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:11px;
    background:transparent;
    white-space:nowrap;
    font-weight:500;
}

.top-nav .nav-item {
    padding:10px 16px;
    font-size:15px;
    min-height:42px;
}

.nav-item.active {
    background:#fbd0e3;
    color:#151515;
}

.top-nav .nav-item svg {
    width:22px;
    height:22px;
}

.search {
    display:flex;
    align-items:center;
    flex:1;
    min-width:150px;
    max-width:323px;
    height:44px;
    border-radius:30px;
    border:1px solid #e0e1e5;
    background:#f1f2f4;
    margin-left:auto;
    padding:0 10px 0 19px;
}

.search input {
    border:0;
    outline:0;
    background:transparent;
    min-width:0;
    width:100%;
    font-size:14px;
    color:var(--ink);
}

.search input:focus-visible {
    outline:0;
}

.search:focus-within {
    box-shadow:0 0 0 3px #edc5d6;
    border-color:#e1a0bb;
}

.search input::placeholder {
    color:#82858e;
}

.search input::-webkit-search-cancel-button {
    cursor:pointer;
}

.icon-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    background:transparent;
    width:38px;
    height:38px;
    border-radius:9px;
    padding:7px;
}

.header-actions {
    display:flex;
    align-items:center;
    gap:21px;
}

.header-divider {
    width:1px;
    height:22px;
    background:#e5e5e9;
}

.avatar-button {
    background:transparent;
    padding:0;
    border-radius:50%;
    width:51px;
    height:51px;
}

.avatar-button img {
    width:100%;
    height:100%;
}

.popover-wrap {
    position:relative;
}

.popover {
    position:absolute;
    right:0;
    top:calc(100% + 18px);
    min-width:195px;
    background:#fffefb;
    padding:8px;
    border:1px solid #e4e0da;
    border-radius:13px;
    box-shadow:0 10px 35px #39322b20;
    z-index:25;
}

.popover a,.popover button {
    display:block;
    width:100%;
    text-align:left;
    font-size:13px;
    padding:11px 13px;
    border-radius:7px;
    background:none;
}

.popover a:hover,.popover button:hover {
    background:#fbe7ef;
}

.notification-panel {
    width:260px;
    padding:23px;
}

.notification-panel strong {
    font-size:15px;
}

.notification-panel p {
    font-size:13px;
    line-height:1.9;
    color:var(--muted);
}

.notification-panel img {
    width:34px;
    margin-left:auto;
}

.mobile-menu {
    display:none;
}

.sidebar {
    position:fixed;
    top:var(--header);
    bottom:0;
    left:0;
    width:var(--sidebar);
    z-index:15;
    padding:45px 27px 24px 33px;
    background:#fafafbec;
    border-right:1px solid #e4e1de;
    overflow-y:auto;
}

.write-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    width:100%;
    height:62px;
    background:var(--pink);
    color:white;
    font-size:19px;
    font-weight:600;
    border-radius:13px;
    box-shadow:inset 0 1px 1px #ffffff30;
}

.write-button svg {
    width:22px;
    height:22px;
    fill:currentColor;
    stroke-width:1.2;
}

.side-nav {
    display:flex;
    flex-direction:column;
    gap:2px;
    margin-top:24px;
    padding-bottom:23px;
    border-bottom:1px solid #dddfe4;
}

.side-nav .nav-item {
    font-size:17px;
    min-height:49px;
    padding:11px 17px;
    gap:15px;
}

.side-nav .nav-item.active {
    background:#fbe1ed;
}

.sidebar-bottom {
    margin-top:34px;
}

.little-letter {
    min-height:216px;
    border:1px solid #d4d3d8;
    border-radius:9px;
    padding:23px 23px 18px;
    color:#727273;
}

.little-letter p {
    font-family:var(--hand);
    font-size:27px;
    line-height:1.36;
    transform:rotate(-4deg);
    margin:0 0 12px;
}

.little-letter img {
    width:34px;
    height:38px;
    opacity:.6;
    transform:rotate(-8deg);
}

.sidebar-signature {
    font-family:var(--hand);
    font-size:27px;
    margin:9px 0 -5px 16px;
}

.sidebar-caption {
    font-size:14px;
    color:var(--muted);
    margin:0 0 0 16px;
}

.preview-label {
    display:inline-block;
    font-size:10px;
    color:#99717f;
    margin:24px 0 0 16px;
    letter-spacing:.02em;
}

.sidebar-scrim {
    display:none;
}

.wall-main {
    margin-left:var(--sidebar);
    padding:var(--header) 26px 24px;
    min-height:100vh;
    background-color:#f0ede7;
    background-image:linear-gradient(#ffffff18,#ffffff18),url('/public/assets/talk2wall/wall-texture.png');
    background-size:auto,800px 800px;
}

.hero {
    position:relative;
    min-height:266px;
    padding-top:31px;
    padding-bottom:17px;
}

.hero-content {
    position:relative;
    z-index:2;
    width:calc(100% - 444px);
    max-width:880px;
    min-width:600px;
    margin-left:150px;
}

.hero h1 {
    margin:0 auto 8px;
    max-width:620px;
    min-height:70px;
    display:flex;
    align-items:center;
}

.hero h1 img {
    width:100%;
    max-height:76px;
    object-fit:contain;
}

.hero-subtitle {
    text-align:center;
    margin:0 0 15px;
    font-size:16px;
    letter-spacing:-.045em;
}

.hero-star {
    position:absolute;
    left:9%;
    top:40px;
    width:61px;
    height:67px;
    transform:rotate(-9deg);
}

.composer {
    height:101px;
    border:1px solid #d5d4d6;
    border-radius:15px;
    background:#fcfcfdf0;
    box-shadow:0 3px 9px #3431281c;
    overflow:hidden;
    padding:12px 16px 11px 21px;
}

.composer textarea {
    resize:none;
    width:100%;
    height:30px;
    padding:0;
    border:0;
    background:transparent;
    font-family:WallNote,var(--hand);
    font-size:22px;
    line-height:30px;
    letter-spacing:-.45px;
    outline:0;
    color:var(--ink);
}

.composer textarea:focus-visible {
    outline:0;
}

.composer:focus-within {
    border-color:#d98bab;
    box-shadow:0 0 0 3px #edc5d64d;
}

.composer textarea::placeholder {
    color:#9699a3;
    font-family:var(--sans);
    font-size:16px;
    letter-spacing:normal;
}

.composer-bottom {
    display:flex;
    align-items:center;
    gap:20px;
    height:37px;
    margin-top:2px;
}

.image-button {
    width:35px;
    height:35px;
    background:#eff0f2;
    color:#7c7e84;
}

.image-button svg {
    width:23px;
    height:23px;
}

.composer-count {
    margin-left:auto;
    color:#92949c;
    font-size:15px;
    font-variant-numeric:tabular-nums;
}

.post-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:99px;
    min-height:38px;
    padding:8px 20px;
    color:#fff;
    background:linear-gradient(160deg,#383837,#272727);
    border-radius:10px;
    box-shadow:0 2px 5px #0002;
    font-size:14px;
    font-weight:500;
}

.hero-decoration {
    position:absolute;
    right:0;
    top:20px;
    width:289px;
    display:flex;
    align-items:flex-start;
    gap:21px;
    pointer-events:none;
}

.hero-quote {
    width:184px;
    height:243px;
    object-fit:contain;
    filter:drop-shadow(2px 5px 3px #33271815);
    transform:rotate(-7deg);
}

.margin-note {
    width:83px;
    height:238px;
    object-fit:contain;
    margin-top:20px;
}

.wall-toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin:0 0 17px;
    min-height:38px;
}

.categories {
    display:flex;
    align-items:center;
    gap:12px;
    overflow-x:auto;
    scrollbar-width:none;
}

.categories::-webkit-scrollbar {
    display:none;
}

.category {
    min-width:68px;
    min-height:38px;
    padding:7px 22px;
    border-radius:15px;
    background:#f9f8f5c9;
    font-size:14px;
    font-weight:500;
    white-space:nowrap;
}

.category.active {
    background:linear-gradient(145deg,#2f3030,#222323);
    color:white;
    box-shadow:0 1px 2px #0002;
}

.sort-wrap {
    position:relative;
    display:flex;
    align-items:center;
    flex-shrink:0;
}

.sort-wrap select {
    appearance:none;
    background:transparent;
    border:0;
    padding:8px 31px 8px 8px;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    color:#252525;
}

.sort-wrap svg {
    position:absolute;
    right:4px;
    pointer-events:none;
    width:18px;
    height:18px;
}

.wall-context {
    display:flex;
    gap:15px;
    align-items:center;
    justify-content:space-between;
    font-size:12px;
    color:#65636a;
    margin:0 2px 18px;
    line-height:1.8;
}

.wall-context button {
    background:transparent;
    white-space:nowrap;
    font-size:12px;
    color:#a64b71;
}

.wall-context button span {
    font-size:20px;
    margin-left:4px;
}

.notes-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:17px 17px;
    align-items:stretch;
}

.note {
    position:relative;
    isolation:isolate;
    min-width:0;
    min-height:164px;
    display:flex;
    flex-direction:column;
    padding:12px 22px 13px;
    filter:drop-shadow(2px 5px 4px #4c3f2c1c);
    transform:rotate(var(--rotation,-.5deg));
    transition:transform 180ms cubic-bezier(.23,1,.32,1);
    outline-offset:4px;
}

.note::before {
    content:'';
    position:absolute;
    inset:0;
    z-index:-2;
    background:var(--paper,#f9d0df);
    clip-path:polygon(.4% .7%,99.6% 0,100% 92%,98% 98.5%,92% 100%,.5% 99.5%,0 8%);
    box-shadow:inset 0 1px 0 #fff7;
}

.note::after {
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background-image:url('/public/assets/talk2wall/wall-texture.png');
    background-size:450px;
    opacity:.22;
    mix-blend-mode:multiply;
    clip-path:polygon(.4% .7%,99.6% 0,100% 92%,98% 98.5%,92% 100%,.5% 99.5%,0 8%);
}

.note-time {
    font-size:12px;
    color:#78777c;
    line-height:1.7;
}

.note-link {
    display:block;
    flex:1;
    min-height:88px;
    margin:5px 0 8px;
    outline-offset:3px;
}

.note-copy {
    display:block;
    font-family:WallNote,var(--hand);
    font-size:25px;
    line-height:1.08;
    letter-spacing:-.015em;
    white-space:pre-line;
    overflow-wrap:anywhere;
    max-height:113px;
    overflow:hidden;
    color:#171b1b;
    padding-right:0;
}

.note.has-doodle .note-copy {
    padding-right:4px;
}

.note-doodle {
    position:absolute;
    bottom:26px;
    right:16px;
    width:39px;
    height:44px;
    object-fit:contain;
    pointer-events:none;
}

.note-doodle.doodle-cat {
    width:78px;
    height:49px;
    bottom:31px;
    right:14px;
}

.note-doodle.doodle-cloud {
    width:47px;
    height:40px;
}

.note-doodle.doodle-sprout {
    width:43px;
    height:61px;
}

.note-doodle.doodle-star {
    width:44px;
    height:50px;
}

.note-stats {
    display:flex;
    gap:23px;
    align-items:center;
    font-size:12px;
    line-height:18px;
    position:relative;
    z-index:1;
}

.note-stat {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:0;
    background:transparent;
    font-size:12px;
    min-height:21px;
    font-variant-numeric:tabular-nums;
}

.note-stat svg {
    fill:none;
    width:17px;
    height:17px;
    stroke-width:1.5;
}

.note-stat[aria-pressed=true] {
    color:#e34554;
}

.note-stat[aria-pressed=true] svg {
    fill:currentColor;
    stroke:currentColor;
}

.note-stat:focus-visible {
    outline-offset:4px;
}

.note-stat[aria-disabled=true] {
    opacity:.65;
}

.load-more {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    background:transparent;
    font-size:13px;
    margin:12px auto 0;
    color:#4b4946;
    padding:3px 12px;
    min-height:30px;
}

.load-more svg {
    width:18px;
    height:18px;
}

.preview-footnote {
    text-align:center;
    font-size:10px;
    color:#8e817b;
    margin:12px 0 0;
}

.empty-state {
    padding:55px 15px 70px;
    text-align:center;
}

.empty-state img {
    width:85px;
    height:70px;
    margin:0 auto 12px;
    opacity:.7;
}

.empty-state h2 {
    font-family:var(--hand);
    font-size:32px;
    font-weight:400;
    margin:8px;
}

.empty-state p {
    color:#817b76;
    font-size:14px;
    line-height:1.8;
}

.empty-state .post-button {
    margin-top:12px;
}

.skeleton-note {
    height:166px;
    background:#f9f6ef90;
    clip-path:polygon(0 1%,100% 0,99% 99%,1% 100%);
    opacity:.65;
}

.toast {
    position:fixed;
    left:calc(50% + var(--sidebar)/2);
    bottom:28px;
    transform:translateX(-50%);
    max-width:calc(100vw - 40px);
    width:max-content;
    padding:13px 23px;
    border-radius:13px;
    background:#292929f5;
    color:#fff;
    font-size:13px;
    line-height:1.8;
    text-align:center;
    box-shadow:0 5px 25px #0002;
    z-index:60;
}

/* The post stays on the page; replies are individual paper slips. */
.note-dialog {
    width: min(568px, calc(100% - 32px));
    max-height: 88dvh;
    padding: 33px 31px 22px;
    border: 1px solid #e8e0d6;
    border-radius: 14px;
    color: var(--ink);
    background: #faf8f3 url('/public/assets/talk2wall/wall-texture.png') center / 700px;
    box-shadow: 0 24px 90px #24190d40;
    scrollbar-width: thin;
    scrollbar-color: #c7bdb0 transparent;
}

.note-dialog::backdrop {
    background: #26232265;
    backdrop-filter: blur(4px);
}

.dialog-close {
    position: sticky;
    z-index: 5;
    top: 0;
    float: right;
    margin: -20px -17px 0 0;
    color: #8a8074;
    background: #faf8f3df;
    backdrop-filter: blur(6px);
}
.dialog-eyebrow { font-size: 10px; color: #a3998a; letter-spacing: .04em; }
.note-dialog h2 {
    margin: 9px 0 12px;
    color: #403c35;
    font: 400 34px/1.2 var(--hand);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.dialog-copy {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 19px 22px;
    border: 0;
    border-radius: 0;
    color: #252a29;
    background: transparent;
    filter: drop-shadow(1px 3px 3px #4c3f2c16);
    font: 400 26px/1.35 WallNote,var(--hand);
    letter-spacing: -.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dialog-copy::before,
.dialog-copy::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    clip-path: polygon(.3% .7%,99.6% 0,100% 95%,99% 99%,.3% 100%,0 7%);
}

.dialog-copy::before { z-index: -2; background: var(--paper, #fff2a8); }
.dialog-copy::after {
    z-index: -1;
    background: url('/public/assets/talk2wall/wall-texture.png') center / 450px;
    opacity: .16;
    mix-blend-mode: multiply;
}

.dialog-stats {
    padding: 15px 2px 20px;
    border-bottom: 1px solid #d8cec080;
    color: #8b7c6c;
    font-size: 12px;
}

.dialog-owner-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.dialog-owner-actions a {
    padding: 5px 9px;
    border: 1px solid #ded3c7;
    border-radius: 6px;
    color: #8b7c6c;
    background: #fffaf380;
    font-size: 10px;
    line-height: 1.5;
}
.dialog-comment-status {
    margin: 10px 4px;
    color: #978778;
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
    overflow-wrap: anywhere;
}
.dialog-comment-more {
    display: block;
    min-height: 34px;
    margin: 8px auto 0;
    padding: 6px 13px;
    border: 1px solid #ddd2c4;
    border-radius: 7px;
    color: #8b7c6c;
    background: #fffaf380;
    font-size: 11px;
}

.reply-section { margin-top: 20px; }
.reply-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.reply-heading h3 { margin: 0; color: #484b48; font: 400 25px/1.3 var(--hand); }
.reply-heading > span { color: #8c8e89; font-size: 11px; }
.demo-comments { display: flex; flex-direction: column; gap: 13px; padding: 2px 0 5px; }
.demo-comment-empty {
    margin: 2px 4px 9px;
    padding: 20px 13px;
    border: 1px dashed #d9d1c5;
    border-radius: 8px;
    color: #a19587;
    font-size: 11px;
    line-height: 1.9;
    text-align: center;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid #ded6ca;
    border-radius: 11px;
    background: #fffdf9;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.comment-form:focus-within { border-color: #dc98b4; box-shadow: 0 0 0 3px #edc5d64d; }
.comment-form textarea {
    width: 100%;
    min-height: 75px;
    max-height: 180px;
    padding: 15px 17px 8px;
    border: 0;
    outline: 0;
    color: #50483e;
    background: transparent;
    font: 400 22px/1.4 'Reply Hand', cursive;
    letter-spacing: -.5px;
    resize: none;
    overflow-y: auto;
}
.comment-form textarea::placeholder { color: #aba093; }
.comment-form-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 9px 9px 17px; }
.comment-form-bottom > span { color: #b2a899; font-size: 10px; font-variant-numeric: tabular-nums; }
.comment-form .post-button { min-height: 34px; padding: 7px 14px; border-radius: 7px; gap: 11px; font-size: 11px; }
.comment-form .post-button > span { font-size: 16px; line-height: 1; }
.dialog-hint { margin: 13px 0 0; color: #aa9f90; font-size: 9px; line-height: 1.8; text-align: center; }

@media(hover:hover) and (pointer:fine) {
    .nav-item:not(.active):hover {
        background:#f1ecee;
    }
    .write-button:hover {
        background:#dc518a;
    }
    .post-button:hover {
        background:#141414;
        box-shadow:0 3px 8px #0003;
    }
    .icon-button:hover {
        background:#e9e8e8;
    }
    .category:not(.active):hover {
        background:#fff;
    }
    html[data-input='pointer'] .note:hover {
        transform:translateY(-3px) rotate(0deg);
        z-index:3;
    }
    .note-stat:not([aria-pressed=true]):hover {
        color:#bd4977;
    }
    .load-more:hover {
        color:#c7497e;
    }
}

@media(min-width:1800px) {
    .hero-content {
        width:calc(100% - 480px);
        max-width:1000px;
        margin-inline:auto;
    }
    .hero {
        padding-top:39px;
        min-height:286px;
    }
    .hero-decoration {
        right:12px;
    }
    .note {
        min-height:190px;
    }
    .note-copy {
        font-size:29px;
        line-height:1.15;
    }
    .note-link {
        min-height:110px;
    }
    .notes-grid {
        gap:22px;
    }
}

@media(max-width:1500px) {
    :root {
        --sidebar:244px;
    }
    .topbar {
        padding-inline:28px;
        gap:19px;
    }
    .brand {
        flex-basis:calc(var(--sidebar) - 28px);
    }
    .brand img {
        width:217px;
    }
    .top-nav {
        gap:4px;
        margin-left:0;
    }
    .top-nav .nav-item {
        padding-inline:13px;
        font-size:13px;
        gap:9px;
    }
    .header-actions {
        gap:12px;
    }
    .sidebar {
        padding:37px 24px;
    }
    .write-button {
        font-size:17px;
    }
    .side-nav .nav-item {
        font-size:15px;
        padding-inline:14px;
    }
    .little-letter {
        padding:21px 16px;
    }
    .little-letter p {
        font-size:26px;
    }
    .hero-content {
        width:calc(100% - 335px);
        min-width:0;
        margin-left:90px;
    }
    .hero-decoration {
        width:225px;
        gap:9px;
    }
    .hero-quote {
        width:152px;
        height:225px;
    }
    .margin-note {
        width:65px;
        height:213px;
    }
    .hero-star {
        left:3%;
        width:51px;
    }
    .hero h1 {
        min-height:65px;
    }
    .hero-subtitle {
        font-size:14px;
    }
    .hero {
        min-height:258px;
    }
    .note {
        padding-inline:17px;
    }
    .note-copy {
        font-size:24px;
    }
    .note-stats {
        gap:18px;
    }
    .category {
        min-width:60px;
        padding-inline:18px;
    }
    .categories {
        gap:10px;
    }
}

@media(max-width:1220px) {
    :root {
        --sidebar:215px;
        --header:72px;
    }
    .topbar {
        padding-inline:23px;
        gap:18px;
    }
    .brand {
        flex-basis:calc(var(--sidebar) - 23px);
    }
    .brand img {
        width:192px;
    }
    .top-nav .nav-item {
        padding-inline:10px;
    }
    .top-nav .nav-item[data-view=liked] {
        display:none;
    }
    .search {
        max-width:265px;
    }
    .header-actions {
        gap:10px;
    }
    .avatar-button {
        width:44px;
        height:44px;
    }
    .header-divider {
        display:none;
    }
    .sidebar {
        padding:32px 18px;
    }
    .side-nav .nav-item {
        font-size:14px;
        gap:11px;
        padding-inline:12px;
    }
    .write-button {
        height:56px;
        font-size:16px;
        gap:8px;
    }
    .little-letter {
        padding:22px 14px;
        min-height:190px;
    }
    .little-letter p {
        font-size:24px;
    }
    .wall-main {
        padding-inline:22px;
    }
    .hero-content {
        width:calc(100% - 260px);
        margin-left:55px;
    }
    .hero-decoration {
        width:190px;
        gap:8px;
        top:25px;
    }
    .hero-quote {
        width:140px;
        height:211px;
    }
    .margin-note {
        width:52px;
        height:186px;
    }
    .hero-star {
        left:0;
        top:42px;
        width:41px;
    }
    .hero h1 {
        min-height:60px;
    }
    .hero-subtitle {
        font-size:12px;
        letter-spacing:-.04em;
        white-space:nowrap;
    }
    .hero {
        padding-top:32px;
        min-height:245px;
    }
    .notes-grid {
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:17px;
    }
    .category {
        min-width:55px;
        padding-inline:16px;
    }
    .categories {
        gap:8px;
    }
    .note {
        min-height:168px;
    }
    .note-copy {
        font-size:24px;
    }
    .sort-wrap select {
        font-size:13px;
    }
}

@media(max-width:1000px) {
    .top-nav {
        gap:2px;
    }
    .top-nav .nav-item {
        padding:10px;
    }
    .top-nav .nav-item span {
        display:none;
    }
    .search {
        max-width:280px;
    }
    .hero-content {
        margin-left:10px;
        width:calc(100% - 170px);
    }
    .hero-star {
        display:none;
    }
    .hero-decoration {
        right:-4px;
        width:143px;
        top:35px;
    }
    .hero-quote {
        width:143px;
        height:200px;
    }
    .margin-note {
        display:none;
    }
    .hero h1 {
        min-height:52px;
    }
    .hero-subtitle {
        font-size:11px;
    }
    .hero {
        min-height:235px;
    }
    .categories {
        gap:6px;
    }
    .category {
        font-size:12px;
        padding-inline:13px;
        min-width:46px;
        min-height:35px;
        border-radius:12px;
    }
    .wall-toolbar {
        gap:8px;
    }
    .notes-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .note-copy {
        font-size:25px;
    }
    .note {
        padding-inline:18px;
    }
}

@media(max-width:760px) {
    :root {
        --sidebar:0px;
        --header:68px;
    }
    .topbar {
        padding:9px 18px;
        gap:12px;
    }
    .mobile-menu {
        display:inline-flex;
        width:29px;
        padding:2px;
    }
    .brand {
        flex-basis:156px;
        height:48px;
    }
    .brand img {
        width:156px;
        height:48px;
    }
    .top-nav {
        display:none;
    }
    .header-actions {
        margin-left:auto;
    }
    .avatar-button {
        width:39px;
        height:39px;
    }
    .search {
        max-width:none;
        margin-left:auto;
        height:38px;
        padding-left:12px;
    }
    .search input {
        font-size:12px;
    }
    .search .icon-button {
        width:30px;
        height:30px;
        padding:6px;
    }
    .notification-button {
        width:30px;
        padding:4px;
    }
    .header-actions {
        gap:8px;
    }
    .sidebar {
        width:245px;
        transform:translateX(-100%);
        transition:transform 240ms cubic-bezier(.32,.72,0,1);
        padding:28px 22px;
    }
    .sidebar.open {
        transform:translateX(0);
    }
    .sidebar-scrim:not([hidden]) {
        display:block;
        position:fixed;
        inset:var(--header) 0 0;
        z-index:14;
        background:#28222245;
        backdrop-filter:blur(2px);
        border:0;
    }
    .wall-main {
        padding-inline:21px;
    }
    .hero {
        padding-top:26px;
        min-height:245px;
    }
    .hero-content {
        margin-left:0;
        width:calc(100% - 157px);
    }
    .hero h1 {
        min-height:55px;
    }
    .hero-subtitle {
        font-size:12px;
        white-space:normal;
        line-height:1.7;
        margin-bottom:14px;
    }
    .hero-quote {
        width:140px;
    }
    .hero-decoration {
        top:25px;
        right:-4px;
    }
    .composer {
        padding-left:15px;
    }
    .composer textarea {
        font-size:20px;
    }
    .composer textarea::placeholder { font-size:14px; }
    .composer-bottom {
        gap:12px;
    }
    .composer-count {
        font-size:12px;
    }
    .post-button {
        min-width:76px;
    }
    .notes-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:15px;
    }
    .note {
        min-height:164px;
        padding:12px 15px;
    }
    .note-copy {
        font-size:24px;
    }
    .categories {
        gap:7px;
    }
    .category {
        padding-inline:15px;
    }
    .toast {
        left:50%;
        font-size:12px;
    }
    .little-letter p {
        font-size:27px;
    }
    .sidebar-caption {
        font-size:13px;
    }
    .wall-toolbar {
        margin-bottom:18px;
    }
}

@media(max-width:560px) {
    :root {
        --header:64px;
    }
    .topbar {
        padding-inline:13px;
        gap:8px;
        flex-wrap:nowrap;
    }
    .brand {
        flex-basis:146px;
        flex-shrink:0;
    }
    .brand img {
        width:146px;
    }
    .mobile-menu {
        width:25px;
    }
    .search {
        position:absolute;
        left:15px;
        right:15px;
        top:calc(100% + 14px);
        height:39px;
        background:#fcfbf8e8;
        max-width:none;
        min-width:0;
        border-color:#d6d2c9;
        z-index:2;
    }
    .search input {
        font-size:12px;
    }
    .header-actions {
        gap:11px;
    }
    .header-actions .icon-button {
        width:30px;
        height:33px;
    }
    .avatar-button {
        width:37px;
        height:37px;
    }
    .hero {
        padding-top:73px;
        min-height:298px;
    }
    .wall-main {
        padding-inline:15px;
        padding-bottom:25px;
    }
    .hero-content {
        width:100%;
        margin:0;
    }
    .hero h1 {
        max-width:390px;
        min-height:46px;
        margin-bottom:9px;
        padding-inline:2px;
    }
    .hero-subtitle {
        font-size:12px;
        margin:0 0 18px;
        letter-spacing:-.05em;
    }
    .hero-decoration {
        display:none;
    }
    .composer {
        height:101px;
        border-radius:13px;
        padding:12px 12px 10px 15px;
    }
    .composer textarea {
        font-size:20px;
    }
    .composer textarea::placeholder { font-size:14px; }
    .composer-bottom {
        margin-top:4px;
    }
    .composer-count {
        font-size:12px;
    }
    .post-button {
        font-size:13px;
        min-height:36px;
        min-width:81px;
    }
    .wall-toolbar {
        align-items:center;
        margin-bottom:16px;
        gap:7px;
    }
    .categories {
        gap:6px;
        flex:1;
    }
    .category {
        font-size:12px;
        padding:7px 14px;
        min-width:47px;
        min-height:34px;
        border-radius:12px;
    }
    .sort-wrap select {
        padding-left:3px;
        padding-right:24px;
        font-size:12px;
    }
    .sort-wrap svg {
        width:15px;
    }
    .notes-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:15px 13px;
    }
    .note {
        padding:11px 14px 12px;
        min-height:169px;
    }
    .note-link {
        min-height:98px;
        margin-top:6px;
    }
    .note-copy {
        font-size:24px;
        line-height:1.13;
        max-height:116px;
    }
    .note-time {
        font-size:10px;
    }
    .note-stats {
        font-size:11px;
        gap:18px;
    }
    .note-stat {
        font-size:11px;
        gap:5px;
    }
    .note-stat svg {
        width:16px;
        height:16px;
    }
    .note-doodle {
        width:31px;
        height:38px;
        right:13px;
        bottom:31px;
    }
    .note-doodle.doodle-cat {
        width:60px;
        height:40px;
        right:8px;
    }
    .note-doodle.doodle-star {
        width:35px;
        height:43px;
    }
    .note-doodle.doodle-sprout {
        width:34px;
        height:48px;
    }
    .note-doodle.doodle-cloud {
        width:38px;
        height:34px;
    }
    .popover {
        top:calc(100% + 15px);
    }
    .notification-panel {
        right:-50px;
    }
    .wall-context {
        font-size:11px;
        align-items:flex-start;
        gap:8px;
    }
    .preview-footnote {
        font-size:9px;
        line-height:1.8;
        margin:16px 25px 0;
    }
    .note-dialog { width: calc(100% - 24px); padding: 30px 17px 18px; }
    .dialog-copy { padding: 13px 15px; font-size: 24px; }
    .comment-form textarea { font-size: 20px; padding-inline: 13px; }
    .comment-form-bottom { padding-left: 13px; }
    .toast {
        bottom:20px;
        max-width:calc(100% - 28px);
        padding:12px 16px;
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior:auto!important;
        transition:none!important;
        animation:none!important;
    }
    .note:hover {
        transform:rotate(var(--rotation));
    }
}

/* Preserve the charcoal action in the empty composer, as in the reference. */
.post-button:disabled { opacity: .8; cursor: default; }

/* Keep every sheet on the same baseline, including long dynamic posts. */
.note {
    height: 167px;
    min-height: 0;
}
.note-link {
    min-height: 0;
    overflow: hidden;
}
.note-copy {
    font-family: WallNote, var(--hand);
    font-size: 22px;
    line-height: 1.24;
    letter-spacing: -1.1px;
    max-height: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.preview-note-art {
    width: 100%;
    height: 88px;
    object-fit: contain;
    object-position: left top;
}
.dialog-stats {
    display: flex;
    gap: 23px;
    align-items: center;
}
@media (min-width: 1800px) {
    .note { height: 190px; }
}
@media (max-width: 560px) {
    .note { height: 172px; }
    .note-copy { font-size: 20px; line-height: 1.35; letter-spacing: -.9px; }
}

/* Give a longer thought room while the composer is being edited. */
.composer:focus-within {
    height: auto;
    min-height: 101px;
}
.composer:focus-within textarea {
    height: 78px;
}

.preview-note-art { display: none; }
.little-letter .sidebar-letter-art {
    width: 165px;
    height: 106px;
    margin: 0 0 12px;
    opacity: .74;
    transform: none;
}
@media (min-width: 1001px) {
    .preview-note-art { display: block; }
    .note-copy.with-preview-art { display: none; }
}

@media (min-width: 1501px) and (max-width: 1799px) {
    .hero { padding-top: 28px; padding-bottom: 15px; }
    .hero h1 { height: 76px; }
    .hero h1 img { height: auto; max-height: none; }
}
@media (min-width: 761px) and (max-width: 1799px) {
    .note { height: 162px; }
}
@media (min-width: 1001px) {
    .preview-note-art { transform: scale(1.04); transform-origin: top left; }
}
.load-more { margin-top: 2px; min-height: 24px; padding-block: 0; }

.composer-category {
    width: 65px;
    min-height: 32px;
    padding: 3px 5px;
    border: 0;
    border-radius: 7px;
    color: #87828a;
    background: #f0eeef;
    font-size: 11px;
    cursor: pointer;
}
.composer:has(.composer-attachment:not([hidden])) { height: auto; }
.composer-attachment { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 7px; border-radius: 8px; background: #f4eff1; }
.composer-attachment img { width: 48px; height: 40px; border-radius: 4px; object-fit: cover; }
.composer-attachment span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b7a83; font-size: 11px; }
.composer-attachment button { width: 30px; height: 30px; border-radius: 6px; background: #fff9; color: #9f7084; font-size: 20px; }
.note-image-mark { display: inline-flex; margin-left: auto; color: #837a79; }
.note-image-mark svg { width: 15px; height: 15px; }
.notification-badge { position: absolute; top: -3px; right: -1px; z-index: 1; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #fff; border-radius: 20px; background: #e86399; color: #fff; font-size: 8px; line-height: 12px; text-align: center; pointer-events: none; }
.notification-panel { width: 315px; padding: 15px; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 3px 5px 10px; }
.notification-heading strong { font-size: 13px; }
.notification-heading button { width: auto; padding: 4px; color: #ae8a9a; font-size: 10px; }
.notification-list { max-height: 350px; overflow-y: auto; }
.notification-panel .notification-item { display: flex; flex-direction: column; gap: 5px; padding: 13px 11px; color: #766a6e; font-size: 12px; line-height: 1.7; }
.notification-panel .notification-item.unread { background: #fcebf2; }
.notification-item time { color: #a8989f; font-size: 9px; }
.notification-panel > button { text-align: center; font-size: 11px; color: #a77a8c; }
.dialog-image { width: 100%; max-height: 250px; margin-top: 14px; border-radius: 6px; object-fit: contain; }
@media (max-width: 560px) {
    .composer-bottom { gap: 10px; }
    .composer-category { width: 59px; }
    .notification-panel { width: min(300px, calc(100vw - 28px)); }
}

.note-stat svg { transform-origin: center; }
.note-stat span { display: inline-block; font-variant-numeric: tabular-nums; }
.popover { transform-origin: top right; }
.composer { position: relative; }
.composer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid #dd94b1;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 180ms var(--motion-ease-out);
}
.composer:focus-within::after { opacity: 1; }
.composer .image-button svg { transition: transform 180ms var(--motion-ease-out); }
html[data-input='pointer'] .composer .image-button:active svg { transform: rotate(-8deg) scale(.94); }
.note-dialog::backdrop { transition: opacity 180ms var(--motion-ease-out); }
.note-dialog[data-closing]::backdrop { opacity: 0; }
html[data-input='keyboard'] :is(button, .note, .sidebar, .search),
html[data-input='keyboard'] .composer::after { transition-duration: 0ms; }
html[data-input='keyboard'] .note-dialog::backdrop { transition-duration: 0ms; }
@media (prefers-reduced-motion: reduce) {
    html[data-input='pointer'] .note:hover { transform: rotate(var(--rotation)); }
    html[data-input='pointer'] button:not(:disabled):active { transform: none; }
    html[data-input='pointer'] .composer .image-button:active svg { transform: none; }
}

@starting-style {
    html[data-input='pointer'] .note-dialog[open]::backdrop { opacity: 0; }
}

@media (max-width: 760px) {
    .search { transition: opacity 140ms var(--motion-ease-out); }
    .sidebar-open .search { opacity: 0; pointer-events: none; }
}

.note > .agent-badge {
    position: absolute;
    top: 13px;
    right: 15px;
}
