@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

@font-face {
    font-family: 'CC Red Alert';
    src: url('../fonts/cc-red-alert.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* ================================================================
   DESIGN TOKENS
   ================================================================ */

:root {
    /* Backgrounds */
    --bg:           oklch(0.14 0.13 268);
    --bg-soft:      oklch(0.14 0.13 268);   /* same as bg — no box contrast */
    --bg-elevated:  oklch(0.19 0.12 268);
    --bg-quote:     oklch(0.11 0.11 268);   /* slightly darker for quote inset */

    /* Text */
    --text:         oklch(0.95 0.02 80);    /* warm near-white, faint orange tint */
    --text-muted:   #666c78;
    --text-quote:   oklch(89.497% 0.04513 101.758);

    /* Accent — warm orange */
    --orange:       #fa7c1f;
    --orange-bright:oklch(0.82 0.16 60);
    --orange-dim:   #b0540e;
    --purple-dim:   #633250;

    /* Stars */
    --gold:         /e#ffcf00;
    --gold-dim:     oklch(69.156% 0.14127 100.462);

    /* Links */
    --link:         #ffd790;
    --link-hover:   var(--orange-bright);

    /* Borders */
    --border:       oklch(0.28 0.10 268);
    --border-bright: oklch(0.38 0.12 268);

    /* Layout */
    --content-width: 740px;
    --sidebar-width: 240px;
    --gap:           1.75rem;

    /* Pixel art rendering */
    --pixel-border: 2px solid var(--border);

    /* Fonts */
    --display-font: 'CC Red Alert', 'Courier New', monospace;
    --heading-font: 'Libre Baskerville', serif;
    --body-font:    'Libre Baskerville', serif;
    --mono-font:    'Courier Prime', 'Courier New', monospace;
}


/* ================================================================
   RESET
   ================================================================ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ================================================================
   BASE
   ================================================================ */

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.75;
    background-image: url("../img/stars_bg.svg");
    background-repeat: repeat;
    background-size: 1200px 900px;
    background-attachment: fixed;
}

a       { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

p {
    margin-bottom: 1rem;
    max-width: 65ch;
    color: var(--text);
}

ul, ol {
    padding-left: 1.6rem;
    margin-bottom: 1rem;
}

ul li::marker,
ol li::marker {
    color: oklch(0.45 0.05 268);
}

.text-muted { color: var(--text-muted); }


/* ================================================================
   PAGE LAYOUT
   ================================================================ */

.page-shell {
    display: flex;
    justify-content: center;
    gap: var(--gap);
    padding: 2rem clamp(0.75rem, 4vw, 2rem);
    min-height: 100vh;
}

/* Main content column */
.site-wrapper {
    flex: 1 1 0;
    min-width: 0;
    max-width: var(--content-width);
    padding: 0 0.5rem;
}

/* Left sidebar */
.site-sidebar-left {
    flex: 0 0 var(--sidebar-width);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
    height: fit-content;
    padding: 0;
}

.sidebar-widget {
    background: none;
    border: none;
    padding: 0;
}

.sidebar-heading {
    font-family: var(--mono-font);
    justify-content: center;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-meta {
    font-family: var(--mono-font);
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    line-height: 1.9;
}

.sidebar-description {
    font-size: 0.77rem;
    color: var(--text-muted);
    font-family: var(--mono-font);
    line-height: 1.6;
}

.sidebar-description--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.desc-toggle {
    background: none;
    border: none;
    color: var(--orange);
    font-family: var(--mono-font);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.25rem;
}

.desc-toggle:hover { color: var(--orange-bright); }


/* ================================================================
   NAVIGATION
   ================================================================ */

nav .nav-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

nav .nav-logo {
    padding: 1rem;
    flex-shrink: 0;
    width: clamp(80px, 9vw, 96px);
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

nav .nav-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

nav h1 {
    font-family: var(--display-font);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--orange-bright);
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 0.04em;
    margin: 0;
}

nav .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    justify-content: flex-start;
}

nav a {
    font-family: var(--display-font);
    font-size: 0.82rem;
    font-weight: normal;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.1rem 0.3rem;
    letter-spacing: 0.05em;
    transition: color 0.12s;
}

nav a:hover { color: var(--orange-bright); }


/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1 {
    font-family: var(--display-font);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--link);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

h2 {
    font-family: var(--display-font);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: normal;
    letter-spacing: 0.03em;
    color: var(--orange-bright);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Section labels — "read-2026", "Previously Read" */
h3 {
    font-family: var(--display-font);
    font-size: 0.82rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange-dim);
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
}

h3::before {
    content: '>';
    display: inline-block;
    margin-right: 0.45em;
    letter-spacing: 0;
    color: var(--orange-dim);
    opacity: 0.7;
}

/* Remove marker from post titles and markdown headings */
h3.post-title::before,
.markdown-body h3::before {
    content: none;
}

/* Markdown article headings */
.markdown-body {
    font-family: var(--body-font);
}

.markdown-body img:not(.star) {
    max-width: 65ch;
    width: 100%;
    height: auto;
}

.markdown-body h2 {
    font-family: var(--display-font);
    font-size: 1.5rem;
    font-weight: normal;
    letter-spacing: 0.03em;
    margin-top: 1.6rem;
    border-bottom: none;
    color: var(--orange-bright);
}

.markdown-body h3 {
    font-family: var(--display-font);
    font-size: 1.1rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var(--orange);
    margin-top: 1.1rem;
    margin-bottom: 0.3rem;
}

.markdown-body h4 {
    font-family: var(--display-font);
    font-size: 0.95rem;
    font-weight: normal;
    letter-spacing: 0.03em;
    color: var(--orange-dim);
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
}


/* ================================================================
   QUOTE WIDGET
   Shared styles used by both the desktop sidebar and mobile slot.
   ================================================================ */

/* The widget box */
.sidebar-widget--quote {
    background: var(--bg-quote);
    padding: 0.9rem 1rem;
    border-radius: 0;
    border: 2px solid var(--border);
    font-family: var(--mono-font);
    font-size: 0.75rem;
    line-height: 1.7;
    color: var(--text);
}

/* Source line */
.sidebar-quote-source {
    font-family: var(--mono-font);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
}

/* Refresh button */
.quote-refresh-btn,
.quote-refresh-btn--mobile {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    width: fit-content;
    margin-bottom: 0.75rem;
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    cursor: pointer;
    font-family: var(--display-font);
    font-size: 0.72rem;
    font-weight: normal;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    text-align: left;
    transition: border-color 0.15s, color 0.15s;
}

.quote-refresh-btn:hover,
.quote-refresh-btn--mobile:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.quote-refresh-btn .randomise-icon,
.quote-refresh-btn--mobile .randomise-icon-mobile {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.randomise-label {
    line-height: 1;
}

/* Mobile slot: hidden by default; shown only on small screens */
.quote-widget-mobile-slot {
    display: none;
}

/* Mobile widget — stretch to full content width */
.quote-widget--mobile {
    display: block;
}




/* ================================================================
   BOOK LIST
   ================================================================ */

.book-list {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

.book-list__item::marker {
    color: var(--orange-dim);
    font-size: 0.75em;
}

.book-list__item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.45rem;
    padding: 0.3rem 0;
    line-height: 1.5;
}

.book-list__title {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.book-title--unlinked {
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.book-list__author {
    font-family: var(--mono-font);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.book-list__author::before {
    content: '—';
    margin-right: 0.3em;
    opacity: 0.35;
}

.book-list__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    margin-left: auto;
    padding-left: 0.5rem;
}


/* ================================================================
   BOOK DETAIL HEADER
   ================================================================ */

.book-header__title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.4rem;
    margin-bottom: 0.4rem;
}

.book-header__title {
    font-family: var(--display-font);
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    font-weight: normal;
    letter-spacing: 0.03em;
    color: var(--orange-bright);
    line-height: 1.2;
}

.book-header__author {
    font-family: var(--mono-font);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.book-header__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}


/* ================================================================
   TAGS
   ================================================================ */

.tag {
    font-family: var(--display-font);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 0;
    border: 1px solid var(--orange-dim);
    color: var(--orange-dim);
    background: transparent;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.12s, border-color 0.12s;
}

.tag:hover {
    opacity: 1;
}


/* ================================================================
   STAR RATING
   ================================================================ */

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    vertical-align: middle;
    margin-left: 0.3rem;
    position: relative;
    top: -1px;
}

.star { width: 11px; height: 11px; display: inline-block; }


/* ================================================================
   BLOCKQUOTES  (general markdown content)
   ================================================================ */

blockquote,
blockquote p {
    background: var(--bg-quote);
    padding: 0.85rem 0.85rem;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    border-radius: 4px;
    color: var(--text);
    margin: 1.1rem 0;
    border: none;
}


.quote-text,
.quote-text p {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
}

/* ================================================================
   POST TITLE (with inline stars)
   ================================================================ */

h3.post-title,
.post-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-family: var(--display-font);
    font-size: 1.55rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var(--link) !important;
    margin-top: 0;
    margin-bottom: 0.2rem;
}

h3.post-title .star-rating,
.post-title .star-rating {
    top: 0;
    margin-left: 0;
}


/* ================================================================
   CODE BLOCKS
   ================================================================ */

/* Fenced code block wrapper from pymdownx.highlight */
.highlight {
    background: var(--bg-quote);
    border-radius: 10px;
    margin: 1em 0;
    overflow-x: auto;
}

.highlight pre {
    margin: 0;
    padding: 0.75rem 1rem;
    background: transparent;
    font-family: var(--mono-font);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
}

/* Inline code */
p code {
    background-color: var(--bg-quote);
    padding: 0.2em 0.4em;
    border-radius: 6px;
    color: var(--orange-bright);
    font-family: var(--mono-font);
    font-size: 0.9em;
}

/* Pygments / Dracula theme */
.highlight .hll { background-color: #44475a }
.highlight      { background: var(--bg-quote); color: #F8F8F2 }
.highlight .c   { color: #6272A4 } /* Comment */
.highlight .err { color: #F8F8F2 } /* Error */
.highlight .g   { color: #F8F8F2 } /* Generic */
.highlight .k   { color: #FF79C6 } /* Keyword */
.highlight .l   { color: #F8F8F2 } /* Literal */
.highlight .n   { color: #F8F8F2 } /* Name */
.highlight .o   { color: #FF79C6 } /* Operator */
.highlight .x   { color: #F8F8F2 } /* Other */
.highlight .p   { color: #F8F8F2 } /* Punctuation */
.highlight .ch  { color: #6272A4 } /* Comment.Hashbang */
.highlight .cm  { color: #6272A4 } /* Comment.Multiline */
.highlight .cp  { color: #FF79C6 } /* Comment.Preproc */
.highlight .cpf { color: #6272A4 } /* Comment.PreprocFile */
.highlight .c1  { color: #6272A4 } /* Comment.Single */
.highlight .cs  { color: #6272A4 } /* Comment.Special */
.highlight .gd  { color: #8B080B } /* Generic.Deleted */
.highlight .ge  { color: #F8F8F2; text-decoration: underline } /* Generic.Emph */
.highlight .ges { color: #F8F8F2; text-decoration: underline } /* Generic.EmphStrong */
.highlight .gr  { color: #F8F8F2 } /* Generic.Error */
.highlight .gh  { color: #F8F8F2; font-weight: bold } /* Generic.Heading */
.highlight .gi  { color: #F8F8F2; font-weight: bold } /* Generic.Inserted */
.highlight .go  { color: #44475A } /* Generic.Output */
.highlight .gp  { color: #F8F8F2 } /* Generic.Prompt */
.highlight .gs  { color: #F8F8F2 } /* Generic.Strong */
.highlight .gu  { color: #F8F8F2; font-weight: bold } /* Generic.Subheading */
.highlight .gt  { color: #F8F8F2 } /* Generic.Traceback */
.highlight .kc  { color: #FF79C6 } /* Keyword.Constant */
.highlight .kd  { color: #8BE9FD; font-style: italic } /* Keyword.Declaration */
.highlight .kn  { color: #FF79C6 } /* Keyword.Namespace */
.highlight .kp  { color: #FF79C6 } /* Keyword.Pseudo */
.highlight .kr  { color: #FF79C6 } /* Keyword.Reserved */
.highlight .kt  { color: #8BE9FD } /* Keyword.Type */
.highlight .ld  { color: #F8F8F2 } /* Literal.Date */
.highlight .m   { color: #FFB86C } /* Literal.Number */
.highlight .s   { color: #BD93F9 } /* Literal.String */
.highlight .na  { color: #50FA7B } /* Name.Attribute */
.highlight .nb  { color: #8BE9FD; font-style: italic } /* Name.Builtin */
.highlight .nc  { color: #50FA7B } /* Name.Class */
.highlight .no  { color: #F8F8F2 } /* Name.Constant */
.highlight .nd  { color: #F8F8F2 } /* Name.Decorator */
.highlight .ni  { color: #F8F8F2 } /* Name.Entity */
.highlight .ne  { color: #F8F8F2 } /* Name.Exception */
.highlight .nf  { color: #50FA7B } /* Name.Function */
.highlight .nl  { color: #8BE9FD; font-style: italic } /* Name.Label */
.highlight .nn  { color: #F8F8F2 } /* Name.Namespace */
.highlight .nx  { color: #F8F8F2 } /* Name.Other */
.highlight .py  { color: #F8F8F2 } /* Name.Property */
.highlight .nt  { color: #FF79C6 } /* Name.Tag */
.highlight .nv  { color: #8BE9FD; font-style: italic } /* Name.Variable */
.highlight .ow  { color: #FF79C6 } /* Operator.Word */
.highlight .pm  { color: #F8F8F2 } /* Punctuation.Marker */
.highlight .w   { color: #F8F8F2 } /* Text.Whitespace */
.highlight .mb  { color: #FFB86C } /* Literal.Number.Bin */
.highlight .mf  { color: #FFB86C } /* Literal.Number.Float */
.highlight .mh  { color: #FFB86C } /* Literal.Number.Hex */
.highlight .mi  { color: #FFB86C } /* Literal.Number.Integer */
.highlight .mo  { color: #FFB86C } /* Literal.Number.Oct */
.highlight .sa  { color: #BD93F9 } /* Literal.String.Affix */
.highlight .sb  { color: #BD93F9 } /* Literal.String.Backtick */
.highlight .sc  { color: #BD93F9 } /* Literal.String.Char */
.highlight .dl  { color: #BD93F9 } /* Literal.String.Delimiter */
.highlight .sd  { color: #BD93F9 } /* Literal.String.Doc */
.highlight .s2  { color: #BD93F9 } /* Literal.String.Double */
.highlight .se  { color: #BD93F9 } /* Literal.String.Escape */
.highlight .sh  { color: #BD93F9 } /* Literal.String.Heredoc */
.highlight .si  { color: #BD93F9 } /* Literal.String.Interpol */
.highlight .sx  { color: #BD93F9 } /* Literal.String.Other */
.highlight .sr  { color: #BD93F9 } /* Literal.String.Regex */
.highlight .s1  { color: #BD93F9 } /* Literal.String.Single */
.highlight .ss  { color: #BD93F9 } /* Literal.String.Symbol */
.highlight .bp  { color: #F8F8F2; font-style: italic } /* Name.Builtin.Pseudo */
.highlight .fm  { color: #50FA7B } /* Name.Function.Magic */
.highlight .vc  { color: #8BE9FD; font-style: italic } /* Name.Variable.Class */
.highlight .vg  { color: #8BE9FD; font-style: italic } /* Name.Variable.Global */
.highlight .vi  { color: #8BE9FD; font-style: italic } /* Name.Variable.Instance */
.highlight .vm  { color: #8BE9FD; font-style: italic } /* Name.Variable.Magic */
.highlight .il  { color: #FFB86C } /* Literal.Number.Integer.Long */


/* ================================================================
   POEMS
   ================================================================ */

.poem-body {
    font-family: var(--body-font);
    color: var(--link);
    white-space: pre !important;
    line-height: 1.5;
    font-size: clamp(1rem, 1vw, 1.3rem) !important;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--bg) var(--bg-soft);
}

.poem-body p {
    white-space: pre;
    margin: 0;
}


/* ================================================================
   UNDER CONSTRUCTION
   ================================================================ */

.under-construction {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    width: 100%;
}

.under-construction__image {
    display: block;
    width: clamp(150px, 25vw, 400px);
    height: auto;
    border: none;
    outline: none;
    margin: 0 auto;
}


/* ================================================================
   RESPONSIVE  (≤ 960px)
   ================================================================ */

@media (max-width: 960px) {

    /* Show the mobile quote slot, hide the sidebar (and its copy) */
    .quote-widget-mobile-slot {
        display: block;
        margin-bottom: 1rem;
    }

    .site-sidebar-left {
        display: none;
    }

    /* Coffee button: completely hidden on mobile (sidebar is hidden, belt-and-braces) */
    .sidebar-coffee,
    .coffee-btn {
        display: none !important;
    }

    /* Reflow sidebar meta inline since sidebar is hidden */
    .sidebar-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.5rem;
        margin-bottom: 1rem;
    }

    .sidebar-meta p { margin: 0; }

    nav .nav-links { padding-left: 0; }

    nav a {
        font-size: 0.75rem;
        padding: 0.1rem 0.3rem;
    }

    .book-list__item {
        flex-direction: column;
        gap: 0.15rem;
        padding: 0.5rem 0;
    }

    .book-list__tags {
        margin-left: 0;
        padding-left: 0;
    }

    p {
        max-width: min(65ch, 100%);
    }
}


/* ================================================================
   PIXEL ART COMPONENTS
   ================================================================ */

/* Generic pixel art image helper */
.pixel-art {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Pixel art seedling new-book indicator */
.seedling-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-left: 0.15rem;
}

/* ----------------------------------------------------------------
   BUY ME A COFFEE
   ---------------------------------------------------------------- */

.coffee-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    border: 2px solid #7d4e2e;
    background: #1c0d06;
    color: #c8956c;
    font-family: var(--display-font);
    font-size: 0.72rem;
    font-weight: normal;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
}

.coffee-btn:hover {
    border-color: #b87333;
    color: #d4a574;
    background: #251008;
}

.coffee-btn__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.coffee-btn__text {
    line-height: 1.3;
}

/* ----------------------------------------------------------------
   PIXEL SECTION DIVIDER
   ---------------------------------------------------------------- */

.pixel-divider {
    border: none;
    border-top: 2px solid var(--border);
    margin: 1.5rem 0;
    width: 100%;
}

/* ----------------------------------------------------------------
   BLOCKQUOTE — sharp corners, no decorative border
   ---------------------------------------------------------------- */

blockquote,
blockquote p {
    border-radius: 0;
}

/* ----------------------------------------------------------------
   NAV — tighter pixel art treatment
   ---------------------------------------------------------------- */

nav {
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------------
   HIGHLIGHT / CODE — crisp corners
   ---------------------------------------------------------------- */

.highlight {
    border-radius: 0;
    border: 1px solid var(--border);
}

p code {
    border-radius: 0;
}

/* ----------------------------------------------------------------
   CODE POST COPY BUTTON
   ---------------------------------------------------------------- */

.code-post-wrapper {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 1;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--mono-font);
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.12s, color 0.12s;
}

.copy-btn:hover {
    background: var(--border);
    color: var(--text);
}

/* ----------------------------------------------------------------
   ABOUT PAGE AVATAR
   ---------------------------------------------------------------- */

.about-avatar {
    display: block;
    height: clamp(100px, 14vw, 140px);
    width: auto;
    margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------------
   SIDEBAR COFFEE WRAPPER
   ---------------------------------------------------------------- */

.sidebar-coffee {
    border-top: 2px solid var(--border);
    padding-top: 0.75rem;
}