/* =========================
  Base Typography and Elements
  ========================= */
body {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  color: var(--rp-text);
  background-color: var(--rp-background-dark);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6rem;
}
@media (max-width: 684px) {
  body {
    font-size: 1rem;
    line-height: 1.6rem;
  }
}
a {
  color: var(--rp-iris);
  text-decoration: none;
  overflow-wrap: anywhere;
}
sup a {
  text-decoration: none !important;
  margin-left: 0.3rem;
}
blockquote {
  border-left: 0.2rem solid var(--rp-muted);
  margin-left: 0;
  padding-left: 30px;
  color: var(--rp-muted);
}
.highlight {
  position: relative;
  border: 0.2rem solid var(--rp-overlay);
  padding: 0 1rem 0 0.5rem;
  background-color: var(--rp-base);
  border-radius: 1rem;
}
.highlight ::-webkit-scrollbar {
  -webkit-appearance: none;
}
.highlight ::-webkit-scrollbar:vertical {
  height: 0.5rem;
  width: 0.7rem;
}
.highlight ::-webkit-scrollbar:horizontal {
  height: 0.5rem;
}
.highlight ::-webkit-scrollbar-thumb {
  background-color: var(--rp-muted);
  border-radius: 2rem;
}
.highlight ::-webkit-scrollbar-track {
  border-radius: 2rem;
  background-color: var(--rp-base);
}
pre {
  background: 0 0 !important;
}
pre code {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  font-size: 0.8rem;
  line-height: 1.4rem;
}
p code {
  color: var(--rp-foam);
  font-weight: 700;
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
}
table {
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  margin: 40px 0;
  border-radius: 5px;
}
table th,
table td {
  border: 1px solid var(--rp-muted);
  padding: 10px;
}
table th {
  background: var(--rp-overlay);
}
.footnotes hr {
  border: 0;
  height: 1px;
  background: var(--rp-muted);
}
.footnotes ol {
  margin: 0 0 0 40px;
  padding: 0;
}
h1 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
h2 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
h3 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
h4 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
h5 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
h6 {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  line-height: 1.4em;
}
@-ms-viewport {
  width: device-width;
}

/* =========================
   Theme Tokens
   ========================= */
:root {
  --rp-base: #2c3639;
  --rp-surface: #3f4e4f;
  --rp-overlay: #4a5c5d;
  --rp-subtle: #b8b4a6;
  --rp-muted: #7a7870;
  --rp-text: #dcd7c9;
  --rp-love: #a27b5c;
  --rp-gold: #c99a6a;
  --rp-rose: #ddb88a;
  --rp-pine: #5a9090;
  --rp-foam: #6dbaba;
  --rp-iris: #c9956a;
  --rp-blue: #5a9090;
  --rp-background-darker: #232b2d;
  --rp-background-dark: #2c3639;
}
:root[data-theme="light"] {
  --rp-base: #dcd7c9;
  --rp-surface: #cec9bb;
  --rp-overlay: #bfbbb0;
  --rp-subtle: #3f4e4f;
  --rp-muted: #6a7272;
  --rp-text: #2c3639;
  --rp-love: #8c4535;
  --rp-gold: #7a5a35;
  --rp-rose: #7a5c42;
  --rp-pine: #2e6464;
  --rp-foam: #2a6060;
  --rp-iris: #7a4e2a;
  --rp-blue: #2e6464;
  --rp-background-darker: #e5e0d2;
  --rp-background-dark: #dcd7c9;
}

/* =========================
  Footer
  ========================= */
.footer {
  padding: 15px 20px;
  background-color: var(--rp-background-darker);
  font-size: 0.9em;
}
.footer .footer-inner {
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media only screen and (min-width: 992px) {
  .footer .footer-inner {
    width: 760px;
  }
}
.footer .footer-copy {
  text-align: left;
  color: var(--rp-text);
}
.footer .footer-social {
  margin-left: auto;
}
.footer .footer-social .socialNavbar ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer .footer-social .socialNavbar a {
  margin: 0;
}
@media (max-width: 684px) {
  .footer .footer-inner {
    flex-wrap: wrap;
  }
}
/* =========================
   Header and Navigation
   ========================= */
.header {
  overflow: auto;
  box-sizing: border-box;
  background: var(--rp-background-darker);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}
.header .wrapper {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
@media only screen and (min-width: 992px) {
  .header .wrapper {
    width: 760px;
  }
}
.header a {
  color: var(--rp-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex: none;
}
.header .brand-mark {
  position: relative;
  gap: 0;
  padding: 0.25rem 0.4rem 0.25rem 0;
  transition: transform 0.25s ease;
}
.header .brand-mark:hover {
  transform: translateY(-1px);
}
.header .brand-blot {
  display: none;
}
.header .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  white-space: nowrap;
}
.header .brand-title {
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  font-size: 1.12rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--rp-text);
}
.header .brand-tagline {
  display: block;
  margin-top: 0.1rem;
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  font-size: 0.73rem;
  letter-spacing: 0.035em;
  font-style: italic;
  color: var(--rp-subtle);
}
.header .menu-toggle {
  display: none;
}
.header .menu-toggle:checked + .menu-items {
  display: block;
}
.header .menu-trigger {
  width: 24px;
  min-width: 24px;
  height: 24px;
  fill: var(--rp-text);
  margin-left: 10px;
  cursor: pointer;
  display: none;
}
@media (max-width: 684px) {
  .header .menu-trigger {
    display: block;
  }
}
.header .menu-items {
  width: 100%;
}
@media (max-width: 684px) {
  .header .menu-items {
    display: none;
  }
}
.header .menu-items ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 684px) {
  .header .menu-items ul {
    position: absolute;
    background: var(--rp-overlay);
    z-index: 99;
    border: none;
    top: 65px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }
}
.header .menu-items ul li {
  display: inline;
  margin: 5px 5px 5px 15px;
}
@media (max-width: 684px) {
  .header .menu-items ul li {
    margin: 10px 0;
  }
}
.header .menu-items ul li a {
  color: var(--rp-subtle);
}
.header .menu-items ul li a.active {
  color: var(--rp-text);
}
.header .menu-items ul li.theme-toggle-item {
  margin-left: 20px;
}
@media (max-width: 684px) {
  .header .menu-items ul li.theme-toggle-item {
    margin-left: 0;
  }
}
.header .theme-toggle {
  border: 1px solid var(--rp-muted);
  border-radius: 6px;
  background: 0 0;
  color: var(--rp-text);
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  cursor: pointer;
  text-transform: lowercase;
}
.header .theme-toggle:hover {
  border-color: var(--rp-iris);
  color: var(--rp-iris);
}
@media (max-width: 684px) {
  .header .brand-mark {
    align-items: flex-start;
    padding-right: 0.35rem;
  }
  .header .brand-copy {
    white-space: normal;
    max-width: calc(100vw - 128px);
  }
  .header .brand-title {
    font-size: 0.95rem;
    line-height: 1.05;
  }
  .header .brand-tagline {
    display: block;
    margin-top: 0.14rem;
    font-size: 0.62rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }
}

/* =========================
  Post List and Meta
  ========================= */
.postDate {
  float: right;
  color: var(--rp-text);
  text-align: left;
}
@media (max-width: 684px) {
  .postDate {
    float: none;
    clear: both;
    font-size: 0.9em;
  }
}
.postTerms {
  text-align: right;
  margin-left: 1em;
  line-height: 2.2rem;
}
.postTerms a {
  white-space: nowrap;
  color: var(--rp-overlay);
  background: var(--rp-love);
  text-decoration: none !important;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-right: 6px;
}
@media (max-width: 684px) {
  .postTerms {
    float: none;
    clear: both;
    font-size: 0.9em;
  }
}
.postTitle {
  color: var(--rp-rose);
  text-decoration: none;
  font-family:
    palatino linotype,
    book antiqua,
    Palatino,
    times new roman,
    serif;
  font-size: 1.2em;
  text-align: left;
}
.postListItem {
  padding: 20px;
  background-color: var(--rp-overlay);
  margin-bottom: 2.5rem;
  border-radius: 1rem;
}
.socialNavbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.socialNavbar ul li {
  display: inline;
}
.socialNavbar a {
  color: var(--rp-love);
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  margin: 10px;
}

/* =========================
   Syntax Highlighting
   ========================= */
.bg {
  color: var(--rp-text);
  background-color: var(--rp-base);
}
.chroma {
  color: var(--rp-text);
  overflow: auto;
}
.chroma .err {
  color: var(--rp-love);
}
.chroma .lnlinks {
  outline: none;
  text-decoration: none;
  color: inherit;
}
.chroma .lntd {
  vertical-align: top;
  padding: 0;
  margin: 0;
  border: 0;
  color: var(--rp-subtle);
}
.chroma .lntd:first-child {
  width: 3rem;
}
.chroma .lntable {
  border-spacing: 0;
  padding: 0;
  margin: 0;
  border: 0;
}
.chroma .hl {
  background-color: var(--rp-surface);
}
.chroma .lnt {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: var(--rp-subtle);
  display: flex;
}
.chroma .lnt:hover {
  color: var(--rp-text);
}
.chroma .ln {
  white-space: pre;
  -webkit-user-select: none;
  user-select: none;
  margin-right: 0.4em;
  padding: 0 0.4em;
  color: var(--rp-subtle);
}
.chroma .line {
  display: flex;
}
.chroma .k {
  color: var(--rp-pine);
}
.chroma .kc {
  color: var(--rp-pine);
}
.chroma .kd {
  color: var(--rp-pine);
}
.chroma .kn {
  color: var(--rp-iris);
}
.chroma .kp {
  color: var(--rp-pine);
}
.chroma .kr {
  color: var(--rp-pine);
}
.chroma .kt {
  color: var(--rp-pine);
}
.chroma .n {
  color: var(--rp-rose);
}
.chroma .na {
  color: var(--rp-rose);
}
.chroma .nb {
  color: var(--rp-rose);
}
.chroma .bp {
  color: var(--rp-rose);
}
.chroma .nc {
  color: var(--rp-foam);
}
.chroma .no {
  color: var(--rp-gold);
}
.chroma .nd {
  color: var(--rp-subtle);
}
.chroma .ni {
  color: var(--rp-rose);
}
.chroma .ne {
  color: var(--rp-pine);
}
.chroma .nf {
  color: var(--rp-rose);
}
.chroma .fm {
  color: var(--rp-rose);
}
.chroma .nl {
  color: var(--rp-rose);
}
.chroma .nn {
  color: var(--rp-rose);
}
.chroma .py {
  color: var(--rp-rose);
}
.chroma .nt {
  color: var(--rp-rose);
}
.chroma .nv {
  color: var(--rp-rose);
}
.chroma .vc {
  color: var(--rp-rose);
}
.chroma .vg {
  color: var(--rp-rose);
}
.chroma .vi {
  color: var(--rp-rose);
}
.chroma .vm {
  color: var(--rp-rose);
}
.chroma .l {
  color: var(--rp-gold);
}
.chroma .ld {
  color: var(--rp-gold);
}
.chroma .s {
  color: var(--rp-gold);
}
.chroma .sa {
  color: var(--rp-gold);
}
.chroma .sb {
  color: var(--rp-gold);
}
.chroma .sc {
  color: var(--rp-gold);
}
.chroma .dl {
  color: var(--rp-gold);
}
.chroma .sd {
  color: var(--rp-gold);
}
.chroma .s2 {
  color: var(--rp-gold);
}
.chroma .se {
  color: var(--rp-pine);
}
.chroma .sh {
  color: var(--rp-gold);
}
.chroma .si {
  color: var(--rp-gold);
}
.chroma .sx {
  color: var(--rp-gold);
}
.chroma .sr {
  color: var(--rp-gold);
}
.chroma .s1 {
  color: var(--rp-gold);
}
.chroma .ss {
  color: var(--rp-gold);
}
.chroma .m {
  color: var(--rp-gold);
}
.chroma .mb {
  color: var(--rp-gold);
}
.chroma .mf {
  color: var(--rp-gold);
}
.chroma .mh {
  color: var(--rp-gold);
}
.chroma .mi {
  color: var(--rp-gold);
}
.chroma .il {
  color: var(--rp-gold);
}
.chroma .mo {
  color: var(--rp-gold);
}
.chroma .o {
  color: var(--rp-subtle);
}
.chroma .ow {
  color: var(--rp-subtle);
}
.chroma .p {
  color: var(--rp-subtle);
}
.chroma .c {
  color: var(--rp-muted);
}
.chroma .ch {
  color: var(--rp-muted);
}
.chroma .cm {
  color: var(--rp-muted);
}
.chroma .c1 {
  color: var(--rp-muted);
}
.chroma .cs {
  color: var(--rp-muted);
}
.chroma .cp {
  color: var(--rp-muted);
}
.chroma .cpf {
  color: var(--rp-muted);
}
.chroma .gd {
  color: var(--rp-love);
}
.chroma .ge {
  font-style: italic;
}
.chroma .gi {
  color: var(--rp-foam);
}
.chroma .gs {
  font-weight: 700;
}
.chroma .gu {
  color: var(--rp-iris);
}

/* =========================
   Code Copy Button
   ========================= */
.copy-code-button {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rp-text);
  background-color: var(--rp-overlay);
  border: 1px solid var(--rp-overlay);
  border-top-left-radius: 0;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 1rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  cursor: pointer;
  opacity: 0.6;
}
.copy-code-button:hover,
.copy-code-button:focus,
.copy-code-button:active,
.copy-code-button:active:hover {
  color: var(--rp-base);
  background-color: var(--rp-subtle);
  opacity: 0.8;
}
.copyable-text-area {
  position: absolute;
  height: 0;
  z-index: -1;
  opacity: 0.01;
}

/* =========================
   Single Post/Page Content
   ========================= */
.postWrapper {
  text-align: left;
}
.postWrapper h1 {
  margin: 0;
}
.postWrapper h2 {
  color: var(--rp-foam);
}
.postWrapper h3 {
  color: var(--rp-rose);
}
.postWrapper h4 {
  color: var(--rp-gold);
}
.postWrapper h5 {
  color: var(--rp-pine);
}
.postWrapper ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.2rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}
.postWrapper ul li::before {
  content: "\2022";
  color: var(--rp-rose);
  font-weight: 700;
  display: inline-block;
  width: 1rem;
  margin-left: -1rem;
}
.postWrapper ol {
  margin: 0;
  padding: 0 0 0 2.2rem;
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}
.postWrapper .postMeta {
  color: var(--rp-muted);
  font-size: 0.9rem;
}
.postWrapper .postMeta a {
  font-size: 0.8rem;
}
.postWrapper .aboutAvatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0.8rem 0 1.25rem;
  border: 2px solid var(--rp-overlay);
}
.postWrapper .postHashtags {
  margin-top: 1.8rem;
}
.postWrapper .postHashtags a {
  margin-right: 0.65rem;
  color: var(--rp-foam);
  font-weight: 700;
}

/* =========================
   List and Pagination Pages
   ========================= */
p {
  margin-top: 1.2em;
}
.listHeader,
.listContent {
  text-align: left;
}
.listHeader h1 {
  margin: 0;
}
.pagination .wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination .wrapper .button {
  width: 50%;
}
.pagination .wrapper .button a {
  color: var(--rp-gold);
}
.indexWrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.homeIntro {
  max-width: 44rem;
}

/* =========================
   Global Layout Helpers
   ========================= */
.content {
  text-align: center;
  margin: 0 auto;
  flex: 1 auto;
  padding: 20px;
}
@media (max-width: 684px) {
  .content {
    margin: 0;
  }
}
@media only screen and (min-width: 992px) {
  .content {
    display: flex;
    width: 760px;
  }
}
.flexWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}
.main {
  width: 100%;
  height: 100%;
}

/* =========================
   Global Transitions and Link Rules
   ========================= */
html.theme-switching body,
html.theme-switching .header,
html.theme-switching .footer,
html.theme-switching .content,
html.theme-switching .postWrapper,
html.theme-switching .postListItem,
html.theme-switching .highlight,
html.theme-switching .chroma,
html.theme-switching blockquote,
html.theme-switching table th,
html.theme-switching table td,
html.theme-switching a,
html.theme-switching h1,
html.theme-switching h2,
html.theme-switching h3,
html.theme-switching h4,
html.theme-switching h5,
html.theme-switching h6,
html.theme-switching .theme-toggle,
html.theme-switching .socialNavbar a,
html.theme-switching .postTerms a {
  transition:
    color 0.18s ease-out,
    background-color 0.18s ease-out,
    border-color 0.18s ease-out,
    fill 0.18s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-switching body,
  html.theme-switching .header,
  html.theme-switching .footer,
  html.theme-switching .content,
  html.theme-switching .postWrapper,
  html.theme-switching .postListItem,
  html.theme-switching .highlight,
  html.theme-switching .chroma,
  html.theme-switching blockquote,
  html.theme-switching table th,
  html.theme-switching table td,
  html.theme-switching a,
  html.theme-switching h1,
  html.theme-switching h2,
  html.theme-switching h3,
  html.theme-switching h4,
  html.theme-switching h5,
  html.theme-switching h6,
  html.theme-switching .theme-toggle,
  html.theme-switching .socialNavbar a,
  html.theme-switching .postTerms a {
    transition: none;
  }
}
a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.header a,
.socialNavbar a,
.menu-items a,
.postListItem a {
  text-decoration: none;
}

/* =========================
   Compact Post List Overrides
   ========================= */
.postListItem {
  padding: 0.75rem 0;
  background-color: initial;
  margin-bottom: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--rp-overlay);
}
.postListItem a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--rp-text);
}
.postListItem .postTitle {
  color: var(--rp-text);
}
.postListItem .postDate {
  color: var(--rp-subtle);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-left: 1rem;
}
.postYearHeading {
  margin: 1.6rem 0 0.7rem;
}

/* =========================
   Theme Toggle Icons
   ========================= */
.theme-toggle {
  display: flex;
  align-items: center;
  padding: 0.3rem;
  background: 0 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.icon-moon {
  display: none;
  font-size: 1.4rem;
}
.icon-sun {
  font-size: 1.4rem;
}
:root[data-theme="light"] .icon-sun {
  display: none;
}
:root[data-theme="light"] .icon-moon {
  display: inline;
}

/* =========================
   Heading Accent Overrides
   ========================= */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rp-rose);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.main h1 {
  border-bottom: 1px solid var(--rp-overlay);
  padding-bottom: 0.4rem;
}
.main h2 {
  border-bottom: 1px solid var(--rp-overlay);
  padding-bottom: 0.3rem;
}
