@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;0,800;1,400;1,500;1,700&family=Alegreya+Sans:wght@300;400;700&family=Fira+Code:wght@400;500&display=swap');

@font-face {
  font-family: 'Missaali';
  font-style: normal;
  font-weight: normal;
  src: url('/static/missaali.woff2') format('woff2');
}

@font-face {
  font-family: 'Aboensis';
  font-style: normal;
  font-weight: normal;
  src: url('/static/fonts/Aboensis-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Acathist';
  font-style: normal;
  font-weight: normal;
  src: url('/static/fonts/Acathist-Regular.woff2') format('woff2');
  unicode-range: U+0400-04FF, U+0500-052F, U+1C80-1C8F, U+2C00-2C5F, U+2DE0-2DFF, U+A640-A69F, U+1E030-1E06F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'TexturaLibera';
  src: url('/static/fonts/TexturaLibera.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Threadpuller';
  src: url('/static/fonts/Pentiment_Threadpuller.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Textura';
  src: url('/static/fonts/Pentiment_Textura.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Printed';
  src: url('/static/fonts/Pentiment_Printed.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Peasant';
  src: url('/static/fonts/Pentiment_Peasant.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Humanist';
  src: url('/static/fonts/Pentiment_Humanist.woff2') format('woff2');
}

@font-face {
  font-family: 'Pentiment Cursive';
  src: url('/static/fonts/Pentiment_Cursive.woff2') format('woff2');
}

:root {
  --font-display: "Pentiment Humanist", "Alegreya", serif;
  --font-display-hard: "Aboensis", "Acathist", cursive;
  --font-body: "Pentiment Humanist", "Alegreya", serif;
  --font-ui: "Alegreya Sans", sans-serif;

  --burnt-sienna: #B1523E;
  --terra-cotta: #c86a56;
  --abgreen: #62876E;
  --tyrian: #5c2d91;
  --amethyst: #6b2fa0;
  --orchid: #8b45c4;
  --jet: #0a0a0a;
  --obsidian: #080808;
  --ivory: #fff;
  --pewter: #888;
  --iron: #777;
  --slate: #666;
  --graphite: #555;
  --charcoal: #444;
  --soot: #333;
  --onyx: #222;
  --pitch: #1a1a1a;
  --burnt-sienna-faint: #c44a1a40;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-feature-settings: "liga", "calt", "kern";
  font-variant-ligatures: common-ligatures contextual;
  font-kerning: normal;
  background: var(--jet);
  color: var(--ivory);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  align-items: center;
  padding: 6rem 8rem 2rem;
  gap: 2rem;
}

.content {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: normal;
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
  font-feature-settings: "liga", "calt", "dlig", "isol";
}

a {
  color: inherit;
  text-decoration: none;
}

.aside a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4' viewBox='0 0 20 4'%3E%3Cpath d='M0 2.5 C2 1, 4 3.5, 6 2 C8 0.5, 10 3, 12 2.5 C14 2, 17 0.8, 20 2.5' stroke='%23333' fill='none' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom 0.05em left;
  background-size: 20px 4px;
  padding-bottom: 0.1em;
  transition: background-image 0.2s;
}

.aside a:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4' viewBox='0 0 20 4'%3E%3Cpath d='M0 2.5 C2 1, 4 3.5, 6 2 C8 0.5, 10 3, 12 2.5 C14 2, 17 0.8, 20 2.5' stroke='%23888' fill='none' stroke-width='0.8'/%3E%3C/svg%3E");
}

.aside a.rubric:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4' viewBox='0 0 20 4'%3E%3Cpath d='M0 2.5 C2 1, 4 3.5, 6 2 C8 0.5, 10 3, 12 2.5 C14 2, 17 0.8, 20 2.5' stroke='%23B1523E' fill='none' stroke-width='0.8'/%3E%3C/svg%3E");
}

/* rubrication — semantic emphasis, not decoration */
.rubric { color: var(--burnt-sienna); }
.swash { font-feature-settings: "swsh", "init"; }
.no-lig { font-feature-settings: "liga" 0, "dlig" 0, "calt" 0; }
.amethyst { color: var(--amethyst); }
.verdant { color: var(--abgreen); }
a:hover .amethyst { color: var(--orchid); }
h1 .phoenix { color: var(--burnt-sienna); }

.status {
  font-family: var(--font-ui);
  display: inline-block;
  font-size: 1rem;
  font-weight: 300;
  color: var(--pewter);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--burnt-sienna-faint);
}

/* webring base */
.manicule {
  font-family: 'Aboensis', cursive;
  font-size: 1.5em;
  line-height: 1;
}

.webring-otoring {
  color: var(--amethyst);
}

.webring-otoring a:hover {
  color: var(--orchid);
}

.webring-foxring {
  color: #a0704a;
}

.webring-foxring a:hover {
  color: #b8845a;
}

.right-col {
  display: flex;
  flex-direction: column;
  align-self: start;
  justify-self: end;
  margin-right: 1.5rem;
}

/* status bar — full-width 3-col row */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 4rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--charcoal);
  border-top: 1px solid var(--pitch);
}

.status-bar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-bar-right {
  display: flex;
  align-items: center;
}


.status-bar .contact {
  display: flex;
  gap: 0.5em;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--charcoal);
  margin: 0;
}

.status-bar .contact .sep {
  color: var(--soot);
}

.footer-compact {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.stat-sep {
  color: var(--soot);
  user-select: none;
}

/* webrings in status bar */
.webring {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.webring .webring-name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1;
  font-feature-settings: normal;
}

.webring .manicule {
  font-size: 1.2em;
}

.fox { color: #a0704a; }
a:hover .fox { color: #b8845a; }

.aside {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
  color: var(--pewter);
  max-width: 32rem;
  font-feature-settings: "liga", "calt", "dlig";
  text-align: justify;
  text-align-last: left;
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.drop-cap {
  float: left;
  color: var(--burnt-sienna);
  margin-right: 0.2rem;
  line-height: 0;
}

.drop-cap-img {
  height: 5.6em;
  width: auto;
  display: block;
}

.drop-cap-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.aside .contact {
  margin-top: 1em;
}

.aside .now-playing {
  margin-top: 1em;
  font-size: 0.85em;
  color: var(--graphite);
  font-feature-settings: "liga", "calt", "dlig", "onum";
}

.np-label {
  color: var(--charcoal);
}

.aside .colophon {
  color: var(--graphite);
  font-size: 0.85em;
}

.aside p + p {
  margin-top: 1em;
}

/* header status — inline in status bar */
.header-status {
  display: flex;
  align-items: center;
  gap: 0;
}

.status-latin,
.status-english {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.status-english {
  display: none;
}

body[data-mode="english"] .status-latin {
  display: none;
}

body[data-mode="english"] .status-english {
  display: flex;
}

.aside-status {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--charcoal);
  white-space: nowrap;
}

.aside-status .status-label {
  color: var(--graphite);
}

/* status footer */
.page-footer {
  font-family: var(--font-ui);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0.5rem 1.2rem;
  border-top: 1px solid var(--pitch);
  background: var(--obsidian);
  font-size: 0.8rem;
  color: var(--graphite);
}

.page-footer a {
  color: var(--slate);
  text-decoration: none;
}

.page-footer a.rubric {
  color: var(--burnt-sienna);
}

.page-footer a.rubric:hover {
  color: var(--terra-cotta);
}

.page-footer a:hover {
  color: var(--pewter);
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
}

.footer-left {
  gap: 0;
}

.footer-sep {
  color: var(--soot);
  user-select: none;
}

.pgp-fingerprint {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.pgp-fingerprint:hover {
  color: var(--pewter);
}

.stat {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--graphite);
  margin-right: 0.15em;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}

.page-footer strong {
  color: var(--iron);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sep {
  color: var(--soot);
  user-select: none;
}

/* site nav */
.site-nav {
  position: fixed;
  top: 1rem;
  left: 1.2rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  z-index: 10;
}

.nav-link {
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--pewter);
}

.nav-link.active {
  color: var(--burnt-sienna);
}

.nav-sep {
  color: var(--soot);
  user-select: none;
}

/* font selector (hidden for now) */
.font-select {
  display: none;
  position: fixed;
  top: 2.6rem;
  right: 1rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  background: var(--obsidian);
  border: 1px solid var(--pitch);
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.font-select:hover,
.font-select:focus {
  color: var(--pewter);
  border-color: var(--soot);
  outline: none;
}

.font-select option {
  background: var(--obsidian);
  color: var(--pewter);
}

.site-title {
  font-family: var(--font-display-hard);
}

h1 .title-link {
  color: inherit;
  text-decoration: none;
}

h1 .title-link:hover .phoenix {
  color: var(--terra-cotta);
}

/* mode toggle */
.mode-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.mode-opt {
  color: var(--charcoal);
  transition: color 0.2s;
}

.mode-opt:hover {
  color: var(--pewter);
}

.mode-sep {
  color: var(--soot);
}

/* active mode highlight */
body[data-mode="antiqua"] .mode-opt[data-mode="antiqua"],
body[data-mode="moderna"] .mode-opt[data-mode="moderna"],
body[data-mode="english"] .mode-opt[data-mode="english"] {
  color: var(--pewter);
}

/* antiqua: Aboensis Latin bio, drop cap visible */
body[data-mode="antiqua"] .aside {
  font-family: var(--font-display-hard);
}

.aside-english {
  display: none;
  text-align: left;
  hyphens: none;
  -webkit-hyphens: none;
}


/* colophon swap */
.colophon-moderna {
  display: none;
}

body[data-mode="moderna"] .colophon-antiqua {
  display: none;
}

body[data-mode="moderna"] .colophon-moderna {
  display: block;
}

/* moderna: Humanist Latin bio, keep drop cap */
body[data-mode="moderna"] .aside {
  font-family: var(--font-body);
  font-feature-settings: "liga", "calt";
}

/* english: English bio, no drop cap */
body[data-mode="english"] .aside-latin {
  display: none;
}

body[data-mode="english"] .aside-english {
  display: block;
}

body[data-mode="english"] .drop-cap {
  display: none;
}

body[data-mode="english"] .aside {
  font-family: var(--font-body);
  font-feature-settings: "liga", "calt";
}

/* header font toggle */
.header-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.header-toggle .mode-opt {
  color: var(--charcoal);
  transition: color 0.2s;
}

.header-toggle .mode-opt:hover {
  color: var(--pewter);
}

.header-toggle .mode-sep {
  color: var(--soot);
}

body[data-headers="humanist"] .header-toggle .mode-opt[data-mode="humanist"] {
  color: var(--pewter);
}

body[data-headers="aboensis"] .header-toggle .mode-opt[data-mode="aboensis"] {
  color: var(--pewter);
}

body[data-headers="aboensis"] {
  --font-display: var(--font-display-hard);
}

/* listing pages — grid layout */
.listing-page {
  flex: 1;
  padding: 0;
}

.listing-grid {
  display: grid;
  grid-template-columns: [date] 10rem [content] 1fr;
  column-gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 4rem;
}

.listing-title {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: normal;
  color: var(--burnt-sienna);
  font-feature-settings: "liga", "calt", "dlig", "swsh";
  margin: 33vh 0 10rem;
  line-height: 1.1;
}

.listing-entries {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  padding-bottom: 8rem;
}

/* shared entry row */
.entry-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  text-decoration: none;
  color: var(--pewter);
  transition: color 0.2s;
}

.entry-row:hover {
  color: var(--burnt-sienna);
}

.entry-date {
  grid-column: date;
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--charcoal);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}

.entry-content {
  grid-column: content;
}

/* writings — rich entries */
.listing-entries--rich {
  row-gap: 8rem;
}

.entry-row--rich .entry-date {
  padding-top: 0.4em;
  position: relative;
}

.entry-row--rich .entry-date::before {
  content: "\2014\2014\2014";
  position: absolute;
  top: -1.5rem;
  left: 0;
  color: var(--soot);
  letter-spacing: -0.15em;
}

.entry-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: normal;
  color: var(--pewter);
  line-height: 1.15;
  font-feature-settings: "liga", "calt", "dlig";
  transition: color 0.2s;
}

.entry-row:hover .entry-heading {
  color: var(--burnt-sienna);
}

.entry-heading::after {
  content: " \203A";
  color: var(--charcoal);
  transition: margin-left 0.2s ease;
}

.entry-row:hover .entry-heading::after {
  margin-left: 0.4rem;
  color: var(--burnt-sienna);
}

.entry-description {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.entry-media {
  width: 100%;
  height: auto;
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* archive — compact entries */
.entry-row--compact {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: 1.3;
  padding: 0.6rem 0;
}

.entry-year-inline {
  display: none;
}

/* 404 error page */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.error-content {
  text-align: center;
  max-width: 32rem;
}

.error-code {
  font-family: var(--font-display-hard);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: normal;
  line-height: 1;
  color: var(--soot);
  font-feature-settings: "liga", "calt", "dlig";
  margin-bottom: 0.5rem;
}

.error-latin {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--burnt-sienna);
  font-style: italic;
  font-feature-settings: "liga", "calt", "dlig";
  margin-bottom: 0.8rem;
}

.error-english {
  font-family: "Alegreya", serif;
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.error-home {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 0.2s;
}

.error-home:hover {
  color: var(--burnt-sienna);
}

/* post page — editorial typography */
.post-page {
  display: block;
  padding: 0;
}

.post {
  max-width: 42rem;
  margin: 0 auto;
  padding: 20vh 2rem 8rem;
  font-family: "Alegreya", serif;
  font-size: 1.2rem;
  line-height: 1.75;
  color: var(--pewter);
}

.post-meta {
  font-family: "Alegreya Sans", sans-serif;
  font-size: 0.95rem;
  color: var(--pewter);
  opacity: 0.7;
  margin-bottom: 2rem;
}

.post-meta .p-author {
  color: inherit;
  text-decoration: none;
}

.post h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: normal;
  line-height: 1.1;
  color: var(--burnt-sienna);
  font-feature-settings: "liga", "calt", "dlig", "swsh";
  margin-bottom: 3rem;
}

.post h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: normal;
  line-height: 1.2;
  color: var(--ivory);
  font-feature-settings: "liga", "calt", "dlig";
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.post h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--ivory);
  font-feature-settings: "liga", "calt";
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

.post p {
  margin-bottom: 1.25em;
  text-wrap: pretty;
}

.post p + p {
  text-indent: 0;
}

.post strong {
  color: var(--ivory);
  font-weight: 700;
}

.post em {
  font-style: italic;
}

.post a {
  color: var(--burnt-sienna);
  text-decoration: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='4' viewBox='0 0 20 4'%3E%3Cpath d='M0 2.5 C2 1, 4 3.5, 6 2 C8 0.5, 10 3, 12 2.5 C14 2, 17 0.8, 20 2.5' stroke='%23B1523E' fill='none' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: bottom 0.05em left;
  background-size: 20px 4px;
  padding-bottom: 0.1em;
  transition: color 0.2s;
}

.post a:hover {
  color: var(--terra-cotta);
}

.post ul,
.post ol {
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.post li {
  margin-bottom: 0.4em;
}

.post li::marker {
  color: var(--charcoal);
}

.post blockquote {
  border-left: 2px solid var(--burnt-sienna-faint);
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: var(--charcoal);
  font-style: italic;
}

/* inline code */
.post code {
  font-family: "Fira Code", monospace;
  font-feature-settings: "liga", "calt";
  font-size: 0.82em;
  color: var(--ivory);
  background: var(--pitch);
  padding: 0.1em 0.35em;
  border-radius: 2px;
  vertical-align: 0.02em;
}

/* fenced code blocks */
.post pre {
  margin: 2em 0;
  padding: 1.2em 1.5em;
  background: var(--obsidian);
  border: 1px solid var(--pitch);
  border-radius: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.post pre code {
  font-family: "Fira Code", monospace;
  font-feature-settings: "liga", "calt";
  font-size: 0.82rem;
  color: var(--pewter);
  background: none;
  padding: 0;
  border-radius: 0;
  line-height: 1.7;
  tab-size: 2;
  display: block;
}

.post pre code .hl-kw,
.post pre code .hl-str,
.post pre code .hl-num,
.post pre code .hl-cmt,
.post pre code .hl-fn,
.post pre code .hl-op,
.post pre code .hl-pn,
.post pre code .hl-ty,
.post pre code .hl-mod,
.post pre code .hl-var,
.post pre code .hl-con,
.post pre code .hl-bi,
.post pre code .hl-tag,
.post pre code .hl-attr,
.post pre code .hl-sel,
.post pre code .hl-prop,
.post pre code .hl-re {
  background: none;
  padding: 0;
  border-radius: 0;
  vertical-align: baseline;
}

/* highlights (==text==) */
.post mark {
  background: #c44a1a30;
  color: var(--ivory);
  padding: 0.05em 0.2em;
  border-radius: 2px;
}

/* footnotes */
.post .footnote-ref a {
  color: var(--burnt-sienna);
  text-decoration: none;
  font-feature-settings: "tnum";
}

.post .footnote-ref a:hover {
  color: var(--terra-cotta);
}

.post .footnotes {
  margin-top: 3rem;
  font-size: 0.9em;
  color: var(--charcoal);
}

.post .footnotes hr {
  margin-bottom: 1.5rem;
}

.post .footnote-list {
  padding-left: 1.5em;
}

.post .footnote-list li {
  margin-bottom: 0.8em;
}

.post .footnote-list li::marker {
  color: var(--burnt-sienna);
}

.post .footnote-backref {
  color: var(--burnt-sienna);
  text-decoration: none;
  margin-left: 0.3em;
}

.post .footnote-backref:hover {
  color: var(--terra-cotta);
}

/* syntax highlighting — muted palette for dark bg */
.hl-kw  { color: #c89b6e; }
.hl-str { color: #8fae6e; }
.hl-num { color: #8fae6e; }
.hl-cmt { color: #5c5c5c; font-style: italic; }
.hl-fn  { color: #7ca0c4; }
.hl-op  { color: #9a7ebd; }
.hl-pn  { color: #666; }
.hl-ty  { color: #6fb5a1; }
.hl-mod { color: #6fb5a1; }
.hl-var { color: #c9a86c; }
.hl-con { color: #b07eaa; }
.hl-bi  { color: #7ca0c4; }
.hl-tag { color: var(--burnt-sienna); }
.hl-attr { color: #c89b6e; }
.hl-sel { color: #6fb5a1; }
.hl-prop { color: #c89b6e; }
.hl-re  { color: #8fae6e; }

.post hr {
  border: none;
  border-top: 1px solid var(--soot);
  margin: 3rem 0;
}

.post img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
  margin: 1.5em 0;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

.post th,
.post td {
  padding: 0.5em 0.8em;
  border-bottom: 1px solid var(--pitch);
  text-align: left;
}

.post th {
  color: var(--ivory);
  font-weight: 700;
  border-bottom-color: var(--soot);
}

@media (max-width: 1024px) {
  .site-nav {
    position: static;
    display: flex;
    justify-content: center;
    padding: 0.8rem 1rem 0;
    font-size: 0.85rem;
    gap: 0;
  }
  .nav-sep { font-size: 0.85rem; }
  .mode-toggle,
  .header-toggle {
    position: static;
    display: flex;
    justify-content: center;
    padding: 0.3rem 1rem 0.8rem;
    font-size: 0.85rem;
  }
  main {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    padding-top: 0.5rem;
    align-items: center;
    align-content: initial;
  }
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: auto;
    width: 80vw;
  }
  .status-bar {
    flex-direction: column;
    padding: 0.8rem 2rem;
    gap: 0.6rem;
    text-align: center;
    align-items: center;
  }
  .status-bar-left {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  .status-bar-right {
    justify-content: center;
  }
  .status-bar .header-status {
    flex-direction: column;
  }
  .status-bar .status-latin,
  .status-bar .status-english {
    flex-direction: column;
    gap: 0.3em;
  }
  .status-bar .aside-status {
    white-space: normal;
  }
  h1 {
    text-align: center;
    font-size: clamp(3rem, 18vw, 8rem);
  }
  .right-col {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
  }
  .aside-english {
    font-size: 1.4rem;
  }
  body[data-mode="moderna"] .aside {
    font-size: 1.4rem;
  }
  .listing-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }
  .listing-title { margin: 20vh 0 4rem; }
  .listing-entries { grid-template-columns: 1fr; }
  .listing-entries--rich { row-gap: 4rem; }
  .entry-row { grid-template-columns: 1fr; }
  .entry-date { display: none; }
  .entry-content { grid-column: 1; }
  .entry-year-inline { display: inline; font-style: italic; color: var(--charcoal); }
  .post { padding: 12vh 1.5rem 4rem; font-size: 1.1rem; }
  .page-footer { justify-content: center; }
}
