/* SweetTweet: cream paper, plum ink, berry and honey. Fonts: Sniglet (headings, OFL) + Mulish (text, OFL), self-hosted. */
@font-face { font-family: "Sniglet"; font-weight: 400; font-style: normal; font-display: swap; src: url(/s/fonts/sniglet-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sniglet"; font-weight: 800; font-style: normal; font-display: swap; src: url(/s/fonts/sniglet-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-style: normal; font-display: swap; src: url(/s/fonts/mulish-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-style: italic; font-display: swap; src: url(/s/fonts/mulish-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-style: normal; font-display: swap; src: url(/s/fonts/mulish-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 800; font-style: normal; font-display: swap; src: url(/s/fonts/mulish-latin-800-normal.woff2) format("woff2"); }

:root {
  --cream: #fff7ec; --bg: #fff7ec; --card: #ffffff; --ink: #3b1f2b; --plum: #3b1f2b; --muted: #7b6470;
  --berry: #c42a63; --berry-2: #e64b86; --honey: #f4b63f; --mint: #bfe3d0; --rose: #ffd6e4; --sky: #d9ecff;
  --line: #ecdccb; --focus: #1e66d0; --ok: #1f7a54; --warn: #a24a00;
  --r: 22px; --shadow: 0 2px 0 var(--line), 0 10px 24px -14px rgba(59, 31, 43, .35);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #24141c; --card: #311d27; --ink: #fbeef3; --muted: #cbb3bf; --line: #4a2f3c; --berry: #ff6f9f; --berry-2: #ff8fb6;
          --rose: #5a2d40; --mint: #2d5a47; --sky: #24405a; --focus: #8ab8ff; --ok: #6fd3a5; --warn: #ffb36b; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 Mulish, system-ui, sans-serif; overflow-wrap: break-word; }
h1, h2, h3, .h3 { font-family: Sniglet, Mulish, sans-serif; font-weight: 800; line-height: 1.18; letter-spacing: .005em; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 3.6vw, 1.9rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--berry); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--honey); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
img, svg, canvas { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 9; }
.skip:focus { left: 8px; }
.small { font-size: .88rem; color: var(--muted); }
.muted { color: var(--muted); }

/* header */
.top { padding: 14px 16px 0; }
.top-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
          background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 14px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-name { font-family: Sniglet, sans-serif; font-size: 1.45rem; font-weight: 400; }
.brand-name b { color: var(--berry); font-weight: 800; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 999px; font-size: .97rem; }
.nav a:hover, .nav a[aria-current] { background: var(--rose); }
@media (max-width: 640px) {
  .top-in { border-radius: 26px; justify-content: center; padding: 10px; }
  .nav { justify-content: center; }
  .nav a { padding: 6px 10px; font-size: .92rem; }
}

main { display: block; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
.home main > section { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--plum);
       background: var(--berry); color: #fff; font: 800 1rem Mulish, sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--plum); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--plum); }
.btn-soft { background: var(--honey); color: #3b1f2b; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-x { background: #111; color: #fff; }
.btn[aria-disabled="true"] { opacity: .55; }
.btns { gap: 10px; flex-wrap: wrap; }
.chip-btn { display: inline-block; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 4px 12px;
            font: 700 .88rem Mulish, sans-serif; cursor: pointer; text-decoration: none; margin: 2px 2px; }
.chip-btn:hover { border-color: var(--berry); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; padding-top: 40px; }
.kicker { display: inline-block; background: var(--mint); color: var(--ink); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
          border-radius: 999px; padding: 4px 14px; margin: 0 0 .6em; }
.lead { font-size: 1.18rem; max-width: 40em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card { margin: 0; transform: rotate(2deg); }
.hero-card svg { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(59, 31, 43, .18)); }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero-card { max-width: 420px; transform: none; } }

/* steps */
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-list li { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.step-list h3 { margin: .3em 0 .3em; }
.step-list p { margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--berry); color: #fff; font: 800 1.1rem Sniglet, sans-serif; }
@media (max-width: 720px) { .step-list { grid-template-columns: 1fr; } }

/* sticky notes */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin: 10px 0 24px; }
.note { display: block; padding: 20px 20px 16px; border-radius: 6px 6px 22px 6px; color: #3b1f2b; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; }
.note h2, .note h3 { margin: .35em 0 .3em; font-size: 1.2rem; }
.note p { margin: 0; font-size: .97rem; }
.note:hover { transform: rotate(0) translateY(-3px) !important; }
.note-1 { background: #ffe4ee; transform: rotate(-1.2deg); }
.note-2 { background: #fff1c9; transform: rotate(.9deg); }
.note-3 { background: #dff3e8; transform: rotate(-.6deg); }
.note-4 { background: #e2efff; transform: rotate(1.1deg); }
.note-5 { background: #f1e6ff; transform: rotate(-.9deg); }
.note .ico { color: #c42a63; }

/* X section */
.xsec { margin-top: 40px; }
.xsec-in { background: var(--plum); color: #fbeef3; border-radius: 32px; padding: 26px 28px 20px; }
@media (prefers-color-scheme: dark) { .xsec-in { background: #3d2230; } }
.xsec-in h2 { margin-top: .2em; color: #fff; }
.xsec-in a { color: #ffd1e2; }
.xsec-in .small { color: #e3c9d4; }
.xsearch { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.xsearch a { display: inline-block; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 700; color: #fff; }
.xsearch a:hover { background: rgba(255, 255, 255, .22); }
.xbox { background: #fff; color: #3b1f2b; border-radius: 20px; padding: 14px; }
.xbox-l { font-weight: 800; display: block; margin-bottom: 6px; }
.xbox textarea { border-color: #ecdccb; background: #fff; color: #3b1f2b; }
.xbox-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.xbox-row .btn-x { margin-left: auto; }
.xtips { padding-left: 1.2em; margin: 16px 0 8px; }

/* forms and tools */
textarea, input[type=text], select { width: 100%; font: 400 1.05rem/1.5 Mulish, sans-serif; color: var(--ink); background: var(--card); border: 2px solid var(--line);
  border-radius: 16px; padding: 12px 14px; }
textarea { resize: vertical; min-height: 110px; }
textarea:focus, input:focus, select:focus { border-color: var(--berry); outline: none; box-shadow: 0 0 0 3px var(--rose); }
.lbl { display: block; font-weight: 800; margin: 0 0 6px; }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.count { font: 800 1rem Mulish, sans-serif; font-variant-numeric: tabular-nums; }
.count.near { color: var(--warn); }
.count.over { color: #d0021b; }
.meter { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .15s; }
.meter span.near { background: var(--honey); }
.meter span.over { background: #d0021b; }
.stats { color: var(--muted); font-size: .92rem; margin: 0; }
.tip { color: var(--muted); font-size: .95rem; margin: 8px 0 0; min-height: 1.2em; }
.tone-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-weight: 800; font-size: .88rem; border: 2px solid transparent; }
.t-warm { background: #ffd6e4; color: #8a1240; }
.t-friendly { background: #dff3e8; color: #155c3d; }
.t-neutral { background: #ece6ea; color: #4a3a42; }
.t-tense { background: #fff1c9; color: #7a4a00; }
.t-harsh { background: #ffd9d2; color: #9c1b0b; border-color: #9c1b0b; }
.samples { margin: 10px 0; font-size: .95rem; }
.tone-big { margin: 14px 0 8px; }
.marked { background: var(--bg); border: 2px dashed var(--line); border-radius: 16px; padding: 12px 14px; white-space: pre-wrap; min-height: 3em; }
mark { border-radius: 5px; padding: 0 3px; color: #2b1720; }
.m-positive { background: #ffd6e4; } .m-negative { background: #fff1c9; } .m-harsh { background: #ffb9ad; text-decoration: underline wavy #9c1b0b; }
.m-absolute { background: #e2e0ff; } .m-neutral { background: transparent; color: inherit; }
.legend mark { font-size: .85rem; }
.softer { padding-left: 1.2em; }
.softer s { color: var(--muted); }
.notes-list { padding-left: 1.2em; }
.notes-list .n-warn { color: var(--warn); font-weight: 700; }
.notes-list .n-ok { color: var(--ok); font-weight: 700; }
.kinds { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { width: 100%; }
.kinds label { border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 700; }
.kinds label:has(input:checked) { background: var(--rose); border-color: var(--berry); }
.kinds input { accent-color: var(--berry); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.ideas { padding-left: 1.4em; }
.ideas li { margin: 12px 0; padding: 12px 14px; background: var(--bg); border-radius: 16px; border: 2px solid var(--line); }
.idea-t { font-size: 1.08rem; margin-bottom: 6px; }
.idea-m { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.stat-row p { background: var(--bg); border-radius: 16px; padding: 10px; margin: 0; text-align: center; font-size: .9rem; }
.big { display: block; font: 800 1.8rem Sniglet, sans-serif; color: var(--berry); }
.spoken { background: var(--bg); border-radius: 16px; padding: 12px 14px; font-style: italic; }
.privacy-note { font-size: .92rem; color: var(--muted); margin: 12px 4px 0; }

/* header maker */
.hm-stage { position: relative; border-radius: 18px; overflow: hidden; border: 2px solid var(--line); aspect-ratio: 3 / 1; background: var(--bg); }
.hm-stage canvas { display: block; width: 100%; height: 100%; }
.hm-guides { position: absolute; inset: 0; pointer-events: none; }
.hm-guides[hidden] { display: none; }
.hm-avatar { position: absolute; left: 3.5%; bottom: -22%; width: 15%; aspect-ratio: 1; border-radius: 50%; border: 3px dashed rgba(0, 0, 0, .55); background: rgba(255, 255, 255, .35); }
.hm-crop { position: absolute; top: 0; bottom: 0; width: 8%; background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .12) 0 6px, transparent 6px 12px); }
.hm-crop-l { left: 0; } .hm-crop-r { right: 0; }
.hm-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.hm-controls p { margin: 0; }
.hm-controls input[type=color] { width: 100%; height: 46px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); padding: 3px; }
.hm-controls input[type=range] { width: 100%; accent-color: var(--berry); }
.check label { font-weight: 700; display: flex; gap: 8px; align-items: center; margin-top: 28px; }
.presets ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.presets a { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; text-decoration: none; color: var(--ink); font-weight: 700; background: var(--card); }
.presets a[aria-current] { border-color: var(--berry); background: var(--rose); }
.sw { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0, 0, 0, .15); }
.sw-girly { background: radial-gradient(circle at 35% 40%, #e64b86 0 30%, #ffd6e4 32%); }
.sw-polka-dot { background: radial-gradient(#e2574c 28%, transparent 30%) 0 0/11px 11px, #fff3d6; }
.sw-cute { background: radial-gradient(circle at 40% 45%, #fff 0 30%, #d9ecff 32%); }
.sw-animal-print { background: radial-gradient(circle at 40% 40%, #a8743f 0 20%, #5b3a21 22% 34%, #f2d2a9 36%); }
.sw-cartoon { background: conic-gradient(#2f6fdf 0 25%, #f2542d 0 50%, #16a374 0 75%, #f5b700 0); }
.sw-emo { background: conic-gradient(#1d1a22 0 25%, #ff5fa2 0 50%, #1d1a22 0 75%, #ff5fa2 0) 0 0/11px 11px; }
.sw-fashion { background: repeating-linear-gradient(135deg, #1f1f1f 0 4px, #f4efe8 4px 8px); }
.sw-guy { background: linear-gradient(135deg, #20313f 50%, #e9a23b 50%); }
.sw-movie { background: linear-gradient(#141414 30%, #f5d76e 30% 70%, #141414 70%); }
.sw-scribble { background: radial-gradient(circle at 30% 30%, #3d5afe 0 18%, transparent 20%), radial-gradient(circle at 70% 70%, #ff6d00 0 18%, #fbfbf7 20%); }
.sw-spring { background: radial-gradient(circle, #ffd166 0 18%, #ff8fab 20% 45%, #e6f5e1 47%); }
.sw-vintage { background: repeating-linear-gradient(45deg, #9c6b4f 0 2px, #efe3cf 2px 8px); }

/* reading */
.crumbs ol { list-style: none; padding: 0; margin: 22px 0 6px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head { margin-bottom: 18px; }
.answer { font-size: 1.15rem; }
.meta { color: var(--muted); font-size: .92rem; }
.short { background: var(--rose); border-radius: var(--r); padding: 16px 20px; margin: 0 0 18px; }
.short-l, .toc-l { font: 800 .82rem Mulish, sans-serif; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.short p:last-child { margin: 0; font-size: 1.08rem; }
.takeaways { border: 2px solid var(--line); border-radius: var(--r); padding: 4px 20px 6px; background: var(--card); }
.takeaways h2 { font-size: 1.2rem; margin-top: .8em; }
.toc { margin: 18px 0; padding: 12px 20px; border-left: 5px solid var(--honey); background: var(--card); border-radius: 0 16px 16px 0; }
.toc ol { margin: 0; padding-left: 1.2em; }
.prose h2 { padding-top: .2em; }
.prose h2 + p strong:only-child, .prose h2 + p > strong:first-child { color: var(--ink); }
.prose h2 + p { font-size: 1.07rem; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 5px solid var(--mint); background: var(--card); border-radius: 0 14px 14px 0; }
.prose li { margin: .3em 0; }
pre { overflow-x: auto; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: .88rem; }
code { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; white-space: pre; }
.table-wrap { overflow-x: auto; margin: 1em 0 1.4em; border: 2px solid var(--line); border-radius: 16px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--rose); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.try { display: flex; gap: 14px; align-items: flex-start; background: #fff1c9; color: #3b1f2b; border-radius: var(--r); padding: 16px 18px; margin: 24px 0; }
.try a { color: #a01f50; }
.try p { margin: 0; }
.try-h { font-weight: 800; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 10px 16px; margin: 10px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 4px; }
.sources ul { padding-left: 1.2em; font-size: .95rem; }
.related ul { padding-left: 1.2em; }
.chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; border: 2px solid var(--line); border-radius: 999px; padding: 5px 14px; text-decoration: none; font-weight: 700; color: var(--ink); background: var(--card); }
.updated { color: var(--muted); font-size: .9rem; margin-top: 30px; }
.cards { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card a { display: block; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); text-decoration: none; }
.card a:hover { border-color: var(--berry); }
.card h2, .card h3 { margin: .3em 0; font-size: 1.15rem; }
.card p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; }
.cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--berry); }
.more { font-weight: 800; }
.rewrites table td:first-child { color: var(--muted); }
.nf { text-align: left; padding-top: 30px; }

/* footer */
.foot { margin-top: 60px; color: #fbeef3; }
.foot .wave { display: block; width: 100%; height: 30px; }
.foot-in { background: var(--plum); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 20px max(16px, calc((100% - 1120px) / 2)) 10px; }
@media (prefers-color-scheme: dark) { .foot-in, .foot-copy { background: #170c12 !important; } .foot .wave path { fill: #170c12; } }
.foot a { color: #ffd1e2; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 4px 0; }
.foot .small { color: #e3c9d4; }
.foot-brand { font: 400 1.5rem Sniglet, sans-serif; margin: 0 0 6px; }
.foot-brand b { color: #ff8fb6; font-weight: 800; }
.foot-h { font-weight: 800; margin-bottom: 6px; }
.foot-copy { background: var(--plum); margin: 0; padding: 10px 16px 24px; text-align: center; font-size: .9rem; }
@media (max-width: 720px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in .foot-col:first-child { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .note, .hero-card { transform: none !important; } }
