/* Markdown */

:root {
  --maincolor: #6B3FA0;
  --textcolor: #231B1B;
  --bordercl: #6B3FA0;
  --calloutcolor: rgba(107, 63, 160, 0.1);
  --hovercolor: #6B3FA0;
  --darkMaincolor: #6B3FA0;
  --testColor: black;
}

html {
  color: var(--textcolor);
  background-color: #fafafa;
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  font-size: 18px;
  line-height: 1.6em;
}

body {
  display: block;
  margin: 8px;
}

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

.goat {
  display: block;
  margin: 0 auto;
  border: solid var(--maincolor);
}

::selection {
  background: var(--maincolor);
  color: #fafafa;
}

p {
  font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 3px dotted var(--bordercl);
  margin: 1em 0;
}

/* Reading Progress Bar Styles */
.reading-progress-bar {
  position: fixed;
  top: 20%;
  left: 50px;
  width: 4px;
  height: 60%;
  background-color: rgba(107, 63, 160, 0.2);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.reading-progress-fill {
  width: 100%;
  height: 0%;
  background-color: var(--maincolor);
  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(--maincolor);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.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(--textcolor);
  width: 24px;
  left: -10px;
}

.progress-header-marker::after {
  content: attr(data-title);
  position: absolute;
  left: 28px;
  top: -8px;
  background: var(--textcolor);
  color: #fafafa;
  padding: 2px 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  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 #888;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  pointer-events: auto;
}

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

.progress-position-indicator:hover {
  border-right-color: #555;
}

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

/* Continue Reading Section Styles */
.continue-reading-section {
  margin: 1.5rem 0;
  padding: 0;
}

.continue-reading-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.25rem 0;
  font-size: 0.95rem;
}

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

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

.continue-reading-progress {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin: 0;
}

.continue-reading-link {
  color: var(--maincolor);
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1rem;
  white-space: nowrap;
}

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

blockquote {
  border-left: 3px solid var(--bordercl);
  color: #737373;
  margin: 0;
  padding-left: 1em;
}

a {
  border-bottom: 2px solid var(--maincolor);
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  background-color: #fafafa;
  color: #fafafa;
}


a:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.posts {
  list-style: none;
  padding-left: 2ch;
}

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

/* Images */
img {
  max-width: 100%;
}

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

.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);
  }
}

.logo img {
  border: none;
  opacity: 1;
}

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

.float {
  position: fixed;
  bottom: 70px;
  right: 20px;
}

.navbox {
  text-align: right;
  line-height: 2;
}

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

  .logo img {
    display: none;
  }

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

@media (max-width: 520px) {
  div#lbwrapper {
    display: none;
  }

  .weather {
    display: none;
  }

  .list-date {
    display: none;
  }
  
  /* Ensure consistent code font size on mobile */
  code, pre code, .highlight pre code[class*="language-"]::before {
    font-size: 13px !important;
  }
}

.logo img {
  max-width: 100%;
  border-bottom: 2px solid #fafafa;
}

.logo img:hover {
  margin-bottom: 0px;
  border-bottom: 2px solid var(--maincolor);
}

.logo a {
  border-bottom: none;
}

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: 1rem;
  margin: 0;
  margin-bottom: 1em;
}

figure h4::before {
  content: "↳ ";
}

/* Code blocks */
code {
  background-color: #f1f1f1;
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  padding: 0.1em 0.2em;
}

pre {
  background-color: #ececec;
  line-height: 1.4;
  overflow-x: auto;
  padding: 1em;
}

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

pre code {
  background-color: transparent;
  color: inherit;
  font-size: 13px;
  padding: 0;
}

/* Containers */
.content {
  margin-bottom: 4em;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
  position: relative;
  padding: 0 1ch;
  word-wrap: break-word;
}

/* Header */
header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin: 1em 0;
}

header .main {
  font-size: 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.2rem;
  margin-top: 2em;
}

.commentSection h2 {
  margin-top: 1em;
}

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

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

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

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

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

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

/* Footer */
footer {
  margin-top: 1em;
}

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

time {
  color: grey;
}

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

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

.page-prev {
  float: left;
}

.paginator {
  margin-top: 2em;
}

/* Aside notes (callout shortcode) */
.aside-note {
  margin: 1.5em 0;
  padding-left: 1em;
  font-style: italic;
  line-height: 1.6;
  border-left: 3px solid;
}

.aside-note p {
  margin: 0;
}

/* Newsletter CTA */
.newsletter-cta {
  margin: 2.5em 0;
  padding: 1.5em;
  background-color: var(--calloutcolor);
  border-left: 3px solid var(--maincolor);
}

.newsletter-heading {
  margin: 0 0 0.5em 0;
  font-weight: 600;
  font-size: 1.1em;
}

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

.newsletter-description {
  margin: 0 0 1em 0;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.75em;
}

.newsletter-form input[type="email"] {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid #ccc;
  padding: 0.2em 0.5em;
  background: #fff;
  flex: 1;
}

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

.newsletter-form button {
  font-family: inherit;
  font-size: inherit;
  background: var(--maincolor);
  border: 1px solid var(--maincolor);
  padding: 0.2em 0.75em;
  cursor: pointer;
  color: #fff;
}

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

.newsletter-powered {
  display: block;
  margin-top: 0.75em;
  font-size: 0.75em;
  color: #888;
}

.newsletter-powered a {
  color: #888;
  border-bottom: 1px solid #aaa;
}

.newsletter-powered a:hover {
  background-color: #888;
  color: #fafafa;
}

/* Donation widget */
.post-donations {
  margin: 1.5em 0;
}

.post-donations > details > summary {
  cursor: pointer;
  font-weight: 600;
}

.donation-networks {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin-top: 0.6em;
}

.donation-network {
  padding: 0.25em 0.75em;
}

.donation-network > summary {
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  list-style: none;
  margin: 0;
  padding: 0.1em 0 0.1em 1em;
  position: relative;
}

.donation-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  white-space: nowrap;
}

.donation-summary-text {
  white-space: nowrap;
}

.donation-summary-label .icon {
  display: inline-block;
  max-height: 1em;
  position: static;
}

.donation-network > summary::before {
  content: '▸';
  left: 0;
  position: absolute;
  top: 0.3em;
}

.donation-network[open] > summary::before {
  content: '▾';
}

.donation-network-body {
  display: flex;
  gap: 1em;
  margin-top: 0.5em;
  align-items: center;
  flex-wrap: wrap;
}

.donation-qr {
  border: 1px solid var(--bordercl);
  max-width: 96px;
}

.donation-info {
  flex: 1 1 220px;
}

.donation-info p {
  margin: 0 0 0.35em;
}

.donation-info p:last-child {
  margin-bottom: 0;
}

.donation-info code {
  display: block;
  font-size: 0.9em;
  margin-bottom: 0.25em;
  word-break: break-all;
}

.donation-info span a[data-copy-address] {
  border-bottom: 1px solid var(--bordercl);
}

.copy-feedback {
  display: inline-block;
  font-size: 0.85rem;
  font-style: italic;
  margin-left: 0.4em;
  min-width: 0;
  color: var(--bordercl);
}

@media (max-width: 640px) {
  .donation-network-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .donation-qr {
    max-width: 128px;
  }
}

.tags a {
  border-bottom: 3px solid var(--maincolor);
}

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

.feather {
  max-height: 15px;
}

applause-button svg {
  max-height: none;
}

.soc:hover {
  color: white;
}

.draft-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 6px;
  background-color: #f9f2f4;
}

.highlight {
  position: relative;
  -webkit-overflow-scrolling: touch;
}

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

.highlight pre code[class*="language-"]::before {
  background: black;
  border-radius: 0 0 0.25rem 0.25rem;
  color: white;
  font-size: 13px;
  letter-spacing: 0.025rem;
  padding: 0.1rem 0.5rem;
  position: absolute;
  right: 1rem;
  text-align: right;
  text-transform: uppercase;
  top: 0;
}

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

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

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

.highlight pre code[class*="language-json"]::before {
  content: "json";
  background: dodgerblue;
  color: #000000;
}

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

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

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

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

.smalltext {
  font-size: 11px;
  text-align: right;
}

/* Wine Stuff */
.wine-label {
  color: var(--bordercl);
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  background-color: #f9f2f4;
}

.wine-header::before {
  color: var(--maincolor);
  content: "";
}

.slug {
  font-style: italic;
}

/* Forms */

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
  border: none;
}

/* CSS extracted from inline styles */
#split-mini {
  display: flex;
  flex-wrap: wrap;
}

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

.indiewebMain {
  float: right;
  padding-bottom: 1rem;
  width: 55%;
}

/* Extension for smaller viewports */
@media screen and (max-width: 800px) {
  #split-mini {
    flex-direction: column;
  }

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

  #cal-box {
    display: none;
  }
}

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

#cal-box {
  border: solid var(--maincolor);
  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);
  /* Equal width for 10 columns */
  box-sizing: border-box;
}

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

#cal-box td {
  font-size: 18px;
}

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

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

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

#cal-box .fixed-box.collapsed {
  height: 0;
  overflow: hidden;
}

sup,
sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

sub {
  top: 0.4em;
}

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

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

.footnotes hr {
  display: none
}

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

.bookshelf .book {
  width: 180px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 10px 16px;
  vertical-align: top;
  transition: all ease-in-out 0.2s;
}

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

.bookshelf .book:hover .cover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  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: #ffffff;
}

.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 .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);
}

.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: 1px 3px 12px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

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

/* 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 ease-in-out 0.2s;
}

.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: 1px 3px 12px rgba(0, 0, 0, 0.15);
}

.bookshelf .game .cover::before {
  /* Spine edge - subtle highlight on black */
  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;
}

.bookshelf .game .cover::after {
  /* Top edge highlight */
  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;
  /* Plastic case overlay with edge shadows */
  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);
}

.bookshelf .game .link::after {
  /* Diagonal shine across case */
  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 ease-in-out 0.2s;
}

.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 ease-in-out 0.2s;
  /* Disarrayed stack of papers behind */
  box-shadow:
    /* Page 1 - slight right tilt */
    3px 4px 0 -1px #f5f5f3,
    4px 5px 2px -1px rgba(0, 0, 0, 0.06),
    /* Page 2 - slight left tilt */
    -2px 6px 0 -1px #f0f0ee,
    -1px 7px 2px -1px rgba(0, 0, 0, 0.05),
    /* Page 3 - more right */
    5px 8px 0 -1px #ebebea,
    6px 9px 2px -1px rgba(0, 0, 0, 0.04),
    /* Page 4 - bottom of stack */
    1px 10px 0 -1px #e8e8e6,
    2px 12px 4px -1px rgba(0, 0, 0, 0.08);
}

.bookshelf .paper .cover::before {
  /* Staple in top-left corner */
  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);
}

.bookshelf .paper .cover::after {
  /* Subtle paper edge/texture */
  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;
}

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

.bookshelf .paper:hover .cover {
  box-shadow:
    /* Stack tightens up on hover */
    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;
}

/* 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 ease-in-out 0.2s;
}

.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 5px 5px 5px;
  box-sizing: border-box;
  padding: 12px 3px 3px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 1px 3px 12px rgba(0, 0, 0, 0.15);
}

.bookshelf .movie .cover::before {
  /* Spine edge styling */
  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;
}

.bookshelf .movie .cover::after {
  /* Top edge highlight */
  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;
  /* Plastic case overlay with edge shadows */
  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);
}

.bookshelf .movie .link::after {
  /* Diagonal shine across case */
  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 ease-in-out 0.2s;
}

.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 ease-in-out 0.2s;
}

.bookshelf .music .cover::after {
  /* Vinyl record peeking out - full circle partially hidden */
  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: 50%;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  z-index: -1;
  transition: all ease-in-out 0.2s;
}

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

.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;
  /* Subtle cardboard texture feel */
  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 titles - discreet labels beneath items */
.bookshelf .media-title {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.custom-details {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 1rem 0;
}

.custom-details summary {
  padding: 1rem;
  background-color: #f5f5f5;
  cursor: pointer;
  user-select: none;
}

.custom-details summary:hover {
  background-color: #eee;
}

.details-content {
  padding: 1rem;
}

/* 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 0.2s ease;
}

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

.photo-stack-container {
  pointer-events: none;
  /* Prevent interaction with the container */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
}

.photo-stack-container img,
.photo-stack-container .card-back {
  border: none !important;
  position: absolute;
  cursor: move;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  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: #f8f8f8;
  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: inset 0 0 20px rgba(0, 0, 0, 0.1);
  color: #333;
  border-radius: 2px;
}

.photo-stack-container .photo-wrapper {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s 0.3s;
}

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

.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 #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@font-face {
  font-family: 'Satisfy';
  src: url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');
}

/* Add a class to conceal the images while loading */
.photo-stack-container.loading img {
  visibility: hidden;
  /* Hide the images */
}

.photo-stack-container.loading .loading-spinner {
  display: block;
  /* Keep the spinner visible */
}

.photo-stack-container img {
  visibility: visible;
  /* Show images once loaded */
}

/* Open Heart Carrot Reaction Styles */
.carrot-button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: inherit;
  border-bottom: 2px solid var(--maincolor);
}

.carrot-button:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.carrot-button .emoji {
  font-size: 1em;
}

.carrot-button .count {
  font-size: 0.9em;
}

/* Animation states */
.carrot-button.clicked .emoji {
  animation: carrotBounce 0.6s ease;
}

/* Floating emoji animation */
.floating-emoji {
  position: fixed;
  font-size: 1.2em;
  pointer-events: none;
  z-index: 1000;
  animation: floatUp 1s ease-out forwards;
  transform: translateX(-50%);
}

@keyframes carrotBounce {
  0% { transform: scale(1); }
  25% { transform: scale(1.3) rotate(-5deg); }
  50% { transform: scale(1.1) rotate(5deg); }
  75% { transform: scale(1.2) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px) rotate(20deg);
  }
}

/* Mobile responsiveness */
@media (max-width: 520px) {
  .carrot-button {
    font-size: 0.9em;
  }
}

/* Columns Shortcode Styles */
.burrow-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.burrow-column {
  flex: 1 1 calc(50% - 1rem);
  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: 1.5rem;
  }
}

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

.llms-link:hover, .llms-full-link:hover {
  background-color: transparent !important;
  color: grey !important;
}

.llms-letter {
  display: inline-block;
  transition: transform 0.2s ease;
}

.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); }
}

/* Color Theme Picker Modal Styles */
.color-theme-picker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.color-theme-modal {
  background: #fafafa;
  border: 2px solid var(--maincolor);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.color-theme-header {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--textcolor);
}

.color-theme-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.color-theme-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
}

.color-theme-option:hover {
  background-color: #f8f8f8;
  border-color: var(--maincolor);
  transform: translateY(-1px);
}

.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.color-theme-option span {
  font-size: 0.85rem;
  color: var(--textcolor);
  font-weight: 500;
}

#color-theme-button {
  border-bottom: 2px solid var(--maincolor);
}

#color-theme-button:hover {
  background-color: var(--hovercolor);
  color: #fafafa;
}

.color-theme-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--textcolor);
  padding: 0.25rem;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-theme-close:hover {
  background-color: #f0f0f0;
}

/* Mobile responsiveness for color picker modal */
@media (max-width: 520px) {
  .color-theme-modal {
    padding: 1rem;
    max-width: 90%;
  }
  
  .color-theme-menu {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .color-theme-option span {
    font-size: 0.8rem;
  }
  
  .color-preview {
    width: 20px;
    height: 20px;
  }
}
