/* Local fonts. Plain HTML and CSS. */
:root {
  color-scheme: dark;
  --ground: #191715;
  --ink: #c7beb2;
  --bright: #d7cdbf;
  --muted: #a0978b;
  --faint: #91877b;
  --rule: #302b26;
  --accent: #a49a87;
  --serif: Georgia, 'Times New Roman', serif;
  --display: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
  --mono: 'Courier New', Courier, monospace;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
/* A still paper surface, including over the embedded forms. */
body::before { content: ''; position: fixed; inset: 0; z-index: 5; pointer-events: none; background: url('paper-grain.svg') repeat; background-size: 192px 192px; opacity: .035; }
::selection { color: var(--bright); background: #49483c; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { color: var(--bright); }
a:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; border-radius: 1px; }
.skip-link { position: absolute; z-index: 1; top: -100px; left: 24px; padding: 12px 18px; background: var(--bright); color: var(--ground); font-family: var(--mono); font-size: .875rem; }
.skip-link:focus { top: 16px; color: var(--ground); }
.site { width: min(100% - 96px, 1000px); margin: 0 auto; }
.masthead { min-height: 142px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-top: 55px; }
.site-name { font-family: var(--mono); font-size: 1rem; font-weight: 400; letter-spacing: -.025em; text-decoration: none; color: var(--bright); line-height: 1.8; }
.layout { display: grid; grid-template-columns: 170px minmax(0, 620px); column-gap: 82px; }
.sidebar { padding-top: 8px; }
.sidebar nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sidebar nav a { position: relative; display: inline-block; font-family: var(--mono); font-size: .875rem; line-height: 1.9; color: var(--muted); text-decoration: none; padding: 2px 0; }
.sidebar nav .nav-afterthought { margin-top: 23px; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { color: var(--bright); }
.sidebar nav a[aria-current="page"]::before { content: ''; position: absolute; left: -23px; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); background: url('bite-mark.svg?v=ink-ring-1') center / contain no-repeat; }
main { min-width: 0; }
.eyebrow, .section-heading, .text-link, .entry-list time, .footer, .page-date, .essay-pagination, .back-link { font-family: var(--mono); font-size: .8125rem; font-weight: 400; }
.eyebrow { display: flex; gap: 27px; color: var(--muted); letter-spacing: .015em; margin: 12px 0 24px; }
.eyebrow time, .page-date time { position: relative; }
.eyebrow time::before, .page-date time::before { content: ''; position: absolute; width: 10px; height: 10px; left: -20px; top: .2em; background: url('bite-mark.svg?v=ink-ring-1') center / contain no-repeat; opacity: .65; }
.time-separator { color: var(--faint); padding: 0 11px; }
.opening { padding-top: 12px; }
.opening .eyebrow { margin-left: 20px; margin-bottom: 30px; }
.opening h1 { max-width: 560px; font-family: var(--display); font-size: 1.55rem; line-height: 1.6; font-weight: 400; letter-spacing: -.025em; margin: 0 0 0 -8px; color: var(--bright); }
.recent { margin: 14px 0 0; max-width: 560px; }
.section-heading { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 15px; color: var(--muted); }
.section-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 79%; height: 1px; background: var(--rule); }
.section-heading h1, .section-heading h2 { margin: 0; font-size: inherit; font-weight: 400; letter-spacing: .035em; }
.section-heading > span { color: var(--faint); }
.empty-state { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.recent .empty-state { margin-top: 22px; }
.entry-list { list-style: none; padding: 10px 0 0; margin: 0; }
.entry-list li { margin: 0; }
.entry-list a { display: flex; justify-content: space-between; align-items: baseline; column-gap: 24px; text-decoration: none; padding: 17px 0; }
.entry-title { display: inline-block; font-size: 1.125rem; line-height: 1.55; overflow-wrap: anywhere; transition: transform 180ms ease, color 180ms ease; }
.home .entry-list li:first-child .entry-title { color: var(--bright); }
.home .entry-list a { justify-content: flex-start; column-gap: 26px; }
.entry-list a:hover .entry-title, .entry-list a:focus-visible .entry-title { transform: translateX(3px); color: var(--bright); text-decoration: underline; text-decoration-color: var(--faint); }
.entries-page .entry-list li:first-child .entry-title { margin-left: -10px; }
.entry-list time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.text-link { color: var(--muted); text-decoration: none; font-size: .8125rem; line-height: 1.7; }
.text-link:hover { text-decoration: underline; }
.archive-link { display: inline-block; margin-top: 25px; }
.archive-link span { margin-left: 9px; color: var(--accent); }
.marginalia { margin: 64px 0 0 29px; color: var(--faint); }
.marginalia p { font-size: .875rem; line-height: 1.8; margin: 0; }
.footer { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); margin: 64px 0 36px; padding-top: 20px; font-size: .8125rem; line-height: 1.8; color: var(--faint); }
/* Center the home footer rule and date independently of the contact link. */
.site:has(.home) { margin-inline: auto; }
.site:has(.home) .footer { display: grid; grid-template-columns: 1fr auto 1fr; margin: 108px auto 36px; width: min(100%, 812px); text-align: center; }
.site:has(.home) .footer > span { grid-column: 2; }
.site:has(.home) .footer-links { grid-column: 3; grid-row: 1; justify-self: end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.page-header { margin: 7px 0 55px; }
.page-date { color: var(--muted); line-height: 1.8; margin: 0 0 29px 24px; }
.page-date .writing-time { display: block; margin-top: 5px; color: var(--faint); }
.page-header h1 { font-family: var(--display); font-size: 2rem; font-weight: 400; letter-spacing: -.04em; line-height: 1.2; margin: 0 0 0 -12px; color: var(--bright); }
.page-intro { color: var(--muted); font-size: .9375rem; line-height: 1.8; margin: 19px 0 0; }
.year-group { margin-bottom: 34px; }
.year-label { font-family: var(--mono); font-size: .8125rem; font-weight: 400; color: var(--muted); margin: 0 0 17px; }
.archive-list { padding-top: 0; }
.archive-list a { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: baseline; gap: 20px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.archive-list .entry-title { font-size: 1rem; line-height: 1.45; }
.archive-page .page-header { margin-bottom: 38px; }
.archive-page .year-group { border-left: 1px solid var(--rule); padding-left: 20px; }
.archive-page .year-label { margin: 0 0 12px; }
.archive-page .year-group:nth-of-type(even) { margin-left: 12px; }
.essay { max-width: 620px; }
.essay .page-header { margin-bottom: 43px; }
.essay .page-header h1 { max-width: 600px; font-size: clamp(1.9rem, 2.7vw, 2.375rem); line-height: 1.17; }
.prose { font-size: 1.125rem; line-height: 1.9; color: var(--bright); overflow-wrap: break-word; }
.prose p { margin: 0 0 25px; }
.about-page .page-header { margin-bottom: 57px; }
.about-page .prose { max-width: 440px; margin-left: 34px; }
.about-page .prose p { font-family: var(--serif); font-size: 1rem; line-height: 1.8; color: var(--muted); }
.password-gate { max-width: 380px; margin: 0 0 24px; }
.password-gate label { display: block; margin-bottom: 10px; font: .875rem/1.8 var(--mono); color: var(--muted); }
.password-gate input { display: block; width: 100%; margin-bottom: 24px; padding: 9px 1px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; color: var(--bright); font: 1rem/1.8 var(--serif); }
.password-gate input:focus { outline: none; border-color: var(--accent); }
.password-gate button, .lock-writing { padding: 9px 18px; border: 1px solid #62574a; background: transparent; color: var(--bright); font: .8125rem/1.8 var(--mono); cursor: pointer; }
.password-gate button:hover, .lock-writing:hover { border-color: var(--accent); background: #211e1a; }
.password-gate button:focus-visible, .lock-writing:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
.password-gate button:disabled { cursor: wait; opacity: .65; }
.password-status { margin: 18px 0 0; font-size: .9375rem; line-height: 1.8; color: var(--muted); }
.lock-writing { display: block; margin-top: 32px; }
.password-gate[hidden], .lock-writing[hidden], .prose[hidden], .comments-section[hidden] { display: none; }
.notes-visibility { margin: 0 0 24px; font: .8125rem/1.8 var(--mono); color: var(--faint); }
.prose em { color: var(--bright); }
.prose a { text-decoration-color: #666352; }
.footnotes { border-top: 1px solid var(--rule); margin-top: 45px; padding-top: 18px; font-size: .875rem; line-height: 1.85; color: var(--muted); }
.footnotes p { margin: 0; }
.footnotes a { text-decoration: none; }
sup { font-size: .6875rem; line-height: 0; }
.essay-pagination { display: flex; justify-content: space-between; gap: 32px; margin-top: 70px; border-top: 1px solid var(--rule); padding-top: 24px; line-height: 1.8; }
.essay-pagination a { display: flex; flex-direction: column; gap: 7px; text-decoration: none; max-width: 45%; }
.essay-pagination a:last-child { margin-left: auto; text-align: right; }
.essay-pagination span { color: var(--faint); }
.essay-pagination strong { font-weight: 400; font-size: .8125rem; }
.essay-pagination a:hover strong { text-decoration: underline; }
.unfinished { padding-top: 24px; min-height: 63vh; }
.unfinished-site { padding-top: 174px; }
.unfinished-site .unfinished { grid-column: 2; }
.unfinished .page-header { margin-bottom: 44px; }
.unfinished .page-header h1 { font-family: var(--mono); font-size: .8125rem; color: var(--muted); letter-spacing: 0; }
.unfinished .back-link { margin-top: 73px; }
.return-arrow { padding: 8px 14px; margin-left: -14px; }
.back-link { display: inline-block; color: var(--muted); margin-top: 28px; text-decoration: none; font-size: .8125rem; line-height: 1.8; }
.back-link:hover { text-decoration: underline; }
.comments-section { margin-top: 58px; padding-top: 25px; border-top: 1px solid var(--rule); }
.form-frame { display: block; width: 100%; height: 680px; border: 0; background: var(--ground); color-scheme: dark; }
.comments-section .form-frame { margin-top: 0; }
.contact-page .page-header { margin-bottom: 32px; }
.contact-page .page-header h1 { margin-left: 0; font-size: 1.75rem; letter-spacing: -.025em; }
.contact-page .page-intro { max-width: 450px; font-size: 1rem; }
@media (min-width: 1600px) { .site { margin-left: calc(50% - 510px); } }
@media (max-width: 1050px) {
  .site { width: min(100% - 80px, 820px); }
  .layout { grid-template-columns: 135px minmax(0, 590px); column-gap: 50px; }
  .site:has(.home) .footer { width: min(100%, 745px); }
}
@media (max-width: 700px) {
  .site { width: min(100% - 48px, 590px); }
  .masthead { min-height: 104px; padding-top: 35px; }
  .layout { display: block; }
  .sidebar { padding: 0; margin: 0 0 56px; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 23px; }
  .sidebar nav a { padding: 6px 0; }
  .sidebar nav .nav-afterthought { margin-top: 0; }
  .sidebar nav a[aria-current="page"]::before { left: 0; width: 11px; height: 11px; }
  .sidebar nav a[aria-current="page"] { padding-left: 18px; }
  .eyebrow { margin-top: 0; margin-bottom: 26px; }
  .opening { padding-top: 0; }
  .opening .eyebrow { margin-left: 20px; }
  .opening h1 { margin-left: 0; }
  .note-break { display: none; }
  .recent { margin: 0; }
  .entry-list a { gap: 16px; padding: 14px 0; }
  .home .entry-list a { column-gap: 16px; }
  .entry-title { font-size: 1.0625rem; }
  .entries-page .entry-list li:first-child .entry-title { margin-left: 0; }
  .marginalia { margin: 72px 0 0 19px; }
  .footer { margin-top: 60px; gap: 16px; flex-wrap: wrap; }
  .page-header { margin-bottom: 42px; }
  .page-header h1 { margin-left: 0; }
  .page-date { margin-left: 20px; }
  .prose { font-size: 1.125rem; line-height: 1.9; }
  .archive-list a { gap: 12px; grid-template-columns: 4.5em minmax(0, 1fr); padding: 6px 0; }
  .archive-page .year-group { padding-left: 14px; }
  .about-page .prose { margin-left: 18px; }
  .site:has(.home) .footer { width: 100%; margin-top: 82px; }
  .site:has(.home) .footer > span, .site:has(.home) .footer-links { grid-column: 1 / -1; justify-self: center; }
  .site:has(.home) .footer-links { grid-row: 2; }
  .unfinished { padding-top: 8px; }
  .unfinished-site { padding-top: 143px; }
}
@media (max-width: 380px) {
  .site { width: calc(100% - 36px); }
  .sidebar nav { column-gap: 18px; }
  .entry-list a { flex-wrap: wrap; gap: 3px 12px; }
  .entry-list time { margin-left: auto; }
  .home .entry-list time { margin-left: 0; }
  .archive-list a { gap: 10px; grid-template-columns: 4em minmax(0, 1fr); }
  .archive-list time { margin-left: 0; }
  .note-break { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .entry-title { transition: none; }
  .entry-list a:hover .entry-title, .entry-list a:focus-visible .entry-title { transform: none; }
}
@media print {
  :root { --ground: #fff; --ink: #222; --bright: #000; --muted: #444; --faint: #555; --rule: #bbb; }
  .site { width: 100%; }
  body::before { display: none; }
  .sidebar, .essay-pagination, .skip-link, .comments-section, .form-frame, .footer-links { display: none; }
  .layout { display: block; }
  .masthead { padding: 0; min-height: 65px; }
  .essay { max-width: none; }
  .footer { margin-top: 35px; }
}
