/* The writing archive and readers share the Atlas palette and editorial rhythm. */
body[data-theme="atlas"].writing-page .header { gap: 48px; }
body[data-theme="atlas"].writing-page .header nav { margin-left: auto; }
body[data-theme="atlas"].writing-page .header nav a[aria-current] { color: var(--atlas-wine, #cca3a4); }
body[data-theme="atlas"].writing-page .language { min-height: 44px; }
body[data-theme="atlas"].writing-page .archive-intro h1,
body[data-theme="atlas"].writing-page .archive-row h2,
body[data-theme="atlas"].writing-page .article-header h1,
body[data-theme="atlas"].writing-page .archive-empty h2 {
  font-family: var(--atlas-serif, Georgia, 'Times New Roman', serif);
  font-weight: 400;
  letter-spacing: -.035em;
  color: var(--text);
}
body[data-theme="atlas"].writing-page .archive-intro h1 .serif { color: var(--atlas-wine, #cca3a4); }
body[data-theme="atlas"].writing-page .archive-intro { border-bottom: 3px double var(--line); margin-bottom: 32px; }
body[data-theme="atlas"].writing-page .archive-total { font-family: var(--atlas-serif, Georgia, serif); color: #654b48; }
body[data-theme="atlas"].writing-page .writing-search,
body[data-theme="atlas"].writing-page .writing-year select {
  border-color: #75604f;
  border-radius: 1px;
  background: var(--surface);
  color: var(--text);
}
body[data-theme="atlas"].writing-page .writing-search:focus-within { border-color: var(--lime); }
body[data-theme="atlas"].writing-page .writing-search input::placeholder { color: var(--muted); }
body[data-theme="atlas"].writing-page .writing-search kbd { border-radius: 1px; }
body[data-theme="atlas"].writing-page .writing-year select { min-height: 52px; }
body[data-theme="atlas"].writing-page .random-writing { border-color: #75604f; border-radius: 1px; color: var(--atlas-wine, #cca3a4); }
body[data-theme="atlas"].writing-page .random-writing:hover { background: #35282d; }
body[data-theme="atlas"].writing-page .archive-index,
body[data-theme="atlas"].writing-page .archive-arrow { color: var(--lime); }
body[data-theme="atlas"].writing-page .archive-row h2 { font-size: 27px; }
body[data-theme="atlas"].writing-page .archive-row a:hover h2 { color: var(--atlas-wine, #cca3a4); }
body[data-theme="atlas"].writing-page .archive-row-meta,
body[data-theme="atlas"].writing-page .archive-mobile-date,
body[data-theme="atlas"].writing-page .article-meta { color: var(--muted); }
body[data-theme="atlas"].writing-page .writing-footer { border-top: 3px double var(--line); }
body[data-theme="atlas"].writing-page .reader-back,
body[data-theme="atlas"].writing-page .article-byline a { color: #d3b596; }
body[data-theme="atlas"].writing-page .reader-back:hover,
body[data-theme="atlas"].writing-page .article-byline a:hover { color: var(--atlas-wine, #cca3a4); }
body[data-theme="atlas"].writing-page .article-header h1 { line-height: 1.14; }
body[data-theme="atlas"].writing-page .article-byline { border-bottom: 3px double var(--line); }
body[data-theme="atlas"].writing-page .article-body { color: #e2d4c4; }
body[data-theme="atlas"].writing-page .article-body .article-opening { color: #eee2d1; }
body[data-theme="atlas"].writing-page .article-body h2 { color: var(--text); }
body[data-theme="atlas"].writing-page .article-body blockquote { color: #dfbdae; border-color: var(--lime); }
body[data-theme="atlas"].writing-page .article-cover { border-radius: 1px; border: 1px solid var(--line); }
body[data-theme="atlas"].writing-page .article-navigation strong { font-family: var(--atlas-serif, Georgia, serif); }
body[data-theme="atlas"].reader-page.mood-mist { background: #181d1b; }
body[data-theme="atlas"].reader-page.mood-dawn { background: #24191e; }
@media (max-width: 760px) {
  body[data-theme="atlas"].writing-page .header { gap: 18px; }
  body[data-theme="atlas"].writing-page .header nav { display: flex; gap: 18px; font-size: 13px; }
  body[data-theme="atlas"].writing-page .wordmark > span:last-child { display: none; }
  body[data-theme="atlas"].writing-page .archive-intro { margin-bottom: 28px; }
  body[data-theme="atlas"].writing-page .archive-row h2 { font-size: 25px; }
  body[data-theme="atlas"].writing-page .article-header h1 { font-size: 40px; }
  body[data-theme="atlas"].writing-page .writing-year select { min-height: 50px; }
}
@media (max-width: 380px) {
  body[data-theme="atlas"].writing-page .header { gap: 14px; }
  body[data-theme="atlas"].writing-page .header nav { gap: 13px; font-size: 12px; }
  body[data-theme="atlas"].writing-page .article-header h1 { font-size: 35px; }
}
