@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter/regular.woff2") format("woff2"); } @font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter/bold.woff2") format("woff2"); } @font-face { font-family: "Inter"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/inter/italic.woff2") format("woff2"); } @font-face { font-family: "Inter"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/inter/bold-italic.woff2") format("woff2"); } @font-face { font-family: "Iosevka"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/iosevka/subset-regular.woff2") format("woff2"), url("../fonts/iosevka/subset-regular.woff") format("woff"); } @font-face { font-family: "Iosevka"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/iosevka/subset-bold.woff2") format("woff2"), url("../fonts/iosevka/subset-bold.woff") format("woff"); } @font-face { font-family: "Iosevka"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/iosevka/subset-italic.woff2") format("woff2"), url("../fonts/iosevka/subset-italic.woff") format("woff"); } @font-face { font-family: "Iosevka"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/iosevka/subset-bolditalic.woff2") format("woff2"), url("../fonts/iosevka/subset-bolditalic.woff") format("woff"); } @font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/merriweather/regular.woff2") format("woff2"), url("../fonts/merriweather/regular.woff") format("woff"); } @font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/merriweather/bold.woff2") format("woff2"), url("../fonts/merriweather/bold.woff") format("woff"); } @font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/merriweather/italic.woff2") format("woff2"), url("../fonts/merriweather/italic.woff") format("woff"); } @font-face { font-family: "Merriweather"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/merriweather/bold-italic.woff2") format("woff2"), url("../fonts/merriweather/bold-italic.woff") format("woff"); } :root { color-scheme: light; } /* Theme variables */ :root { --bg-color: var(--bg-light); --text-color: var(--text-light); --accent-color: var(--accent-light); --border-color: var(--border-light); --accent-bg-color: var(--accent-bg-light); } html[data-theme="dark"] { --bg-color: var(--bg-dark); --text-color: var(--text-dark); --accent-color: var(--accent-dark); --border-color: var(--border-dark); --accent-bg-color: var(--accent-bg-dark); color-scheme: dark; } html[data-theme="light"] { color-scheme: light; } @media (prefers-color-scheme: dark) { html[data-theme="auto"] { --bg-color: var(--bg-dark); --text-color: var(--text-dark); --accent-color: var(--accent-dark); --border-color: var(--border-dark); --accent-bg-color: var(--accent-bg-dark); color-scheme: dark; } } * { box-sizing: border-box; } html, body { height: 100%; } body { min-height: 100vh; display: flex; flex-direction: column; align-items: stretch; background: var(--bg-color); color: var(--text-color); font-family: var(--font-stack, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); font-size: 1.15rem; margin: 0; padding: 0 1rem; line-height: 1.6; text-wrap: pretty; overflow-wrap: break-word; } header { display: block; width: 100%; max-width: 60rem; margin: 0 auto; border-bottom: 1px solid var(--border-color); text-align: center; } main, footer { flex: 1; display: block; width: 100%; max-width: 45rem; margin: 0 auto; } footer { text-align: center; font-size: 1rem; margin-top: 4rem; border-top: 1px solid var(--border-color); } header, footer, main h1 { margin-bottom: 2rem; } /* Format headers */ h1, p.site-title { font-size: 3rem; margin-top: 0; } header h1, p.site-title { margin: 0.5rem 0 0 0; font-weight: bold; line-height: 1.1; } header h1 a, p.site-title a { color: var(--text-color); text-decoration: none; } header h1 a:hover, p.site-title a:hover { color: var(--accent-color); } h2 { font-size: 2.4rem; margin-top: 3rem; } h3 { font-size: 2rem; margin-top: 3rem; } h4 { font-size: 1.44rem; } h5 { font-size: 1.15rem; } h6 { font-size: 0.96rem; } h1, h2, h3, h4, h5, h6 { margin-bottom: 1rem; overflow-wrap: break-word; text-wrap: balance; } h1, h2, h3 { line-height: 1.1; } /* Reduce header size on mobile */ @media only screen and (max-width: 720px) { h1, p.site-title { font-size: 2.5rem; } h2 { font-size: 2.1rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.25rem; } } p, a { overflow-wrap: break-word; } p { margin: 1.5rem 0; } p.post-date { margin: -1.5rem 0 2rem 0; font-size: 1rem; } a { color: var(--accent-color); } a:hover { text-decoration: none; } abbr { cursor: help; } .site-nav ul { list-style: none; padding: 0; margin: 1rem 0; flex-wrap: wrap; gap: 0.75rem; } .site-nav li { display: inline-block; margin-right: 1rem; } .site-nav li:last-child { margin-right: 0; } .site-nav a { color: inherit; text-decoration: none; } .site-nav a:hover, .site-nav a.current { color: var(--accent-color); text-decoration: underline; } nav.pagination { margin: 4rem 0 2rem 0; display: flex; justify-content: space-between; } article { margin-bottom: 2rem; } /** Format archive view **/ .archive-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 2rem; font-size: 1.25rem; } @media (max-width: 600px) { .archive-list { grid-template-columns: 1fr; gap: 0rem; } .archive-list a { margin-bottom: 1rem; display: block; } } /** Format excerpt view **/ .excerpt-view, .tag-item { margin-bottom: 4rem; } .excerpt-view h2, .tag-item h2 { font-size: 1.8rem; margin: 0 0 -1rem 0; } .excerpt-view p, .tag-item p { font-size: 1rem; } /** Format full post view **/ .full-post-view { margin-bottom: 4rem; } .full-post-view hr { border-color: var(--border-color); margin-top: 4rem; max-width: 70%; } .full-post-view p.post-date { margin-top: -0.5rem; } .notice { background-color: var(--accent-bg-color); border: 1px solid var(--border-color); padding: 1rem; border-radius: 5px; margin: 2.5rem 0; } p.tagline { margin: 0 0 1.5rem 0; } .site-search-form { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; } .site-search-form input[type="search"] { flex: 1 1 16rem; max-width: none; margin-bottom: 0; } .site-search-form button { flex: 0 0 auto; width: auto; max-width: none; padding: 0.75rem 1rem; } @media (max-width: 600px) { .site-search-form { display: block; } .site-search-form button { width: 100%; margin-top: 0.5rem; } } input, textarea, select { font: inherit; padding: 0.5rem; width: 100%; max-width: 400px; } textarea { max-width: 100%; } /* !pb:9e4f2a817c3d6b05 */ button, a.button { cursor: pointer; background: var(--accent-color); color: var(--bg-color); border: none; width: auto; border-radius: 5px; padding: 0.5rem 0.75rem; font-family: inherit; font-size: inherit; text-decoration: none; } button:hover, a.button:hover { background-color: var(--text-color); } figure { margin: 0; } figcaption, img+em { display: block; font-style: normal; text-align: center; font-size: 1rem; margin-top: -1.5rem; } main img, main video { max-width: 100%; height: auto; border-radius: 5px; margin: 1.5rem auto; display: block; } pre { background: var(--accent-bg-color); border: 1px solid var(--border-color); border-radius: 5px; margin: 2rem 0; padding: 1rem; overflow-x: auto; font-family: var(--mono-font-stack, ui-monospace, monospace); } pre code { border: none; padding: 0; white-space: pre; text-wrap: nowrap; } code { border: 1px solid var(--border-color); border-radius: 5px; background: var(--accent-bg-color); padding: 0.1rem 0.25rem; font-size: 1rem; font-family: var(--mono-font-stack, ui-monospace, monospace); } h2 code, h3 code { font-size: 90%; } kbd { font-size: 1rem; background: var(--accent-bg-color); border: 1px solid var(--text-color); border-bottom: 3px solid var(--text-color); border-radius: 5px; padding: 0.25rem; } blockquote { border-left: 3px solid var(--accent-color); padding-left: 1rem; margin: 2.5rem 0 2.5rem 2.5rem; font-style: italic; } blockquote em { font-style: normal; } blockquote p { opacity: 0.8; } cite { font-size: 0.9rem; } details { padding: 0.7rem 1rem; margin: 2rem 0; background: var(--accent-bg-color); border: 1px solid var(--border-color); border-radius: 5px; } summary { cursor: pointer; font-weight: bold; padding: 0.7rem 1rem; margin: -0.7rem -1rem; word-break: break-all; } details[open]>summary+* { margin-top: 0; } details[open]>summary { margin-bottom: 0.5rem; } details[open]> :last-child { margin-bottom: 0; } /* Format tables */ table { border-collapse: collapse; margin: 1.5rem 0; width: 100%; } figure>table { width: max-content; margin: 0; } td, th { border: 1px solid var(--border-color); text-align: start; padding: 0.5rem; } th { background-color: var(--accent-bg-color); font-weight: bold; } tr:nth-child(even) { background-color: var(--accent-bg-color); } /* Format forms */ textarea, select, input { font-size: inherit; font-family: inherit; padding: 0.5em; margin-bottom: 0.5rem; border-radius: 5px; box-shadow: none; max-width: 100%; display: inline-block; } textarea, select, input { color: var(--text-color); background-color: var(--bg-color); border: 1px solid var(--border-color); } label { display: block; } textarea:not([cols]) { width: 100%; } /* checkbox and radio button style */ input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-color); width: min-content; } input[type="checkbox"]+label, input[type="radio"]+label { display: inline-block; } /* Makes input fields wider on smaller screens */ @media only screen and (max-width: 720px) { textarea, select, input { width: 100%; } } /* Set a height for color input */ input[type="color"] { height: 2.5rem; padding: 0.2rem; } /* do not show border around file selector button */ input[type="file"] { border: 0; } .button[aria-disabled="true"], input:disabled, textarea:disabled, select:disabled, button[disabled] { cursor: not-allowed; opacity: 0.5; } .button[aria-disabled="true"]:hover, button[disabled]:hover, button:disabled:hover { background: var(--accent-color); } .icon { position: relative; top: 0.1em; padding-right: .25rem; display: inline-block; width: 1em; height: 1em; stroke-width: 0; stroke: currentColor; fill: currentColor; margin: 0; } .hidden { display: none; } /* Post navigation */ .post-nav { display: flex; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); margin: 3rem auto; max-width: 100%; padding: 0; } .post-nav a { font-weight: bold; } .post-nav p { padding: 1rem 0; } .post-nav div { flex: 1 1 0; } .post-nav-next { text-align: right; } /* Change behaviour on smaller screens */ @media (max-width:800px) { .post-nav { display: block; } } .footnotes { font-size: 1rem; font-style: italic; margin-top: 2.5rem; border-bottom: 1px solid var(--border-color); border-top: 1px solid var(--border-color); } .footnotes hr { display: none; } hr { border-color: var(--border-color); } .admin-edit-link { position: fixed; bottom: 1.5rem; right: 1.5rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 1rem; background: var(--bg-color); border: 1px solid var(--accent-color); color: var(--accent-color); border-radius: 5px; font-size: 0.875rem; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); z-index: 999; } .admin-edit-link:hover { background-color: var(--accent-color); color: var(--bg-color); } .admin-edit-link .icon { font-size: 1.1rem; top: 0; } @media (max-width: 600px) { .admin-edit-link span { display: none; } .admin-edit-link { border-radius: 50%; padding: 0.75rem; gap: 0; font-size: 1.25rem; justify-content: center; } .admin-edit-link .icon { padding-right: 0; top: 0; } } /* Image Gallery */ .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin: 2rem 0; } @media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } } .gallery-item { margin: 0; display: flex; flex-direction: column; } .gallery-link { display: block; overflow: hidden; border-radius: 5px; line-height: 0; text-decoration: none; border: none; background: var(--accent-bg-color); } .gallery-link img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 !important; display: block; transition: transform 0.2s ease, filter 0.2s ease; border-radius: 5px; } .gallery-link:hover img, .gallery-link:focus-visible img { transform: scale(1.03); filter: brightness(1.05); } .gallery-caption { font-size: 0.85rem; color: var(--text-color); opacity: 0.8; margin-top: 0.35rem; text-align: center; line-height: 1.3; } /* Lightbox Dialog */ dialog.pb-lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: none; background: transparent; display: flex; align-items: center; justify-content: center; z-index: 99999; box-sizing: border-box; overflow: hidden; color: #fff; } dialog.pb-lightbox:not([open]) { display: none; } dialog.pb-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); } .pb-lightbox-content { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; max-width: 92vw; max-height: 92vh; box-sizing: border-box; pointer-events: none; } .pb-lightbox-content>* { pointer-events: auto; } .pb-lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; } .pb-lightbox-image { max-width: 90vw; max-height: calc(85vh - 3rem); object-fit: contain; border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); margin: 0 !important; display: block; } .pb-lightbox-caption { margin-top: 0.75rem; color: #fff; font-size: 0.95rem; text-align: center; max-width: 800px; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); line-height: 1.4; } .pb-lightbox-btn { position: absolute; background: rgba(30, 30, 30, 0.75); color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s ease, transform 0.15s ease; z-index: 10; padding: 0; } .pb-lightbox-btn:hover { background: rgba(50, 50, 50, 0.95); transform: scale(1.08); } .pb-lightbox-close { top: 1rem; right: 1rem; } .pb-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); } .pb-lightbox-prev:hover { transform: translateY(-50%) scale(1.08); } .pb-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); } .pb-lightbox-next:hover { transform: translateY(-50%) scale(1.08); } .pb-lightbox-counter { position: absolute; bottom: 1rem; background: rgba(0, 0, 0, 0.65); color: rgba(255, 255, 255, 0.9); font-size: 0.8rem; padding: 0.25rem 0.65rem; border-radius: 12px; letter-spacing: 0.05em; } @media (max-width: 600px) { .pb-lightbox-btn { width: 38px; height: 38px; } .pb-lightbox-close { top: 0.5rem; right: 0.5rem; } .pb-lightbox-prev { left: 0.5rem; } .pb-lightbox-next { right: 0.5rem; } }