:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-deep: #ece9e0;
  --surface: #fffefa;
  --ink: #20332f;
  --muted: #73807a;
  --line: #e3e4dc;
  --accent: #c65c3d;
  --accent-dark: #a8462c;
  --sage: #527568;
  --soft-sage: #edf2ee;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 88% 2%, rgba(213, 221, 211, .45), transparent 34rem),
    var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(198, 92, 61, .42);
  outline-offset: 3px;
}
.page-shell { width: min(1176px, calc(100% - 48px)); margin: 0 auto; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20; transform: translateY(-160%);
  padding: 12px 16px; color: white; background: var(--ink); border-radius: 5px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(61, 83, 73, .14);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; padding: 5px; display: flex; align-items: end; gap: 3px; border-radius: 8px; background: var(--ink); transform: rotate(-4deg); }
.brand-mark span { width: 4px; border-radius: 3px; background: #d97b57; }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 15px; }
.brand-mark span:nth-child(3) { height: 12px; }
.brand-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.045em; }
.brand-name b { font-weight: 800; }
.header-note { display: flex; align-items: center; gap: 9px; color: #65756e; font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.status-dot, .draft-indicator > span, .live-tag > span { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #6c9880; }
.ad-slot {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  overflow: hidden; border: 1px dashed #d4d5cc; color: #9ca39c;
  background: rgba(255, 254, 250, .35);
}
.ad-slot-leaderboard { width: min(728px, 100%); height: 90px; margin: 22px auto 0; }
.ad-label { position: absolute; top: 8px; left: 11px; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ad-placeholder-copy { font-size: 11px; letter-spacing: .025em; }
main { padding: 0 0 60px; }
.intro { margin: 44px 0 32px; text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 16px; color: var(--sage); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-line { width: 21px; height: 1px; background: var(--accent); }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-family: var(--font-display); font-size: clamp(35px, 4.5vw, 55px); font-weight: 700; line-height: 1.07; letter-spacing: -.065em; }
h1 span { color: var(--sage); }
.intro-copy { margin-bottom: 0; color: #6a7770; font-size: 14px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: stretch; }
.panel { min-width: 0; border: 1px solid #e5e5dc; border-radius: 9px; background: var(--surface); box-shadow: 0 14px 40px rgba(38, 57, 47, .045), 0 2px 5px rgba(38, 57, 47, .025); }
.editor-panel { display: flex; flex-direction: column; min-height: 533px; padding: 24px 25px 18px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-kicker { margin-bottom: 6px; color: var(--accent); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.panel-heading h2 { margin-bottom: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.045em; }
.draft-indicator { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #79837e; font-size: 10px; white-space: nowrap; }
.draft-indicator > span { width: 6px; height: 6px; background: #91a79a; }
.toolbar { display: flex; align-items: center; gap: 5px; margin-top: 22px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: #faf9f5; }
.tool-button { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 0; border-radius: 4px; background: transparent; color: #45544e; cursor: pointer; font-size: 11px; font-weight: 600; transition: background .16s ease, color .16s ease, transform .16s ease; }
.tool-button:hover { background: #ecefe9; color: var(--ink); }
.tool-button:active { transform: translateY(1px); }
.tool-bold > span:first-child { font-family: Georgia, serif; font-size: 17px; font-weight: 700; }
.tool-italic > span:first-child { font-family: Georgia, serif; font-size: 17px; font-style: italic; }
.tool-clear { margin-left: auto; color: #7b7771; }
.tool-clear:hover { color: var(--accent-dark); background: #f8eee9; }
.tool-clear svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.toolbar-divider { height: 19px; width: 1px; background: #e2e3db; }
.post-input { width: 100%; flex: 1; min-height: 250px; resize: vertical; padding: 18px 2px; border: 0; outline: 0; color: #273a34; background: transparent; font-size: 14px; line-height: 1.75; }
.post-input::placeholder { color: #a0a6a0; opacity: 1; }
.post-input:focus-visible { outline: 0; }
.editor-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 13px; border-top: 1px solid #eeeee8; }
.keyboard-hint { margin: 0; color: #89918b; font-size: 10px; line-height: 1.6; }
.counts { display: flex; gap: 13px; color: #858d87; font-size: 10px; white-space: nowrap; }
.counts strong { color: #495851; font-weight: 700; }
.shortcut-row { display: flex; flex-wrap: wrap; gap: 13px; padding-top: 13px; color: #919891; font-size: 9px; }
kbd { padding: 2px 4px; border: 1px solid #e4e5de; border-radius: 3px; background: #f8f8f4; color: #69746d; font-family: var(--font-body); font-size: 9px; }
.preview-panel { display: flex; flex-direction: column; min-height: 533px; padding: 24px 25px 20px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #e2e9e3; border-radius: 20px; color: #668074; background: #f6f9f5; font-size: 9px; font-weight: 600; }
.live-tag > span { width: 5px; height: 5px; }
.preview-surface { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 23px 0 15px; }
.post-card { overflow: hidden; padding: 19px 19px 0; border: 1px solid #e8e9e5; border-radius: 7px; background: #fff; box-shadow: 0 3px 13px rgba(30, 45, 39, .035); }
.post-card, .post-card button { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.profile-row { display: flex; align-items: flex-start; gap: 11px; }
.profile-avatar { flex: 0 0 auto; border-radius: 50%; background: #d9dedb; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; padding-top: 1px; }
.profile-copy strong { margin-bottom: 3px; color: #242e2a; font-size: 13px; font-weight: 700; }
.profile-copy > span { overflow: hidden; color: #7a827d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy .visibility { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: #7a827d; }
.visibility-dot { width: 3px; height: 3px; border-radius: 50%; background: #9aa19c; }
.more-button { display: flex; gap: 3px; margin: 3px 0 0 auto; padding: 5px 2px; border: 0; background: none; }
.more-button span { width: 3px; height: 3px; border-radius: 50%; background: #8e9690; }
.preview-copy { position: relative; margin-top: 18px; color: #343b38; font-size: 13px; line-height: 1.68; overflow-wrap: anywhere; }
.preview-copy.is-collapsed { max-height: 8.4em; overflow: hidden; }
.preview-copy.is-collapsed::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2.8em; background: linear-gradient(transparent, #fff); content: ""; pointer-events: none; }
.preview-copy .preview-placeholder { margin: 0 0 4px; color: #89948d; }
.preview-placeholder span { color: #a2aaa4; font-size: 11px; }
.preview-text { margin: 0; white-space: normal; }
.see-more-button { position: relative; z-index: 1; display: block; margin: -3px 0 15px auto; padding: 2px 0 2px 10px; border: 0; background: #fff; color: #708077; cursor: pointer; font-size: 11px; font-weight: 600; }
.see-more-button:hover { color: var(--accent-dark); }
.see-more-button[hidden] { display: none; }
.post-actions { display: flex; justify-content: space-between; gap: 5px; margin: 0 -19px; padding: 13px 16px; border-top: 1px solid #eff0ed; color: #68736d; font-size: 10px; font-weight: 600; }
.post-actions > span { display: inline-flex; align-items: center; gap: 6px; }
.post-actions i { width: 13px; height: 13px; display: inline-block; border: 1.3px solid #849088; border-radius: 50%; }
.post-actions .comment-mark { border-radius: 4px; }
.post-actions .share-mark { border-radius: 3px 3px 6px 3px; transform: rotate(-35deg) scale(.78); }
.preview-footnote { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #929a93; font-size: 9px; line-height: 1.45; }
.preview-footnote-mark { width: 13px; height: 13px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #a5aea7; border-radius: 50%; font-family: Georgia, serif; font-size: 9px; font-style: italic; }
.copy-row { padding-top: 15px; border-top: 1px solid #eeeee8; }
.copy-button { width: 100%; min-height: 47px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 0; border-radius: 5px; color: white; background: var(--ink); cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s ease, transform .18s ease; }
.copy-button:hover { background: #2e4b41; }
.copy-button:active { transform: translateY(1px); }
.copy-button:disabled { opacity: .65; cursor: wait; }
.copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.copy-arrow { margin-left: auto; color: #d9a28c; font-size: 15px; }
.copy-feedback { min-height: 14px; margin: 6px 0 -3px; color: #587765; text-align: center; font-size: 10px; }
.copy-feedback.is-error { color: #aa4d36; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 23px 0 0; color: #77827b; font-size: 10px; }
.privacy-icon { color: var(--sage); font-size: 13px; }
.site-footer { padding-bottom: 26px; }
.footer-rule { height: 1px; background: rgba(61, 83, 73, .15); }
.footer-content { display: flex; justify-content: space-between; gap: 15px; padding: 16px 0 23px; color: #77827b; font-size: 10px; }
.footer-separator { margin: 0 4px; color: #bd765a; }
.ad-slot-rectangle { width: 300px; height: 250px; margin: 0 auto; }
.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; }

@media (min-width: 1024px) {
  .workspace { grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 20px; }
  .intro { margin-top: 49px; margin-bottom: 34px; }
}
@media (max-width: 640px) {
  .page-shell { width: min(100% - 30px, 500px); }
  .site-header { min-height: 65px; }
  .brand-name { font-size: 14px; }
  .header-note { font-size: 0; gap: 0; }
  .header-note .status-dot { width: 8px; height: 8px; }
  .ad-slot-leaderboard { height: 90px; margin-top: 15px; }
  .ad-slot-leaderboard .ad-placeholder-copy { font-size: 9px; }
  .intro { margin: 38px 0 25px; }
  .eyebrow { font-size: 9px; letter-spacing: .12em; }
  h1 { font-size: clamp(35px, 10vw, 47px); }
  .intro-copy { max-width: 300px; margin: 0 auto; font-size: 13px; line-height: 1.6; }
  .workspace { gap: 14px; }
  .editor-panel, .preview-panel { min-height: auto; padding: 21px 17px 16px; }
  .post-input { min-height: 235px; }
  .editor-footer { flex-direction: column; gap: 9px; }
  .counts { width: 100%; justify-content: space-between; gap: 6px; }
  .shortcut-row { gap: 9px; font-size: 8px; }
  .preview-surface { padding: 19px 0 13px; }
  .post-card { padding: 16px 14px 0; }
  .post-actions { margin-right: -14px; margin-left: -14px; padding-right: 12px; padding-left: 12px; font-size: 9px; }
  .post-actions > span { gap: 4px; }
  .privacy-note { align-items: flex-start; max-width: 290px; margin-right: auto; margin-left: auto; text-align: center; line-height: 1.5; }
  .site-footer { margin-top: 36px; }
  .footer-content { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
