
:root {
  --ink: #19221d;
  --muted: #69756c;
  --paper: #f6f3ec;
  --paper-strong: #fffdf8;
  --line: #dfe3d8;
  --sage: #c7d4c2;
  --moss: #425449;
  --coral: #ef725d;
  --sun: #f5bc57;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 9% 10%, rgb(239 114 93 / 9%), transparent 21rem),
    radial-gradient(circle at 94% 13%, rgb(199 212 194 / 45%), transparent 23rem),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-shell { min-height: 100vh; overflow: hidden; }
.site-header {
  position: relative; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; width: min(1180px, calc(100% - 48px));
  margin: 0 auto; padding: 26px 0;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  display: grid; width: 36px; height: 36px; place-items: center;
  border-radius: 12px 12px 12px 4px; background: var(--coral); color: white;
  font-family: Georgia, serif; font-size: 20px; font-style: italic;
  box-shadow: 4px 4px 0 rgb(25 34 29 / 10%);
}
.header-actions { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 700; }
.header-link:hover, .post-link:hover, .back-link:hover { color: var(--coral); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px;
  padding: 0 17px; border: 1px solid transparent; border-radius: 999px;
  background: var(--ink); color: white; cursor: pointer; font-size: 13px; font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.button:hover { background: var(--moss); box-shadow: 0 7px 18px rgb(25 34 29 / 13%); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: 0.55; transform: none; }
.button-secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--paper-strong); }
.button-coral { background: var(--coral); }
.eyebrow { color: var(--coral); font-size: 11px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.hero { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); align-items: end; gap: 72px; }
.hero h1 { max-width: 730px; margin: 16px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(54px, 8vw, 106px); font-weight: 400; letter-spacing: -0.075em; line-height: 0.92; }
.hero h1 em { color: var(--coral); font-style: italic; }
.hero-copy { max-width: 365px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-aside { position: relative; padding: 24px 0 4px 34px; border-left: 1px solid var(--line); }
.hero-aside::before { position: absolute; top: -4px; left: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--sun); content: ""; }
.hero-aside p { max-width: 310px; margin: 10px 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.35; }
.section-rule { width: min(1180px, calc(100% - 48px)); height: 1px; margin: 0 auto; background: var(--line); }
.posts-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 86px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 29px; font-weight: 400; letter-spacing: -0.04em; }
.section-heading span { color: var(--muted); font-size: 12px; font-weight: 700; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { display: flex; min-height: 315px; flex-direction: column; justify-content: space-between; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 253 248 / 76%); box-shadow: 0 12px 30px rgb(46 57 45 / 4%); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.post-card:nth-child(3n + 1) { background: linear-gradient(145deg, rgb(255 253 248 / 92%), rgb(249 233 222 / 68%)); }
.post-card:nth-child(3n + 2) { background: linear-gradient(145deg, rgb(255 253 248 / 92%), rgb(226 237 222 / 72%)); }
.post-card:nth-child(3n + 3) { background: linear-gradient(145deg, rgb(255 253 248 / 92%), rgb(249 237 195 / 72%)); }
.post-card:hover { border-color: rgb(239 114 93 / 55%); box-shadow: 0 18px 38px rgb(46 57 45 / 10%); transform: translateY(-4px); }
.post-meta, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.post-meta strong { color: var(--coral); }
.post-card h3 { max-width: 270px; margin: 34px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; letter-spacing: -0.05em; line-height: 1.02; }
.post-card p { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.post-link { color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.empty-state { padding: 48px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.site-footer { display: flex; align-items: center; justify-content: space-between; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-wrap { width: min(780px, calc(100% - 48px)); margin: 0 auto; padding: 76px 0 100px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.article-header { margin: 64px 0 46px; }
.article-header h1 { max-width: 730px; margin: 16px 0 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(46px, 7vw, 82px); font-weight: 400; letter-spacing: -0.07em; line-height: 0.94; }
.article-dek { max-width: 600px; margin: 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.4; }
.article-body { padding-top: 36px; border-top: 1px solid var(--line); color: #334137; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.72; white-space: pre-line; }
.article-byline { display: flex; align-items: center; gap: 10px; margin-top: 48px; color: var(--muted); font-size: 12px; font-weight: 700; }
.byline-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.editor-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 44px 0 80px; }
.editor-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 30px 0 34px; }
.editor-top h1 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 6vw, 70px); font-weight: 400; letter-spacing: -0.07em; line-height: 0.95; }
.editor-top p { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; text-align: right; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.editor-panel, .editor-list { border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 253 248 / 80%); box-shadow: 0 15px 36px rgb(46 57 45 / 5%); }
.editor-panel { padding: 27px; }
.editor-list { padding: 18px; }
.editor-panel h2, .editor-list h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; letter-spacing: -0.04em; }
.editor-form { display: grid; gap: 15px; margin-top: 22px; }
.form-label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.form-input, .form-textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; outline: none; background: rgb(255 255 255 / 72%); color: var(--ink); font-size: 15px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.form-input { min-height: 44px; padding: 0 13px; }
.form-textarea { min-height: 260px; padding: 13px; line-height: 1.55; resize: vertical; }
.form-input:focus, .form-textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgb(239 114 93 / 13%); }
.form-row { display: grid; grid-template-columns: 1fr 170px; gap: 14px; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.editor-note { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.status-message { min-height: 19px; margin: 16px 0 0; color: var(--moss); font-size: 13px; font-weight: 700; }
.status-error { color: #b34535; }
.draft-card { display: block; width: 100%; margin-top: 12px; padding: 15px; border: 1px solid transparent; border-radius: 14px; background: rgb(246 243 236 / 75%); cursor: pointer; text-align: left; transition: border-color 150ms ease, background 150ms ease; }
.draft-card:hover, .draft-card-selected { border-color: rgb(239 114 93 / 50%); background: rgb(249 233 222 / 48%); }
.draft-card strong { display: block; overflow: hidden; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.draft-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.editor-empty { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.post-meta { flex-wrap: wrap; }
.post-meta strong { line-height: 1.5; }
.markdown-content { white-space: normal; overflow-wrap: anywhere; }
.markdown-content p { margin: 0 0 1.25em; }
.markdown-content h2, .markdown-content h3, .markdown-content h4 { margin: 1.8em 0 0.75em; font-weight: 600; line-height: 1.2; letter-spacing: -0.035em; }
.markdown-content h2 { font-size: 1.7em; }
.markdown-content h3 { font-size: 1.35em; }
.markdown-content h4 { font-size: 1.15em; }
.markdown-content ul, .markdown-content ol { margin: 0 0 1.25em; padding-left: 1.5em; }
.markdown-content ul { list-style: disc; }
.markdown-content ol { list-style: decimal; }
.markdown-content li { margin-bottom: 0.4em; }
.markdown-content a { text-decoration: underline; color: var(--moss); }
.markdown-content blockquote { border-left: 3px solid var(--coral); padding-left: 1em; margin: 1em 0; }
.markdown-content pre { overflow-x: auto; white-space: pre; padding: 18px; background: #e9ece4; border-radius: 12px; font: 14px/1.6 monospace; }
@media (max-width: 800px) {
  .hero-grid, .editor-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-grid { gap: 46px; }
  .hero-aside { max-width: 430px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .editor-top { align-items: start; flex-direction: column; }
  .editor-top p { text-align: left; }
}
@media (max-width: 560px) {
  .site-header, .hero, .section-rule, .posts-section, .site-footer, .article-wrap, .editor-shell { width: min(100% - 30px, 1180px); }
  .site-header { padding: 18px 0; }
  .header-actions { gap: 10px; }
  .header-actions .header-link { display: none; }
  .hero h1 { font-size: clamp(54px, 17vw, 86px); }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 270px; }
  .article-wrap { padding-top: 45px; }
  .article-header { margin-top: 48px; }
  .article-body { font-size: 19px; }
  .form-row { grid-template-columns: 1fr; }
  .editor-panel { padding: 20px; }
  .site-footer { align-items: start; flex-direction: column; gap: 8px; }
}