/* Design Tokens - Burrow Theme */

:root {
  /* ==========================================================================
     Colors - Primary (names kept for JS color theme compatibility)
     ========================================================================== */
  --maincolor: #6B3FA0;
  --bordercl: #6B3FA0;
  --hovercolor: #6B3FA0;
  --darkMaincolor: #6B3FA0;
  --calloutcolor: rgba(107, 63, 160, 0.1);

  /* Aliases for semantic naming (use these in new CSS) */
  --color-primary: var(--maincolor);
  --color-primary-hover: var(--hovercolor);
  --color-primary-light: var(--calloutcolor);
  --color-primary-muted: rgba(107, 63, 160, 0.2);
  --color-border: var(--bordercl);

  /* ==========================================================================
     Colors - Text
     ========================================================================== */
  --textcolor: #231B1B;
  --color-text: var(--textcolor);
  --color-text-secondary: #666;
  --color-text-muted: #888;
  --color-text-faded: #737373;
  --color-text-light: grey;

  /* ==========================================================================
     Colors - Background
     ========================================================================== */
  --color-bg: #fafafa;
  --color-bg-code: #f5f5f5;
  --color-bg-hover: #f8f8f8;
  --color-bg-label: #f9f2f4;
  --color-bg-dark: #333;

  /* ==========================================================================
     Colors - Border (additional)
     ========================================================================== */
  --color-border-light: #ddd;
  --color-border-medium: #ccc;

  /* ==========================================================================
     Colors - Inverted (for hover states, selections)
     ========================================================================== */
  --color-inverse: #fafafa;
  --color-inverse-alt: #fff;

  /* ==========================================================================
     Typography - Font Families
     ========================================================================== */
  --font-serif: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ==========================================================================
     Typography - Font Sizes
     ========================================================================== */
  --font-size-base: 18px;
  --font-size-sm: 0.95rem;
  --font-size-xs: 0.85rem;
  --font-size-xxs: 0.75rem;
  --font-size-tiny: 11px;
  --font-size-code: 13px;
  --font-size-heading: 1.2rem;
  --font-size-header: 1.5rem;
  --font-size-h1: 1.1em;

  /* ==========================================================================
     Typography - Line Heights
     ========================================================================== */
  --line-height-base: 1.6em;
  --line-height-content: 1.5;
  --line-height-tight: 1.3;
  --line-height-code: 1.4;

  /* ==========================================================================
     Spacing
     ========================================================================== */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 2.5rem;
  --spacing-3xl: 4rem;

  /* ==========================================================================
     Layout
     ========================================================================== */
  --content-max-width: 800px;
  --body-margin: 8px;

  /* ==========================================================================
     Borders
     ========================================================================== */
  --border-width-thin: 1px;
  --border-width-medium: 2px;
  --border-width-thick: 3px;
  --border-radius-sm: 4px;
  --border-radius-md: 6px;
  --border-radius-lg: 12px;
  --border-radius-full: 50%;

  /* ==========================================================================
     Transitions
     ========================================================================== */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-smooth: 0.2s ease-in-out;
  --transition-bounce: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* ==========================================================================
     Shadows
     ========================================================================== */
  --shadow-sm: 1px 3px 12px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);
  --shadow-inset: inset 0 0 20px rgba(0, 0, 0, 0.1);

  /* ==========================================================================
     Z-Index Scale
     ========================================================================== */
  --z-dropdown: 100;
  --z-modal: 1000;
  --z-overlay: 9999;

  /* ==========================================================================
     Breakpoints (for documentation - use in media queries)
     480px  - sm (mobile)
     768px  - md (tablet)
     1024px - lg (desktop)
     ========================================================================== */
}

/* ==========================================================================
   Dark Mode Overrides (future use)
   ========================================================================== */
/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-text: #fafafa;
    --color-bg: #1a1a1a;
  }
}
*/
/* Base Reset and Selection Styles */

html {
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

body {
  display: block;
  margin: var(--body-margin);
}

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::selection {
  background: var(--color-primary);
  color: var(--color-bg);
}
/* Typography */

p {
  font-family: var(--font-serif);
  line-height: var(--line-height-content);
}

hr {
  border: 0;
  border-top: var(--border-width-thick) dotted var(--color-border);
  margin: var(--spacing-md) 0;
}

blockquote {
  border-left: var(--border-width-thick) solid var(--color-border);
  color: var(--color-text-faded);
  margin: 0;
  padding-left: var(--spacing-md);
}

/* Article content text wrapping */
article .e-content {
  text-wrap: pretty;
}

/* Links */
a {
  border-bottom: var(--border-width-medium) solid var(--color-primary);
  color: inherit;
  text-decoration: none;
}

a:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-inverse);
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: var(--font-size-heading);
  margin-top: var(--spacing-xl);
}

h1::before {
  color: var(--color-primary);
  content: "// ";
}

h2::before {
  color: var(--color-primary);
  content: "↳  ";
}

h3::before {
  color: var(--color-primary);
  content: "// ";
}

h4::before {
  color: var(--color-primary);
  content: "// ";
}

h5::before {
  color: var(--color-primary);
  content: "// ";
}

h6::before {
  color: var(--color-primary);
  content: "// ";
}

/* Title */
.title h1 {
  margin-bottom: 0;
}

/* Time */
time {
  color: var(--color-text-light);
}

/* Superscript and Subscript */
sup,
sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

sub {
  top: 0.4em;
}

/* Footnotes */
a.footnote-ref::before {
  content: '[';
}

a.footnote-ref::after {
  content: ']';
}

.footnotes hr {
  display: none;
}

/* Small Text */
.smalltext {
  font-size: var(--font-size-tiny);
  text-align: right;
}

/* Slug (italic) */
.slug {
  font-style: italic;
}

/* Description (summaries) */
.description {
  text-align: justify;
}
/* Layout */

/* Main Content Container */
.content {
  margin-bottom: var(--spacing-3xl);
  margin-left: auto;
  margin-right: auto;
  max-width: var(--content-max-width);
  position: relative;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: var(--spacing-md) 0;
}

header .main {
  font-size: var(--font-size-header);
}

/* Footer */
footer {
  margin-top: var(--spacing-md);
}

/* Posts Layout */
.posts {
  list-style: none;
  padding-left: 2ch;
}

.miniposts {
  text-indent: -2ch;
}

/* Article Title */
article .title {
  margin-bottom: 1em;
}

/* Split Layout (Homepage) */
#split-mini {
  display: flex;
  flex-wrap: wrap;
}

.introduction {
  float: left;
  width: 45%;
}

.indiewebMain {
  float: right;
  padding-bottom: var(--spacing-md);
  width: 55%;
}

@media screen and (max-width: 800px) {
  #split-mini {
    flex-direction: column;
  }

  .introduction,
  .indiewebMain {
    width: 100%;
    float: none;
  }

  #cal-box {
    display: none;
  }
}

/* Clearfix */
.clearfix:after {
  content: "";
  display: block;
  clear: both;
}

/* Paginator */
.page-next {
  float: right;
}

.page-prev {
  float: left;
}

.paginator {
  margin-top: var(--spacing-xl);
}

/* Comment Section */
.commentSection h2 {
  margin-top: var(--spacing-md);
}

/* Goat (mascot image) */
.goat {
  display: block;
  margin: 0 auto;
  border: solid var(--color-primary);
}

/* Float Element (fixed position) */
.float {
  position: fixed;
  bottom: 70px;
  right: 20px;
}

@media (max-width: 480px) {
  .float {
    display: none;
  }
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: none;
}
/* Navigation */

/* Logo */
.logo img {
  border: none;
  opacity: 1;
  max-width: 100%;
  border-bottom: var(--border-width-medium) solid var(--color-bg);
}

.logo img:hover {
  margin-bottom: 0px;
  border-bottom: var(--border-width-medium) solid var(--color-primary);
}

.logo a {
  border-bottom: none;
}

.logo a:hover {
  background-color: var(--color-bg);
  color: var(--color-bg);
}

/* Navigation Box */
.navbox {
  text-align: right;
  line-height: 2;
}

@media (max-width: 480px) {
  .logo img {
    display: none;
  }

  .navbox {
    text-align: center;
    margin: auto;
  }
}

/* Tags */
.tags a {
  border-bottom: var(--border-width-thick) solid var(--color-primary);
}

.tags a:hover {
  color: white;
  background-color: var(--color-primary-hover);
}

/* Social Icons */
.soc:hover {
  color: white;
}

/* Feather Icons */
.feather {
  max-height: 15px;
}

/* Generic Icon */
.icon {
  max-height: 1.3em;
  border: none;
  display: inline-flex;
  position: relative;
  top: 7px;
}

/* Applause Button */
applause-button svg {
  max-height: none;
}
/* Forms and Labels */

/* Draft Label */
.draft-label {
  color: var(--color-border);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: var(--border-radius-sm);
  margin-left: 6px;
  background-color: var(--color-bg-label);
}

/* Wine Label */
.wine-label {
  color: var(--color-border);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: var(--border-radius-sm);
  background-color: var(--color-bg-label);
}

.wine-header::before {
  color: var(--color-primary);
  content: "";
}
/* Code Blocks */

code {
  background-color: var(--color-bg-code);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--font-size-code);
  padding: 0.1em 0.2em;
}

pre {
  line-height: var(--line-height-code);
  overflow-x: auto;
  padding: var(--spacing-sm);
}

.highlight {
  border: var(--border-width-thin) dashed var(--color-primary);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.highlight,
.highlight pre {
  background-color: var(--color-bg) !important;
}

.highlight pre ::selection {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
}

pre code {
  background-color: transparent;
  color: inherit;
  font-size: var(--font-size-code);
  font-weight: 300;
  padding: 0;
}

.highlight pre code[class*="language-"] {
  -webkit-overflow-scrolling: touch;
}

/* Language Labels */
.highlight pre code[class*="language-"]::before {
  background: var(--color-bg-dark);
  color: var(--color-inverse-alt);
  font-size: var(--font-size-code);
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: var(--spacing-md);
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

.highlight pre code[class="language-javaScript"]::before,
.highlight pre code[class="language-js"]::before {
  content: "js";
}

.highlight pre code[class*="language-yml"]::before,
.highlight pre code[class*="language-yaml"]::before {
  content: "yaml";
}

.highlight pre code[class*="language-shell"]::before,
.highlight pre code[class*="language-bash"]::before,
.highlight pre code[class*="language-sh"]::before {
  content: "shell";
}

.highlight pre code[class*="language-json"]::before {
  content: "json";
}

.highlight pre code[class*="language-python"]::before,
.highlight pre code[class*="language-py"]::before {
  content: "py";
}

.highlight pre code[class*="language-css"]::before {
  content: "css";
}

.highlight pre code[class*="language-go"]::before {
  content: "Go";
}

.highlight pre code[class*="language-md"]::before {
  content: "Markdown";
}

/* Mobile code font size */
@media (max-width: 480px) {
  code, pre code, .highlight pre code[class*="language-"]::before {
    font-size: var(--font-size-code) !important;
  }
}
/* Images and Media */

img {
  max-width: 100%;
}

main img {
  display: block;
  margin: 0 auto;
  border: solid var(--color-primary);
}

/* Loader Animation */
.loader {
  animation-name: spin;
  animation-duration: 5000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Figures */
figure {
  box-sizing: border-box;
  display: inline-block;
  margin: 0;
  max-width: 100%;
}

figure img {
  max-height: 500px;
}

@media screen and (min-width: 600px) {
  figure {
    padding: 0 40px;
  }
}

figure h4 {
  font-size: var(--spacing-md);
  margin: 0;
  margin-bottom: var(--spacing-md);
}

figure h4::before {
  content: "↳ ";
}
/* Reading Progress Bar Component */

.reading-progress-bar {
  position: fixed;
  top: 20%;
  left: 50px;
  width: 4px;
  height: 60%;
  background-color: var(--color-primary-muted);
  z-index: var(--z-dropdown);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.reading-progress-bar.visible {
  opacity: 1;
}

.reading-progress-fill {
  width: 100%;
  height: 0%;
  background-color: var(--color-primary);
  transition: height 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header markers on progress bar */
.progress-header-markers {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.progress-header-marker {
  position: absolute;
  left: -8px;
  width: 20px;
  height: 2px;
  background-color: var(--color-primary);
  cursor: pointer;
  pointer-events: auto;
  transition: all var(--transition-normal);
}

.progress-header-marker::before {
  content: '';
  position: absolute;
  left: -6px;
  top: -8px;
  width: 32px;
  height: 18px;
  background: transparent;
  cursor: pointer;
}

.progress-header-marker:hover {
  background-color: var(--color-text);
  width: 24px;
  left: -10px;
}

.progress-header-marker::after {
  content: attr(data-title);
  position: absolute;
  left: 28px;
  top: -8px;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 2px 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  font-family: inherit;
}

.progress-header-marker:hover::after {
  opacity: 1;
}

/* Previous reading position indicator */
.progress-position-indicator {
  position: absolute;
  right: -12px;
  width: 0;
  height: 0;
  border-right: 8px solid var(--color-text-muted);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity var(--transition-slow);
  cursor: pointer;
  pointer-events: auto;
}

.progress-position-indicator.visible {
  opacity: 1;
}

.progress-position-indicator:hover {
  border-right-color: var(--color-bg-dark);
}

/* Hide progress bar on mobile */
@media (max-width: 768px) {
  .reading-progress-bar {
    display: none;
  }
}

/* Continue Reading Section */
.continue-reading-section {
  margin: var(--spacing-lg) 0;
  padding: 0;
}

.continue-reading-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--spacing-xs) 0;
  font-size: var(--font-size-sm);
}

.continue-reading-info {
  flex: 1;
}

.continue-reading-title {
  margin: 0;
  font-weight: normal;
  color: var(--color-text);
}

.continue-reading-progress {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0;
}

.continue-reading-link {
  color: var(--color-primary);
  text-decoration: none;
  font-size: var(--font-size-xs);
  white-space: nowrap;
  margin-left: var(--spacing-md);
}

.continue-reading-link:hover {
  text-decoration: underline;
}

.continue-reading-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition-normal);
}

.continue-reading-remove:hover {
  color: var(--color-text);
}

.continue-reading-remove .feather {
  display: block;
}
/* Bookshelf Component - Media Item Display */

/* ==========================================================================
   Container
   ========================================================================== */

.bookshelf {
  margin: 40px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

/* ==========================================================================
   Media Titles - Labels beneath items
   ========================================================================== */

.bookshelf .media-title {
  display: block;
  text-align: center;
  font-size: var(--font-size-xxs);
  color: var(--color-text-secondary);
  margin-top: 8px;
  line-height: var(--line-height-tight);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Book - Standard book cover
   ========================================================================== */

.bookshelf .book {
  width: 180px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px 16px;
  vertical-align: top;
  transition: all var(--transition-smooth);
}

.bookshelf .book:hover .cover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.bookshelf .book .meta {
  position: absolute;
  bottom: 0;
  padding: 12px 16px;
  background: linear-gradient(0deg,
      rgba(2, 0, 36, 0.6) 0%,
      rgba(2, 0, 36, 0) 100%);
  color: var(--color-inverse-alt);
}

.bookshelf .book .meta .title {
  display: block;
  font-size: 16px;
  font-weight: 500;
}

.bookshelf .book .meta .author {
  font-size: 12px;
  opacity: 0.6;
}

.bookshelf .book .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 275px;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.bookshelf .book .cover img {
  min-width: 100%;
  min-height: 100%;
}

/* Book spine shine effect */
.bookshelf .book .cover .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(to right,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.05) 0.75%,
      rgba(255, 255, 255, 0.5) 1%,
      rgba(255, 255, 255, 0.6) 1.3%,
      rgba(255, 255, 255, 0.5) 1.4%,
      rgba(255, 255, 255, 0.3) 1.5%,
      rgba(255, 255, 255, 0.3) 2.4%,
      rgba(0, 0, 0, 0.05) 2.7%,
      rgba(0, 0, 0, 0.05) 3.5%,
      rgba(255, 255, 255, 0.3) 4%,
      rgba(255, 255, 255, 0.3) 4.5%,
      rgba(244, 244, 244, 0.1) 5.4%,
      rgba(244, 244, 244, 0.1) 99%,
      rgba(144, 144, 144, 0.2) 100%);
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.12);
}

@media screen and (max-width: 600px) {
  .bookshelf .book {
    width: 21vw;
  }
  .bookshelf .book .cover {
    width: 21vw;
    height: calc(1.53 * 21vw);
  }
}

/* ==========================================================================
   Game - DVD/Game case style (PS2-inspired, black)
   ========================================================================== */

.bookshelf .game {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 190px;
  position: relative;
  z-index: 1;
  margin: 0 10px 16px;
  transition: all var(--transition-smooth);
}

.bookshelf .game:hover .cover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transform: scale(1.01);
}

.bookshelf .game .cover {
  width: 190px;
  height: 265px;
  background: rgba(20, 20, 22, 0.95);
  border-radius: 2px 5px 5px 2px;
  box-sizing: border-box;
  padding: 3px 3px 3px 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Game case spine edge */
.bookshelf .game .cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(0, 0, 0, 0.3) 100%);
  z-index: 4;
}

/* Game case top edge highlight */
.bookshelf .game .cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  z-index: 4;
}

.bookshelf .game .cover img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0 4px 4px 0;
  object-fit: cover;
  border: none;
}

.bookshelf .game .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  z-index: 5;
  border: none;
  box-shadow:
    inset 3px 0 8px rgba(0, 0, 0, 0.3),
    inset -1px 0 2px rgba(255, 255, 255, 0.1),
    inset 0 2px 3px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.bookshelf .game .link:hover,
.bookshelf .game a:hover {
  background-color: transparent;
  color: inherit;
  border: none;
  outline: none;
  box-shadow:
    inset 3px 0 8px rgba(0, 0, 0, 0.3),
    inset -1px 0 2px rgba(255, 255, 255, 0.1),
    inset 0 2px 3px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

/* Game case diagonal shine */
.bookshelf .game .link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.06);
  z-index: 10;
  transform: rotate(25deg);
  pointer-events: none;
}

/* ==========================================================================
   Paper - Academic/research paper stack with staple
   ========================================================================== */

.bookshelf .paper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  margin: 0 10px 16px;
  margin-bottom: 24px;
  position: relative;
  vertical-align: top;
  transition: all var(--transition-smooth);
}

.bookshelf .paper .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 265px;
  overflow: hidden;
  border-radius: 1px;
  position: relative;
  background: #fcfcfa;
  transform: rotate(-2deg);
  transition: all var(--transition-smooth);
  /* Disarrayed stack of papers behind */
  box-shadow:
    3px 4px 0 -1px #f5f5f3,
    4px 5px 2px -1px rgba(0, 0, 0, 0.06),
    -2px 6px 0 -1px #f0f0ee,
    -1px 7px 2px -1px rgba(0, 0, 0, 0.05),
    5px 8px 0 -1px #ebebea,
    6px 9px 2px -1px rgba(0, 0, 0, 0.04),
    1px 10px 0 -1px #e8e8e6,
    2px 12px 4px -1px rgba(0, 0, 0, 0.08);
}

/* Paper staple in top-left corner */
.bookshelf .paper .cover::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 10px;
  width: 14px;
  height: 4px;
  background: linear-gradient(to bottom, #b8b8b8 0%, #8a8a8a 50%, #a0a0a0 100%);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 10;
  transform: rotate(-5deg);
}

/* Paper edge texture */
.bookshelf .paper .cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 1px;
  pointer-events: none;
}

.bookshelf .paper:hover .cover {
  box-shadow:
    2px 3px 0 -1px #f5f5f3,
    3px 4px 1px -1px rgba(0, 0, 0, 0.04),
    1px 5px 0 -1px #f0f0ee,
    2px 6px 1px -1px rgba(0, 0, 0, 0.04),
    2px 7px 0 -1px #ebebea,
    3px 8px 1px -1px rgba(0, 0, 0, 0.03),
    1px 9px 0 -1px #e8e8e6,
    2px 10px 8px -1px rgba(0, 0, 0, 0.1);
  transform: rotate(0deg) translateY(-2px);
}

.bookshelf .paper .cover img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: none;
}

.bookshelf .paper .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 0, 0, 0.02) 100%);
}

.bookshelf .paper .link:hover,
.bookshelf .paper a:hover {
  background-color: transparent;
  color: inherit;
  border: none;
  outline: none;
  box-shadow: none;
}

@media screen and (max-width: 600px) {
  .bookshelf .paper .cover {
    width: 21vw;
    height: calc(1.33 * 21vw);
  }
}

/* ==========================================================================
   Movie - Blu-ray case style
   ========================================================================== */

.bookshelf .movie {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 195px;
  position: relative;
  z-index: 1;
  margin: 0 10px 16px;
  transition: all var(--transition-smooth);
}

.bookshelf .movie:hover .cover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transform: scale(1.01);
}

.bookshelf .movie .cover {
  width: 195px;
  height: 245px;
  background: rgba(70, 176, 233, 0.85);
  border-radius: 5px;
  box-sizing: border-box;
  padding: 12px 3px 3px 0;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}

/* Movie case spine edge */
.bookshelf .movie .cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(0, 0, 0, 0.08) 100%);
  z-index: 4;
}

/* Movie case top edge highlight */
.bookshelf .movie .cover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.2) 100%);
  z-index: 4;
}

.bookshelf .movie .cover img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0 4px 4px 0;
  object-fit: cover;
  border: none;
}

.bookshelf .movie .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  z-index: 5;
  border: none;
  box-shadow:
    inset 3px 0 8px rgba(0, 0, 0, 0.15),
    inset -1px 0 3px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.bookshelf .movie .link:hover,
.bookshelf .movie a:hover {
  background-color: transparent;
  color: inherit;
  border: none;
  outline: none;
  box-shadow:
    inset 3px 0 8px rgba(0, 0, 0, 0.15),
    inset -1px 0 3px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Movie case diagonal shine */
.bookshelf .movie .link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 40px;
  width: 100%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
  transform: rotate(25deg);
  pointer-events: none;
}

/* ==========================================================================
   Music - Vinyl record sleeve
   ========================================================================== */

.bookshelf .music {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  margin: 0 10px 16px;
  position: relative;
  vertical-align: top;
  transition: all var(--transition-smooth);
}

.bookshelf .music .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 2px;
  position: relative;
  background: #2a2a2a;
  box-shadow: 2px 3px 12px rgba(0, 0, 0, 0.15);
  transition: all var(--transition-smooth);
}

/* Vinyl record peeking out */
.bookshelf .music .cover::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 200px;
  height: 200px;
  transform: translateY(-50%);
  background: radial-gradient(circle at center,
      #1a1a1a 0%,
      #1a1a1a 15%,
      #0a0a0a 16%,
      #1f1f1f 17%,
      #0f0f0f 30%,
      #1a1a1a 45%,
      #0a0a0a 60%,
      #151515 75%,
      #0a0a0a 90%,
      #1a1a1a 100%);
  border-radius: var(--border-radius-full);
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: all var(--transition-smooth);
}

.bookshelf .music:hover .cover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.bookshelf .music:hover .cover::after {
  right: -20px;
}

.bookshelf .music .cover img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border: none;
}

.bookshelf .music .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: linear-gradient(145deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 40%,
      rgba(0, 0, 0, 0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.bookshelf .music .link:hover,
.bookshelf .music a:hover {
  background-color: transparent;
  color: inherit;
  border: none;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 600px) {
  .bookshelf .music .cover {
    width: 24vw;
    height: 24vw;
  }
  .bookshelf .music .cover::after {
    width: 22vw;
    height: 22vw;
    right: -2vw;
  }
}
/* Support Widget */

.support-widget {
    margin: var(--spacing-lg) 0;
}

/* Bitcoin details inline with coffee link */
.support-bitcoin {
    display: inline;
}

/* Summary needs link styling since it's not an <a> */
.support-bitcoin summary {
    cursor: pointer;
    list-style: none;
    display: inline;
    border-bottom: var(--border-width-medium) solid var(--color-primary);
}

.support-bitcoin summary::-webkit-details-marker {
    display: none;
}

.support-bitcoin summary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-inverse);
}

/* Bitcoin dropdown content - align to left margin */
.support-details {
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--color-bg-code);
}

.support-address-row {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.support-qr {
    width: 64px;
    height: 64px;
    border: none;
    display: block;
    margin: 0;
    background-color: white;
    flex-shrink: 0;
}

.support-address {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    word-break: break-all;
    color: var(--color-text-muted);
    border: none;
    background: none;
    padding: 0;
}

.support-copy {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    border: var(--border-width-thin) solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    align-self: flex-start;
}

.support-copy:hover {
    background-color: var(--color-primary);
    color: var(--color-inverse);
    border-color: var(--color-primary);
}

.support-feedback {
    font-size: var(--font-size-xs);
    font-style: italic;
}
/* Newsletter CTA Component */

.newsletter-cta {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-lg);
  background-color: var(--color-primary-light);
  border-left: var(--border-width-thick) solid var(--color-primary);
}

.newsletter-heading {
  margin: 0 0 var(--spacing-sm) 0;
  font-weight: 600;
  font-size: var(--font-size-h1);
}

.newsletter-heading::before {
  content: none;
}

.newsletter-description {
  margin: 0 0 var(--spacing-md) 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.newsletter-form input[type="email"] {
  font-family: inherit;
  font-size: inherit;
  border: var(--border-width-thin) solid var(--color-border-medium);
  padding: 0.2em 0.5em;
  background: var(--color-inverse-alt);
  flex: 1;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-form button {
  font-family: inherit;
  font-size: inherit;
  background: var(--color-primary);
  border: var(--border-width-thin) solid var(--color-primary);
  padding: 0.2em 0.75em;
  cursor: pointer;
  color: var(--color-inverse-alt);
}

.newsletter-form button:hover {
  background-color: var(--color-text);
}

.newsletter-powered {
  display: block;
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-xxs);
  color: var(--color-text-muted);
}

.newsletter-powered a {
  color: var(--color-text-muted);
  border-bottom: var(--border-width-thin) solid var(--color-border-medium);
}

.newsletter-powered a:hover {
  background-color: var(--color-text-muted);
  color: var(--color-bg);
}
/* Book Promo Component - Affiliate book recommendations */

.book-promo {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-lg);
}

.book-promo-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.book-promo-item {
  display: flex;
  gap: var(--spacing-lg);
}

/* Book cover - reuses bookshelf skeuomorphic effect */
.book-promo-item .book {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-smooth);
}

.book-promo-item .book:hover .cover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.01);
}

.book-promo-item .book .cover {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 275px;
  border-radius: 0 5px 5px 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}

.book-promo-item .book .cover img {
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* Book spine shine effect */
.book-promo-item .book .cover .link {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  border: none;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.05) 0.75%,
    rgba(255, 255, 255, 0.5) 1%,
    rgba(255, 255, 255, 0.6) 1.3%,
    rgba(255, 255, 255, 0.5) 1.4%,
    rgba(255, 255, 255, 0.3) 1.5%,
    rgba(255, 255, 255, 0.3) 2.4%,
    rgba(0, 0, 0, 0.05) 2.7%,
    rgba(0, 0, 0, 0.05) 3.5%,
    rgba(255, 255, 255, 0.3) 4%,
    rgba(255, 255, 255, 0.3) 4.5%,
    rgba(244, 244, 244, 0.1) 5.4%,
    rgba(244, 244, 244, 0.1) 99%,
    rgba(144, 144, 144, 0.2) 100%);
  box-shadow: inset 0 -1px 4px rgba(0, 0, 0, 0.12);
}

.book-promo-item .book .cover .link:hover {
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0.05) 0.75%,
    rgba(255, 255, 255, 0.5) 1%,
    rgba(255, 255, 255, 0.6) 1.3%,
    rgba(255, 255, 255, 0.5) 1.4%,
    rgba(255, 255, 255, 0.3) 1.5%,
    rgba(255, 255, 255, 0.3) 2.4%,
    rgba(0, 0, 0, 0.05) 2.7%,
    rgba(0, 0, 0, 0.05) 3.5%,
    rgba(255, 255, 255, 0.3) 4%,
    rgba(255, 255, 255, 0.3) 4.5%,
    rgba(244, 244, 244, 0.1) 5.4%,
    rgba(244, 244, 244, 0.1) 99%,
    rgba(144, 144, 144, 0.2) 100%);
  border: none;
  color: inherit;
}

/* Content area */
.book-promo-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-promo-title {
  margin: 0 0 var(--spacing-xs) 0;
  font-weight: 600;
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
}

.book-promo-author {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.book-promo-synopsis {
  margin: 0 0 var(--spacing-md) 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
}

.book-promo-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  border-bottom: 2px solid var(--color-primary);
  text-decoration: none;
}

.book-promo-link:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-inverse-alt);
}

.book-promo-link .feather {
  flex-shrink: 0;
}

/* Disclosure */
.book-promo-disclosure {
  display: block;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-sm);
  border-top: var(--border-width-thin) solid var(--color-border-light);
  font-size: var(--font-size-xxs);
  color: var(--color-text-muted);
}

/* Mobile: stack vertically */
@media screen and (max-width: 500px) {
  .book-promo-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-promo-item .book .cover {
    width: 21vw;
    height: calc(1.53 * 21vw);
  }
}
/* Color Theme Picker Modal Component */

.color-theme-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-theme-picker.hidden {
  display: none;
}

.color-theme-modal {
  background: var(--color-bg);
  border: var(--border-width-medium) solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.color-theme-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-h1);
  font-weight: bold;
  color: var(--color-text);
}

.color-theme-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.color-theme-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border: var(--border-width-thin) solid var(--color-border-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  background: white;
}

.color-theme-option:hover {
  background-color: var(--color-bg-hover);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

.color-preview {
  width: 24px;
  height: 24px;
  border-radius: var(--border-radius-full);
  border: var(--border-width-medium) solid var(--color-border-light);
  flex-shrink: 0;
}

.color-theme-option span {
  font-size: var(--font-size-xs);
  color: var(--color-text);
  font-weight: 500;
}

#color-theme-button {
  border-bottom: var(--border-width-medium) solid var(--color-primary);
}

#color-theme-button:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-bg);
}

.color-theme-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: none;
  border: none;
  font-size: var(--font-size-header);
  cursor: pointer;
  color: var(--color-text);
  padding: var(--spacing-xs);
  border-radius: var(--border-radius-full);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-theme-close:hover {
  background-color: var(--color-bg-hover);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .color-theme-modal {
    padding: var(--spacing-md);
    max-width: 90%;
  }

  .color-theme-menu {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .color-theme-option span {
    font-size: 0.8rem;
  }

  .color-preview {
    width: 20px;
    height: 20px;
  }
}
/* Photo Stack Component */

.photo-stack-container {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-overlay);
}

.photo-stack-container img,
.photo-stack-container .card-back {
  border: none;
  position: absolute;
  cursor: move;
  transform-style: preserve-3d;
  transition: transform var(--transition-bounce);
  backface-visibility: hidden;
  user-select: none;
  max-width: 300px;
  pointer-events: auto;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.photo-stack-container .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--color-bg-hover);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Satisfy', cursive;
  font-size: 1.5em;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  box-shadow: var(--shadow-inset);
  color: var(--color-bg-dark);
  border-radius: 2px;
}

.photo-stack-container .photo-wrapper {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform var(--transition-bounce), z-index 0s 0.3s;
}

.photo-stack-container .photo-wrapper.dragging {
  transition: transform 0.1s linear;
  z-index: 1000;
}

/* Conceal images while loading */
.photo-stack-container.loading img {
  visibility: hidden;
}

.photo-stack-container.loading .loading-spinner {
  display: block;
}

.photo-stack-container img {
  visibility: visible;
}

/* Satisfy font for photo captions */
@font-face {
  font-family: 'Satisfy';
  src: url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
}
/* Columns Shortcode Component */

.burrow-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.burrow-column {
  flex: 1 1 calc(50% - var(--spacing-md));
  min-width: 0;
}

/* Remove top margin from first element in each column */
.burrow-column > *:first-child {
  margin-top: 0;
}

/* Remove bottom margin from last element in each column */
.burrow-column > *:last-child {
  margin-bottom: 0;
}

/* Mobile responsive - stack columns */
@media screen and (max-width: 768px) {
  .burrow-column {
    flex: 1 1 100%;
  }

  .burrow-columns {
    gap: var(--spacing-lg);
  }
}
/* French Republican Calendar Component */

#cal-box {
  border: solid var(--color-primary);
  text-align: center;
  width: 50%;
  margin: 20px auto;
}

#cal-box #calendar-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#cal-box input[type="button"] {
  background-color: none;
  background: none;
  color: black;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 5px 10px;
}

#cal-box table {
  width: 100%;
  table-layout: fixed;
}

#cal-box th,
#cal-box td {
  padding: 5px;
  text-align: center;
  width: calc(100% / 10);
  box-sizing: border-box;
}

#cal-box th {
  font-size: 22px;
}

#cal-box td {
  font-size: var(--font-size-base);
}

#cal-box td:hover::after {
  content: attr(data-gregorian);
  position: absolute;
  background-color: var(--color-inverse-alt);
  padding: 2px;
  font-size: var(--font-size-base);
}

#cal-box .current-day {
  text-decoration: underline 2px var(--color-primary);
  color: var(--color-primary);
}

#cal-box .fixed-box {
  position: relative;
  text-align: center;
  left: 10rem;
  width: 300px;
  outline: solid 2px var(--color-primary);
}

#cal-box .fixed-box.collapsed {
  height: 0;
  overflow: hidden;
}
/* Utilities and Animations */

/* Custom Details/Collapse */
.custom-details {
  border: var(--border-width-thin) solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  margin: var(--spacing-md) 0;
}

.custom-details summary {
  padding: var(--spacing-md);
  background-color: var(--color-bg-code);
  cursor: pointer;
  user-select: none;
}

.custom-details summary:hover {
  background-color: var(--color-bg-hover);
}

.details-content {
  padding: var(--spacing-md);
}

/* Remove the default triangle marker in most browsers */
.custom-details>summary {
  list-style: none;
}

/* Remove the default triangle marker in Safari */
.custom-details>summary::-webkit-details-marker {
  display: none;
}

/* Add a custom marker */
.custom-details>summary::after {
  content: '▼';
  float: right;
  transform: rotate(0);
  transition: transform var(--transition-normal);
}

.custom-details[open]>summary::after {
  transform: rotate(180deg);
}

/* Aside Notes (Callout Shortcode) */
.aside-note {
  margin: var(--spacing-lg) 0;
  padding-left: var(--spacing-md);
  font-style: italic;
  line-height: var(--line-height-base);
  border-left: var(--border-width-thick) solid;
}

.aside-note p {
  margin: 0;
}

/* Loading Spinner */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.1);
  border-top: 5px solid var(--color-bg-dark);
  border-radius: var(--border-radius-full);
  animation: spin 1s linear infinite;
}

/* LLMS.txt Link Animation */
.llms-link, .llms-full-link {
  display: inline-block;
}

.llms-link:hover, .llms-full-link:hover {
  background-color: transparent;
  color: var(--color-text-light);
}

.llms-letter {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.llms-link:hover .llms-letter, .llms-full-link:hover .llms-letter {
  animation: jumpLetter 0.6s ease infinite;
}

.llms-link:hover .llms-letter:nth-child(1), .llms-full-link:hover .llms-letter:nth-child(1) { animation-delay: 0s; }
.llms-link:hover .llms-letter:nth-child(2), .llms-full-link:hover .llms-letter:nth-child(2) { animation-delay: 0.05s; }
.llms-link:hover .llms-letter:nth-child(3), .llms-full-link:hover .llms-letter:nth-child(3) { animation-delay: 0.1s; }
.llms-link:hover .llms-letter:nth-child(4), .llms-full-link:hover .llms-letter:nth-child(4) { animation-delay: 0.15s; }
.llms-link:hover .llms-letter:nth-child(5), .llms-full-link:hover .llms-letter:nth-child(5) { animation-delay: 0.2s; }
.llms-link:hover .llms-letter:nth-child(6), .llms-full-link:hover .llms-letter:nth-child(6) { animation-delay: 0.25s; }
.llms-link:hover .llms-letter:nth-child(7), .llms-full-link:hover .llms-letter:nth-child(7) { animation-delay: 0.3s; }
.llms-link:hover .llms-letter:nth-child(8), .llms-full-link:hover .llms-letter:nth-child(8) { animation-delay: 0.35s; }
.llms-link:hover .llms-letter:nth-child(9), .llms-full-link:hover .llms-letter:nth-child(9) { animation-delay: 0.4s; }
.llms-link:hover .llms-letter:nth-child(10), .llms-full-link:hover .llms-letter:nth-child(10) { animation-delay: 0.45s; }
.llms-link:hover .llms-letter:nth-child(11), .llms-full-link:hover .llms-letter:nth-child(11) { animation-delay: 0.5s; }
.llms-link:hover .llms-letter:nth-child(12), .llms-full-link:hover .llms-letter:nth-child(12) { animation-delay: 0.55s; }
.llms-link:hover .llms-letter:nth-child(13), .llms-full-link:hover .llms-letter:nth-child(13) { animation-delay: 0.6s; }

@keyframes jumpLetter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Translation Select */
.translation-select {
  appearance: none;
  background: none;
  border: none;
  border-bottom: var(--border-width-medium) solid var(--color-primary);
  margin-left: 0.25em;
  padding: 0 1em 2px 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  line-height: 1;
  vertical-align: baseline;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}

.translation-select:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-inverse);
}
