/*
Theme Name: thingGothic
Theme URI:
Author: slave mx
Author URI: https://slave.mx
Description: The slave.mx main-site theme (was Obsidian Bind MX). Dark and light are a modern gothic look: a blackletter masthead, serif titles, the latest post across the page and numbered posts below, near-black and bone with one blood red. Geocities mode keeps its 1990s look.
Version: 8.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: CC BY-NC-ND 4.0
License URI: https://creativecommons.org/licenses/by-nc-nd/4.0/
Text Domain: obsidian-bind-mx
Tags: blog, portfolio, dark-mode, retro, gothic

How the three modes are drawn (7.0.0)
- Dark and light: this file. Dark is the plain page; light adds body.light-mode.
- Geocities: css/geocities-base.css (the 6.3.3 stylesheet, unchanged) and css/geocities.css. This file is
  switched off while Geocities is on (js/theme-toggle.js and functions.php), so nothing here can change it.

Contents
1. Colours, type and sizes (dark, then light)
2. Page basics
3. Header and its buttons
4. Menu (full screen)
5. Post cards
6. A post or page: the picture card and the words
7. Comments
8. Search
9. Related posts
10. Lightbox, gallery, sidebar, footer, loading line
11. Phones
12. Less motion
*/

/* 1. Colours, type and sizes ------------------------------------------------------------------------------
   8.0.0 (thingGothic): near-black and bone, one blood red, a blackletter masthead, serif titles, typed dates.
   The Customizer's colours and fonts are laid over these by functions.php only when Master has picked something
   other than the defaults. All fonts are served by the theme (SIL Open Font Licence, fonts/OFL-*.txt). */
@font-face {
    font-family: 'Manrope';
    src: url('fonts/manrope-var.woff') format('woff');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'UnifrakturCook';
    src: url('fonts/unifrakturcook-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ob-bg: #0A0A0C;            /* near-black */
    --ob-surface: #121114;       /* panels */
    --ob-surface-2: #19181B;     /* things inside panels */
    --ob-surface-3: #232125;     /* hover */
    --ob-edge: #2C2A2E;          /* the fine rules */
    --ob-side: #0A0A0C;          /* the menu */
    --ob-field: #121114;         /* text boxes */
    --ob-glass: rgba(10, 10, 12, 0.88);
    --ob-bar: rgba(10, 10, 12, 0.82);
    --ob-text: #E8E4DC;          /* bone */
    --ob-text-2: #D3CEC5;
    --ob-text-3: #A39E96;        /* quiet words */
    --ob-act: #8E1B24;           /* blood red: the main button */
    --ob-act-hover: #A5232E;
    --ob-on-act: #FFFFFF;
    --ob-act-text: #E06C75;      /* red words on near-black */
    --ob-act-soft: rgba(142, 27, 36, 0.28);
    --ob-gold: #C9AC6E;          /* old gold */
    --ob-gold-text: #D4B97F;
    --ob-gold-soft: rgba(201, 172, 110, 0.14);
    --ob-shadow: none;
    --ob-shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.55);
    --ob-scrim: rgba(10, 10, 12, 0.78); /* behind words laid on a picture */
    --ob-ring: 0 0 0 2px var(--ob-bg), 0 0 0 4px var(--ob-act-text);

    --ob-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ob-font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --tg-black: 'UnifrakturCook', 'Cormorant Garamond', Georgia, serif;   /* the masthead and first letters */
    --tg-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace; /* dates and numbers */

    --ob-r: 10px;                /* buttons, text boxes */
    --ob-r-xl: 12px;             /* pictures */
    --ob-r-lg: 12px;
    --ob-pill: 999px;            /* round only by nature: icon buttons, labels */
    --ob-tap: 44px;
    --ob-wrap: 1200px;
    --ob-read: 680px;
    --ob-head: 76px;
    --ob-gap: clamp(1.25rem, 3.2vw, 2.5rem);
}

body.light-mode {
    color-scheme: light;
    --ob-bg: #F2EEE6;            /* bone */
    --ob-surface: #FAF7F1;
    --ob-surface-2: #FFFFFF;
    --ob-surface-3: #E9E4DA;
    --ob-edge: #D6CFC3;
    --ob-side: #F2EEE6;
    --ob-field: #FFFFFF;
    --ob-glass: rgba(242, 238, 230, 0.9);
    --ob-bar: rgba(242, 238, 230, 0.85);
    --ob-text: #161416;
    --ob-text-2: #2F2B2D;
    --ob-text-3: #58534D;
    --ob-act: #8E1B24;
    --ob-act-hover: #741620;
    --ob-on-act: #FFFFFF;
    --ob-act-text: #8E1B24;
    --ob-act-soft: #F0DCDB;
    --ob-gold: #9C7A33;
    --ob-gold-text: #6E541C;
    --ob-gold-soft: #F1E7D2;
    --ob-shadow: none;
    --ob-shadow-lift: 0 10px 28px rgba(22, 20, 22, 0.12);
    --ob-scrim: rgba(250, 247, 241, 0.86);
}

/* 2. Page basics ------------------------------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
    background: var(--ob-bg);
}

html:has(> body.light-mode) {
    background: #F2EEE6;
}

body {
    margin: 0;
    padding-top: calc(var(--ob-head) + 1.5rem);
    background: var(--ob-bg);
    color: var(--ob-text-2);
    font-family: var(--ob-font);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.single,
body.page {
    padding-top: var(--ob-head);
}

/* 7.3.0: a tall logo box pushes the page down, so it still only laps a little over the picture card and never
   hides the first posts. --ob-brand-h is the box's height, measured by js/navigation.js (0 without it). */
body:not(.single):not(.page) {
    padding-top: max(calc(var(--ob-head) + 1.5rem), calc(var(--ob-brand-h, 0px) + 1.25rem));
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ob-font-head);
    color: var(--ob-text);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

a {
    color: var(--ob-act-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
    color: var(--ob-text);
}

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

/* Jumping to a part of the page (comments, a heading) stops below the header */
[id] {
    scroll-margin-top: calc(var(--ob-head) + 1rem);
}

:focus-visible {
    outline: none;
    box-shadow: var(--ob-ring);
}

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

.container {
    max-width: var(--ob-wrap);
    margin: 0 auto;
    padding: 0 var(--ob-gap);
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 12px 20px;
    border-radius: var(--ob-pill);
    background: var(--ob-act);
    color: var(--ob-on-act);
    font-weight: 600;
    text-decoration: none;
}

/* Geocities-only parts never show in dark or light */
.retro-marquee-container,
.retro-button-left,
.retro-button-right,
.retro-hit-counter,
.mouse-trail-particle {
    display: none !important;
}

/* The line icons (Lucide, ISC licence: fonts/LICENSE-lucide.txt). The emoji are Geocities mode's. */
.ob-i {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-icon,
.theme-toggle .icon,
.menu-icon {
    display: none;
}

/* Buttons: one shape everywhere. Filled oxblood for the main action, outlined for the rest. */
.submit-btn,
.comment-form .submit,
.search-submit,
#toggle-comments-btn,
.read-more-link,
.wp-block-button__link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--ob-tap);
    padding: 0 1.4rem;
    border-radius: var(--ob-r);
    font-family: var(--ob-font);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.submit-btn,
.comment-form .submit,
.search-submit,
.wp-block-button__link,
.button {
    background: var(--ob-act);
    color: var(--ob-on-act);
    border: 1px solid var(--ob-act);
}

.submit-btn:hover,
.comment-form .submit:hover,
.search-submit:hover,
.wp-block-button__link:hover,
.button:hover {
    background: var(--ob-act-hover);
    border-color: var(--ob-act-hover);
    color: var(--ob-on-act);
}

#toggle-comments-btn {
    background: transparent;
    color: var(--ob-text);
    border: 1px solid var(--ob-edge);
}

#toggle-comments-btn:hover,
#toggle-comments-btn.active {
    background: var(--ob-surface-2);
}

/* 3. Header and its buttons ------------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    height: var(--ob-head);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.admin-bar .site-header {
    top: 32px;
}

.site-header.scrolled {
    background: var(--ob-bar);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    border-bottom-color: var(--ob-edge);
}

body.menu-open .site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
}

.site-header {
    align-items: flex-start;
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
    width: 100%;
    max-width: var(--ob-wrap);
    margin: 0 auto;
    padding: 0 var(--ob-gap);
}

.header-controls-left {
    justify-self: start;
    height: var(--ob-head);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-actions {
    justify-self: end;
    height: var(--ob-head);
    display: flex;
    align-items: center;
}

/* Round icon buttons (search, the look) and the Menu pill */
.search-toggle,
.theme-toggle,
.menu-toggle,
.menu-close,
.search-close,
.carousel-nav,
#obsidian-lightbox .lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: var(--ob-tap);
    min-width: var(--ob-tap);
    margin: 0;
    padding: 0;
    border: 1px solid var(--ob-edge);
    border-radius: var(--ob-pill);
    background: transparent;
    color: var(--ob-text);
    font-family: var(--ob-font);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header:not(.scrolled) .search-toggle,
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .menu-toggle {
    background: var(--ob-glass);
}

.search-toggle:hover,
.theme-toggle:hover,
.menu-toggle:hover,
.menu-close:hover,
.search-close:hover,
.carousel-nav:hover,
#obsidian-lightbox .lightbox-close:hover {
    background: var(--ob-surface-3);
    color: var(--ob-text);
}

.menu-toggle,
.menu-close {
    padding: 0 1.1rem 0 0.95rem;
    border-radius: var(--ob-r);
}

.menu-close,
body.menu-open .menu-toggle {
    display: none;
}

body.menu-open .menu-close {
    display: inline-flex;
}

/* The look button: dark ↔ light, showing the look you get next (7.2.0; 90s mode is in the footer) */
.theme-toggle .ob-i {
    display: none;
}

.theme-toggle .ob-i-next-light {
    display: block;
}

body.light-mode .theme-toggle .ob-i-next-light {
    display: none;
}

body.light-mode .theme-toggle .ob-i-next-dark {
    display: block;
}

/* The masthead (8.0.0): at the top of the page the name stands large in blackletter, with the tagline (if any,
   8.0.1: no date) under it; once you scroll it shrinks into the header bar. A logo (Customizer) takes the name's place. */
.site-branding {
    justify-self: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    min-width: 0;
    height: auto;
    min-height: var(--ob-head);
    padding: 1.75rem 0 1.5rem;
    transition: padding 0.3s ease;
}

.site-header.scrolled .site-branding,
body.menu-open .site-branding {
    min-height: var(--ob-head);
    height: var(--ob-head);
    padding-top: 0;
    padding-bottom: 0;
}

.site-title {
    margin: 0;
    font-family: var(--tg-black);
    font-size: clamp(4rem, 9.5vw, 8rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 0;
    text-transform: none;
    transition: font-size 0.3s ease;
}

body.single .site-title,
body.page .site-title {
    font-size: clamp(3rem, 5.5vw, 4rem);
}

.site-header.scrolled .site-title,
body.menu-open .site-title {
    font-size: 2.125rem;
}

.site-title a {
    color: var(--ob-text);
}

.site-title a:hover {
    color: var(--ob-act-text);
}

.tg-dateline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0.25rem 1rem;
    margin: 0;
    color: var(--ob-text-3);
}

.tg-tagline {
    font-family: var(--ob-font-head);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 500;
}

body.single .tg-dateline,
body.page .tg-dateline,
.site-header.scrolled .tg-dateline,
body.menu-open .tg-dateline {
    display: none;
}

/* The double rule under the masthead, across the page (post lists only) */
body:not(.single):not(.page) .site-main::before {
    content: "";
    display: block;
    height: 4px;
    border-top: 1px solid var(--ob-edge);
    border-bottom: 1px solid var(--ob-edge);
}

.ob-logos {
    display: flex;
    align-items: center;
}

.ob-logo {
    display: block;
    /* 7.3.0: a logo shows at its own size up to 200 × 200 px; a bigger one shrinks to fit, keeping its shape */
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 200px;
    margin: 0;
    transition: max-height 0.3s ease, max-width 0.3s ease;
}

/* Once you scroll, the logo shrinks to fit the header bar */
.site-header.scrolled .ob-logo,
body.menu-open .ob-logo {
    max-height: calc(var(--ob-head) - 16px);
}

/* Each look shows its own logo (one logo only: it shows in both) */
.ob-logo-light,
body.light-mode .ob-logo-dark {
    display: none;
}

body.light-mode .ob-logo-light,
.ob-logo-one .ob-logo {
    display: block;
}

/* With a logo, the site name is still there for screen readers and search engines */
.ob-has-logo .site-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The line along the header's foot that fills as you read */
.reading-progress-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--ob-act);
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

/* 4. Menu (full screen) -----------------------------------------------------------------------------------
   8.0.0: a numbered list in large serif type (I, II, III…), one fine rule under each line. */
.overlay-navigation {
    position: fixed;
    inset: 0;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: calc(var(--ob-head) + 3rem) var(--ob-gap) 4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    background: var(--ob-side);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay-navigation::-webkit-scrollbar {
    display: none;
}

.overlay-navigation.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
}

.overlay-content {
    width: 100%;
    max-width: 760px;
}

.overlay-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    counter-reset: tg-menu;
}

.overlay-navigation .overlay-content > ul,
.overlay-navigation .overlay-content > div > ul {
    border-top: 1px solid var(--ob-edge);
}

.overlay-navigation .overlay-content > ul > li,
.overlay-navigation .overlay-content > div > ul > li {
    counter-increment: tg-menu;
    border-bottom: 1px solid var(--ob-edge);
}

.overlay-navigation a {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    min-height: 56px;
    padding: 0.85rem 0.25rem;
    border-radius: var(--ob-r);
    color: var(--ob-text);
    font-family: var(--ob-font-head);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0;
}

.overlay-navigation .overlay-content > ul > li > a::before,
.overlay-navigation .overlay-content > div > ul > li > a::before {
    content: counter(tg-menu, upper-roman);
    min-width: 3.5rem;
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--ob-text-3);
}

.overlay-navigation a:hover {
    color: var(--ob-act-text);
}

.overlay-navigation .current-menu-item > a,
.overlay-navigation .current_page_item > a,
.overlay-navigation .current-menu-parent > a {
    color: var(--ob-text);
}

.overlay-navigation .current-menu-item > a::before,
.overlay-navigation .current_page_item > a::before,
.overlay-navigation .current-menu-parent > a::before {
    color: var(--ob-act-text) !important;
}

/* Pages under a menu item sit under it, a little in (no hover-only menus) */
.overlay-navigation ul ul {
    margin: 0 0 0.75rem 5rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--ob-edge);
    gap: 0;
}

.overlay-navigation ul ul a {
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    font-size: 1.5rem;
    color: var(--ob-text-3);
}

.menu-scroll-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.menu-scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ob-edge);
    background: var(--ob-surface);
    color: var(--ob-text-2);
    font-size: 1.1rem;
}

/* 5. Post cards -------------------------------------------------------------------------------------------
   8.0.0: on a list's first page the first post runs across the page (big title on the left, picture on the
   right); the rest are numbered tiles on a 12-column grid, in a repeating run of widths (5 4 3, then 4 8), each
   under a fine rule with its number on the left and its date on the right. The numbers carry on as more load. */
.site-main > p {
    color: var(--ob-text-3);
    text-align: center;
    padding: 4rem 0;
}

.site-main.container {
    max-width: calc(var(--ob-wrap) + 2 * var(--ob-gap));
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem 2rem;
    padding: 0 0 3rem;
    counter-reset: tg-post;
}

.post-card {
    position: relative;
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--ob-edge);
    background: transparent;
    counter-increment: tg-post;
}

.posts-grid > .post-card:nth-child(5n + 2) { grid-column: span 5; }
.posts-grid > .post-card:nth-child(5n + 3) { grid-column: span 4; }
.posts-grid > .post-card:nth-child(5n + 4) { grid-column: span 3; }
.posts-grid > .post-card:nth-child(5n + 5) { grid-column: span 4; }
.posts-grid > .post-card:nth-child(5n + 6) { grid-column: span 8; }

/* The number, top left */
.post-card::before {
    content: "[" counter(tg-post, decimal-leading-zero) "]";
    position: absolute;
    top: 0.75rem;
    left: 0;
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--ob-act-text);
}

.post-thumbnail {
    position: static;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: var(--ob-r-xl);
    background: var(--ob-surface-2);
}

.posts-grid > .post-card:nth-child(5n + 2) .post-thumbnail { aspect-ratio: 4 / 3; }
.posts-grid > .post-card:nth-child(5n + 4) .post-thumbnail { aspect-ratio: 1 / 1; }
.posts-grid > .post-card:nth-child(5n + 6) .post-thumbnail { aspect-ratio: 16 / 8; }

.post-thumbnail > a {
    display: block;
    height: 100%;
}

.post-thumbnail img,
.no-thumb-placeholder.placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.no-thumb-placeholder.placeholder-image {
    background-size: cover;
    background-position: center;
}

.post-card:hover .post-thumbnail img,
.post-card:hover .no-thumb-placeholder.placeholder-image {
    transform: scale(1.03);
}

/* Video, audio and gallery posts without a picture */
.no-thumb-placeholder:not(.placeholder-image) {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ob-text-3);
    font-family: var(--tg-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
}

/* The small mark on a video, audio or gallery picture */
.post-thumbnail > .play-icon,
.post-thumbnail > .audio-icon,
.post-thumbnail > .gallery-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ob-scrim);
    color: var(--ob-text);
    font-size: 1.25rem;
    pointer-events: none;
}

.post-thumbnail:has(> .play-icon, > .audio-icon, > .gallery-icon) {
    position: relative;
}

.post-content {
    position: static;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.6rem;
    padding: 0;
}

.post-title {
    margin: 0;
    font-size: clamp(1.75rem, 2.4vw, 2.125rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0;
}

.post-title a {
    color: var(--ob-text);
}

.post-title a:hover {
    color: var(--ob-act-text);
}

.post-excerpt {
    flex-grow: 1;
    color: var(--ob-text-3);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.post-excerpt p {
    margin: 0;
}

/* The date (or a post's kind), top right in typed capitals */
.format-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0;
    left: auto;
    z-index: 2;
    padding: 0;
    border-radius: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--ob-text-3);
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.post-content .format-indicator {
    color: var(--ob-gold-text);
}

/* Tiles open by their title and picture; the button is for the first post only */
.read-more-link {
    display: none;
}

/* 8.0.0: the link keeps Geocities's "Read More →" as plain words (its own look styles every span); here those
   words are set to nothing and "Read the entry" shows instead */
.read-more-link {
    font-size: 0;
}

.tg-rm-new {
    display: inline;
    font-size: 0.9375rem;
}

/* The first post, across the page */
.home:not(.paged) .posts-grid > .post-card:first-child,
.archive:not(.paged) .posts-grid > .post-card:first-child,
.search:not(.paged) .posts-grid > .post-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 2rem;
    padding-top: 3.5rem;
    border-top: 0;
}

.home:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail,
.archive:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail,
.search:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail {
    grid-column: 7 / -1;
    grid-row: 1;
    aspect-ratio: auto;
    height: clamp(320px, 42vw, 540px);
}

.home:not(.paged) .posts-grid > .post-card:first-child .post-content,
.archive:not(.paged) .posts-grid > .post-card:first-child .post-content,
.search:not(.paged) .posts-grid > .post-card:first-child .post-content {
    grid-column: 1 / 7;
    grid-row: 1;
    gap: 1.25rem;
    padding-bottom: 0.25rem;
}

.home:not(.paged) .posts-grid > .post-card:first-child .post-title,
.archive:not(.paged) .posts-grid > .post-card:first-child .post-title,
.search:not(.paged) .posts-grid > .post-card:first-child .post-title {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.88;
    letter-spacing: -0.01em;
}

.home:not(.paged) .posts-grid > .post-card:first-child .post-excerpt,
.archive:not(.paged) .posts-grid > .post-card:first-child .post-excerpt,
.search:not(.paged) .posts-grid > .post-card:first-child .post-excerpt {
    flex-grow: 0;
    max-width: 30rem;
    font-size: 1.0625rem;
    line-height: 1.7;
}

.home:not(.paged) .posts-grid > .post-card:first-child::before {
    content: "[" counter(tg-post, decimal-leading-zero) "] Latest";
    text-transform: uppercase;
    top: 1.75rem;
}

.home:not(.paged) .posts-grid > .post-card:first-child .format-indicator,
.archive:not(.paged) .posts-grid > .post-card:first-child .format-indicator,
.search:not(.paged) .posts-grid > .post-card:first-child .format-indicator {
    top: 1.75rem;
}

.home:not(.paged) .posts-grid > .post-card:first-child .read-more-link,
.archive:not(.paged) .posts-grid > .post-card:first-child .read-more-link,
.search:not(.paged) .posts-grid > .post-card:first-child .read-more-link {
    display: inline-flex;
    align-self: flex-start;
    margin: 0.25rem 0 0;
    background: var(--ob-act);
    border: 1px solid var(--ob-act);
    color: var(--ob-on-act);
}

.home:not(.paged) .posts-grid > .post-card:first-child .read-more-link:hover,
.archive:not(.paged) .posts-grid > .post-card:first-child .read-more-link:hover,
.search:not(.paged) .posts-grid > .post-card:first-child .read-more-link:hover {
    background: var(--ob-act-hover);
    border-color: var(--ob-act-hover);
    color: var(--ob-on-act);
}

/* The heading over the rest */
.home:not(.paged) .posts-grid > .post-card:nth-child(2)::after {
    content: "Earlier entries";
    position: absolute;
    top: -2.75rem;
    left: 0;
    font-family: var(--ob-font);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ob-text-3);
}

.post-card.fade-in {
    animation: ob-rise 0.4s ease both;
}

@keyframes ob-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Loading more posts */
.page-load-status {
    width: 100%;
    margin: 0 0 3rem;
    text-align: center;
    color: var(--ob-text-3);
    font-size: 0.875rem;
}

.page-load-status p {
    display: none; /* 8.0.0: js/infinite-scroll.js shows the one that applies; with one page of posts none shows */
    margin: 0;
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

/* 6. A post or page ---------------------------------------------------------------------------------------
   8.0.0: the title stands centred over the picture, then the words in one serif column. No blurred picture
   behind (Geocities mode still has it: it is only hidden here). */
article.post,
article.page {
    margin-top: 0;
}

.hero-header.glassmorphic-header {
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    padding: max(1.5rem, calc(var(--ob-brand-h, 0px) - var(--ob-head) + 1rem)) var(--ob-gap) 0;
}

.hero-bg-blurred {
    display: none;
}

.single-post-container,
.related-content-section {
    position: relative;
    z-index: 1;
}

.hero-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ob-edge);
    background: transparent;
    animation: ob-rise 0.5s ease both;
}

.card-content {
    order: -1;
    text-align: center;
}

.card-image {
    aspect-ratio: 16 / 9;
    max-height: 560px;
    width: 100%;
    overflow: hidden;
    border-radius: var(--ob-r-xl);
    background: var(--ob-surface-2);
}

.card-image a,
.card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image img {
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-card:hover .card-image img {
    transform: scale(1.02);
}

.standard-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-title {
    order: 2;
    margin: 0 auto;
    max-width: 15ch;
    color: var(--ob-text);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.01em;
}

.hero-title--medium {
    max-width: 18ch;
    font-size: clamp(2.75rem, 6vw, 4.25rem);
}

.hero-title--small {
    max-width: 22ch;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.hero-title--xsmall {
    max-width: 26ch;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.hero-meta {
    order: 1;
    color: var(--ob-act-text);
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.single-post-container {
    max-width: calc(var(--ob-read) + 2 * var(--ob-gap));
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 1024px) {
    .single-post-container.has-sidebar {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 3rem;
        max-width: var(--ob-wrap);
    }
}

/* The words */
.entry-content {
    color: var(--ob-text-2);
    font-size: 1.0625rem;
    line-height: 1.8;
    overflow-wrap: break-word;
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 1.4em;
}

.entry-content h2 {
    margin-top: 2.2em;
    margin-bottom: 0.6em;
    font-size: 1.5rem;
}

.entry-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.5em;
    font-size: 1.2rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: 1.6em;
    margin-bottom: 0.4em;
    font-size: 1rem;
}

.entry-content a {
    color: var(--ob-act-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
}

.entry-content a:hover {
    text-decoration-color: currentColor;
}

.entry-content strong,
.entry-content b {
    color: var(--ob-text);
    font-weight: 700;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content li {
    margin-bottom: 0.35em;
}

.entry-content li::marker {
    color: var(--ob-text-3);
}

.entry-content blockquote {
    margin-left: 0;
    margin-right: 0;
    padding: 0.2em 0 0.2em 1.4em;
    border-left: 3px solid var(--ob-act);
    color: var(--ob-text);
    font-size: 1.125rem;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    border-radius: var(--ob-r-xl);
}

.entry-content figure {
    margin-left: 0;
    margin-right: 0;
}

.entry-content figcaption,
.wp-caption-text {
    margin-top: 0.5rem;
    color: var(--ob-text-3);
    font-size: 0.875rem;
    text-align: center;
}

.entry-content code,
.entry-content kbd {
    padding: 0.15em 0.45em;
    border-radius: 6px;
    background: var(--ob-surface-2);
    color: var(--ob-text);
    font-size: 0.875em;
}

.entry-content pre {
    padding: 1rem 1.25rem;
    border-radius: var(--ob-r);
    background: var(--ob-surface);
    border: 1px solid var(--ob-edge);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
}

.entry-content pre code {
    padding: 0;
    background: none;
}

.entry-content hr {
    border: 0;
    border-top: 1px solid var(--ob-edge);
    margin: 2.5em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.entry-content th,
.entry-content td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--ob-edge);
    text-align: left;
}

.entry-content th {
    color: var(--ob-text);
}

.entry-content iframe,
.entry-content video {
    max-width: 100%;
    border-radius: var(--ob-r-xl);
}

.page-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--ob-text-3);
}

.entry-footer {
    font-size: 0.875rem;
}

.edit-link a {
    color: var(--ob-text-3);
}

/* The words in thingGothic (8.0.0): a serif column, a blackletter first letter, quotes between two fine rules */
.entry-content {
    font-family: var(--ob-font-head);
    font-size: 1.3125rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--ob-text-2);
}

.entry-content h2,
.entry-content h3 {
    font-weight: 600;
    letter-spacing: 0;
}

.entry-content h2 {
    font-size: 2.125rem;
}

.entry-content h3 {
    font-size: 1.625rem;
}

.single .entry-content > p:first-child::first-letter {
    float: left;
    margin: 0.12em 0.12em 0 0;
    font-family: var(--tg-black);
    font-size: 4.2em;
    font-weight: 700;
    line-height: 0.8;
    color: var(--ob-act-text);
}

.entry-content blockquote {
    margin: 2em 0;
    padding: 1.25rem 0;
    border-left: 0;
    border-top: 1px solid var(--ob-edge);
    border-bottom: 1px solid var(--ob-edge);
    text-align: center;
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.4;
}

.entry-content figcaption,
.wp-caption-text,
.entry-content table,
.entry-content pre,
.entry-content code,
.entry-content kbd {
    font-family: var(--ob-font);
}

.entry-content figcaption,
.wp-caption-text {
    font-family: var(--tg-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.entry-content hr {
    position: relative;
    overflow: visible;
    height: 1px;
    margin: 3em 0;
}

.entry-content hr::after {
    content: "mx";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    padding: 0 0.75rem;
    background: var(--ob-bg);
    color: var(--ob-text-3);
    font-family: var(--tg-black);
    font-size: 1.5rem;
    line-height: 1;
}

/* 7. Comments --------------------------------------------------------------------------------------------- */
.comments-toggle-container {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ob-edge);
    text-align: center;
}

#toggle-comments-btn .btn-icon {
    font-size: 0;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform 0.25s ease;
}

.hidden-comments {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding-top: 2rem;
}

.comments-title {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    margin-left: 1.5rem;
}

.comment-list li.comment {
    margin-bottom: 0.75rem;
}

.comment-body {
    position: relative;
    padding: 1.2rem 1.25rem 1.2rem 4.75rem;
    border-radius: var(--ob-r-xl);
    background: var(--ob-surface);
    border: 1px solid transparent;
}

body.light-mode .comment-body {
    border-color: var(--ob-edge);
}

.comment-author {
    color: var(--ob-text);
    font-weight: 700;
}

.comment-author .says {
    display: none;
}

.comment-author .avatar {
    position: absolute;
    left: 1.25rem;
    top: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.comment-metadata,
.comment-metadata a {
    color: var(--ob-text-3);
    font-size: 0.8125rem;
}

.comment-content {
    color: var(--ob-text-2);
}

.comment-content p {
    margin: 0.5rem 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.9rem;
    margin-left: -0.9rem;
    border-radius: var(--ob-pill);
    color: var(--ob-act-text);
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-reply-link:hover {
    background: var(--ob-act-soft);
    color: var(--ob-act-text);
}

.comment-respond {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--ob-r-lg);
    background: var(--ob-surface);
    border: 1px solid transparent;
}

body.light-mode .comment-respond {
    border-color: var(--ob-edge);
}

.comment-reply-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.comment-reply-title small {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.comment-notes,
.logged-in-as,
.comment-form-cookies-consent label {
    color: var(--ob-text-3);
    font-size: 0.875rem;
}

.comment-form p {
    margin: 0 0 1rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--ob-text-2);
    font-size: 0.875rem;
    font-weight: 600;
}

.comment-form-cookies-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.comment-form-cookies-consent label {
    display: inline;
    font-weight: 400;
    margin: 0;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-container input[type="search"],
.widget input[type="search"],
.widget input[type="text"] {
    width: 100%;
    min-height: var(--ob-tap);
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--ob-edge);
    border-radius: var(--ob-pill);
    background: var(--ob-field);
    color: var(--ob-text);
    font-family: var(--ob-font);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form textarea {
    border-radius: var(--ob-r-xl);
    min-height: 140px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-container input[type="search"]:focus,
.widget input:focus {
    outline: none;
    border-color: var(--ob-act-text);
    box-shadow: 0 0 0 3px var(--ob-act-soft);
}

.comment-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ob-act);
}

.form-submit {
    margin-bottom: 0;
}

/* 8. Search ----------------------------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18vh var(--ob-gap) 2rem;
    background: var(--ob-glass);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.search-close {
    position: absolute;
    top: 16px;
    right: var(--ob-gap);
    font-size: 0;
}

.search-close::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-container {
    width: 100%;
    max-width: 620px;
}

.search-form,
.search-container form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form label {
    flex: 1;
    min-width: 0;
}

.search-container input[type="search"] {
    min-height: 56px;
    padding: 0 1.4rem;
    font-size: 1.125rem;
}

.search-container input[type="search"]::placeholder {
    color: var(--ob-text-3);
}

.search-submit {
    min-height: 56px;
    padding: 0 1.6rem;
}

/* 9. Related posts ---------------------------------------------------------------------------------------- */
.related-content-section {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
    border-top: 1px solid var(--ob-edge);
    max-width: var(--ob-wrap);
}

.related-title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
}

.related-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.related-grid {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ob-edge) transparent;
}

.carousel-nav {
    flex: none;
    font-size: 0;
    background: var(--ob-surface);
}

.carousel-nav::before {
    content: '';
    width: 20px;
    height: 20px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.carousel-nav.next::before {
    transform: scaleX(-1);
}

.related-card {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    scroll-snap-align: start;
    border-radius: var(--ob-r-xl);
    background: var(--ob-surface);
    border: 1px solid transparent;
    color: inherit;
    transition: border-color 0.2s ease;
}

body.light-mode .related-card,
.related-card:hover {
    border-color: var(--ob-edge);
}

.related-thumbnail {
    height: 160px;
    flex: none;
    overflow: hidden;
    background: var(--ob-surface-2) center / cover no-repeat;
}

.related-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-thumbnail img {
    transform: scale(1.04);
}

.related-card-content {
    padding: 1rem 1.15rem 1.15rem;
}

.related-card-title {
    margin: 0 0 0.4rem;
    color: var(--ob-text);
    font-size: 1.0625rem;
    line-height: 1.3;
}

.related-card-excerpt {
    color: var(--ob-text-3);
    font-size: 0.875rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 10. Lightbox, gallery, sidebar, footer ------------------------------------------------------------------ */
#obsidian-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(23, 22, 26, 0.94);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#obsidian-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 100%;
    max-height: 88vh;
    border-radius: var(--ob-r);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

#obsidian-lightbox .lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #F5F2EC;
    border-color: #3A373F;
    font-size: 1.5rem;
    font-weight: 400;
}

.gallery,
.wp-block-gallery {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.5em;
    padding: 0;
    list-style: none;
}

.gallery-item,
.wp-block-gallery .blocks-gallery-item,
.wp-block-gallery .wp-block-image {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--ob-r);
}

.gallery-item img,
.wp-block-gallery img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}

.gallery-item:hover img,
.wp-block-gallery .wp-block-image:hover img {
    transform: scale(1.04);
}

.gallery-icon a {
    display: block;
}

.gallery-columns-1, .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.gallery-columns-2, .wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3, .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4, .wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5, .wp-block-gallery.columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6, .wp-block-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7, .wp-block-gallery.columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8, .wp-block-gallery.columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9, .wp-block-gallery.columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery:not([class*="gallery-columns-"]),
.wp-block-gallery:not([class*="columns-"]) {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-caption,
.wp-block-gallery figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0.5rem 0.75rem;
    background: var(--ob-scrim);
    color: var(--ob-text);
    font-size: 0.8125rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-caption,
.wp-block-gallery .wp-block-image:hover figcaption {
    opacity: 1;
}

.widget-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ob-edge);
}

@media (min-width: 1024px) {
    .single-post-container.has-sidebar .widget-area {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        position: sticky;
        top: calc(var(--ob-head) + 2rem);
        align-self: start;
    }
}

.widget {
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.widget-title {
    margin: 0 0 0.75rem;
    color: var(--ob-text-3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 0.35rem 0;
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--ob-edge);
    color: var(--ob-text-3);
    font-size: 0.875rem;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* 90s mode: a small, quiet switch under the copyright (7.2.0) */
.retro-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: var(--ob-pill);
    background: transparent;
    color: var(--ob-text-3);
    font-family: var(--ob-font);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
}

.retro-toggle:hover {
    background: var(--ob-surface-2);
    color: var(--ob-text);
}

.retro-toggle-off {
    display: none;
}

.site-info p {
    margin: 0;
}

/* WordPress's own page numbers (shown only if loading more posts is off) */
.pagination-fallback .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--ob-tap);
    height: var(--ob-tap);
    padding: 0 0.75rem;
    border-radius: var(--ob-pill);
    border: 1px solid var(--ob-edge);
    color: var(--ob-text);
}

.page-numbers.current {
    background: var(--ob-act);
    border-color: var(--ob-act);
    color: var(--ob-on-act);
}

/* WordPress alignment classes */
.alignleft {
    float: left;
    margin: 0.3em 1.5em 1em 0;
}

.alignright {
    float: right;
    margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 11. Phones ---------------------------------------------------------------------------------------------- */
@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 768px) {
    :root {
        --ob-head: 64px;
    }

    .header-inner {
        gap: 0.5rem;
        padding: 0 1rem;
    }


    .ob-logo {
        max-width: 120px;
        max-height: 120px;
    }

    .menu-toggle .menu-text,
    .menu-close .menu-text {
        display: none;
    }

    .menu-toggle,
    .menu-close {
        padding: 0;
        width: var(--ob-tap);
    }

    .overlay-navigation a {
        font-size: 1.3125rem;
        min-height: 52px;
    }

    .hero-header.glassmorphic-header {
        padding: max(1rem, calc(var(--ob-brand-h, 0px) - var(--ob-head) - 14px)) 1rem 0;
    }


    .single-post-container {
        padding-top: 1.75rem;
    }

    .entry-content {
        font-size: 1rem;
    }

    .comment-body {
        padding: 1rem 1rem 1rem 4rem;
    }

    .comment-author .avatar {
        left: 1rem;
        top: 1rem;
        width: 36px;
        height: 36px;
    }

    .search-form,
    .search-container form {
        flex-wrap: wrap;
    }

    .search-form label {
        flex-basis: 100%;
    }

    .search-submit {
        width: 100%;
        min-height: 48px;
    }

    .carousel-nav {
        display: none;
    }

    .related-card {
        flex-basis: 76vw;
    }
}

@media (max-width: 900px) {
    .gallery[class*="gallery-columns-"],
    .wp-block-gallery[class*="columns-"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery,
    .wp-block-gallery,
    .gallery[class*="gallery-columns-"],
    .wp-block-gallery[class*="columns-"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .gallery-caption,
    .wp-block-gallery figcaption {
        display: none;
    }
}

/* 8.0.0 on phones: the masthead gets its own line under the buttons; the posts run one under another */
@media (max-width: 768px) {
    .site-header:not(.scrolled) .header-inner {
        grid-template-columns: 1fr 1fr;
    }

    body:not(.menu-open) .site-header:not(.scrolled) .site-branding {
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 0.5rem 0 1.25rem;
    }

    body:not(.menu-open) .site-header:not(.scrolled) .menu-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-branding {
        min-height: 0;
        border-radius: 0;
    }

    .site-title {
        font-size: 4.5rem;
    }

    body.single .site-title,
    body.page .site-title {
        font-size: 3rem;
    }

    .site-header.scrolled .site-title,
    body.menu-open .site-title {
        font-size: 1.75rem;
    }

    .tg-tagline {
        font-size: 1.0625rem;
    }

    body:not(.single):not(.page) {
        padding-top: calc(var(--ob-head) + var(--ob-brand-h, 0px));
    }

    .posts-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.25rem;
    }

    .posts-grid > .post-card,
    .posts-grid > .post-card:nth-child(n) {
        grid-column: 1 / -1;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child,
    .archive:not(.paged) .posts-grid > .post-card:first-child,
    .search:not(.paged) .posts-grid > .post-card:first-child {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        padding-top: 3rem;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail,
    .archive:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail,
    .search:not(.paged) .posts-grid > .post-card:first-child .post-thumbnail {
        order: 2;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child .post-content,
    .archive:not(.paged) .posts-grid > .post-card:first-child .post-content,
    .search:not(.paged) .posts-grid > .post-card:first-child .post-content {
        display: contents;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child .post-title,
    .archive:not(.paged) .posts-grid > .post-card:first-child .post-title,
    .search:not(.paged) .posts-grid > .post-card:first-child .post-title {
        order: 1;
        font-size: 3.75rem;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child .post-excerpt,
    .archive:not(.paged) .posts-grid > .post-card:first-child .post-excerpt,
    .search:not(.paged) .posts-grid > .post-card:first-child .post-excerpt {
        order: 3;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child .read-more-link,
    .archive:not(.paged) .posts-grid > .post-card:first-child .read-more-link,
    .search:not(.paged) .posts-grid > .post-card:first-child .read-more-link {
        order: 4;
    }

    .home:not(.paged) .posts-grid > .post-card:first-child::before,
    .home:not(.paged) .posts-grid > .post-card:first-child .format-indicator {
        top: 1.25rem;
    }

    .posts-grid > .post-card .post-thumbnail,
    .posts-grid > .post-card:nth-child(n) .post-thumbnail {
        aspect-ratio: 16 / 10;
    }

    .hero-card {
        padding-top: 1.75rem;
        gap: 1.75rem;
    }

    .card-content {
        position: static;
        max-width: none;
        padding: 0;
    }

    .entry-content {
        font-size: 1.25rem;
    }
}

/* 12. Less motion ----------------------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg-blurred {
        transform: none !important;
    }
}
