@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("/fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/Work_Sans/WorkSans-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/Work_Sans/WorkSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inconsolata";
  src: url("/fonts/Inconsolata/Inconsolata-VariableFont_wdth,wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
html, body {
  font-family: "Work Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

code, pre {
  font-family: "Inconsolata", monospace;
}

/* _colors.sass - MossGarden theme color tokens */
/* Palette map (shades: 900 darkest -> 100 lightest) */
/* Access helper */
/* Semantic tokens */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent, #003e3c);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Access tokens consumed by other files; dark mode overrides these in dark.sass */
:root {
  --accent: #003e3c;
  --brand-text: #2c0345;
  --link: #2c0345;
  --link-hover: #00302e;
  --dropcap: #121212;
  --surface: #fefefe;
  --on-surface: #121212;
  --colophon-surface: rgba(254, 254, 254, 0.8);
  /* Card language shared by home, section, collection, about and playground
  * cards — dark mode re-points every one of these in dark.sass. */
  --card-surface: rgba(254, 254, 254, 0.8);
  --card-hover: #fefefe;
  --card-border: rgba(44, 3, 69, 0.2);
  --card-tint: linear-gradient(330deg, rgba(91, 6, 141, 0.05) 30%, rgba(211, 94, 0, 0.05) 100%);
  /* Floating panels: the About submenu and search results. Elevated above the
  * page in both modes so the panel edge is visible against the body. */
  --flyout: #fefefe;
  --flyout-shadow: 0 14px 34px rgba(18, 18, 18, 0.16);
}

/* Base reset */
html {
  height: 100%;
  margin: 0;
  scroll-padding-top: 1rem;
}

body {
  color: #121212;
  background: #fefefe;
  width: 90vw;
  max-width: 1280px;
  display: block;
  margin: 1.5rem auto;
}

/* Header styles — single row: logo | menu buttons | search + theme | (search panel opens as row 2) */
#site-header {
  position: relative;
  display: flex;
  margin: 1rem 0 1.75rem 0;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0.65rem 1rem;
  color: #ffffff;
  border-radius: 12px;
  border: 2px solid #2c0345;
  background: linear-gradient(90deg, rgba(91, 6, 141, 0.15) 0%, rgba(0, 128, 123, 0.15) 100%);
  flex-wrap: wrap;
  gap: 0.55rem;
}
#site-header a {
  text-decoration: none;
}
#site-header {
  /* Logo block */
}
#site-header #logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 auto;
  text-align: left;
}
#site-header #logo #logo-image {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
}
#site-header #logo #logo-text {
  font-family: "Work Sans Variable", sans-serif;
  margin: 0;
  text-align: left;
  line-height: 1.1;
  color: #2c0345;
}
#site-header #logo h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.05em;
  display: block;
  color: var(--brand-text);
}
#site-header #logo #subtitle {
  display: block;
  font-size: 0.72rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--brand-text);
}
#site-header #header-nav {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  order: 1;
}
#site-header #header-nav nav ul {
  display: flex;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}
#site-header #header-nav nav ul li {
  display: block;
  position: relative;
}
#site-header #header-nav nav ul li a {
  appearance: none;
  border: 2px solid #003e3c;
  background: none;
  color: #012726 !important;
  box-sizing: border-box;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: calc(0.35rem - 2px) calc(0.65rem - 2px);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
#site-header #header-nav nav ul li a i, #site-header #header-nav nav ul li a svg {
  pointer-events: none;
}
#site-header #header-nav nav ul li a .menu-caret {
  font-size: 0.7em;
  opacity: 0.8;
}
#site-header #header-nav nav ul li a:hover {
  background: linear-gradient(30deg, rgba(91, 6, 141, 0.95), rgba(0, 94, 91, 0.95));
  color: #fefefe !important;
}
li #site-header #header-nav nav ul li a {
  color: #012726;
}
#site-header #header-nav nav ul li > ul.submenu {
  display: none;
}
#site-header #header-nav nav ul li:hover > ul.submenu, #site-header #header-nav nav ul li:focus-within > ul.submenu, #site-header #header-nav nav ul li.open > ul.submenu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: -0.6rem;
  background: var(--flyout);
  border: 2px solid #003e3c;
  border-radius: 6px;
  list-style: none;
  padding: 0.25rem;
  margin: 0;
  min-width: 9rem;
  z-index: 1000;
  gap: 0;
  box-shadow: var(--flyout-shadow);
  /* Hover bridge: keeps the pointer inside the `li` hover chain
  * across the panel border pixels. */
}
#site-header #header-nav nav ul li:hover > ul.submenu::before, #site-header #header-nav nav ul li:focus-within > ul.submenu::before, #site-header #header-nav nav ul li.open > ul.submenu::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  left: 0;
  right: 0;
  height: 0.55rem;
}
#site-header #header-nav nav ul li:hover > ul.submenu li, #site-header #header-nav nav ul li:focus-within > ul.submenu li, #site-header #header-nav nav ul li.open > ul.submenu li {
  width: 100%;
}
#site-header #header-nav nav ul li:hover > ul.submenu li a, #site-header #header-nav nav ul li:focus-within > ul.submenu li a, #site-header #header-nav nav ul li.open > ul.submenu li a {
  display: block;
  white-space: nowrap;
  border: none !important;
  padding: 0.4rem 0.7rem;
  color: #012726 !important;
  text-decoration: none;
  border-radius: 4px;
}
#site-header #header-nav nav ul li:hover > ul.submenu li a.active, #site-header #header-nav nav ul li:focus-within > ul.submenu li a.active, #site-header #header-nav nav ul li.open > ul.submenu li a.active {
  color: #fefefe !important;
}
#site-header #header-nav nav ul li:hover > ul.submenu li a:hover, #site-header #header-nav nav ul li:focus-within > ul.submenu li a:hover, #site-header #header-nav nav ul li.open > ul.submenu li a:hover {
  background: linear-gradient(30deg, rgba(91, 6, 141, 0.95), rgba(0, 94, 91, 0.95));
  color: #fefefe !important;
}
#site-header #header-nav nav ul li a.active {
  background: linear-gradient(150deg, rgba(0, 94, 91, 0.95) 0%, rgba(67, 5, 104, 0.95) 100%);
  border: none !important;
  color: #fefefe !important;
}
#site-header {
  /* Right-hand icon buttons: search + theme toggle */
}
#site-header #header-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  margin-left: auto;
  order: 2;
}
#site-header #header-tools button {
  appearance: none;
  background: none;
  border: 2px solid #003e3c;
  border-radius: 6px;
  color: #012726 !important;
  cursor: pointer;
  font-size: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}
#site-header #header-tools button i, #site-header #header-tools button svg {
  pointer-events: none;
}
#site-header #header-tools button:hover {
  background: linear-gradient(30deg, rgba(91, 6, 141, 0.95), rgba(0, 94, 91, 0.95));
  color: #fefefe !important;
}
#site-header {
  /* Search panel: revealed as a second row of the header */
}
#site-header #search-panel {
  flex-basis: 100%;
  order: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.35rem;
}
#site-header #search-panel #search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 2px solid #003e3c;
  border-radius: 6px;
  background: var(--surface);
  color: var(--on-surface);
  font-family: "Work Sans Variable", sans-serif;
  font-size: 0.95rem;
}
#site-header #search-panel #search-input:focus {
  outline: none;
  border-color: #5b068d;
}
#site-header #search-panel #search-results {
  position: absolute;
  top: calc(100% - 0.25rem);
  left: 0;
  right: 0;
  background: var(--flyout);
  border: 2px solid #003e3c;
  border-radius: 6px;
  list-style: none;
  margin: 0;
  padding: 0.25rem;
  z-index: 1000;
  max-height: 18rem;
  overflow-y: auto;
  box-shadow: var(--flyout-shadow);
  /* Empty until the first query: no teal box floating under a quiet
  * search field. */
}
#site-header #search-panel #search-results:empty {
  display: none;
}
#site-header #search-panel #search-results li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
#site-header #search-panel #search-results li a {
  display: block;
  flex: 1 1 auto;
  border: none !important;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  color: #012726 !important;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#site-header #search-panel #search-results li a:hover {
  background: linear-gradient(30deg, rgba(91, 6, 141, 0.95), rgba(0, 94, 91, 0.95));
  color: #fefefe !important;
}
#site-header #search-panel #search-results li .search-context {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #2c0345;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#site-header #search-panel #search-empty {
  margin: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--on-surface);
  opacity: 0.75;
}
#site-header #search-results[hidden], #site-header #search-empty[hidden], #site-header #search-panel[hidden] {
  display: none;
}

@media (max-width: 900px) {
  #site-header #subtitle {
    display: none;
  }
}
@media (max-width: 760px) {
  #site-header #header-nav {
    order: 4;
    flex-basis: 100%;
  }
  #site-header #header-nav nav ul {
    flex-wrap: wrap;
  }
  #site-header #header-nav nav ul li a {
    flex: 1 1 auto;
    text-align: center;
  }
  #site-header #search-panel {
    order: 5;
  }
  #site-header #search-panel #search-results {
    position: static;
  }
}
@media (max-width: 480px) {
  #site-header {
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
  }
  #site-header #logo {
    min-width: 0;
  }
  #site-header #logo-image {
    width: 38px;
    height: 38px;
  }
  #site-header #logo-text h1 {
    font-size: 1.05rem;
  }
  #site-header #header-tools button {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }
}
/* Footer styles */
footer {
  padding: 0.5rem 0;
}

#site-footer {
  display: flex;
  margin: 2rem 0;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: #121212;
  border-radius: 12px;
  border: 2px solid #2c0345;
  background: linear-gradient(90deg, rgba(91, 6, 141, 0.15) 0%, rgba(0, 128, 123, 0.15) 100%);
  flex-wrap: wrap;
  gap: 0.5rem;
}
#site-footer p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2c0345;
  flex-basis: 100%;
  order: 1;
}
#site-footer #footer-menu {
  display: flex;
  justify-content: center;
  flex-basis: 100%;
  order: 2;
}
#site-footer #footer-menu nav {
  display: flex;
  align-items: center;
  justify-self: center;
}
#site-footer #footer-menu nav ul {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}
#site-footer #footer-menu nav ul li {
  display: block;
}
#site-footer #footer-menu nav ul li a {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  color: #003e3c;
  padding: 0.5rem;
  border-radius: 0.3rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
#site-footer #footer-menu nav ul li a:hover {
  color: #5b068d;
}
#site-footer #footer-menu nav ul li a:focus {
  outline: none;
}
@media (max-width: 640px) {
  #site-footer #footer-menu nav ul {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  #site-footer #footer-menu nav ul li a, #site-footer #footer-menu nav ul li button {
    flex: 1 1 auto;
    text-align: center;
  }
}

img.slackmoji {
  height: 1em !important;
  width: 1em !important;
  display: inline-block;
  vertical-align: middle;
  transform-origin: bottom center;
  transform: scale(1.7);
  margin: 0 0.25em -0.25em 0.25em !important;
  padding: 0 !important;
  will-change: transform;
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent, #003e3c);
  outline-offset: 2px;
}

/* Home layout (SASS) */
#home-columns {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  line-height: 1rem !important;
  letter-spacing: -0.02em;
}
#home-columns figure {
  display: none;
}
#home-columns .column {
  border-radius: 12px;
}
#home-columns .column h2 {
  font-weight: 300;
  text-align: center;
  font-size: 1.75rem;
  color: #fefefe;
  border-radius: 8px 8px 0 0;
  margin: 0;
  padding: 1.1rem 0.5rem;
  letter-spacing: -0.02em;
}
#home-columns #posts {
  flex: 7;
  --col-accent: #2c0345;
  --viewall-ink: #1c032b;
  background: linear-gradient(180deg, rgba(44, 3, 69, 0.3), rgba(0, 62, 60, 0.5));
  border: 2px solid #2c0345;
}
#home-columns #posts .home-article:hover {
  box-shadow: 0 0 0 2px rgba(44, 3, 69, 0.5);
}
#home-columns #posts h2 {
  background: #2c0345;
}
#home-columns #posts h3, #home-columns #posts .home-date {
  color: var(--col-accent) !important;
}
#home-columns #posts button.read-more {
  background: linear-gradient(135deg, #2c0345, #003e3c);
}
#home-columns #posts button.view-all {
  background: transparent;
  border: 2px solid var(--col-accent);
}
#home-columns #posts button.view-all a {
  color: var(--viewall-ink) !important;
}
#home-columns #posts button.view-all:hover {
  background: rgba(44, 3, 69, 0.12);
}
#home-columns #projects {
  flex: 4;
  --col-accent: #003e3c;
  --viewall-ink: #012726;
  background: linear-gradient(180deg, rgba(0, 62, 60, 0.3), rgba(103, 46, 0, 0.5));
  border: 2px solid #003e3c;
}
#home-columns #projects .home-article:hover {
  box-shadow: 0 0 0 2px rgba(0, 62, 60, 0.5);
}
#home-columns #projects h2 {
  background: #003e3c;
}
#home-columns #projects h3, #home-columns #projects .home-date {
  color: var(--col-accent) !important;
}
#home-columns #projects button.read-more {
  background: linear-gradient(135deg, #003e3c, #672e00);
}
#home-columns #projects button.view-all {
  background: transparent;
  border: 2px solid var(--col-accent);
}
#home-columns #projects button.view-all a {
  color: var(--viewall-ink) !important;
}
#home-columns #projects button.view-all:hover {
  background: rgba(0, 62, 60, 0.12);
}
#home-columns #extras {
  flex: 3;
  --col-accent: #672e00;
  min-width: 180px;
  background: linear-gradient(180deg, rgba(103, 46, 0, 0.3), rgba(103, 102, 0, 0.5));
  border: 2px solid #672e00;
}
#home-columns #extras .home-article:hover {
  box-shadow: 0 0 0 2px rgba(103, 46, 0, 0.5);
}
#home-columns #extras h2 {
  background: #672e00;
}
#home-columns #extras button.read-more {
  background: linear-gradient(135deg, #672e00, #676600);
}
#home-columns #extras button.view-all {
  background: linear-gradient(135deg, #672e00, #676600);
  font-size: 0.85rem;
  height: 2rem;
  width: calc(100% - 8rem);
  min-width: 120px;
}
#home-columns #extras button.view-all a {
  font-weight: 600;
  color: #fefefe !important;
}
#home-columns #extras button.view-all:hover {
  filter: brightness(1.15);
}

.home-article {
  margin: 1rem 0.75rem;
  padding: 0.5rem 1.5rem;
  display: block;
  transition: background 200ms ease;
  background: var(--card-surface);
  border-radius: 8px;
}
.home-article #cw .cw-text {
  display: none;
}
.home-article:has(#cw) p::after {
  content: " Includes content warning.";
  font-size: 0.75rem;
  color: #672e00;
  font-weight: 400;
  display: inline-block;
  margin-left: 0.25rem;
}
.home-article:hover {
  background: var(--card-hover);
}
.home-article p {
  font-size: 0.9rem;
  text-align: justify;
  font-weight: 400;
}
.home-article h3 {
  margin: 1rem 0 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
}
.home-article h3 a {
  text-decoration: none;
}
.home-article .home-date {
  font-size: 0.75rem;
  font-weight: 300;
  margin: 0;
  text-align: left;
  display: block;
}
.home-article .home-article-header:has(.cover-image) {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 2rem 0;
}
.home-article .home-article-header:has(.cover-image) .title-and-date {
  flex: 1 1 200px;
  margin: 0;
  text-align: left;
}
.home-article .home-article-header:has(.cover-image) .title-and-date h3 {
  margin-top: 0 !important;
  text-align: left;
  display: block;
}
.home-article .home-article-header:has(.cover-image) .cover-image {
  margin: 0;
  flex: 1 1 45%;
}
.home-article .home-article-header:has(.cover-image) .cover-image img {
  border-radius: 8px;
  margin: 0;
  display: block;
  max-width: 100%;
  min-width: 220px;
  height: auto;
}
.home-article {
  position: relative;
}
.home-article a.article-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

button.read-more {
  display: block;
  margin: 1.5rem auto 1rem auto;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #2c0345;
}
button.read-more a {
  color: #fefefe;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 800;
}

button.view-all {
  display: block;
  position: relative;
  margin: 0.5rem auto;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: rgba(254, 254, 254, 0.7);
  border: none;
  cursor: pointer;
  width: calc(100% - 3rem);
  min-width: 200px;
  height: 2.5rem;
  transition: background 200ms ease;
}
button.view-all a {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 800;
  color: inherit;
}

.home-heading {
  margin: 0.2rem 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-block {
  padding: 0 0 1rem 0;
  border-bottom: 2px solid rgba(103, 46, 0, 0.2);
  text-align: center;
}
.section-block h3 {
  margin: 1.5rem 0 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #411e02;
}
.section-block .collection-item {
  background: var(--card-surface);
  padding: 0.5rem;
  border-radius: 6px;
  margin: 1rem;
  position: relative;
}
.section-block .collection-item:hover {
  background: var(--card-hover);
  box-shadow: 0 0 0 2px rgba(103, 46, 0, 0.5);
}
.section-block .collection-item a.article-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
.section-block .collection-item h4.collection-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: block;
}
.section-block .collection-item h4.collection-title a {
  text-decoration: none;
  color: var(--col-accent);
}
.section-block .collection-item .collection-date {
  font-size: 0.75rem;
  color: var(--col-accent);
  font-weight: 300;
  margin: 0;
  display: block;
}
.section-block .collection-item .collection-summary, .section-block .collection-item .collection-summary p {
  font-size: 0.9rem;
  color: var(--col-accent);
  margin: 0.5rem 0;
  text-align: justify;
  display: none;
}
.section-block ul.list-taxonomies {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  text-align: center;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin: 0;
  padding: 0.5rem 1rem;
}
.section-block ul.list-taxonomies li {
  margin-bottom: 0.5rem;
}
.section-block ul.list-taxonomies li a {
  background: rgba(254, 254, 254, 0.7);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  text-decoration: none;
  color: #672e00;
  transition: background 200ms ease;
}
.section-block ul.list-taxonomies li a:hover {
  background: #fefefe;
}
.section-block .about {
  background: var(--card-surface);
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem;
  position: relative;
  color: #121212;
  font-size: 0.9rem;
}
.section-block .about:hover {
  background: var(--card-hover);
  box-shadow: 0 0 0 2px rgba(103, 46, 0, 0.5);
}
.section-block .about a.article-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
.section-block .about img.about-image {
  display: block;
  margin: 0 auto 0.5rem auto;
  width: 60%;
  height: auto;
  border-radius: 12px;
}
.section-block .about nav {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin: 0.25rem 0 0 0;
}
.section-block .about nav ul {
  display: flex;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
}
.section-block .about nav ul li {
  display: block;
}
.section-block .about nav ul li a {
  display: block;
  padding: 0.25rem;
  color: var(--col-accent);
  transition: color 150ms ease;
}
.section-block .about nav ul li a:hover {
  color: #2c0345;
}

@media (max-width: 640px) {
  #home-columns {
    flex-direction: column;
  }
  #home-columns > * {
    min-width: 100%;
  }
  .home-article-header:has(.cover-image) .title-and-date {
    flex: 1 1 130px;
  }
  .home-article-header:has(.cover-image) .cover-image {
    flex: 0 0 42%;
  }
  .home-article-header:has(.cover-image) .cover-image img {
    min-width: 0;
  }
}
#main-article {
  margin: 2rem auto;
  max-width: 800px;
}
#main-article p, #main-article h1, #main-article h2, #main-article h3, #main-article h4, #main-article h5, #main-article h6, #main-article li, #main-article blockquote {
  font-family: "Libre Baskerville", serif;
}
#main-article a {
  color: var(--link, #2c0345);
  text-decoration: underline;
  text-underline-offset: 0.15rem;
  background: rgba(44, 3, 69, 0.1);
  padding: 0 0.2rem;
  transition: background 0.1s ease, color 0.1s ease;
}
#main-article a:hover {
  background: rgba(0, 62, 60, 0.1);
  color: var(--link-hover, #00302e);
}
#main-article #article-header {
  margin: 1rem 0;
  padding: 1rem;
  line-height: 1rem;
  border-radius: 12px;
  background: linear-gradient(230deg, rgba(211, 94, 0, 0.15) 0%, rgba(0, 128, 123, 0.15) 100%);
  border: 2px solid #003e3c;
}
#main-article #article-header .cover-image {
  margin-bottom: 1rem;
}
#main-article #article-header .cover-image img {
  height: auto;
  max-height: 850px;
  max-width: 100%;
  border-radius: 12px;
}
#main-article #article-header h1#article-title {
  display: inline-block;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0.5rem 0 0;
}
#main-article #article-header #article-subtitle {
  display: inline-block;
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0;
  font-weight: 300;
  text-transform: lowercase;
  font-style: italic;
  color: #003e3c;
  letter-spacing: -0.03em;
}
#main-article #article-header .article-meta-spacer {
  display: block;
  width: 1rem;
}
#main-article #article-header time, #main-article #article-header .author {
  display: inline-block;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
  font-weight: 300;
  letter-spacing: -0.02em;
}
#main-article p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
}
#main-article #article-content {
  margin: 3rem 0;
}
#main-article #article-content #cw {
  border-left: 4px solid #d97706;
  border-right: 4px solid #d97706;
  background: #f9f4de;
  margin: 3rem 0;
  padding: 1rem;
  color: #92400e;
  font-size: 0.8rem;
}
#main-article #article-content h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}
#main-article #article-content h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: 600;
}
#main-article #article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1rem 0;
}
#main-article #article-content p:first-of-type::first-letter, #main-article #article-content p.dropcap::first-letter {
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  font-weight: 700;
  margin-right: 0.35rem;
  margin-top: 0.05rem;
  color: var(--link, #2c0345);
  font-family: "Libre Baskerville", serif;
  text-transform: none;
}
#main-article #article-content p:first-of-type::first-line, #main-article #article-content p.dropcap::first-line {
  margin-left: 0;
}
#main-article #article-content blockquote {
  display: block;
  border-left: 4px solid #2c0345;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  background: rgba(44, 3, 69, 0.05);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
}
#main-article #article-content blockquote p {
  font-size: 0.95rem;
  line-height: 1.8;
  font-weight: 400;
}
#main-article #article-content blockquote p:first-of-type::first-letter, #main-article #article-content blockquote p.dropcap::first-letter {
  float: none;
  font-size: 0.95rem;
  color: var(--dropcap, #121212) !important;
  font-weight: 400;
  margin: 0;
}
#main-article #article-content ul p:first-of-type::first-letter, #main-article #article-content ul p.dropcap::first-letter, #main-article #article-content ol p:first-of-type::first-letter, #main-article #article-content ol p.dropcap::first-letter, #main-article #article-content li p:first-of-type::first-letter, #main-article #article-content li p.dropcap::first-letter {
  float: none;
  font-size: 0.95rem;
  color: var(--dropcap, #121212) !important;
  font-weight: 400;
  margin: 0;
}
#main-article #article-content .epigraph .epigraph-attribution {
  font-family: "Work Sans", sans-serif !important;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-text, #2c0345);
  margin: 0.5rem 0 0 0;
  letter-spacing: -0.02em;
}
#main-article #article-content code {
  background: rgba(0, 62, 60, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
#main-article #article-content pre {
  padding: 1rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
#main-article #article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  line-height: 1rem;
}
#main-article #article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
#main-article #article-content table th, #main-article #article-content table td {
  border: 1px solid rgba(44, 3, 69, 0.5);
  padding: 0.5rem;
  text-align: left;
}
#main-article #article-content table th {
  background: rgba(44, 3, 69, 0.1);
  font-weight: 600;
}
#main-article .table-wrap {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}
#main-article .table-wrap table {
  width: 100%;
}
#main-article .table-wrap hr {
  border: none;
  border-top: 2px solid rgba(0, 62, 60, 0.2);
  margin: 2.5rem auto;
  width: 90%;
}
#main-article .table-wrap .footnotes h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
}
#main-article .table-wrap .footnotes ol {
  padding-left: 1.5rem;
}
#main-article .table-wrap .footnotes ol li {
  margin-bottom: 0.5rem;
}
#main-article .table-wrap .footnotes a.footnote-backref {
  color: #003e3c;
  text-decoration: none;
  background: none;
}
#main-article .article-note {
  border: 2px solid #672e00;
  background: linear-gradient(180deg, rgba(211, 94, 0, 0.15) 0%, rgba(211, 210, 0, 0.15) 100%);
  border-radius: 12px;
  padding: 1rem;
  margin: 2rem 0;
  min-height: 10rem;
}
#main-article .article-note p:first-of-type::first-letter, #main-article .article-note p.dropcap::first-letter {
  color: #672e00 !important;
}
#main-article .note-annotation {
  display: inline-block;
  font-size: 0.875rem;
  color: #672e00;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}
#main-article figure {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 2rem 1rem;
  text-align: left;
  border: 2px solid #2c0345;
  background: linear-gradient(180deg, rgba(91, 6, 141, 0.05) 30%, rgba(28, 3, 43, 0.05) 100%);
  padding: 1rem;
  border-radius: 12px;
  max-width: calc(100% - 2rem);
}
#main-article figure a {
  text-decoration: none !important;
}
#main-article figure .sg-figure__link {
  padding: 0;
  margin: 0;
}
#main-article figure .sg-figure__link:hover img {
  box-shadow: 0 0 0 2px #2c0345;
  border-radius: 12px;
}
#main-article figure .sg-figure__media {
  flex: 1 1 70%;
  min-width: 260px;
}
#main-article figure .sg-figure__media .sg-figure__img {
  max-height: 750px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}
#main-article figure .sg-figure__caption {
  flex: 1 1 20%;
  min-width: 200px;
  font-size: 0.875rem;
  color: var(--brand-text, #2c0345);
  margin-top: 0.5rem;
  font-style: italic;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}
#main-article figure .sg-figure__caption-text {
  line-height: 1.3;
}
#main-article figure .sg-figure__caption-attribution {
  font-style: normal;
  font-weight: 500;
  color: var(--brand-text, #2c0345);
}
@media (max-width: 640px) {
  #main-article figure {
    flex-direction: column;
    text-align: center;
  }
  #main-article figure .sg-figure__media {
    min-width: 0;
  }
  #main-article figure .sg-figure__caption {
    align-items: center;
    text-align: center;
    min-width: 0;
  }
}

.colophon {
  background: linear-gradient(180deg, rgba(0, 128, 123, 0.15) 30%, rgba(1, 39, 38, 0.15) 100%);
  border: 2px solid #003e3c;
  border-radius: 12px;
  padding: 0;
  margin: 4rem auto 1rem auto;
  font-size: 0.8rem;
  font-weight: 400;
  max-width: 800px;
}
.colophon h2 {
  font-family: "Work Sans", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  text-align: center;
  font-weight: 600;
  background: #003e3c;
  color: #fefefe;
  padding: 0.5rem;
  border-radius: 8px 8px 0 0;
}
.colophon .colophon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem;
}
.colophon .colophon-grid .colophon-column {
  flex: 1 1 200px;
  min-width: 200px;
  border-radius: 12px;
  padding: 1rem;
  background: var(--colophon-surface);
}
.colophon .colophon-grid .colophon-column h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
}
.colophon .colophon-grid .colophon-column p {
  margin: 0.25rem 0;
  line-height: 1.4;
}
.colophon .colophon-grid .colophon-column .attribute {
  font-weight: 600;
}
.colophon .colophon-grid .colophon-column a {
  color: var(--link, #2c0345);
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}
.colophon .colophon-grid .colophon-column a#permalink {
  color: var(--link, #2c0345);
  text-decoration: underline;
  text-underline-offset: 0.15rem;
  letter-spacing: -0.1em;
}

.math-warning {
  background: rgba(211, 94, 0, 0.15);
  border: 2px solid #d35e00;
  border-radius: 12px;
  padding: 1rem;
  margin: 3rem auto;
  max-width: 800px;
  text-align: center;
}

#section-page figure, #section-page img, #section-page blockquote {
  display: none;
}
#section-page #section-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(150deg, rgba(211, 210, 0, 0.15) 30%, rgba(0, 128, 123, 0.15) 100%);
  border: 2px solid #003e3c;
  border-radius: 12px;
}
#section-page #section-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
#section-page #section-content p {
  margin: 1.5rem auto 0 auto;
}
#section-page #section-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: stretch;
  margin: 0 -0.5rem;
  line-height: 1.1rem;
}
#section-page #section-articles .section-article {
  box-sizing: border-box;
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  min-width: 250px;
  padding: 0.75rem 1rem;
  transition: background 200ms ease, transform 150ms ease, box-shadow 150ms ease;
  background: linear-gradient(330deg, rgba(91, 6, 141, 0.05) 30%, rgba(211, 94, 0, 0.05) 100%);
  border-radius: 8px;
  border: 2px solid rgba(44, 3, 69, 0.2);
}
#section-page #section-articles .section-article:hover {
  background: var(--card-hover);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
#section-page #section-articles .section-article p {
  font-size: 0.9rem;
  line-height: 1.1;
  text-align: justify;
  font-weight: 400;
}
#section-page #section-articles .section-article h3 {
  margin: 1rem 0 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
}
#section-page #section-articles .section-article h3 a {
  text-decoration: none;
  color: inherit;
}
#section-page #section-articles .section-article .section-date {
  font-size: 0.75rem;
  font-weight: 300;
  margin: 0;
  text-align: left;
  display: block;
}
#section-page #section-articles .section-article .cover-image img {
  border-radius: 6px;
  margin: 0.5rem 0;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
#section-page #section-articles .section-article .section-article-header:has(.cover-image) {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1rem 0;
}
#section-page #section-articles .section-article .section-article-header:has(.cover-image) .title-and-date {
  flex: 1;
  margin: 0;
  text-align: left;
}
#section-page #section-articles .section-article .section-article-header:has(.cover-image) h3 {
  margin-top: 0 !important;
  text-align: left;
  display: block;
}
#section-page #section-articles .section-article .section-article-header:has(.cover-image) .cover-image {
  flex: 0 0 140px;
}
#section-page #section-articles .section-article .section-article-header:has(.cover-image) .cover-image img {
  margin: 0;
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
}
#section-page #section-articles .section-article {
  position: relative;
}
#section-page #section-articles .section-article a.article-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}
@media (max-width: 900px) {
  #section-page #section-articles .section-article {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}
@media (max-width: 600px) {
  #section-page #section-articles .section-article {
    flex: 1 1 100%;
    max-width: 100%;
    margin: 0.5rem 0;
  }
}
#section-page #section-articles button.read-more {
  display: block;
  margin: 1.5rem auto 1rem auto;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: none;
  background: #2c0345;
}
#section-page #section-articles button.read-more a {
  color: #fefefe;
  text-decoration: none;
  text-transform: lowercase;
  font-weight: 800;
}
#section-page #section-articles .section-heading {
  margin: 0.2rem 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.term-annotation {
  display: block;
  margin: 0.5rem 0 0.5rem 0;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center !important;
}

.card-project {
  background: linear-gradient(150deg, rgba(91, 6, 141, 0.05) 30%, rgba(28, 3, 43, 0.05) 100%) !important;
  border: 2px solid rgba(44, 3, 69, 0.3) !important;
}
.card-project button.read-more {
  background: #2c0345 !important;
}

.card-project {
  background: linear-gradient(150deg, rgba(0, 128, 123, 0.05) 30%, rgba(1, 39, 38, 0.05) 100%) !important;
  border: 2px solid rgba(0, 62, 60, 0.3) !important;
}
.card-project button.read-more {
  background: #003e3c !important;
}

.card-note {
  background: linear-gradient(150deg, rgba(211, 210, 0, 0.05) 30%, rgba(65, 64, 2, 0.05) 100%) !important;
  border: 2px solid rgba(103, 102, 0, 0.3) !important;
}
.card-note button.read-more {
  background: #676600 !important;
}

#tax-page {
  min-height: 400px;
}
#tax-page #tax-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(150deg, rgba(211, 210, 0, 0.15) 30%, rgba(0, 128, 123, 0.15) 100%);
  border: 2px solid #003e3c;
  border-radius: 12px;
}
#tax-page #tax-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
#tax-page #tax-content p {
  margin: 1.5rem auto;
}
#tax-page #tax-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  line-height: 1.1rem;
  margin: 3rem auto;
}
#tax-page #tax-articles a {
  display: inline-flex;
  flex: 0 0 auto;
  width: auto;
  display: inline-flex !important;
  width: auto !important;
  white-space: nowrap;
  padding: 1rem 2rem;
  transition: background 200ms ease, transform 150ms ease, box-shadow 150ms ease;
  background: linear-gradient(330deg, #2c0345 0%, #672e00 100%);
  border-radius: 8px;
  text-decoration: none;
  color: #fefefe;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center !important;
  transition: background 200ms ease, color 150ms ease;
}
#tax-page #tax-articles a:hover {
  background: linear-gradient(330deg, #5b068d 0%, #9b4500 100%);
  color: #fefefe;
  /* subtle border-like shadow */
  box-shadow: 0 0 0 2px rgba(44, 3, 69, 0.6);
}
#tax-page #tax-articles a .btn-title {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  font-weight: 600;
  margin: 0 auto;
}
#tax-page #tax-articles a .btn-count,
#tax-page #tax-articles a .num-pages {
  display: block;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 300;
  text-align: center;
  margin: 0 auto;
}

/* Dark mode.
 * Strategy: light styles are built on CSS custom properties (see layout.sass);
 * dark mode re-points those properties and patches the few places that still
 * hard-code light-theme colors. Every text-on-background pairing here is
 * checked for contrast against the near-black base (#121212). */
[data-theme=dark] {
  --accent: #00a89c;
  --brand-text: #d35ef2;
  --link: #d35ef2;
  --link-hover: #00c9bd;
  --dropcap: #fefefe;
  --surface: #1c032b;
  --on-surface: #fefefe;
  --colophon-surface: rgba(254, 254, 254, 0.06);
  /* Cards: translucent slices over the near-black base */
  --card-surface: rgba(254, 254, 254, 0.06);
  --card-hover: rgba(254, 254, 254, 0.12);
  --card-border: rgba(91, 6, 141, 0.5);
  --card-tint: linear-gradient(330deg, rgba(28, 3, 43, 0.2) 30%, rgba(65, 30, 2, 0.2) 100%);
  /* Flyouts (submenu, search results): lifted toward the purple family so the
  * panel edge stays visible against the #121212 body (~1.6:1 box contrast). */
  --flyout: #2c0345;
  --flyout-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
[data-theme=dark] html, [data-theme=dark] body {
  background: #121212;
  color: #fefefe;
}
[data-theme=dark] body {
  background: #121212;
}
[data-theme=dark] #site-header, [data-theme=dark] #site-footer {
  background: linear-gradient(90deg, rgba(28, 3, 43, 0.4) 0%, rgba(1, 39, 38, 0.4) 100%);
  border-color: #5b068d;
  color: #fefefe;
}
[data-theme=dark] #site-header #logo-text, [data-theme=dark] #site-header h1, [data-theme=dark] #site-header #subtitle {
  color: var(--brand-text);
}
[data-theme=dark] #site-header #header-nav nav ul li a {
  color: #00e5d8 !important;
  border-color: #00807b;
}
[data-theme=dark] #site-header #header-nav nav ul li a:hover {
  color: #fefefe !important;
}
[data-theme=dark] #site-header #header-tools button {
  color: #00e5d8 !important;
  border-color: #00807b;
}
[data-theme=dark] #search-panel #search-input {
  background: var(--surface);
  color: var(--on-surface);
}
[data-theme=dark] #site-header #search-panel #search-results {
  background: var(--flyout);
  border-color: #00807b;
}
[data-theme=dark] #site-header #search-panel #search-results li a {
  color: #00e5d8 !important;
}
[data-theme=dark] #site-header #search-panel #search-results .search-context {
  color: #d35ef2;
}
[data-theme=dark] #site-header #search-panel #search-input {
  border-color: #00807b;
}
[data-theme=dark] #site-header #header-nav li > ul.submenu {
  background: var(--flyout);
  border-color: #00807b;
}
[data-theme=dark] #site-header #header-nav nav ul li:hover > ul.submenu li a,
[data-theme=dark] #site-header #header-nav nav ul li:focus-within > ul.submenu li a,
[data-theme=dark] #site-header #header-nav nav ul li.open > ul.submenu li a {
  color: #00e5d8 !important;
}
[data-theme=dark] #site-header #header-nav nav ul li:hover > ul.submenu li a.active,
[data-theme=dark] #site-header #header-nav nav ul li:focus-within > ul.submenu li a.active,
[data-theme=dark] #site-header #header-nav nav ul li.open > ul.submenu li a.active {
  color: #fefefe !important;
}
[data-theme=dark] #site-header #header-nav nav ul li:hover > ul.submenu li a:hover,
[data-theme=dark] #site-header #header-nav nav ul li:focus-within > ul.submenu li a:hover,
[data-theme=dark] #site-header #header-nav nav ul li.open > ul.submenu li a:hover {
  color: #fefefe !important;
}
[data-theme=dark] {
  /* Home page cards */
}
[data-theme=dark] .home-article, [data-theme=dark] .collection-item, [data-theme=dark] .about, [data-theme=dark] .colophon-column {
  background: var(--card-surface);
  color: #fefefe;
}
[data-theme=dark] .home-article:hover, [data-theme=dark] .collection-item:hover, [data-theme=dark] .about:hover, [data-theme=dark] .colophon-column:hover {
  background: var(--card-hover);
  color: #fefefe;
}
[data-theme=dark] #home-columns #posts {
  --col-accent: #d35ef2;
  --viewall-ink: #fefefe;
}
[data-theme=dark] #home-columns #projects {
  --col-accent: #00c9bd;
  --viewall-ink: #fefefe;
}
[data-theme=dark] #home-columns #extras {
  --col-accent: #ff9a00;
}
[data-theme=dark] #home-columns button.view-all a {
  color: #fefefe !important;
}
[data-theme=dark] #home-columns #posts button.view-all:hover,
[data-theme=dark] #home-columns #projects button.view-all:hover {
  background: rgba(254, 254, 254, 0.12);
}
[data-theme=dark] #home-columns .section-block h3 {
  color: #ff9a00;
}
[data-theme=dark] #home-columns ul.list-taxonomies li a {
  background: rgba(254, 254, 254, 0.1);
  color: #ff9a00;
}
[data-theme=dark] #home-columns ul.list-taxonomies li a:hover {
  background: rgba(254, 254, 254, 0.2);
}
[data-theme=dark] #home-columns .home-article:has(#cw) p::after {
  color: #ff9a00;
}
[data-theme=dark] .colophon {
  background: linear-gradient(180deg, rgba(1, 39, 38, 0.4) 30%, rgba(1, 39, 38, 0.6) 100%);
  border-color: #00807b;
}
[data-theme=dark] .colophon h2 {
  color: #fefefe;
}
[data-theme=dark] {
  /* Article pages */
}
[data-theme=dark] #main-article, [data-theme=dark] #article-content, [data-theme=dark] #article-content blockquote {
  color: #fefefe;
}
[data-theme=dark] #main-article #article-header {
  background: linear-gradient(230deg, rgba(65, 30, 2, 0.25) 0%, rgba(1, 39, 38, 0.25) 100%);
  border-color: #00807b;
}
[data-theme=dark] #main-article #article-header #article-subtitle {
  color: #00c9bd;
}
[data-theme=dark] #main-article #article-content blockquote p:first-of-type::first-letter,
[data-theme=dark] #main-article #article-content blockquote p.dropcap::first-letter,
[data-theme=dark] #main-article #article-content ul p:first-of-type::first-letter,
[data-theme=dark] #main-article #article-content ol p:first-of-type::first-letter,
[data-theme=dark] #main-article #article-content li p:first-of-type::first-letter {
  color: var(--dropcap) !important;
}
[data-theme=dark] #main-article #article-content table th, [data-theme=dark] #main-article #article-content table td {
  border-color: rgba(183, 44, 255, 0.35);
}
[data-theme=dark] #main-article #article-content table th {
  background: rgba(254, 254, 254, 0.08);
}
[data-theme=dark] #main-article #article-content .footnotes a.footnote-backref {
  color: #00c9bd;
}
[data-theme=dark] #main-article #article-content #cw {
  background: rgba(254, 254, 254, 0.08);
  color: #fde68a;
}
[data-theme=dark] #main-article figure {
  border-color: rgba(155, 20, 217, 0.5);
  background: linear-gradient(180deg, rgba(155, 20, 217, 0.04) 30%, rgba(28, 3, 43, 0.04) 100%);
}
[data-theme=dark] #main-article .article-note {
  background: linear-gradient(180deg, rgba(65, 30, 2, 0.3) 0%, rgba(65, 64, 2, 0.3) 100%);
  border-color: rgba(211, 94, 0, 0.6);
}
[data-theme=dark] #main-article .article-note p:first-of-type::first-letter,
[data-theme=dark] #main-article .article-note p.dropcap::first-letter {
  color: #ff9a00 !important;
}
[data-theme=dark] #main-article .note-annotation {
  color: #ff9a00;
}
[data-theme=dark] .math-warning {
  background: rgba(65, 30, 2, 0.35);
  color: #fefefe;
}
[data-theme=dark] pre {
  background: rgba(254, 254, 254, 0.06);
}
[data-theme=dark] #main-article #article-content blockquote {
  background: rgba(44, 3, 69, 0.15);
  border-left-color: #5b068d;
}
[data-theme=dark] #main-article #article-content code {
  background: rgba(0, 62, 60, 0.25);
  color: #fefefe;
}
[data-theme=dark] {
  /* Section / term listings */
}
[data-theme=dark] #section-page #section-content, [data-theme=dark] #tax-page #tax-content {
  background: linear-gradient(150deg, rgba(65, 64, 2, 0.2) 30%, rgba(1, 39, 38, 0.2) 100%);
  border-color: #00807b;
  color: #fefefe;
}
[data-theme=dark] {
  /* Section / term listings: light rules use the two-ID chain
  * #section-page #section-articles .section-article, which out-cascades flat
  * [data-theme] rules — flat dark rules would never win and the light hover
  * (solid white) would flash white-on-white under white text in dark mode.
  * Match the ID chain here. */
}
[data-theme=dark] #section-page #section-articles .section-article {
  background: var(--card-tint);
  border-color: var(--card-border);
  color: #fefefe;
}
[data-theme=dark] #section-page #section-articles .section-article:hover {
  background: var(--card-hover);
  color: #fefefe;
}
[data-theme=dark] {
  /* Taxonomy buttons keep white text on hover (the light-theme hover turns
  * the pills translucent and leaves dark text on dark backgrounds) */
}
[data-theme=dark] .tax-button:hover {
  color: #fefefe;
}
[data-theme=dark] {
  /* Footer. Match the light chain's `#site-footer #footer-menu nav ul li a`
  * (2 IDs) — a one-ID dark override silently loses and leaves the light
  * teal-700/purple ink on the dark body at ~1.6:1. */
}
[data-theme=dark] #site-footer p {
  /* purple-100: 5.4-5.7:1 on the dark footer panel (purple-200 was 3.9-4.1, AA fail) */
  color: #d35ef2;
}
[data-theme=dark] #site-footer #footer-menu nav ul li a {
  color: #00c9bd;
}
[data-theme=dark] #site-footer #footer-menu nav ul li a:hover {
  color: #d35ef2;
}
[data-theme=dark] {
  /* Playground pages (markup lives in the site repo) */
}
[data-theme=dark] .tool-card {
  background: var(--card-tint);
  border-color: var(--card-border);
  color: #fefefe;
}
[data-theme=dark] .tool-card input:not([type=checkbox]), [data-theme=dark] .tool-card textarea, [data-theme=dark] .tool-card select {
  background: rgba(254, 254, 254, 0.08);
  border-color: #00807b;
  color: #fefefe;
}
[data-theme=dark] .tool-card {
  /* :where() keeps this chrome at (0,2,0) — toy partials (site repo) load
  * after the compiled stylesheet, so their equal-weight board rules
  * (whack cells, Wordle keys, minesweeper squares) win the tie instead
  * of being flattened into the generic button gradient. */
}
[data-theme=dark] .tool-card :where(button) {
  background: linear-gradient(135deg, #5b068d, #00807b);
  color: #fff;
}
[data-theme=dark] .tool-card .output {
  background: rgba(254, 254, 254, 0.06);
  color: #fefefe;
}
[data-theme=dark] code {
  background: rgba(0, 62, 60, 0.2);
  color: #fefefe;
}

/* print.sass — every page prints cleanly:
 * no header chrome, no dark-mode colors, no interactive-only bits,
 * content forced onto white with predictable page breaks. */
@media print {
  @page {
    margin: 1.6cm;
  }
  * {
    background-image: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
  html, body {
    background: #fff !important;
    color: #111 !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  html[data-theme=dark],
  html[data-theme=dark] body {
    background: #fff !important;
    color: #111 !important;
  }
  html[data-theme=dark] body *:not(i) {
    color: #111 !important;
    background-color: transparent !important;
  }
  .skip-link,
  nav,
  #header-tools,
  #search-panel,
  #theme-toggle,
  #search-toggle {
    display: none !important;
  }
  #site-header {
    border: none;
    background: none;
    padding: 0;
    margin: 0 0 1rem 0;
  }
  #site-header #logo {
    text-decoration: none;
  }
  #site-header #logo-text h1, #site-header #logo-text #subtitle {
    color: #111 !important;
    margin: 0;
  }
  #home-columns {
    display: block;
    line-height: 1.4 !important;
  }
  #home-columns .column {
    border: none;
    background: none;
    margin-bottom: 1rem;
  }
  #home-columns .column h2 {
    background: none !important;
    color: #111 !important;
    border-bottom: 2px solid #111;
    padding: 0.25rem 0;
    text-align: left;
  }
  #home-columns .column h3, #home-columns .column .home-date {
    color: #111 !important;
  }
  #home-columns .column .home-article {
    background: none;
    padding: 0.25rem 0;
    margin: 0;
    break-inside: avoid;
  }
  #home-columns .column .home-article p {
    text-align: left;
  }
  #home-columns .column .home-article:has(#cw) p::after {
    color: #555;
  }
  #home-columns .column button.read-more, #home-columns .column button.view-all, #home-columns .column a.article-link {
    display: none !important;
  }
  #home-columns .section-block {
    border-bottom: none;
  }
  #home-columns .section-block .collection-item, #home-columns .section-block .about {
    background: none;
    border: 1px solid #bbb;
  }
  #home-columns ul.list-taxonomies li a {
    background: none;
    color: #111 !important;
  }
  #tax-articles a.tax-button {
    background: none;
    color: #111 !important;
    border: 1.5px solid #111;
    break-inside: avoid;
  }
  #tax-articles a.tax-button:hover {
    color: #111;
  }
  #section-content, #tax-content {
    background: none;
    border: none;
    margin: 0;
    padding: 0;
  }
  #section-content h1, #tax-content h1 {
    font-size: 1.6rem;
  }
  .section-article {
    background: none;
    float: none;
    break-inside: avoid;
    border: none;
    border-bottom: 1px solid #ccc;
    box-shadow: none;
  }
  .section-article:hover {
    background: none;
  }
  #main-article {
    margin: 0;
    max-width: 100%;
  }
  #main-article #article-header {
    border: none;
    border-bottom: 2px solid #444;
    background: none;
    padding: 0 0 1rem 0;
  }
  #main-article #article-header h1#article-title {
    display: block;
    font-size: 1.6rem;
    margin: 0 0 0.2rem 0;
  }
  #main-article #article-header #article-subtitle {
    display: block;
    margin: 0 0 0.5rem 0;
  }
  #main-article #article-header .article-meta-spacer {
    display: none;
  }
  #main-article #article-header .cover-image img {
    max-height: 10cm;
  }
  #main-article a {
    color: #111;
    background: none;
  }
  #main-article p:first-of-type::first-letter, #main-article p.dropcap::first-letter {
    color: #111 !important;
  }
  #main-article figcaption, #main-article .epigraph-attribution {
    color: #333 !important;
  }
  #main-article #cw {
    background: #fff;
    color: #111;
    border-color: #444;
  }
  a.article-link {
    display: none !important;
  }
  button.read-more, button.view-all {
    display: none !important;
  }
  .colophon {
    background: none;
    border: 1px solid #999;
    font-size: 0.72rem;
    margin-top: 2rem;
  }
  .colophon h2 {
    background: none;
    color: #111;
    border-bottom: 1px solid #999;
    border-radius: 0;
    padding: 0 0 0.25rem 0;
    text-align: left;
  }
  .colophon .colophon-column {
    background: none;
  }
  .colophon a {
    color: #111;
  }
  figure, img, pre, table, blockquote {
    break-inside: avoid;
  }
  .table-wrap {
    overflow: visible;
  }
  .table-wrap table {
    width: 100%;
    font-size: 0.8rem;
  }
  .table-wrap table th {
    background: #eee !important;
  }
  .table-wrap table th, .table-wrap table td {
    border: 1px solid #666 !important;
  }
  pre {
    background: #f5f5f5 !important;
    border: 1px solid #ccc;
    color: #111;
  }
  pre code {
    color: #111;
  }
  code {
    background: #f5f5f5 !important;
    color: #111;
  }
  blockquote {
    background: none;
    border-left: 3px solid #666;
  }
  figure {
    border: 1px solid #999;
    background: none;
  }
  figure .sg-figure__caption {
    color: #333 !important;
  }
  a {
    color: #111;
    text-decoration: underline;
  }
  .playground-nav {
    display: none;
  }
  .tool-card {
    border: 1px solid #555;
    background: #fff;
    break-inside: avoid;
  }
  .tool-card button {
    display: none;
  }
  .tool-card input, .tool-card textarea, .tool-card select {
    border: 1px solid #555;
  }
  .tool-card .output {
    background: none;
    border: 1px dashed #999;
  }
  hr {
    border-top: 1px solid #999;
  }
}

/*# sourceMappingURL=styles.css.map */