:root { color-scheme: light; --ink: #242422; --muted: #777772; --line: #e9e9e5; --paper: #fff; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #74746e; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.3; font-weight: 400; overflow-wrap: anywhere; }
button, input, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 2px solid #686862; outline-offset: 5px; }
.shell { width: min(100% - 48px, 640px); margin: 0 auto; }
.home { padding-top: clamp(88px, 16vh, 160px); padding-bottom: 100px; }
.intro h1 { font-size: 25px; }
.intro p { margin-top: 9px; color: #666660; font-size: 17px; }
.post-list { list-style: none; padding: 0; margin: 86px 0 0; }
.post-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 31px; }
.post-list a { text-decoration: none; overflow-wrap: anywhere; }
.post-list a:hover { text-decoration: underline; }
time { color: var(--muted); font-size: 14px; white-space: nowrap; }
.empty { margin-top: 86px; color: var(--muted); font-size: 16px; }
.article { padding-top: 64px; padding-bottom: 120px; }
.back-link { display: inline-block; font-size: 15px; color: var(--muted); text-decoration: none; }
.post-heading { margin: 76px 0 58px; }
.post-heading h1 { font-size: 32px; margin-bottom: 12px; }
.post-content { overflow-wrap: break-word; }
.post-content :where(p, ul, ol, blockquote, pre, figure) { margin: 0 0 1.6em; }
.post-content :where(h2, h3) { margin: 2em 0 1em; font-weight: 400; line-height: 1.35; }
.post-content :where(img, video, iframe) { max-width: 100%; }
.post-content :where(img, video) { height: auto; }
.post-content pre { overflow-x: auto; font-size: 14px; }
.post-content blockquote { margin-left: 0; padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); }
.message-page { padding-top: 120px; }
.message-page p { margin: 20px 0 32px; color: var(--muted); }
.admin { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.6; }
.admin [hidden] { display: none !important; }
.admin h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 30px; }
.admin-shell { width: min(100% - 48px, 780px); margin: 0 auto; padding: 36px 0 100px; }
.admin-header, .admin-header nav, .page-heading, .action-group, .editor-actions, .editor-footer, .editor-footer > div { display: flex; align-items: center; }
.admin-header { justify-content: space-between; color: var(--muted); }
.admin-header > a { color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 18px; }
.admin-header a { text-decoration: none; }
.admin-header nav { gap: 26px; }
.page-heading { justify-content: space-between; gap: 24px; margin: 76px 0 42px; }
.muted, .save-status, .post-meta, .quiet-link { color: var(--muted); }
button, .button { display: inline-block; border: 1px solid #deded8; background: #fff; padding: 9px 17px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.5; }
button:hover, .button:hover { background: #f7f7f4; color: var(--ink); }
.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.primary:hover { background: #41413c; color: #fff; }
.text-button { border: 0; padding: 0; background: transparent; font-size: inherit; color: inherit; }
.text-button:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
.admin-posts { list-style: none; padding: 0; margin: 0; }
.admin-posts li { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 25px 0; border-top: 1px solid var(--line); }
.post-title { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; text-decoration: none; overflow-wrap: anywhere; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 8px; font-size: 12px; }
.post-meta time { font-size: inherit; }
.quiet-link { white-space: nowrap; text-decoration: none; font-size: 13px; }
.empty-state { padding-top: 34px; }
label, legend { display: block; margin-bottom: 8px; font-size: 13px; }
input:not([type='radio']):not([type='hidden']), textarea { width: 100%; border: 1px solid #deded8; border-radius: 4px; background: #fff; color: var(--ink); padding: 12px; }
input:focus, textarea:focus { outline: 1px solid #8c8c82; outline-offset: 0; border-color: #8c8c82; }
.metadata-fields { display: grid; grid-template-columns: 1fr 180px; gap: 24px; }
#title { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; padding: 8px 12px; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 32px 0; }
.format-options { display: flex; gap: 28px; }
.format-options label { display: flex; align-items: center; gap: 8px; }
input[type='radio'] { accent-color: var(--ink); margin: 0; }
.save-status { margin-top: 8px; font-size: 12px; }
.save-status:empty { display: none; }
textarea { display: block; min-height: 420px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; tab-size: 2; }
.html-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.html-toolbar label { margin: 0; }
.html-toolbar button { padding: 5px 12px; }
.embed-help { font-size: 12px; margin-bottom: 12px; }
#html-blocks { display: grid; gap: 12px; }
#html, #html-blocks > textarea { field-sizing: content; min-width: 0; resize: none; }
#html-blocks[data-has-embeds] textarea { min-height: 72px; }
#html-blocks[data-has-embeds] > textarea.html-gap { min-height: 40px; }
.embed-block { min-width: 0; border: 1px solid #deded8; border-radius: 4px; background: #f8f8f5; }
.embed-block summary { cursor: pointer; padding: 12px 16px; font-size: 13px; }
.embed-title { margin-left: 6px; font-weight: 500; }
.embed-count { margin-left: 12px; font-size: 12px; color: var(--muted); }
.embed-snippet { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 4px 0 0 20px; color: var(--muted); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.embed-block[open] .embed-snippet { display: none; }
.embed-body { padding: 0 12px 12px; }
.embed-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 12px; }
.unwrap-embed { color: var(--muted); }
.editor-actions { justify-content: space-between; gap: 20px; margin-top: 24px; }
.action-group { gap: 12px; }
.editor-footer { justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; }
.editor-footer > div { flex-wrap: wrap; gap: 24px; }
.danger-link { color: #8d4840; text-decoration: none; }
.danger-button { color: #fff; background: #8d4840; border-color: #8d4840; }
.danger-button:hover { background: #743b34; color: #fff; }
.notice { margin-bottom: 28px; padding: 12px 16px; background: #f5f6f1; border-radius: 4px; font-size: 13px; }
.error { color: #8d4840; background: #faf3f1; }
.login { max-width: 340px; padding-top: 90px; }
.login h1 { margin: 66px 0 36px; }
.login button { margin-top: 22px; }
.delete-confirmation { margin-top: 90px; max-width: 520px; }
.delete-confirmation p { margin: 24px 0 32px; color: var(--muted); }
@media (max-width: 560px) {
  .post-list li { flex-direction: column; gap: 3px; margin-bottom: 30px; }
  .post-list { margin-top: 64px; }
  .intro p { font-size: 15px; }
  .post-heading { margin-top: 60px; }
  .post-heading h1 { font-size: 28px; }
  .admin-shell { padding-top: 26px; }
  .admin-header nav { gap: 18px; }
  .page-heading { margin-top: 56px; }
  .metadata-fields { grid-template-columns: 1fr; gap: 22px; }
  .format-options { flex-wrap: wrap; gap: 10px 24px; }
  .editor-actions { flex-wrap: wrap; }
  .editor-actions .action-group { flex-wrap: wrap; }
  .admin-posts li { gap: 16px; }
  .editor-footer { align-items: baseline; }
  input:not([type='radio']):not([type='hidden']), textarea { font-size: 16px; }
}
