/*
  Flexoki-inspired dark theme (Steph Ango-style)
  - Minimal typography
  - Quiet section labels + clear dividers
  - Dates aligned next to titles
*/
/**
 * Reset some basic elements
 */
body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre, hr,
dl, dd, ol, ul, figure {
  margin: 0;
  padding: 0;
}

/**
 * Basic styling
 */
body {
  font: 400 18px/1.65 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #E6E4D9;
  background-color: #100F0F;
  -webkit-text-size-adjust: 100%;
  -webkit-font-feature-settings: "kern" 1;
  -moz-font-feature-settings: "kern" 1;
  -o-font-feature-settings: "kern" 1;
  font-feature-settings: "kern" 1;
  font-kerning: normal;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/**
 * Set `margin-bottom` to maintain vertical rhythm
 */
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
ul, ol, dl, figure,
.highlight {
  margin-bottom: 15px;
}

/**
 * `main` element
 */
main {
  display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
}

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

/**
 * Figures
 */
figure > img {
  display: block;
}

figcaption {
  font-size: 15.75px;
}

/**
 * Lists
 */
ul, ol {
  margin-left: 30px;
}

li > ul,
li > ol {
  margin-bottom: 0;
}

/**
 * Headings
 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

/**
 * Links
 */
a {
  color: #E6E4D9;
  text-decoration: none;
}
a:visited {
  color: rgb(199.6428571429, 195.2142857143, 170.8571428571);
}
a:hover {
  color: #E6E4D9;
  text-decoration: underline;
}
.social-media-list a:hover {
  text-decoration: none;
}
.social-media-list a:hover .username {
  text-decoration: underline;
}

/**
 * Blockquotes
 */
blockquote {
  color: #6F6E69;
  border-left: 4px solid #343331;
  padding-left: 15px;
  font-size: 20.25px;
  letter-spacing: -1px;
  font-style: italic;
}
blockquote > :last-child {
  margin-bottom: 0;
}

/**
 * Code formatting
 */
pre,
code {
  font-size: 16.875px;
  border: 1px solid #343331;
  border-radius: 3px;
  background-color: #eef;
}

code {
  padding: 1px 5px;
}

pre {
  padding: 8px 12px;
  overflow-x: auto;
}
pre > code {
  border: 0;
  padding-right: 0;
  padding-left: 0;
}

/**
 * Wrapper
 */
.wrapper {
  max-width: -webkit-calc(650px - (30px * 2));
  max-width: calc(650px - 30px * 2);
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}
@media screen and (max-width: 800px) {
  .wrapper {
    max-width: -webkit-calc(650px - (30px));
    max-width: calc(650px - (30px));
    padding-right: 15px;
    padding-left: 15px;
  }
}

/**
 * Clearfix
 */
.footer-col-wrapper:after, .wrapper:after {
  content: "";
  display: table;
  clear: both;
}

/**
 * Icons
 */
.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  fill: #6F6E69;
  padding-right: 5px;
  vertical-align: text-top;
}

.social-media-list li + li {
  padding-top: 5px;
}

/**
 * Tables
 */
table {
  margin-bottom: 30px;
  width: 100%;
  text-align: left;
  color: white;
  border-collapse: collapse;
  border: 1px solid #343331;
}
table tr:nth-child(even) {
  background-color: rgb(67.7544554455, 66.4514851485, 63.8455445545);
}
table th, table td {
  padding: 9.999999999px 15px;
}
table th {
  background-color: rgb(59.8772277228, 58.7257425743, 56.4227722772);
  border: 1px solid rgb(41.497029703, 40.699009901, 39.102970297);
  border-bottom-color: rgb(20.4910891089, 20.097029703, 19.3089108911);
}
table td {
  border: 1px solid #343331;
}

/**
 * Site header
 */
.site-header {
  border-top: 5px solid #575653;
  border-bottom: 1px solid #343331;
  min-height: 55.95px;
  position: relative;
}

.site-title {
  font-size: 29.25px;
  font-weight: 300;
  line-height: 66.825px;
  letter-spacing: -1px;
  margin-bottom: 0;
  float: left;
}
.site-title, .site-title:visited {
  color: #575653;
}

.site-nav {
  float: right;
  line-height: 66.825px;
}
.site-nav .nav-trigger {
  display: none;
}
.site-nav .menu-icon {
  display: none;
}
.site-nav .page-link {
  color: #E6E4D9;
  line-height: 1.65;
}
.site-nav .page-link:not(:last-child) {
  margin-right: 20px;
}
@media screen and (max-width: 600px) {
  .site-nav {
    position: absolute;
    top: 9px;
    right: 15px;
    background-color: #100F0F;
    border: 1px solid #343331;
    border-radius: 5px;
    text-align: right;
  }
  .site-nav label[for=nav-trigger] {
    display: block;
    float: right;
    width: 36px;
    height: 36px;
    z-index: 2;
    cursor: pointer;
  }
  .site-nav .menu-icon {
    display: block;
    float: right;
    width: 36px;
    height: 26px;
    line-height: 0;
    padding-top: 10px;
    text-align: center;
  }
  .site-nav .menu-icon > svg {
    fill: #575653;
  }
  .site-nav input ~ .trigger {
    clear: both;
    display: none;
  }
  .site-nav input:checked ~ .trigger {
    display: block;
    padding-bottom: 5px;
  }
  .site-nav .page-link {
    display: block;
    margin-left: 20px;
    padding: 5px 10px;
  }
  .site-nav .page-link:not(:last-child) {
    margin-right: 0;
  }
}

/**
 * Site footer
 */
.site-footer {
  border-top: 1px solid #343331;
  padding: 30px 0;
}

.footer-heading {
  font-size: 20.25px;
  margin-bottom: 15px;
}

.contact-list,
.social-media-list {
  list-style: none;
  margin-left: 0;
}

.footer-col-wrapper {
  font-size: 16.875px;
  color: #6F6E69;
  margin-left: -15px;
}

.footer-col {
  float: left;
  margin-bottom: 15px;
  padding-left: 15px;
}

.footer-col-1 {
  width: -webkit-calc(35% - (30px / 2));
  width: calc(35% - 30px / 2);
}

.footer-col-2 {
  width: -webkit-calc(20% - (30px / 2));
  width: calc(20% - 30px / 2);
}

.footer-col-3 {
  width: -webkit-calc(45% - (30px / 2));
  width: calc(45% - 30px / 2);
}

@media screen and (max-width: 800px) {
  .footer-col-1,
  .footer-col-2 {
    width: -webkit-calc(50% - (30px / 2));
    width: calc(50% - 30px / 2);
  }
  .footer-col-3 {
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
@media screen and (max-width: 600px) {
  .footer-col {
    float: none;
    width: -webkit-calc(100% - (30px / 2));
    width: calc(100% - 30px / 2);
  }
}
/**
 * Page content
 */
.page-content {
  padding: 30px 0;
  flex: 1;
}

.page-heading {
  font-size: 36px;
}

.post-list-heading {
  font-size: 31.5px;
}

.post-list {
  margin-left: 0;
  list-style: none;
}
.post-list > li {
  margin-bottom: 30px;
}

.post-meta {
  font-size: 15.75px;
  color: #6F6E69;
}

.post-link {
  display: block;
  font-size: 27px;
}

/**
 * Posts
 */
.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 47.25px;
  letter-spacing: -1px;
  line-height: 1;
}
@media screen and (max-width: 800px) {
  .post-title {
    font-size: 40.5px;
  }
}

.post-content {
  margin-bottom: 30px;
}
.post-content h2 {
  font-size: 36px;
}
@media screen and (max-width: 800px) {
  .post-content h2 {
    font-size: 31.5px;
  }
}
.post-content h3 {
  font-size: 29.25px;
}
@media screen and (max-width: 800px) {
  .post-content h3 {
    font-size: 24.75px;
  }
}
.post-content h4 {
  font-size: 22.5px;
}
@media screen and (max-width: 800px) {
  .post-content h4 {
    font-size: 20.25px;
  }
}

/**
 * Syntax highlighting styles
 */
.highlight {
  background: #fff;
}
.highlighter-rouge .highlight {
  background: #eef;
}
.highlight .c {
  color: #998;
  font-style: italic;
}
.highlight .err {
  color: #a61717;
  background-color: #e3d2d2;
}
.highlight .k {
  font-weight: bold;
}
.highlight .o {
  font-weight: bold;
}
.highlight .cm {
  color: #998;
  font-style: italic;
}
.highlight .cp {
  color: #999;
  font-weight: bold;
}
.highlight .c1 {
  color: #998;
  font-style: italic;
}
.highlight .cs {
  color: #999;
  font-weight: bold;
  font-style: italic;
}
.highlight .gd {
  color: #000;
  background-color: #fdd;
}
.highlight .gd .x {
  color: #000;
  background-color: #faa;
}
.highlight .ge {
  font-style: italic;
}
.highlight .gr {
  color: #a00;
}
.highlight .gh {
  color: #999;
}
.highlight .gi {
  color: #000;
  background-color: #dfd;
}
.highlight .gi .x {
  color: #000;
  background-color: #afa;
}
.highlight .go {
  color: #888;
}
.highlight .gp {
  color: #555;
}
.highlight .gs {
  font-weight: bold;
}
.highlight .gu {
  color: #aaa;
}
.highlight .gt {
  color: #a00;
}
.highlight .kc {
  font-weight: bold;
}
.highlight .kd {
  font-weight: bold;
}
.highlight .kp {
  font-weight: bold;
}
.highlight .kr {
  font-weight: bold;
}
.highlight .kt {
  color: #458;
  font-weight: bold;
}
.highlight .m {
  color: #099;
}
.highlight .s {
  color: #d14;
}
.highlight .na {
  color: #008080;
}
.highlight .nb {
  color: #0086B3;
}
.highlight .nc {
  color: #458;
  font-weight: bold;
}
.highlight .no {
  color: #008080;
}
.highlight .ni {
  color: #800080;
}
.highlight .ne {
  color: #900;
  font-weight: bold;
}
.highlight .nf {
  color: #900;
  font-weight: bold;
}
.highlight .nn {
  color: #555;
}
.highlight .nt {
  color: #000080;
}
.highlight .nv {
  color: #008080;
}
.highlight .ow {
  font-weight: bold;
}
.highlight .w {
  color: #bbb;
}
.highlight .mf {
  color: #099;
}
.highlight .mh {
  color: #099;
}
.highlight .mi {
  color: #099;
}
.highlight .mo {
  color: #099;
}
.highlight .sb {
  color: #d14;
}
.highlight .sc {
  color: #d14;
}
.highlight .sd {
  color: #d14;
}
.highlight .s2 {
  color: #d14;
}
.highlight .se {
  color: #d14;
}
.highlight .sh {
  color: #d14;
}
.highlight .si {
  color: #d14;
}
.highlight .sx {
  color: #d14;
}
.highlight .sr {
  color: #009926;
}
.highlight .s1 {
  color: #d14;
}
.highlight .ss {
  color: #990073;
}
.highlight .bp {
  color: #999;
}
.highlight .vc {
  color: #008080;
}
.highlight .vg {
  color: #008080;
}
.highlight .vi {
  color: #008080;
}
.highlight .il {
  color: #099;
}

/* -----------------------------
   Global
   ----------------------------- */
/* Dark mode: override Minima defaults */
html,
body {
  background: #100F0F !important;
  color: #E6E4D9 !important;
}

main.page-content,
.page-content .wrapper {
  background: #100F0F;
  color: #E6E4D9;
}

body {
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Align header, main and footer to same content width and padding */
.wrapper {
  max-width: 650px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 30px;
  padding-left: 30px;
}

@media screen and (max-width: 800px) {
  .wrapper {
    padding-right: 15px;
    padding-left: 15px;
  }
}
/* Links: underlined by default (Steph-like), color-shift on hover */
a {
  color: rgba(230, 228, 217, 0.9);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}

a:visited {
  color: rgba(230, 228, 217, 0.78);
}

a:hover {
  color: #2DD4BF;
}

/* -----------------------------
   Header
   ----------------------------- */
.site-header {
  border: 0;
  padding: 24px 0 12px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: rgba(230, 228, 217, 0.92);
}

.site-title:hover {
  color: rgba(230, 228, 217, 0.98);
}

.site-nav-simple {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-simple .page-link {
  color: rgba(230, 228, 217, 0.62);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.site-nav-simple .page-link:hover {
  color: rgba(230, 228, 217, 0.9);
}

/* -----------------------------
   Footer (condensed)
   ----------------------------- */
/* -----------------------------
   Page / Post typography
   ----------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: rgba(230, 228, 217, 0.94);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.05rem;
}

h6 {
  font-size: 0.95rem;
}

.post-content h2 {
  font-size: 1.75rem;
}

.post-content h3 {
  font-size: 1.45rem;
}

.post-content h4 {
  font-size: 1.2rem;
}

.post-title {
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.post-meta {
  color: rgba(230, 228, 217, 0.48);
  font-size: 0.95rem;
}

pre,
code {
  background: #1A1918;
  border: 0;
  border-radius: 4px;
}

pre {
  padding: 15px;
}

code {
  padding: 2px 6px;
  font-size: 0.9em;
}

/* Mermaid diagrams: contain and allow horizontal scroll when wide */
.mermaid {
  max-width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
}

blockquote {
  border-left: 2px solid #282726;
  padding-left: 15px;
  color: rgba(230, 228, 217, 0.65);
}

hr {
  border: 0;
  border-top: 1px solid rgba(230, 228, 217, 0.14);
  margin: 40px 0;
}

/* Post content: markdown tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.post-content th,
.post-content td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid #282726;
}

.post-content th {
  font-weight: 600;
  color: rgba(230, 228, 217, 0.9);
  background: rgba(230, 228, 217, 0.06);
}

.post-content td {
  color: rgba(230, 228, 217, 0.85);
}

/* -----------------------------
   Homepage blocks
   ----------------------------- */
.home {
  padding-top: 0;
}

.home .post-section {
  margin-bottom: 44px;
}

.home .post-section:first-child {
  margin-top: 0;
}

/* Level 1: main section labels (Recent, Topics, Categories, Tableau, All) */
.home .post-section > .section-label,
.home .post-section > a.section-label-link:first-child {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(230, 228, 217, 0.82);
  margin: 0 0 6px 0;
  text-transform: small-caps;
}

.home .section-label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(230, 228, 217, 0.75);
  margin: 0 0 6px 0;
  text-transform: small-caps;
}

.home .section-explainer {
  font-size: 0.88rem;
  color: rgba(230, 228, 217, 0.42);
  margin: 0 0 12px 0;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
}

.home .categories-section .category-block {
  margin-top: 1.75rem;
}

.home .categories-section .category-block:first-of-type {
  margin-top: 0;
}

/* Level 2: category sub-headings (Projects, Writing, Training, Mountains) */
.home .categories-section .category-heading {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(230, 228, 217, 0.62);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 8px;
  display: block;
}

.home a.section-label-link {
  text-decoration: none;
  color: rgba(230, 228, 217, 0.75);
}

.home a.section-label-link:hover {
  color: #2DD4BF;
}

.home .tableau-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1.5rem;
  margin: 0;
  width: 100%;
}

.home .tableau-links .post-link {
  margin: 0;
}

.home .latest-title {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.home .latest-link {
  text-decoration: none;
  color: rgba(230, 228, 217, 0.92);
}

.home .latest-link:hover {
  color: #2DD4BF;
}

.home .latest-meta {
  font-size: 0.95rem;
  color: rgba(230, 228, 217, 0.55);
  margin: 0 0 12px 0;
}

.home .latest-excerpt {
  color: rgba(230, 228, 217, 0.6);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.home .latest-readmore {
  text-decoration: none;
  color: rgba(230, 228, 217, 0.7);
}

.home .latest-readmore:hover {
  color: #2DD4BF;
}

/* Topics / tags */
.home .topics {
  line-height: 1.9;
  max-width: 62ch;
  color: rgba(230, 228, 217, 0.62);
}

.home .topics a {
  color: rgba(230, 228, 217, 0.72);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.home .topics a:hover {
  color: #2DD4BF;
}

/* Post lists: date inline next to title */
.home .post-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.home .post-list > li {
  display: grid;
  grid-template-columns: 135px 1fr;
  column-gap: 24px;
  align-items: baseline;
  margin-bottom: 14px;
}

.home .post-meta {
  margin: 0;
  color: rgba(230, 228, 217, 0.42);
  font-size: 0.9rem;
}

.home .post-link {
  color: rgba(230, 228, 217, 0.9);
  font-size: 1.05rem;
  font-weight: 400;
}

.home .post-link:hover {
  color: #2DD4BF;
}

/* Responsive: stack on narrow screens */
@media (max-width: 560px) {
  .home .post-list > li {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}
/* -----------------------------
   Tag pages: same layout as homepage
   ----------------------------- */
.page .post-list {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.page .post-list > li {
  display: grid;
  grid-template-columns: 135px 1fr;
  column-gap: 24px;
  align-items: baseline;
  margin-bottom: 14px;
}

.page .post-meta {
  margin: 0;
  color: rgba(230, 228, 217, 0.45);
  font-size: 0.95rem;
}

.page .post-link {
  color: rgba(230, 228, 217, 0.88);
  font-size: 1.05rem;
  font-weight: 400;
}

.page .post-link:hover {
  color: #2DD4BF;
}

@media (max-width: 560px) {
  .page .post-list > li {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
}
/* -----------------------------
   Sub-category pages
   ----------------------------- */
.subcategory-page-intro p {
  font-size: 0.85rem;
  color: rgba(230, 228, 217, 0.55);
  line-height: 1.6;
}

.subcategory-page .post-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.subcategory-page .post-list > li {
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .subcategory-page .post-list {
    grid-template-columns: 1fr;
  }
}
/* -----------------------------
   Books / Music / Movies: personal database (cards)
   ----------------------------- */
.page-books .section-label,
.page-music .section-label,
.page-movies .section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(230, 228, 217, 0.75);
  margin: 2rem 0 14px 0;
  text-transform: none;
}

.page-books .section-label:first-of-type,
.page-music .section-label:first-of-type,
.page-movies .section-label:first-of-type {
  margin-top: 1.5rem;
}

.book-database {
  margin-bottom: 2.5rem;
}

.book-year-section {
  margin-bottom: 2rem;
}

.book-section-break {
  border: 0;
  border-top: 1px solid rgba(230, 228, 217, 0.14);
  margin: 2.5rem 0;
}

.book-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-card {
  break-inside: avoid;
}

.book-cover-wrap {
  position: relative;
  padding-bottom: 150%;
  border-radius: 6px;
  overflow: hidden;
  background: #343331;
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(230, 228, 217, 0.35);
  background: #343331;
}

.book-info {
  margin-top: 8px;
}

.book-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2px 0;
  letter-spacing: -0.01em;
}

.book-title a {
  color: rgba(230, 228, 217, 0.92);
  text-decoration: none;
}

.book-title a:hover {
  color: #2DD4BF;
}

.book-meta {
  font-size: 0.85rem;
  color: rgba(230, 228, 217, 0.55);
  margin: 0;
  line-height: 1.4;
}

.book-rating {
  font-size: 0.85rem;
  color: rgba(230, 228, 217, 0.65);
  margin: 4px 0 0 0;
}

.book-status {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: lowercase;
  color: rgba(230, 228, 217, 0.5);
  margin-top: 4px;
}

.book-posts {
  margin-top: 2rem;
}

/* -----------------------------
   Footer (split colophon)
   ----------------------------- */
.site-footer {
  margin-top: 5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(230, 228, 217, 0.08);
}

.site-footer .footer-wrapper {
  max-width: 650px;
}

.site-footer .footer-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.site-footer .footer-year {
  color: rgba(230, 228, 217, 0.25);
}

.site-footer .footer-tagline {
  color: rgba(230, 228, 217, 0.3);
}

.site-footer .footer-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer .footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(230, 228, 217, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer .footer-link svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}

.site-footer .footer-link:hover {
  color: rgba(230, 228, 217, 0.8);
}

.site-footer .footer-link:focus-visible {
  outline: 1.5px solid rgba(230, 228, 217, 0.3);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 400px) {
  .site-footer .footer-tagline {
    display: none;
  }
}
/* -----------------------------
   Post: sidebar table of contents
   ----------------------------- */
/* TOC sits flush-left; article centered at comfortable reading width */
.page-content .wrapper:has(.post-with-toc) {
  max-width: none;
  padding: 0;
}

.post-with-toc {
  display: grid;
  grid-template-columns: 250px 1fr;
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

.post-with-toc .post {
  max-width: 720px;
  min-width: 0;
  margin: 0 auto;
}

.toc-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  padding-right: 2rem;
}

body:has(.post-with-toc) .site-header .wrapper {
  max-width: none;
  padding-left: 2rem;
  padding-right: 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
}

body:has(.post-with-toc) .site-header .site-header-inner {
  grid-column: 2;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* Footer on post pages: same layout as home (centered wrapper, same width as .wrapper) */
body:has(.post-with-toc) .site-footer .wrapper {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(230, 228, 217, 0.88);
  margin: 0 0 1.25rem 0;
  text-transform: none;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.toc-list > li {
  margin-bottom: 0.9rem;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

.toc-num {
  flex-shrink: 0;
  min-width: 1.25em;
  color: rgba(230, 228, 217, 0.5);
  font-variant-numeric: tabular-nums;
}

.toc-link {
  color: rgba(230, 228, 217, 0.68);
  text-decoration: none;
  display: block;
  min-width: 0;
}

.toc-link:hover {
  color: rgba(230, 228, 217, 0.92);
}

.toc-h2-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.toc-toggle {
  all: unset;
  cursor: pointer;
  margin-left: auto;
  font-size: 0.75rem;
  line-height: 1;
  width: 1.2em;
  text-align: center;
  color: rgba(230, 228, 217, 0.35);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.toc-toggle:hover {
  color: rgba(230, 228, 217, 0.75);
}

.toc-sublist {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0 0 0 calc(1.25em + 0.4rem);
}

.toc-sublist li {
  margin-bottom: 0.4rem;
}

.toc-sublist li:last-child {
  margin-bottom: 0;
}

.toc-sublink {
  color: rgba(230, 228, 217, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  display: block;
  line-height: 1.45;
}

.toc-sublink:hover {
  color: #2DD4BF;
}

/* -----------------------------
   Review overlay (Letterboxd-style)
   ----------------------------- */
.review-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.review-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.review-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.review-overlay-content {
  position: relative;
  display: flex;
  gap: 2rem;
  max-width: 640px;
  max-height: 85vh;
  padding: 2rem;
  z-index: 1;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}

.review-overlay.is-active .review-overlay-content {
  transform: translateY(0);
}

.review-overlay-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: none;
  border: none;
  color: rgba(230, 228, 217, 0.4);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.15s ease;
  z-index: 2;
}

.review-overlay-close:hover {
  color: rgba(230, 228, 217, 0.9);
}

.review-overlay-cover {
  flex-shrink: 0;
  width: 200px;
}

.review-overlay-cover img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.review-overlay-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  min-width: 0;
}

.review-overlay-title {
  font-size: 1.45rem;
  font-weight: 600;
  color: rgba(230, 228, 217, 0.96);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.review-overlay-meta {
  font-size: 0.92rem;
  color: rgba(230, 228, 217, 0.5);
  margin: 0;
}

.review-overlay-rating {
  font-size: 1rem;
  color: rgba(230, 228, 217, 0.65);
  margin: 0.15rem 0 0 0;
}

.review-overlay-review {
  font-size: 0.92rem;
  color: rgba(230, 228, 217, 0.7);
  line-height: 1.65;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(230, 228, 217, 0.1);
  text-align: justify;
}

.review-overlay-review p {
  margin: 0 0 0.75rem 0;
}

.review-overlay-review p:last-child {
  margin-bottom: 0;
}

.review-text {
  display: none;
}

.book-card[data-title] {
  transition: transform 0.15s ease;
}

.book-card[data-title]:hover {
  transform: translateY(-2px);
}

@media (max-width: 560px) {
  .review-overlay-content {
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .review-overlay-cover {
    width: 150px;
  }
  .review-overlay-info {
    text-align: center;
    align-items: center;
  }
}
/* -----------------------------
   Theme toggle button
   ----------------------------- */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(230, 228, 217, 0.45);
  transition: color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  color: rgba(230, 228, 217, 0.85);
  background: rgba(230, 228, 217, 0.08);
}

.theme-toggle:focus-visible {
  outline: 1.5px solid rgba(230, 228, 217, 0.35);
  outline-offset: 2px;
}

/* In dark mode: show sun, hide moon */
.theme-icon--moon {
  display: none;
}

.theme-icon--sun {
  display: block;
}

/* In light mode: show moon, hide sun */
[data-theme=light] .theme-icon--sun {
  display: none;
}

[data-theme=light] .theme-icon--moon {
  display: block;
}

/* -----------------------------
   Light mode overrides (Flexoki light)
   ----------------------------- */
[data-theme=light], [data-theme=light] body {
  background: #FFFCF0 !important;
  color: #100F0F !important;
}

[data-theme=light] main.page-content,
[data-theme=light] .page-content .wrapper {
  background: #FFFCF0;
  color: #100F0F;
}

[data-theme=light] a {
  color: rgba(16, 15, 15, 0.85);
}

[data-theme=light] a:visited {
  color: rgba(16, 15, 15, 0.7);
}

[data-theme=light] a:hover {
  color: #205EA6;
}

[data-theme=light] .site-title {
  color: rgba(16, 15, 15, 0.9);
}

[data-theme=light] .site-title:hover {
  color: #100F0F;
}

[data-theme=light] .theme-toggle {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .theme-toggle:hover {
  color: rgba(16, 15, 15, 0.85);
  background: rgba(16, 15, 15, 0.08);
}

[data-theme=light] .site-nav-simple .page-link {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .site-nav-simple .page-link:hover {
  color: rgba(16, 15, 15, 0.9);
}

[data-theme=light] h1,
[data-theme=light] h2,
[data-theme=light] h3,
[data-theme=light] h4,
[data-theme=light] h5,
[data-theme=light] h6 {
  color: rgba(16, 15, 15, 0.92);
}

[data-theme=light] .post-meta {
  color: rgba(16, 15, 15, 0.48);
}

[data-theme=light] pre,
[data-theme=light] code {
  background: #F2F0E5;
}

[data-theme=light] blockquote {
  border-left-color: #E6E4D9;
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] hr {
  border-top-color: rgba(16, 15, 15, 0.14);
}

[data-theme=light] .post-content th,
[data-theme=light] .post-content td {
  border-color: #E6E4D9;
}

[data-theme=light] .post-content th {
  color: rgba(16, 15, 15, 0.88);
  background: rgba(16, 15, 15, 0.05);
}

[data-theme=light] .post-content td {
  color: rgba(16, 15, 15, 0.82);
}

/* Homepage */
[data-theme=light] .home .post-section > .section-label,
[data-theme=light] .home .post-section > a.section-label-link:first-child {
  color: rgba(16, 15, 15, 0.75);
}

[data-theme=light] .home .section-label {
  color: rgba(16, 15, 15, 0.68);
}

[data-theme=light] .home .section-explainer {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .home .categories-section .category-heading {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .home a.section-label-link {
  color: rgba(16, 15, 15, 0.68);
}

[data-theme=light] .home a.section-label-link:hover {
  color: #205EA6;
}

[data-theme=light] .home .latest-title {
  color: rgba(16, 15, 15, 0.92);
}

[data-theme=light] .home .latest-link {
  color: rgba(16, 15, 15, 0.88);
}

[data-theme=light] .home .latest-link:hover {
  color: #205EA6;
}

[data-theme=light] .home .latest-meta {
  color: rgba(16, 15, 15, 0.5);
}

[data-theme=light] .home .latest-excerpt {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .home .latest-readmore:hover {
  color: #205EA6;
}

[data-theme=light] .home .topics {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .home .topics a {
  color: rgba(16, 15, 15, 0.65);
}

[data-theme=light] .home .topics a:hover {
  color: #205EA6;
}

[data-theme=light] .home .post-meta {
  color: rgba(16, 15, 15, 0.42);
}

[data-theme=light] .home .post-link {
  color: rgba(16, 15, 15, 0.85);
}

[data-theme=light] .home .post-link:hover {
  color: #205EA6;
}

/* Tag / category pages */
[data-theme=light] .page .post-meta {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .page .post-link {
  color: rgba(16, 15, 15, 0.82);
}

[data-theme=light] .page .post-link:hover {
  color: #205EA6;
}

/* Books / Music / Movies */
[data-theme=light] .page-books .section-label,
[data-theme=light] .page-music .section-label,
[data-theme=light] .page-movies .section-label {
  color: rgba(16, 15, 15, 0.68);
}

[data-theme=light] .book-cover-wrap {
  background: #E6E4D9;
}

[data-theme=light] .book-cover-placeholder {
  color: rgba(16, 15, 15, 0.3);
  background: #E6E4D9;
}

[data-theme=light] .book-title a {
  color: rgba(16, 15, 15, 0.88);
}

[data-theme=light] .book-title a:hover {
  color: #205EA6;
}

[data-theme=light] .book-meta {
  color: rgba(16, 15, 15, 0.5);
}

[data-theme=light] .book-rating {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .book-status {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .book-section-break {
  border-top-color: rgba(16, 15, 15, 0.12);
}

/* Footer */
[data-theme=light] .site-footer {
  border-top-color: rgba(16, 15, 15, 0.08);
}

[data-theme=light] .site-footer .footer-year {
  color: rgba(16, 15, 15, 0.22);
}

[data-theme=light] .site-footer .footer-tagline {
  color: rgba(16, 15, 15, 0.28);
}

[data-theme=light] .site-footer .footer-link {
  color: rgba(16, 15, 15, 0.28);
}

[data-theme=light] .site-footer .footer-link:hover {
  color: rgba(16, 15, 15, 0.75);
}

/* TOC sidebar */
[data-theme=light] .toc-title {
  color: rgba(16, 15, 15, 0.82);
}

[data-theme=light] .toc-num {
  color: rgba(16, 15, 15, 0.42);
}

[data-theme=light] .toc-link {
  color: rgba(16, 15, 15, 0.6);
}

[data-theme=light] .toc-link:hover {
  color: rgba(16, 15, 15, 0.88);
}

[data-theme=light] .toc-toggle {
  color: rgba(16, 15, 15, 0.3);
}

[data-theme=light] .toc-toggle:hover {
  color: rgba(16, 15, 15, 0.65);
}

[data-theme=light] .toc-sublink {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .toc-sublink:hover {
  color: #205EA6;
}

[data-theme=light] .toc-sidebar {
  border-bottom-color: rgba(16, 15, 15, 0.1);
}

/* Review overlay */
[data-theme=light] .review-overlay-backdrop {
  background: rgba(255, 252, 240, 0.88);
}

[data-theme=light] .review-overlay-close {
  color: rgba(16, 15, 15, 0.35);
}

[data-theme=light] .review-overlay-close:hover {
  color: rgba(16, 15, 15, 0.85);
}

[data-theme=light] .review-overlay-title {
  color: rgba(16, 15, 15, 0.92);
}

[data-theme=light] .review-overlay-meta {
  color: rgba(16, 15, 15, 0.45);
}

[data-theme=light] .review-overlay-rating {
  color: rgba(16, 15, 15, 0.55);
}

[data-theme=light] .review-overlay-review {
  color: rgba(16, 15, 15, 0.6);
  border-top-color: rgba(16, 15, 15, 0.1);
}

[data-theme=light] .review-overlay-cover img {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Hide sidebar TOC on narrow screens, show inline instead */
@media screen and (max-width: 960px) {
  .post-with-toc {
    display: block;
    max-width: 650px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
  }
  body:has(.post-with-toc) .site-header .wrapper {
    display: block;
    max-width: 650px;
    padding-left: 30px;
    padding-right: 30px;
  }
  body:has(.post-with-toc) .site-header .site-header-inner {
    grid-column: auto;
    max-width: none;
  }
  .toc-sidebar {
    position: static;
    width: 100%;
    padding: 0 0 1.25rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(230, 228, 217, 0.1);
  }
}

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