@font-face {
font-family: heliotrope;
font-style: normal;
font-weight: 400;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_3_book.woff2') format('woff2');
}

@font-face {
font-family: heliotrope-italic;
font-style: italic;
font-weight: 400;
font-stretch: normal;
font-style: italic;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_3_book_italic.woff2') format('woff2');
}



@font-face {
font-family: heliotrope_ot_4_medium;
font-style: normal;
font-weight: 500;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_4_medium.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_4_medium;
font-style: italic;
font-weight: 500;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_4_medium_italic.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_4_medium_italic;
font-style: normal;
font-weight: 500;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_4_medium_italic.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_6_semibold;
font-style: normal;
font-weight: 600;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_6_semibold.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_6_semibold;
font-style: italic;
font-weight: 600;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_6_semibold_italic.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_6_semibold_italic;
font-style: normal;
font-weight: 600;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_6_semibold_italic.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_8_black;
font-style: normal;
font-weight: 800;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_8_black.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_8_black;
font-style: italic;
font-weight: 800;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_8_black_italic.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_ot_8_black_italic;
font-style: normal;
font-weight: 800;
font-stretch: normal;
font-display: swap;
src: url('/public/assets/fonts/heliotrope/heliotrope_ot_8_black_italic.woff2') format('woff2');
}

@font-face {
    font-family: ibm-plex-mono-bold;
    src: url('/public/assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: ibm-plex-mono-bold-ital;
    src: url('/public/assets/fonts/ibm-plex-mono/IBMPlexMono-BoldItalic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display:swap;
}

@font-face {
    font-family: ibm-plex-mono-ital;
    src: url('/public/assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display:swap;
}

@font-face {
    font-family: ibm-plex-mono;
    src: url('/public/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display:swap;
}

@font-face {
font-family: heliotrope_4_caps;
font-style: normal;
font-weight: normal;
font-stretch: normal;
font-display: auto;
src: url('/public/assets/fonts/heliotrope/heliotrope_4_caps_regular.woff2') format('woff2');
}

@font-face {
font-family: heliotrope_4_caps_bold;
font-style: normal;
font-weight: normal;
font-stretch: normal;
font-display: auto;
src: url('/public/assets/fonts/heliotrope/heliotrope_4_caps_bold.woff2') format('woff2');
}
@font-face {
font-family: duospace;
font-style: normal;
font-weight: normal;
font-stretch: normal;
font-display: auto;
src: url('/public/assets/fonts/duospace/duospace.woff2') format('woff2');
}

@font-face {
font-family: duospace-ital;
font-style: italic;
font-weight: normal;
font-stretch: normal;
font-display: auto;
src: url('/public/assets/fonts/duospace/duospace-ital.woff2') format('woff2');
}





:root {
    --color-bg: #fefefe;
    --color-surface: #fafafa;
    --color-text: #666;
    --color-text-subtle: #525252;
    --color-primary: #0a0a0a;
    --color-accent: #6b6b6b;
    --color-border: #e0e0e0;
    --color-border-subtle: #f0f0f0;
    --color-sidenote: #737373;
    --color-highlight: #1f6769;
    --color-highlight-hover: #164e50;
    --color-highlight-subtle: #e6f2f2;
    --color-highlight-focus: #cce4e5;
    --color-link: var(--color-highlight);
    --color-link-hover: var(--color-highlight-hover);
    --color-code-bg: #f7f7f7;
    --color-selection: #cce4e5;
    --color-white: #ffffff;
    --color-syntax-comment: #6b6b6b;
    --color-syntax-punctuation: #999999;
    --color-syntax-property: #905090;
    --color-syntax-string: var(--color-highlight);
    --color-syntax-operator: #9a6e3a;
    --color-syntax-keyword: #0077aa;
    --color-syntax-function: #dd4a68;
    --color-syntax-variable: #ee9900;
    --color-header-bg: #fefefed9;
    --color-header-bg-dark: #0f0f0fe0;
    --font-base: heliotrope_ot_4_book, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-mono: 'duospace','IBM Plex Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    --font-header: 'heliotrope', sans-serif;
    --font-title: 'heliotrope', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1.2rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --h1-tag: coral;
    --space-2xs: 0.375rem;
    --space-xs: 0.5rem;
    --space-s: 1.5rem;
    --space-m: 2.125rem;
    --space-l: 3rem;
    --space-xl: 4.25rem;
    --space-2xl: 6rem;
    --max-width: 66ch;
    --content-width: 120ch;
    --sidenote-width: 35%;
    --sidenote-offset: -45%;
    --sidenote-breakpoint: 1100px;
    --archive-badge-offset: -4rem;
    --border-radius: 6px;
    --border-radius-sm: 4px;
    --border-radius-lg: 8px;
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --shadow-xs: 0 1px 2px 0 #0000000a;
    --shadow-sm: 0 1px 3px 0 #0000000f, 0 1px 2px 0 #0000000a;
    --shadow-md: 0 4px 6px -1px #00000014, 0 2px 4px -1px #0000000a;
    --shadow-lg: 0 10px 15px -3px #00000014, 0 4px 6px -2px #0000000a;
    --shadow-xl: 0 20px 25px -5px #00000014, 0 10px 10px -5px #00000005;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 1000;
    --z-toast:2000;
    --pagination-background: #cce4e5;
    --pagination-text: black;
    --pagination-text-hover: white;
    --pagination-background-hover: #20b2aa;
    --blockquote-background-color: #efefef;
    --blockquote-text: #222222;
    --blockquote-border-color: #dedede;
    --submenu-background-color: #e6f2f2;
}

::selection {
    background: var(--color-selection);
    color:var(--color-text)
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme=light]) {
        --color-bg: #0f0f0f;
        --color-surface: #1a1a1a;
        --color-text: #e8e8e8;
        --color-text-subtle: #a1a1a1;
        --color-primary: #fafafa;
        --color-accent: #8a8a8a;
        --color-border: #2a2a2a;
        --color-border-subtle: #1a1a1a;
        --color-sidenote: #9a9a9a;
        --color-highlight: #5ebbaf;
        --color-highlight-hover: #7cc9be;
        --color-highlight-subtle: #1a3030;
        --color-highlight-focus: #2a4545;
        --color-code-bg: #1a1a1a;
        --color-selection: #2a4545;
        --color-syntax-comment: #8a8a8a;
        --color-syntax-punctuation: #888888;
        --color-syntax-property: #c792ea;
        --color-syntax-string: var(--color-highlight);
        --color-syntax-operator: #f9a86f;
        --color-syntax-keyword: #82aaff;
        --color-syntax-function: #f07178;
        --color-syntax-variable: #ffcb6b;
        --color-header-bg: var(--color-header-bg-dark);
        --shadow-xs: 0 1px 2px 0 #0000004d;
        --shadow-sm: 0 1px 3px 0 #00000066, 0 1px 2px 0 #0000004d;
        --shadow-md: 0 4px 6px -1px #00000080, 0 2px 4px -1px #0000004d;
        --shadow-lg: 0 10px 15px -3px #00000099, 0 4px 6px -2px #00000066;
        --shadow-xl:0 20px 25px -5px #000000b3, 0 10px 10px -5px #00000066;

    }
}

[data-theme=dark] {
    --color-bg: #0f0f0f;
    --color-surface: #1a1a1a;
    --color-text: #e8e8e8;
    --color-text-subtle: #a1a1a1;
    --color-primary: #fafafa;
    --color-accent: #8a8a8a;
    --color-border: #2a2a2a;
    --color-border-subtle: #1a1a1a;
    --color-sidenote: #9a9a9a;
    --color-highlight: #5ebbaf;
    --color-highlight-hover: #7cc9be;
    --color-highlight-subtle: #1a3030;
    --color-highlight-focus: #2a4545;
    --color-code-bg: #1a1a1a;
    --color-selection: #2a4545;
    --color-syntax-comment: #8a8a8a;
    --color-syntax-punctuation: #888888;
    --color-syntax-property: #c792ea;
    --color-syntax-string: var(--color-highlight);
    --color-syntax-operator: #f9a86f;
    --color-syntax-keyword: #82aaff;
    --color-syntax-function: #f07178;
    --color-syntax-variable: #ffcb6b;
    --color-header-bg: var(--color-header-bg-dark);
    --shadow-xs: 0 1px 2px 0 #0000004d;
    --shadow-sm: 0 1px 3px 0 #00000066, 0 1px 2px 0 #0000004d;
    --shadow-md: 0 4px 6px -1px #00000080, 0 2px 4px -1px #0000004d;
    --shadow-lg: 0 10px 15px -3px #00000099, 0 4px 6px -2px #00000066;
    --shadow-xl:0 20px 25px -5px #000000b3, 0 10px 10px -5px #00000066;
    --pagination-background: teal;
    --pagination-text: #fff;
    --pagination-background-hover: #20b2aa;
    --pagination-text-hover: white;
    --blockquote-background-color: #666666;
    --blockquote-text: #ddd;
    --blockquote-border-color: var(--color-syntax-function);
    --submenu-background-color: #000;
    --nav-link-color: #fff;

}


/* Pagefind Dark Mode Styles */
.pagefind-ui {
    --pagefind-ui-font: "heliotrope", -apple-system, system-ui, sans-serif;
    --pagefind-ui-scale: 0.9;
}

/* Light Mode (Default) Pagefind Styles */
.pagefind-ui {
    --pagefind-ui-primary: var(--color-text);
    --pagefind-ui-text: var(--color-text);
    --pagefind-ui-background: var(--color-bg);
    --pagefind-ui-border: var(--color-border);
}

/* Dark Mode Pagefind Styles */
@media (prefers-color-scheme: dark) {
[data-theme="dark"] {
    .pagefind-ui {
        --pagefind-ui-primary: var(--color-text);
        --pagefind-ui-text: var(--color-text);
        --pagefind-ui-background: var(--color-bg);
        --pagefind-ui-border: var(--color-border);
    }
}
}


/* Global stylesheet */
* {
	box-sizing: border-box;
}
iframe {
margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px; /* Hide off-screen */
}

.skip-link:focus {
  left: 10px; /* Bring into view when focused */
  top: 10px;
  background: #000;
  color: #fff;
  padding: 5px;
  z-index: 1000; /* Ensure it is above other elements */
}


body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.7;
    text-rendering: optimizeLegibility;
    text-wrap: balance;
    text-wrap: pretty;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-text-size-adjust: 100%;
    hanging-punctuation:first last;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing:grayscale;
}



.hr {
text-align: center;
color: val(--color-text);
padding: 1rem 0;
}

pre {
  white-space: pre-wrap; 
  margin: 1em 0;  
   
}

h1 {
font-family: heliotrope_ot_6_semibold, Georgia, serif;
font-size:  3rem;
font-weight: 800;
line-height: 3rem;
color: var(--h1-tag);
}




main {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-l);
    padding-block-start: var(--space-l);
    padding-block-end: var(--space-l);
    inline-size: 100%;
    flex:1
}

article {
    margin-block-end:var(--space-s);
}
p {
    font-family: heliotrope_ot_4_medium;
    font-size: 1.5rem;
    line-height: 2.25rem;
    color: var(--color-text);
}



.first-img {
  margin-top: 2rem;
}



.tag-head:child {
  margin-bottom: 1.5rem;
   font-family: heliotrope_ot_4_medium, sans-serif;

}



 .blurb {
            margin: 0 0 var(--space-m) 0;
            padding: var(--space-s) var(--space-s) var(--space-s) var(--space-m);
            border-left: 3px solid var(--color-border);
            background: var(--color-bg);
            font-size: 1.4rem;
            line-height: 2rem;
            color: var(--color-accent);
            font-family: heliotrope-italic;
            
        }

        .blurb.archive-notice {
            border-left-color: var(--color-accent);
            background: var(--color-border-subtle);
        }

        .blurb p {
            margin-bottom: 0.5rem;
        }

        .blurb p:last-child {
            margin-bottom: 0;
        }/* Post Meta Information */
        .post-meta {
            margin-bottom: var(--space-m);
        }
.cite {
  float: right;
}
        .meta-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            font-size: 0.9rem;
            color: var(--color-accent);
            line-height: 1.6;
        }

        .meta-row + .meta-row {
            margin-top: 0.5rem;
        }

        .post-date, .reading-time {
            color: var(--color-text-subtle);
            font-family: var(--font-mono);
            font-size: 0.875rem;
            font-variant-numeric: tabular-nums;
        }

        .meta-separator {
            color: var(--color-border);
            user-select: none;
            font-weight: 300;
        }



        .tags-row {
            padding-top: 0.25rem;
        }


figure img {
  max-width: 100%;
  height: auto;
  display: block;
   margin: 0 auto;
}

.figure {
    margin: 0 auto;
}

.figure--full {
  position: relative;
  left: 50%;
  right: 50%;
  width: 90vw;
  margin-left: -45vw;
  margin-right: -45vw;
}

.figure--full img {
  width: 100%;
  height: auto;
  display: block;
}

.figure--full figcaption {
  max-width: var(--max-width);
  margin: 0.75rem auto 0;
  padding-inline: var(--space-l);
  text-align: center;
}


/* Media Query for widths greater than 1600px */
@media (min-width: 1601px) {
  .figure--full {
    width: 80vw;
    margin-left: -40vw;  /* Adjusting margin for 80vw */
    margin-right: -40vw; /* Adjusting margin for 80vw */
  }
}

figcaption {
text-align: center;
}



.iframe-wrapper {
  display: flex;               /* Use Flexbox for centering */
  justify-content: center;     /* Center horizontally */
  align-items: center;         /* Center vertically (if needed) */
  height: 100vh;              /* Fill full viewport height for vertical centering */
}
.post-title--center {
  text-align: center;
}

.yt-wrapper {
  max-width: 100%;
  margin: 1.5rem auto;
}

.yt-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  border: 0;
}

.all-tags {
  font-family: var();

}

.tags-list {

 font-family: var(--font-base);
 font-size: 1rem;
}

footer {
    max-width: var(--max-width);
    margin-block-start: var(--space-2xl);
    margin-inline: auto;
    padding-block: var(--space-l);
    padding-inline: var(--space-s);
    border-block-start: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-subtle);
    font-size: 1.3rem;
}

footer a {
    color: var(--color-text-subtle);
    text-decoration: underline;
    text-decoration-color: var(--color-border);
    text-underline-offset: 0.15em;
    transition: color var(--transition-base), text-decoration-color var(--transition-base);
    font-weight:500
}

footer a:hover {
    color: var(--color-highlight);
    text-decoration-color:var(--color-highlight)
}

footer a:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
    background:var(--color-highlight-focus)
}

.footer-divider {
    margin: 0 .5rem;
    color:var(--color-border)
}


.privacy-notice {
    font-size: .85em;
    color:var(--color-accent)
}


#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-sticky);
    opacity: 0;
    visibility: hidden;
    transform:translateY(20px)
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform:translateY(0)
}

#back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--color-highlight-subtle);
    border-color:var(--color-highlight)
}


.theme-toggle-btn {
    background: 0 0;
    border: none;
    color: var(--color-text-subtle);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
    transition: color var(--transition-base), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content:center
}

.theme-toggle-btn:hover {
    color: var(--color-highlight);
    transform:rotate(15deg)
}

.theme-toggle-btn:active {
    transform:scale(.9)
}

.theme-toggle-nav {
    background: 0 0;
    border: none;
    color: var(--color-text-subtle);
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    vertical-align: middle;
    transition: color var(--transition-base), transform var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content:center
}

.theme-toggle-nav:hover {
    color: var(--color-highlight);
    transform:rotate(15deg)
}

.theme-toggle-nav:active {
    transform:scale(.9)
}

@media (max-width: 768px) {
    .footer-divider {
        display: block;
        margin:.25rem 0
    }

    .privacy-notice {
        display: block;
        margin-top:.5rem
    }
}

.site-header {
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    margin-bottom: var(--space-l);
    
    top: 0;
    z-index: var(--z-sticky);
    backdrop-filter: saturate(180%) blur(12px);
    background: var(--color-header-bg);
    transition:box-shadow var(--transition-base), border-color var(--transition-base)
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color:transparent
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:2rem
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex:1
}

.site-logo {
    display: flex;
    font-family: heliotrope_4_caps_bold;
    font-variant: small-caps;
    font-weight: 600;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: opacity var(--transition-base), transform var(--transition-bounce);
    font-size: 2rem;
    flex-shrink: 0;
    border-radius:var(--border-radius-sm)
}

.site-logo img {
    display: block;
    width: 0px;
    height: 0px;
    transition:filter var(--transition-base)
}

.site-logo:hover {
    opacity: .85;
    transform:scale(1.05);
    color: var(--color-highlight-hover);
}

.site-logo:hover img {
    filter:drop-shadow(0 2px 4px #2c7a7b33)
}

.site-logo:active {
    transform:scale(.98)
}

.site-logo:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 0px;
    background:var(--color-highlight-focus)
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size:1.5rem
}

.nav-links a {
    color: var(--color-accent);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
    font-weight: 400;
    padding: .25rem .5rem;
    margin: -.25rem -.5rem;
    border-radius: var(--border-radius-sm);
    white-space:nowrap
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .5rem;
    right: .5rem;
    height: 2px;
    background: var(--color-highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-bounce);
    border-radius:1px
}

.nav-links a:hover {
    color: var(--color-primary);
    background:var(--color-highlight-subtle)
}

.nav-links a[aria-current=page] {
    color: var(--color-primary);
    font-weight:700
}

.nav-links a:hover::after, .nav-links a[aria-current=page]::after {
    transform:scaleX(1)
}

.nav-links a:active {
    transform:translateY(1px)
}

.nav-links a:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 4px;
    border-radius:2px
}


.page-links {
    display: inline;
   

}


.page-links a {
    color: var(--color-accent);
    position: relative;
    transition: color var(--transition-base);


}

.page-links a::after {

    background: var(--color-highlight);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-bounce);
    border-radius:1px
}

.page-links a:hover {
    color: var(--color-primary);
    background:var(--color-highlight-subtle)
}
.noburn.pagelinks a:hover {
   color: transparent;
   background: transparent;
}

.page-links a[aria-current=page] {
    color: var(--color-primary);
    font-weight:700
}

.page-links a:hover::after, .page-links a[aria-current=page]::after {
    transform:scaleX(1)
}

.page-links a:active {
    transform:translateY(1px)
}

.page-links a:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 4px;
    border-radius:2px
}

.page-links a {
    text-decoration: none;
    border-bottom: 1px dashed var(--color-highlight-hover);
}

.callout {
    display: block;
    font-family: heliotrope-italic, serif;
    width: 44%;
    font-size: 3rem;
    line-height: 2.8rem;
    margin-right: -8rem;
    padding: 1.8rem;
    color: crimson;
    float: right;
}
@media (max-width: 768px) {
  .callout {
    width: 44%;
    float: left;
    margin-right: 3rem;
  }
}


a {
    color: var(--color-link);
    text-decoration: underline;
    text-decoration-color: var(--color-highlight);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color var(--transition-base), text-decoration-color var(--transition-base), text-decoration-thickness var(--transition-base), text-underline-offset var(--transition-fast);
    font-weight:500
}

a:hover {
    color: var(--color-link-hover);
    text-decoration-color: var(--color-link-hover);
    text-decoration-thickness: 2px;
    text-underline-offset:0.2em
}

a:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset: 3px;
    border-radius: var(--border-radius-sm);
    background:var(--color-highlight-focus)
}
#search {
    display: flex;
    align-items:center
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000bf;
    backdrop-filter: blur(12px) saturate(120%);
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 1.5rem 1.5rem;
    animation: fadeIn var(--transition-slow);
    will-change:opacity
}

@keyframes fadeIn {
    from {
        opacity:0
    }

    to {
        opacity:1
    }
}










.site-header .header-inner {
 display: flex;
  flex-direction: column;
  align-items: center; /* Change from stretch to center */
  justify-content: center; /* Add this to center vertically */
  text-align: center; /* Ensure text is centered */
  width: 100%; /* Ensure it takes full width */
}

.site-logo,
.nav-links {
  text-align: center;
  
}

/* start */

.nav {
  display: inline-flex;
  justify-content: center; /* Center nav items */
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%; /* Ensure full width */
}

.nav-item {
  position: relative;
  color: var(--nav-link-color);
}

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
 
}

.nav-item.is-open > .submenu {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .nav-item:hover > .submenu {
    display: block;
  }
}


/* end */


.nav-links ul {
  display: inline-flex; /* NOT flex */
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links > ul > li {
  position: relative;
  color: var(--nav-link-color);
}
.nav-links ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.5rem;
  background: var(--submenu-background-color);
  z-index: 1000;
}
.nav-links li:hover > ul,
.nav-links li:focus-within > ul {
  display: block;
}



@keyframes slideDown {
    from {
        transform: translateY(-30px) scale(.98);
        opacity:0
    }

    to {
        transform: translateY(0) scale(1);
        opacity:1
    }
}


.post-list {
    margin-bottom: var(--space-l);
    max-width: var(--content-width);
   
    font-family: heliotrope_ot_6_semibold;
}

.post-list h2 {
    
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: var(--space-s);
    padding-bottom: .3rem;
    
}

.post-list ul {
    list-style: none;
    font-family: heliotrope_ot_4_medium;
    padding: 0;
    margin:0
}




.date {
    color: var(--color-accent);
    font-size: var(--text-sm);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--font-mono);
    transition:color var(--transition-base)
}

.post-list li:hover .date {
    color:var(--color-text-subtle)
}

.view-all {
    margin-top: 1rem;
    text-align: right;
    font-size:.9em
}

.view-all a {
    color: var(--color-highlight);
    text-decoration: none;
    font-weight: 500;
    transition:color .2s ease
}

.view-all a:hover {
    color: var(--color-highlight-hover);
    text-decoration:underline
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin:var(--space-s) 0
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: .25rem .65rem;
    background: 0 0;
    color: var(--color-highlight);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-size: .8125rem;
    font-weight: 500;
    font-family: var(--font-base);
    border: 1px solid var(--color-border);
    transition:all var(--transition-base)
}

.tag-head
{
  padding-bottom: 2rem;
}

.tag:hover {
    background: var(--color-highlight-subtle);
    color: var(--color-highlight-hover);
    border-color: var(--color-highlight);
    text-decoration: none;
    transform:translateY(-1px)
}

.tag:active {
    transform:translateY(0)
}

.tag:focus-visible {
    outline: 2px solid var(--color-highlight);
    outline-offset:2px
}

/*
html {
	overflow-y: scroll;
}
*/



.twocol {
  column-count: 2;
}
strong {
  font-weight: 800;
}



.container {
  margin:auto;
}



      .menu-button {
            display: none;
            background-color: #333;
            color: white;
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            font-size: 16px;
            width: 100%;
            text-align: left;
        }

        .menu-button:hover {
            background-color: #555;
        }


p:last-child {
	margin-bottom: 0;
}


#everything, #photography, #reading, #blog, #listening, #hong-kong-book-club {
  padding-bottom: 3rem;
}

  


/* External Links */
a.ext-link:before {
  display: inline-flex;
  content: '🔗';
  height: fit-content;
  width: fit-content;
  margin-right: 0.3em;
  font-size: 16px;
}

main,
footer {
	padding: 1rem;
   
}
main :first-child {
	margin-top: 0;
}

li.myname {
	display: block;
    text-decoration: none !important;
	}



#skip-link {
	text-decoration: none;
	background: var(--background-color);
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border: 1px solid var(--color-gray-90);
	border-radius: 2px;
}

#skip-link a {

    display: block;
    position: absolute;
    left: -999px;
    top: -999px;
    
}

#skip-link a:focus {
    left: 0;
    top: 0;
    padding: 3px;
    background: #ffc;
    border:1px solid #990000;
    }

/* Prevent visually-hidden skip link fom pushing content around when focused */

#skip-link.visually-hidden:focus {
	position: absolute;
	top: 1rem;
	left: 1rem;
	/* Ensure it is positioned on top of everything else when it is shown */
	z-index: 999;
}

ul.tags {
    column-count: 2;
    list-style-position: inside; 

}




.headertext {
 padding-bottom: 4rem;
}
  
  .post-separator {
    border-top: 1px solid #ddd;
    margin: 1.5rem 0;
  }
  
  .pagination {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
       flex-direction: row-reverse;
  }

.linkbackground {
  background-color: #fffff0;
  padding: 10px;
  border-radius: 1rem;
}

.links-nextprev {
	display: flex;
	justify-content: space-between;
    list-style-type: none;
	gap: .5em 1em;
	list-style: "none";
	border-top: 1px dashed var(--color-gray-20);
	padding: 1em 0;
}
.links-nextprev > * {
	flex-grow: 1;
}
.links-nextprev-next {
	text-align: right;
}





.page-pagination {
  margin: 2rem 0; /* Adjust margin as needed */
}

.page-pagination-links {
display: flex; 
justify-content: space-between; 
margin-top: 2rem;
padding-top: 4rem;
  flex-direction: row-reverse;

}
.page-pagination-links-posts {
  display: flex; /* Enables flexbox layout */
  justify-content: space-around; /* Space between buttons */
  padding-top: 2rem;
    
}

.page-pagination-previous,
.page-pagination-next {
  font-family: heliotrope_ot_6_semibold;
  font-size: 1.3rem;
  padding: 1rem 1rem; /* Add padding for button aesthetics */
  text-decoration: none; /* Remove underline */
  background-color: var(--pagination-background); /* Use your desired background color */
  color: var(--pagination-text); /* Text color */
  border-radius: .4rem; /* Rounded corners */
  flex-basis: 33%; /* Ensure buttons take equal width */
  text-align: center; /* Center align the text */
}

.page-pagination-previous {
  margin-right: auto; /* Push this button to the left */
  float:left;
}

.page-pagination-next {
  margin-left: auto; /* Push this button to the right */
  float: right;
}

.page-pagination-previous:hover,
.page-pagination-next:hover {
  background-color: var(--pagination-background-hover); /* Darken on hover */
  color: var(--pagination-text-hover);
}




article {
    display: flex;
    align-items: flex-start; /* Aligns the image and content to the start */
}

ol, li {
  font-family: heliotrope_ot_4_medium;
  font-size: 1.5rem;
line-height: 2.25rem;
}

.post-image {
    margin-right: 20px; /* Adds space between the image and the content */
}

.post-content {
    display: flex;
    flex-direction: column; /* Stack the date, title, and text vertically */

}

.post-content a {
    color: var(--color-highlight-hover);
}




pre {
    font-family: 'duospace', monospace !important; /* Replace with your desired font */
    font-size: 1.35rem; /* Adjust size if needed */
    white-space: pre-wrap; 
    margin: 1em 0;  
}

code {
    font-family: 'duospace', monospace !important; /* Same for inline code */
}


/* cusdis */

#root iframe {
   height: 500px;
}

/* for code blocks */
.comment {
    font-family: 'duospace-ital', monospace !important;

}
pre:not([class*="language-"]) {
	margin: .5em 0;
	line-height: 1.375; /* 22px /16 */
	-moz-tab-size: var(--syntax-tab-size);
	-o-tab-size: var(--syntax-tab-size);
	tab-size: var(--syntax-tab-size);
	-webkit-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	direction: ltr;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	overflow-x: auto;
}
code {
	word-break: break-all;
}

blockquote {
 background: var(--blockquote-background-color);
  border-left: 10px solid var(--blockquote-border-color);
  margin: 2rem 0 2rem 0;
  padding: 0.5em 10px;  
}

blockquote p {
 margin: 1rem;
 font-family: heliotrope_ot_4_medium_italic;
 font-size: 1.5rem;
 line-height: 2.25rem;
}


/* Header */
header {
	display: flex;
	gap: 1em;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	padding: .1em;
}
.home-link {
	flex-grow: 1;
	font-size: 1.4em; /* 16px /16 */
	font-weight: 700;
}
.home-link:link:not(:hover) {
	text-decoration: none;
}

    .menu-button {
       display: none;
     }


.post-list h1 {
  
    font-weight: 600;
    font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin-bottom: var(--space-m);
    color: var(--color-primary);
    font-family: heliotrope_ot_6_semibold;
  
    width:var(--content-width)
}

h2 {
    font-family: heliotrope_ot_6_semibold;
    font-weight: 600;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin-top:0; 
    margin-bottom: var(--space-s);
    color: var(--color-primary);
    text-wrap:balance
}

h3 {
    font-family: var(--font-header);
    font-weight: 600;
    font-size: clamp(1.25rem, 1.125rem + .5vw, 1.375rem);
    line-height: 1.35;
    letter-spacing: -.015em;
    margin-top: var(--space-m);
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
    text-wrap:balance
}

h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 600;
    line-height: 1.4;
    margin-top: var(--space-s);
    margin-bottom: var(--space-xs);
    color:var(--color-primary)
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: none;
    font-weight:inherit
}
h2 a:hover {
    border-bottom: 1px solid var(--color-highlight-focus);
}




/* Posts list */
.postlist {
	counter-reset: start-from var(--postlist-index);
	list-style: none;
	padding: 0;
	padding-left: 1.5rem;
}
.postlist-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	counter-increment: start-from -1;
	margin-bottom: 1em;
}
.postlist-item:before {
	display: inline-block;
	pointer-events: none;
	content: "" counter(start-from, decimal-leading-zero) ". ";
	line-height: 100%;
	text-align: right;
	margin-left: -1.5rem;
}
.postlist-date,
.postlist-item:before {
	font-size: 0.8125em; /* 13px /16 */
	color: var(--color-gray-90);
}
.postlist-date {
	word-spacing: -0.5px;
}
.postlist-link {
	font-size: 1.1875em; /* 19px /16 */
	font-weight: 700;
	flex-basis: calc(100% - 1.5rem);
	padding-left: .25em;
	padding-right: .5em;
	text-underline-position: from-font;
	text-underline-offset: 0;
	text-decoration-thickness: 1px;
}
.postlist-item-active .postlist-link {
	font-weight: bold;
}

/* Tags */
.post-tag {
    color: var(--color-text-subtle);
    font-family: var(--font-base);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
	align-items: center;
	justify-content: center;
	text-transform: capitalize;
	font-style: normal;
}
.postlist-item > .post-tag {
	align-self: center;
}


.tag-page-item {
 font-family: heliotrope_ot_4_medium;
    font-size: 1.5rem;
    line-height: 2.25rem;
    color: var(--color-text);

}
/* Tags list */
ul.post-metadata {
	display: inline-flex;
	flex-wrap: wrap;
	gap: .5em;
	list-style: none;
    list-style-type: none;
	padding: 0;
	margin: 0;
}
ul.post-metadata li {
   display:  contents;

}
.post-metadata time {
	margin-right: 1em;
    list-style-type: none;

}


 @media screen and (max-width: 768px) {
          .sidebar {
                width: 100%;
                position: static;
                height: auto;
                border-right: none;
               
                padding: 0;
		              background-color: #eee;
            }

           p.overmenu {
											      display:block;
                 padding: 15px 15px;
																			}

            .menu-button {
                display: block;
            }

										li.myname {
													   display: none;
											}

            .main-content {
                margin-left: 0;
            }
        }