@font-face {
    font-family: "Atkinson";
    src: url("../fonts/atkinson-regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson";
    src: url("../fonts/atkinson-bold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-roman.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 100 800;
    font-display: swap;
}

:root,
html[data-theme="light"] {
    --background: #fdfdfd;
    --foreground: #282728;
    --accent: #006cac;
    --muted: #e6e6e6;
    --border: #ece9e9;
}

html[data-theme="dark"] {
    --background: #212737;
    --foreground: #eaedf3;
    --accent: #ff6b01;
    --muted: rgba(52, 63, 96, 0.75);
    --border: #ab4b08;
}

* {
    box-sizing: border-box;
    border-color: var(--border);
    outline-color: color-mix(in oklab, var(--accent) 75%, transparent);
    scrollbar-width: auto;
    scrollbar-color: var(--muted) transparent;
}

:root,
html {
    view-transition-name: root;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(*),
::view-transition-new(*) {
    animation-duration: 180ms;
    animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
    animation-fill-mode: both;
}

::view-transition-old(root),
::view-transition-old(*) {
    animation-name: fade-out;
}

::view-transition-new(root),
::view-transition-new(*) {
    animation-name: fade-in;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation: none !important;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    margin: 0;
    min-height: 100svh;
    background: var(--background);
    color: var(--foreground);
    font-family: "Atkinson", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

body::selection,
body ::selection {
    background: color-mix(in oklab, var(--accent) 75%, transparent);
    color: var(--background);
}

a,
button {
    color: inherit;
    outline-offset: 1px;
    outline-color: var(--accent);
}

a,
button,
input,
textarea,
select {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px dashed var(--accent);
    text-decoration: none;
}

a {
    text-decoration-color: var(--accent);
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--accent);
}

hr,
.border-line {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 0;
}

.hidden {
    display: none;
}

.shell {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 0 1rem;
}

.skip-link {
    position: absolute;
    left: 4rem;
    top: -100%;
    z-index: 50;
    background: var(--background);
    color: var(--accent);
    padding: 0.5rem 0.75rem;
    transition: top 0.2s ease;
    backdrop-filter: blur(16px);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    width: 100%;
}

.nav-container {
    display: flex;
    flex-direction: column;
}

.top-nav-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.site-title {
    position: absolute;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.menu-btn {
    align-self: flex-end;
    padding: 0.5rem;
    border: 0;
    background: transparent;
}

.menu-items {
    width: 100%;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.menu-items.hidden {
    display: none;
}

.site-nav-wrap {
    grid-column: 1 / -1;
}

.site-nav .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.site-nav .nav li {
    grid-column: span 2;
}

.site-nav .nav a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
}

.site-nav .nav a:hover {
    color: var(--accent);
}

.site-nav .nav-current a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-style: wavy;
    text-underline-offset: 8px;
}

.site-nav .nav a.archives-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.archives-nav-icon {
    display: none;
    width: 1.4rem;
    height: 1.4rem;
    opacity: 0.9;
}

.archives-nav-label {
    display: inline;
}

.site-nav .nav-current.nav-archives-manual a {
    text-decoration: none;
}

.site-nav .nav-current.nav-archives-manual .archives-nav-icon,
.site-nav .nav a.archives-nav-link:hover .archives-nav-icon {
    stroke: var(--accent);
}

.menu-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.theme-btn,
.export-btn {
    border: 0;
    background: transparent;
    min-height: 2.8rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.theme-btn {
    position: relative;
}

.theme-btn:hover > svg,
.export-btn:hover {
    color: var(--accent);
    stroke: var(--accent);
}

.theme-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.theme-icon-moon {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.theme-icon-sun {
    transform: translate(-50%, -50%) scale(0) rotate(90deg);
    opacity: 0;
}

html[data-theme="dark"] .theme-icon-moon {
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    opacity: 0;
}

html[data-theme="dark"] .theme-icon-sun {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    opacity: 1;
}

.export-btn {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-shell {
    width: min(100%, 52rem);
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.hero {
    padding-top: 1.6rem;
    padding-bottom: 1.4rem;
}

.hero-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hero-avatar-link {
    display: block;
    margin: 0;
}

.hero-avatar {
    width: clamp(9.5rem, 24vw, 12rem);
    height: clamp(9.5rem, 24vw, 12rem);
    border-radius: 999px;
    object-fit: cover;
    object-position: center 18%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.12);
}

.hero-copy {
    flex: 1;
    width: 100%;
    text-align: center;
}

.hero-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4.8vw, 2.6rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.rss-link {
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
}

.rss-link svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke-width: 2.4;
}

.hero-description {
    margin: 0;
    opacity: 0.95;
    font-size: clamp(1.12rem, 2vw, 1.55rem);
    line-height: 1.45;
}

.hero-social-links {
    margin-top: 1.05rem;
}

.section-divider {
    margin-top: 0.25rem;
}

.recent-posts {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

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

.post-item {
    margin: 2rem 0;
}

.post-link {
    display: inline-block;
    color: var(--accent);
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    font-weight: 500;
}

.post-link h2 {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.45;
    font-weight: 500;
}

.post-link h2:hover {
    text-decoration: underline;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
    margin-bottom: 0.7rem;
    opacity: 0.8;
}

.post-meta-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-style: italic;
}

.post-meta-date svg {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
}

.post-meta-read {
    font-size: 0.92rem;
    font-style: italic;
}

.post-md-link {
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.post-excerpt {
    margin: 0;
    opacity: 0.8;
}

.pagination-wrap {
    margin-top: 2.2rem;
}

.pagination-wrap .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.pagination-wrap .newer-posts,
.pagination-wrap .older-posts {
    color: var(--accent);
    text-decoration-style: dashed;
}

.context-head h1 {
    margin: 0.2rem 0 0.5rem;
    font-size: 1.7rem;
}

.context-head p {
    margin: 0 0 1rem;
    opacity: 0.84;
}

.post-full {
    padding-top: 0.8rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent);
    text-decoration-style: dashed;
}

.post-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3.2vw, 2.5rem);
    line-height: 1.25;
}

.post-meta-single {
    margin-top: 0.7rem;
}

.feature-wrap {
    margin: 1rem 0 0;
}

.feature-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.post-content {
    margin-top: 1.6rem;
}

.app-prose h1,
.app-prose h2,
.app-prose h3,
.app-prose h4,
.app-prose th {
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.app-prose h3 {
    font-style: italic;
}

.app-prose p,
.app-prose strong,
.app-prose ol,
.app-prose ul,
.app-prose figcaption,
.app-prose table,
.app-prose code {
    color: var(--foreground);
}

.app-prose a {
    color: var(--foreground);
    text-decoration-style: dashed;
    text-underline-offset: 8px;
}

.app-prose a:hover {
    color: var(--accent);
}

.app-prose ul,
.app-prose ol {
    margin: 1.25em 0;
    padding-inline-start: 1.5rem;
}

.app-prose li::marker {
    color: var(--accent);
}

.app-prose hr {
    border-color: var(--border);
}

.app-prose img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    margin: 0.5rem auto;
}

.app-prose figcaption {
    opacity: 0.75;
}

.app-prose table {
    border-collapse: collapse;
    width: 100%;
}

.app-prose table th,
.app-prose table td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.app-prose code {
    background: color-mix(in oklab, var(--muted) 75%, transparent);
    border-radius: 0.25rem;
    padding: 0.1rem 0.3rem;
    overflow-wrap: break-word;
}

.app-prose pre {
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    padding: 0.9rem 1rem;
    overflow-x: auto;
}

.app-prose pre code {
    background: transparent;
    padding: 0;
}

.app-prose blockquote {
    border-left: 2px solid color-mix(in oklab, var(--accent) 50%, transparent);
    margin: 1.2rem 0;
    padding: 0.2rem 1rem;
    opacity: 0.8;
    overflow-wrap: break-word;
}

.post-comments {
    margin-top: 2rem;
}

.site-footer {
    margin-top: auto;
}

.footer-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.1rem;
    padding-bottom: 0.6rem;
    gap: 0.6rem;
}

.footer-social-row {
    padding-top: 0.35rem;
    padding-bottom: 1.15rem;
}

.footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.footer-links .nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.footer-links .nav li a {
    text-decoration: none;
    opacity: 0.9;
    padding: 0.2rem 0.3rem;
}

.footer-links .nav li a:hover {
    color: var(--accent);
    transform: rotate(6deg);
    display: inline-block;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.78;
    text-align: center;
}

.social-links-label {
    margin-right: 0.35rem;
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.social-links-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.social-links-icons-compact {
    gap: 0.15rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem;
    border-radius: 0.35rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-link svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.9;
}

.social-link:hover {
    color: var(--accent);
    transform: rotate(6deg);
}

.hero-social-links .social-links-icons {
    justify-content: center;
}

.hero-social-links .social-link {
    padding: 0.35rem;
}

.hero-social-links .social-link svg {
    width: 2.05rem;
    height: 2.05rem;
}

.kg-width-wide {
    max-width: min(100%, 62rem);
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full img,
.kg-width-wide img {
    width: 100%;
    height: auto;
}

.colophon-sources {
    word-break: break-word;
}

@media (min-width: 40rem) {
    .top-nav-wrap {
        align-items: center;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .site-title {
        position: static;
        margin: auto 0;
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .nav-menu {
        margin-left: 0.5rem;
        width: auto;
        flex-direction: row;
        align-items: center;
    }

    .menu-btn {
        display: none;
    }

    .menu-items,
    .menu-items.hidden {
        margin-top: 0;
        display: flex !important;
        align-items: center;
        gap: 1rem;
        width: auto;
    }

    .site-nav .nav {
        display: flex;
        gap: 0.25rem;
    }

    .site-nav .nav li {
        grid-column: auto;
    }

    .site-nav .nav a {
        padding: 0.25rem 0.6rem;
    }

    .site-nav .nav a.archives-nav-link {
        min-width: 2.5rem;
    }

    .nav-archives-manual .archives-nav-icon {
        display: inline-block;
    }

    .nav-archives-manual .archives-nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        border: 0;
        white-space: nowrap;
    }

    .menu-actions {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        width: auto;
    }

    .theme-btn,
    .export-btn {
        width: 2.5rem;
        min-height: 2.5rem;
    }

    .export-btn {
        width: auto;
        min-width: 2.5rem;
        padding: 0 0.5rem;
    }

    .hero-row {
        flex-direction: row;
        align-items: center;
        gap: 1.8rem;
    }

    .hero-copy {
        text-align: left;
    }

    .hero-title-row {
        justify-content: flex-start;
        margin-bottom: 0.75rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.2rem, 4.2vw, 3rem);
    }

    .hero-description {
        max-width: 36rem;
    }

    .hero-social-links .social-links-icons {
        justify-content: flex-start;
    }

    .footer-row {
        flex-direction: row-reverse;
        padding-top: 1rem;
        padding-bottom: 0.45rem;
    }

    .footer-social-links {
        justify-content: flex-start;
    }

    .copyright {
        text-align: left;
    }
}

.archives-page {
    padding-top: 0.7rem;
}

.archives-breadcrumb {
    margin-top: 2rem;
    margin-bottom: 0.4rem;
}

.archives-breadcrumb ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-weight: 400;
}

.archives-breadcrumb li {
    display: inline;
}

.archives-breadcrumb a {
    text-decoration: none;
    opacity: 0.8;
}

.archives-breadcrumb a:hover {
    opacity: 1;
}

.archives-breadcrumb li + li {
    margin-left: 0.15rem;
}

.archives-breadcrumb [aria-current="page"] {
    opacity: 0.76;
    text-transform: lowercase;
}

.archives-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.1vw, 2rem);
    line-height: 1.22;
}

.archives-subtitle {
    margin: 0.5rem 0 1.7rem;
    opacity: 0.8;
    font-style: italic;
}

.archives-root-empty {
    margin: 0;
    opacity: 0.76;
    font-style: italic;
}

.archives-year-group {
    margin-top: 1.4rem;
}

.archives-year-heading {
    margin: 0;
    font-size: 1.72rem;
    line-height: 1.2;
    font-weight: 700;
}

.archives-year-count {
    margin-left: 0.3rem;
    font-size: 0.82rem;
    opacity: 0.75;
}

.archives-month-row {
    display: flex;
    flex-direction: column;
}

.archives-month-col {
    margin-top: 1.1rem;
}

.archives-month-heading {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 700;
}

.archives-month-count {
    margin-left: 0.25rem;
    font-size: 0.72rem;
    opacity: 0.75;
}

.archives-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.archives-post-item {
    margin: 1rem 0 1.5rem;
}

.archives-post-link {
    display: inline-block;
    color: var(--accent);
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

.archives-post-link h4 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.45;
    font-weight: 500;
}

.archives-post-link h4:hover {
    text-decoration: underline;
}

.archives-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.45rem;
    opacity: 0.8;
}

.archives-post-meta time {
    font-size: 0.92rem;
}

.archives-post-meta svg {
    width: 1rem;
    height: 1rem;
    min-width: 1rem;
}

.archives-post-excerpt {
    margin: 0.5rem 0 0;
    opacity: 0.82;
}

@media (min-width: 40rem) {
    .archives-month-row {
        flex-direction: row;
        gap: 1.45rem;
    }

    .archives-month-col {
        margin-top: 1.25rem;
        min-width: 8.5rem;
    }

    .archives-post-item {
        margin: 1.2rem 0 1.7rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.post-shell {
    margin-top: 1rem;
}

.post-header-astro {
    margin-bottom: 0.4rem;
}

.post-title-accent {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    line-height: 1.2;
    font-weight: 700;
}

.post-meta-astro {
    margin-top: 0.5rem;
    margin-bottom: 0.95rem;
}

.post-meta-dot {
    line-height: 1;
    opacity: 0.38;
}

.post-md-link-inline {
    font-size: 0.85rem;
}

.post-newsletter {
    margin-top: 2rem;
    margin-bottom: 0.55rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 0.6rem;
    background: color-mix(in oklab, var(--muted) 35%, transparent);
}

.post-newsletter-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}

.post-newsletter-copy {
    margin: 0.5rem 0 0.95rem;
    opacity: 0.84;
}

.post-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-newsletter-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 0.45rem;
    background: var(--background);
    color: var(--foreground);
    padding: 0.65rem 0.8rem;
}

.post-newsletter-input::placeholder {
    opacity: 0.67;
}

.post-newsletter-input:focus-visible,
.post-newsletter-button:focus-visible {
    outline: 2px dashed var(--accent);
    outline-offset: 2px;
}

.post-newsletter-button {
    border: 0;
    border-radius: 0.45rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.post-newsletter-button:hover {
    filter: brightness(0.92);
}

.post-newsletter-note {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    opacity: 0.75;
}

.post-newsletter-feedback {
    display: none;
    margin: 0.7rem 0 0;
    font-size: 0.9rem;
}

.post-newsletter-form.success ~ .post-newsletter-success {
    display: block;
    color: #0f766e;
}

.post-newsletter-form.error ~ .post-newsletter-error {
    display: block;
    color: #b42318;
}

.post-newsletter-form.loading .post-newsletter-button {
    opacity: 0.75;
    cursor: progress;
}

.newsletter-plan-modal[hidden] {
    display: none;
}

.newsletter-plan-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.2rem;
}

.newsletter-plan-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.newsletter-plan-dialog {
    position: relative;
    width: min(34rem, 100%);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: var(--background);
    color: var(--foreground);
    padding: 1.1rem 1.1rem 0.95rem;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.newsletter-plan-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.3;
}

.newsletter-plan-copy {
    margin: 0.45rem 0 0.95rem;
    opacity: 0.8;
}

.newsletter-plan-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.newsletter-plan-btn {
    border-radius: 0.45rem;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.newsletter-plan-btn-free {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
}

.newsletter-plan-btn-paid {
    border: 0;
    background: var(--accent);
    color: #ffffff;
}

.newsletter-plan-btn:hover {
    filter: brightness(0.95);
}

.newsletter-plan-cancel {
    margin-top: 0.75rem;
    border: 0;
    background: transparent;
    color: var(--foreground);
    opacity: 0.75;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.newsletter-plan-cancel:hover {
    opacity: 1;
}

body.newsletter-modal-open {
    overflow: hidden;
}

@media (min-width: 40rem) {
    .newsletter-plan-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 40rem) {
    .post-newsletter-form {
        flex-direction: row;
        align-items: center;
    }

    .post-newsletter-input {
        flex: 1 1 0;
    }

    .post-newsletter-button {
        white-space: nowrap;
    }
}


.post-divider {
    margin: 2.2rem 0;
}

.post-divider-line {
    border: 0;
    border-top: 1px dashed color-mix(in oklab, var(--accent) 65%, var(--border));
    opacity: 0.95;
}

.post-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin: 0.1rem 0 1.6rem;
    font-size: 1.05rem;
    line-height: 1.4;
}

.post-tag-link {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    opacity: 0.92;
}

.post-tag-link:hover {
    color: var(--accent);
}

.post-share-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 0 0.1rem;
}

.post-share-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
}

.post-share-label {
    font-style: italic;
    opacity: 0.9;
}

.post-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
}

.post-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.post-share-link svg {
    width: 2rem;
    height: 2rem;
    opacity: 0.9;
}

.post-share-link:hover {
    color: var(--accent);
    transform: rotate(6deg);
}

.post-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0;
    border: 0;
    background: none;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.18s ease;
    white-space: nowrap;
}

.post-back-to-top svg {
    width: 1.2rem;
    height: 1.2rem;
    transform: rotate(90deg);
}

.post-back-to-top:hover {
    opacity: 0.75;
}

.post-pagination {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.post-pagination-link {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    text-decoration: none;
    max-width: 100%;
    transition: opacity 0.18s ease;
}

.post-pagination-link:hover {
    opacity: 0.75;
}

.post-pagination-link svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.post-pagination-copy {
    min-width: 0;
}

.post-pagination-kicker {
    display: block;
    font-size: 0.92rem;
    opacity: 0.72;
}

.post-pagination-title {
    display: block;
    margin-top: 0.15rem;
    color: color-mix(in oklab, var(--accent) 85%, var(--foreground));
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 500;
    word-break: break-word;
}

.post-pagination-link.next {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

@media (min-width: 40rem) {
    .post-share-row {
        flex-direction: row;
        align-items: flex-end;
        gap: 1rem;
    }

    .post-share-left {
        align-items: flex-start;
        text-align: left;
    }

    .post-share-links {
        justify-content: flex-start;
    }

    .post-share-link {
        padding: 0.55rem;
    }

    .post-share-link svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .post-pagination {
        flex-direction: row;
        justify-content: space-between;
        gap: 2rem;
    }
}

.post-header .post-title-accent {
    margin: 0;
    color: var(--accent);
    font-size: clamp(1.9rem, 3.2vw, 2.45rem);
    line-height: 1.2;
    font-weight: 700;
}
