/* =========================================================================
   Pankaj K. Singh — writing
   Design idea: a writer's manuscript. Two inks: charcoal for the body,
   "rubric" red for emphasis (the colour scribes reserved for what mattered).
   Home reads like the front matter of a book, not a grid of cards.
   ========================================================================= */

:root {
  /* palette — light ("paper") */
  --paper:        #e9e7e1;
  --paper-raised: #f2f0ea;
  --ink:          #21212b;
  --ink-soft:     #56555f;
  --ink-faint:    #8a8992;
  --rubric:       #9e3b34;   /* the accent — used sparingly, like red ink */
  --rubric-deep:  #7d2c27;
  --rule:         rgba(33, 33, 43, 0.14);
  --rule-soft:    rgba(33, 33, 43, 0.08);
  --selection:    rgba(158, 59, 52, 0.16);
  --code-bg:      #f2f0ea;
  --shadow:       rgba(33, 33, 43, 0.10);

  /* type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Newsreader", Georgia, serif;
  --ui:      "IBM Plex Sans", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --deva:    "Noto Serif Devanagari", "Newsreader", serif;

  --measure: 66ch;
  --page:    min(92vw, 1160px);
  --ease:    cubic-bezier(0.2, 0.6, 0.2, 1);
}

[data-theme="dark"] {
  --paper:        #15151c;
  --paper-raised: #1e1e27;
  --ink:          #e8e6ee;
  --ink-soft:     #a9a7b4;
  --ink-faint:    #74727f;
  --rubric:       #d9776e;
  --rubric-deep:  #e59a92;
  --rule:         rgba(232, 230, 238, 0.16);
  --rule-soft:    rgba(232, 230, 238, 0.08);
  --selection:    rgba(217, 119, 110, 0.22);
  --code-bg:      #1b1b24;
  --shadow:       rgba(0, 0, 0, 0.4);
}

/* --------------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.06rem, 0.62rem + 0.7vw, 1.24rem);
  line-height: 1.72;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
::selection { background: var(--selection); }

.wrap { width: var(--page); margin-inline: auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }

a.link, .prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rubric);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 0.2s var(--ease);
}
a.link:hover, .prose a:hover { color: var(--rubric); }

:focus-visible {
  outline: 2px solid var(--rubric);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 560; line-height: 1.12; letter-spacing: -0.012em; }

/* --------------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px;
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand .mono {
  display: inline-grid; place-items: center;
  width: 1.55em; height: 1.55em;
  margin-right: 0.5em;
  border: 1.5px solid var(--rubric);
  color: var(--rubric);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.8em;
  vertical-align: -0.15em;
}
.nav { display: flex; gap: 1.15rem; margin-left: auto; align-items: center; font-family: var(--ui); font-size: 0.92rem; }
.nav a { color: var(--ink-soft); padding: 0.2rem 0; border-bottom: 1.5px solid transparent; transition: color 0.2s, border-color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-color: var(--rubric); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--rule);
  border-radius: 8px; color: var(--ink-soft);
  cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--rubric); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }
[data-theme="dark"] .icon-btn .moon { display: none; }

.nav-toggle { display: none; }

/* --------------------------------------------------------------------- hero (front matter) */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-name {
  font-family: var(--display);
  font-weight: 340;
  font-size: clamp(2.9rem, 1.2rem + 8vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 0;
}
.hero-name .rubric { color: var(--rubric); font-style: italic; font-weight: 380; }
.hero-tagline {
  font-family: var(--body);
  font-size: clamp(1.1rem, 0.8rem + 0.8vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 1.4rem 0 0;
  font-style: italic;
}
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* front-matter grid: contents index + latest */
.frontmatter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
  align-items: start;
}
.fm-heading {
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}

/* contents with leader dots — the "table of contents" of a book */
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { border-top: 1px solid var(--rule-soft); }
.contents li:first-child { border-top: 1px solid var(--rule); }
.contents a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.85rem 0;
}
.contents .c-title { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.contents a[data-hi] .c-title { font-family: var(--deva); font-size: 1.5rem; }
.contents .c-leader { border-bottom: 1.5px dotted var(--rule); transform: translateY(-0.28em); }
.contents .c-count { font-family: var(--mono); font-size: 0.86rem; color: var(--ink-faint); }
.contents a:hover .c-title { color: var(--rubric); }
.contents .c-blurb { grid-column: 1 / -1; margin: 0.1rem 0 0; color: var(--ink-soft); font-size: 0.98rem; font-style: italic; }

/* latest — an editorial list, deliberately not cards */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry {
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-soft);
  display: block;
}
.entry:first-child { border-top: none; padding-top: 0; }
.entry-title { font-family: var(--display); font-weight: 520; font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem); line-height: 1.16; margin: 0; }
.entry:hover .entry-title { color: var(--rubric); }
.entry-sum { color: var(--ink-soft); margin: 0.45rem 0 0.6rem; max-width: 60ch; }
.entry.hi .entry-title, .entry.hi .entry-sum { font-family: var(--deva); }
.meta { font-family: var(--ui); font-size: 0.8rem; color: var(--ink-faint); display: flex; align-items: center; flex-wrap: wrap; }
.meta > span { padding-inline: 0.75rem; border-left: 1px solid var(--rule); }
.meta > span:first-child { padding-left: 0; border-left: none; }
.meta .tag { color: var(--rubric); }

/* --------------------------------------------------------------------- section / listing pages */
.page-head { padding: clamp(3rem, 8vw, 5.5rem) 0 2rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }
.page-head .kicker { font-family: var(--ui); font-size: 0.85rem; color: var(--rubric); margin: 0 0 0.6rem; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4rem); margin: 0; letter-spacing: -0.02em; }
.page-head.hi h1 { font-family: var(--deva); font-weight: 600; }
.page-head p { color: var(--ink-soft); max-width: 52ch; margin: 1rem 0 0; font-style: italic; }
.section-body { padding-bottom: 6rem; max-width: 760px; }

/* --------------------------------------------------------------------- article */
.article { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.article-header { max-width: var(--measure); margin: 0 auto 2.6rem; }
.article-header .kicker { font-family: var(--ui); font-size: 0.85rem; color: var(--rubric); margin: 0 0 1rem; }
.article-title { font-size: clamp(2.1rem, 1.3rem + 3.5vw, 3.6rem); margin: 0; letter-spacing: -0.02em; }
.article-header.hi .article-title { font-family: var(--deva); font-weight: 600; line-height: 1.3; }
.article-meta { margin-top: 1.3rem; }

.prose { max-width: var(--measure); margin-inline: auto; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: 1.7rem; margin-top: 2.6em; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.32rem; margin-top: 2em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose p, .prose li { hyphens: auto; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose strong { font-weight: 600; }
.prose em { color: inherit; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 2px solid var(--rubric);
  font-family: var(--display);
  font-size: 1.22em;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.4;
}
.prose hr { border: none; border-top: 1px solid var(--rule); margin: 3em 0; }

.prose figure img, .prose img { border-radius: 4px; margin-block: 1.6em; }

/* code */
.prose :not(pre) > code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--code-bg); padding: 0.15em 0.4em; border-radius: 4px;
  border: 1px solid var(--rule-soft);
}
.prose pre {
  font-family: var(--mono);
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-block: 1.7em;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }

/* katex sizing */
.prose .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.4em 0; }
.prose .katex { font-size: 1.05em; }

/* mermaid */
.mermaid { margin: 1.8em 0; text-align: center; }
.mermaid svg { max-width: 100%; height: auto; }

/* footnotes */
.footnotes { margin-top: 3.5em; padding-top: 1.5em; border-top: 1px solid var(--rule); font-size: 0.94rem; color: var(--ink-soft); }
.footnotes ol { padding-left: 1.2em; }
sup a, a.footnote-ref { color: var(--rubric); text-decoration: none; font-weight: 600; }

/* poetry mode — centred, airy, Devanagari */
.prose.poem { font-family: var(--deva); text-align: center; font-size: 1.28rem; line-height: 2.05; }
.prose.poem p { white-space: pre-line; margin-top: 1.9em; }
.prose.poem hr { width: 3rem; margin-inline: auto; }
.prose.poem em { display: block; font-size: 0.9rem; color: var(--ink-faint); font-style: normal; margin-top: 2.5em; }

/* reading progress */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--rubric); z-index: 60; transition: width 0.1s linear; }

/* table of contents (article side) */
.toc { font-family: var(--ui); font-size: 0.86rem; }
.toc-title { color: var(--ink-faint); margin: 0 0 0.8rem; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule); }
.toc li a { display: block; padding: 0.28rem 0 0.28rem 0.9rem; color: var(--ink-soft); border-left: 2px solid transparent; margin-left: -1px; transition: color 0.2s, border-color 0.2s; }
.toc li a:hover { color: var(--ink); }
.toc li a.active { color: var(--rubric); border-color: var(--rubric); }
.toc li.h3 a { padding-left: 1.8rem; font-size: 0.82rem; }

@media (min-width: 1080px) {
  .article-body { display: grid; grid-template-columns: 1fr var(--measure) 1fr; gap: 2rem; }
  .article-body .prose { grid-column: 2; }
  .article-body .toc-rail { grid-column: 3; position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; padding-top: 0.2rem; }
}
.toc-rail { display: none; }
@media (min-width: 1080px) { .toc-rail { display: block; } }

/* article footer: prev/next + related */
.article-foot { max-width: var(--measure); margin: 4rem auto 0; }
.pager { display: flex; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 1.6rem 0; }
.pager a { max-width: 46%; }
.pager .dir { font-family: var(--ui); font-size: 0.78rem; color: var(--ink-faint); display: block; margin-bottom: 0.3rem; }
.pager .pn { font-family: var(--display); font-weight: 500; }
.pager a:hover .pn { color: var(--rubric); }
.pager .next { text-align: right; margin-left: auto; }
.related { margin-top: 2.6rem; }

/* --------------------------------------------------------------------- search */
.search-shell { position: fixed; inset: 0; z-index: 80; display: none; }
.search-shell.open { display: block; }
.search-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--paper) 40%, rgba(0,0,0,0.5)); }
.search-panel {
  position: relative; width: min(92vw, 640px); margin: 12vh auto 0;
  background: var(--paper-raised); border: 1px solid var(--rule);
  border-radius: 12px; box-shadow: 0 20px 60px var(--shadow); overflow: hidden;
}
.search-panel input {
  width: 100%; border: none; background: transparent; color: var(--ink);
  font-family: var(--body); font-size: 1.2rem; padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--rule-soft); outline: none;
}
.search-results { max-height: 56vh; overflow: auto; }
.search-results a { display: block; padding: 0.9rem 1.3rem; border-top: 1px solid var(--rule-soft); }
.search-results a:hover, .search-results a.sel { background: color-mix(in srgb, var(--rubric) 8%, transparent); }
.search-results .st { font-family: var(--display); font-weight: 500; font-size: 1.05rem; }
.search-results .sm { font-family: var(--ui); font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.15rem; }
.search-empty { padding: 1.5rem 1.3rem; color: var(--ink-faint); font-style: italic; }

/* --------------------------------------------------------------------- archive */
.year-group { margin-bottom: 2.8rem; }
.year-group h2 { font-family: var(--mono); font-weight: 400; font-size: 1.1rem; color: var(--rubric); border-bottom: 1px solid var(--rule); padding-bottom: 0.5rem; margin-bottom: 0.8rem; }
.archive-row { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 0.6rem 0; align-items: baseline; }
.archive-row .d { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }
.archive-row a { font-family: var(--display); font-size: 1.12rem; }
.archive-row a:hover { color: var(--rubric); }
.archive-row.hi a { font-family: var(--deva); }

/* --------------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: 190px 1fr; gap: 3rem; align-items: start; padding-bottom: 5rem; max-width: 900px; }
.about-photo { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; background: var(--code-bg); border: 1px solid var(--rule); }
.about-photo.placeholder { display: grid; place-items: center; font-family: var(--display); font-size: 3.6rem; color: var(--ink-faint); }
.about-body h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin: 0 0 1rem; }
.about-links { display: flex; gap: 1.2rem; margin-top: 1.6rem; font-family: var(--ui); font-size: 0.92rem; }

/* --------------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0; margin-top: 2rem; font-family: var(--ui); font-size: 0.86rem; color: var(--ink-faint); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 1.5rem; }
.site-footer .epigraph { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 48ch; line-height: 1.5; }
.site-footer .epigraph span { display: block; font-family: var(--ui); font-style: normal; font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.5rem; }
.site-footer .footer-meta { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: center; padding-top: 1.5rem; border-top: 1px solid var(--rule-soft); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--rubric); }

/* --------------------------------------------------------------------- from-sweta (private) */
.letter-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; }
.letter {
  max-width: 62ch; background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 10px;
  padding: clamp(2rem, 6vw, 4rem); box-shadow: 0 12px 40px var(--shadow);
}
.letter h1 { font-family: var(--display); font-style: italic; font-weight: 380; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); color: var(--rubric); margin: 0 0 0.4rem; }
.letter .sub { font-family: var(--ui); font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 2rem; }
.letter p { margin: 1.1em 0; }
.letter .signoff { font-family: var(--display); font-style: italic; font-size: 1.3rem; margin-top: 2rem; }
.gate { max-width: 34ch; text-align: center; }
.gate input { font-family: var(--body); font-size: 1.1rem; padding: 0.7rem 1rem; width: 100%; margin: 1rem 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; color: var(--ink); }
.gate button { font-family: var(--ui); font-size: 0.95rem; padding: 0.6rem 1.4rem; background: var(--rubric); color: #fff; border: none; border-radius: 8px; cursor: pointer; }
.gate .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.8rem; }

/* --------------------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .frontmatter { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .about-photo { width: 150px; height: 150px; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start;
         background: var(--paper-raised); border-bottom: 1px solid var(--rule);
         padding: 1rem var(--page-gutter, 4vw); gap: 0.2rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0; width: 100%; border-bottom: 1px solid var(--rule-soft); }
  .nav-toggle { display: inline-grid; margin-left: auto; }
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--rubric); color:#fff; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
.noscript { max-width: var(--measure); margin: 2rem auto; padding: 1rem; border: 1px solid var(--rubric); border-radius: 8px; }

/* --------------------------------------------------------------- syntax (highlight.js) */
.hljs-comment, .hljs-quote { color: var(--ink-faint); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-literal { color: var(--rubric); }
.hljs-string, .hljs-attr, .hljs-template-tag { color: #4b7a5a; }
.hljs-number, .hljs-symbol, .hljs-meta { color: #8a6d3b; }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-name { color: #3a5a8a; font-weight: 500; }
.hljs-type, .hljs-class .hljs-title { color: #6a5a9a; }
.hljs-variable, .hljs-params { color: var(--ink); }
[data-theme="dark"] .hljs-string, [data-theme="dark"] .hljs-attr { color: #8fc99f; }
[data-theme="dark"] .hljs-number, [data-theme="dark"] .hljs-meta { color: #d6b06a; }
[data-theme="dark"] .hljs-title, [data-theme="dark"] .hljs-name { color: #86aee0; }
[data-theme="dark"] .hljs-type { color: #b7a6e6; }
.fn-back { text-decoration: none !important; margin-left: 0.3em; color: var(--rubric); }
.footnotes ol { margin: 0; } .footnotes li { margin-top: 0.5em; }

/* --------------------------------------------------------------- write studio */
.write { padding-top: 1.5rem; }
.write-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.write-title { font-family: var(--display); font-size: 1.5rem; font-weight: 560; }
.write-tools { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; font-family: var(--ui); font-size: 0.86rem; color: var(--ink-soft); }
.write-tools select { font-family: var(--ui); font-size: 0.86rem; background: var(--paper-raised); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 0.3rem 0.5rem; margin-left: 0.4rem; }
.wbtn { font-family: var(--ui); font-size: 0.86rem; padding: 0.45rem 0.9rem; border: 1px solid var(--rule); background: var(--paper-raised); color: var(--ink); border-radius: 7px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.wbtn:hover { border-color: var(--rubric); color: var(--rubric); }
.wbtn.primary { background: var(--rubric); color: #fff; border-color: var(--rubric); }
.wbtn.primary:hover { background: var(--rubric-deep); color: #fff; }
.saved { color: var(--rubric); font-size: 0.8rem; min-width: 5rem; }
.write-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.5rem 0 4rem; align-items: start; }
.write-grid textarea {
  width: 100%; min-height: 70vh; resize: vertical;
  font-family: var(--mono); font-size: 0.9rem; line-height: 1.7;
  color: var(--ink); background: var(--paper-raised);
  border: 1px solid var(--rule); border-radius: 10px; padding: 1.2rem 1.3rem; outline: none;
}
.write-grid textarea:focus { border-color: var(--rubric); }
.write-grid .prose { max-width: none; }
@media (max-width: 820px) { .write-grid { grid-template-columns: 1fr; } .write-grid textarea { min-height: 40vh; } }
