/* ==========================================================================
   iPunkt Glowline for Ghost
   Dark glassmorphic theme with an ambient glow taken from your post images.

   1.  Registered properties
   2.  Design tokens (dark, light, glow intensity)
   3.  Base
   4.  Ambient glow
   5.  Glass, buttons, pills
   6.  Header and mobile menu
   7.  Layout and section titles
   8.  Hero mosaic
   9.  Featured / Videos tabs
   10. Post cards and feed
   11. Load more
   12. Subscribe panel
   13. Archive headers
   14. Article
   15. Post content and editor cards
   16. Share, author box, comments, post navigation
   17. Footer
   18. Lightbox, error page
   19. Responsive
   20. Motion and fallbacks
   ========================================================================== */

/* 1. Registered properties ------------------------------------------------ */

/* Lets the blob colour animate smoothly instead of jumping. */
@property --blob {
    syntax: "<color>";
    inherits: false;
    initial-value: #8b5cf6;
}

@view-transition {
    navigation: auto;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
    --accent: var(--ghost-accent-color, #8b5cf6);
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    --accent-text: #fff;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --font-body: var(--gh-font-body, var(--font-sans));
    --font-heading: var(--gh-font-heading, var(--font-display));

    --content-width: 1200px;
    --header-width: 1400px;
    --reading-width: 720px;
    --gutter: 16px;
    --section-gap: 72px;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #090b10;
    --bg-solid: #12151d;
    --text: #eceef4;
    --text-2: #a9aec0;
    --text-3: #737a8f;
    --line: rgba(255, 255, 255, .08);
    --glass: rgba(22, 25, 34, .52);
    --glass-strong: rgba(16, 19, 27, .8);
    --glass-border: rgba(255, 255, 255, .09);
    --glass-highlight: rgba(255, 255, 255, .07);
    --glass-blur: 22px;
    --glass-shadow: inset 0 1px 0 var(--glass-highlight), 0 24px 48px -28px rgba(0, 0, 0, .7);
    --hover: rgba(255, 255, 255, .06);
    --code-bg: rgba(0, 0, 0, .35);
    --img-placeholder: linear-gradient(135deg, color-mix(in srgb, var(--accent) 35%, #10131b), #10131b);
    --vignette: rgba(9, 11, 16, 1);
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #eef0f5;
    --bg-solid: #ffffff;
    --text: #12141b;
    --text-2: #4a5063;
    --text-3: #7a8094;
    --line: rgba(16, 20, 40, .09);
    --glass: rgba(255, 255, 255, .56);
    --glass-strong: rgba(255, 255, 255, .84);
    --glass-border: rgba(16, 20, 40, .08);
    --glass-highlight: rgba(255, 255, 255, .7);
    --glass-shadow: inset 0 1px 0 var(--glass-highlight), 0 24px 48px -30px rgba(30, 36, 60, .35);
    --hover: rgba(16, 20, 40, .05);
    --code-bg: rgba(16, 20, 40, .05);
    --img-placeholder: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, #fff), #e4e7ef);
    --vignette: rgba(238, 240, 245, 1);
}

/* Glow strength (Design > Glow intensity). Light mode runs softer. */
[data-glow="subtle"]   { --glow-opacity: .38; }
[data-glow="balanced"] { --glow-opacity: .55; }
[data-glow="vivid"]    { --glow-opacity: .72; }
[data-theme="light"] [data-glow="subtle"]    { --glow-opacity: .3; }
[data-theme="light"] [data-glow="balanced"]  { --glow-opacity: .46; }
[data-theme="light"] [data-glow="vivid"]     { --glow-opacity: .6; }

/* 3. Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img,
video,
iframe,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: color-mix(in srgb, var(--accent) 40%, transparent);
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 600;
    transform: translateY(-200%);
    transition: transform .2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

.site {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding-top: 40px;
}

/* 4. Ambient glow --------------------------------------------------------- */

.ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Soft radial gradients, never solid circles, so no edge is ever visible. */
.ambient__blob {
    position: absolute;
    width: 80vw;
    height: 80vw;
    min-width: 680px;
    min-height: 680px;
    background: radial-gradient(closest-side, var(--blob) 0%, transparent 72%);
    filter: blur(60px);
    opacity: var(--glow-opacity, .55);
    transform: translate3d(0, 0, 0);
    transition: --blob 1.6s ease, opacity .6s ease;
    will-change: transform;
}

.ambient__blob--a {
    --blob: var(--accent);
    top: -26vw;
    left: -20vw;
    animation: glow-drift-a 34s ease-in-out infinite alternate;
}

.ambient__blob--b {
    --blob: #3d7bff;
    top: -16vw;
    right: -24vw;
    animation: glow-drift-b 42s ease-in-out infinite alternate;
}

.ambient__blob--c {
    --blob: #d946ef;
    bottom: -32vw;
    left: 16vw;
    animation: glow-drift-c 38s ease-in-out infinite alternate;
}

@keyframes glow-drift-a { to { transform: translate3d(9vw, 7vw, 0) scale(1.12); } }
@keyframes glow-drift-b { to { transform: translate3d(-8vw, 10vw, 0) scale(.92); } }
@keyframes glow-drift-c { to { transform: translate3d(10vw, -7vw, 0) scale(1.08); } }

/* Fine grain against gradient banding, plus a vignette that keeps text calm. */
.ambient::before,
.ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ambient::before {
    background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--vignette) 100%);
    opacity: .65;
}

.ambient::after {
    opacity: .05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] .ambient::after {
    opacity: .035;
}

/* 5. Glass, buttons, pills ------------------------------------------------ */

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    backdrop-filter: blur(var(--glass-blur)) saturate(160%);
    box-shadow: var(--glass-shadow);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--hover);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.button:hover {
    background: color-mix(in srgb, var(--text) 10%, transparent);
}

.button--accent {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-text);
    box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.button--accent:hover {
    background: color-mix(in srgb, var(--accent) 88%, #fff);
    transform: translateY(-1px);
}

.button--glass {
    min-height: 48px;
    padding: 0 28px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    font-size: 15px;
}

.button .icon {
    width: 16px;
    height: 16px;
}

.link-button {
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    transition: color .2s var(--ease);
}

.link-button:hover {
    color: var(--text);
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-2);
    transition: background .2s var(--ease), color .2s var(--ease);
}

.icon-button:hover {
    background: var(--hover);
    color: var(--text);
}

.pill {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--hover);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

a.pill:hover,
.pill--button:hover {
    background: var(--accent-soft);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
    color: var(--text);
}

.pill .icon {
    width: 14px;
    height: 14px;
}

.pill--lock {
    color: color-mix(in srgb, var(--accent) 70%, var(--text));
}

.pill--onimage {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.pill--button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13px;
    cursor: pointer;
}

.spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 6. Header and mobile menu ----------------------------------------------- */

.site-header {
    position: sticky;
    top: 16px;
    z-index: 50;
    width: min(var(--header-width), calc(100% - 2 * var(--gutter)));
    margin: 16px auto 0;
}

.site-header__bar {
    --glass-blur: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 12px 10px 24px;
    border-radius: var(--radius-pill);
    background: var(--glass-strong);
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo__img {
    width: auto;
    max-width: 180px;
    max-height: 34px;
}

.site-logo__text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.site-nav {
    flex: 1;
    min-width: 0;
}

.site-nav .nav,
.mobile-menu .nav,
.site-footer__nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav .nav {
    justify-content: center;
}

.site-nav .nav a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    transition: background .2s var(--ease), color .2s var(--ease);
}

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

.site-nav .nav-current a {
    background: var(--hover);
    color: var(--text);
}

.site-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.site-members {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.theme-toggle__sun,
.theme-toggle__moon {
    display: grid;
    place-items: center;
}

[data-theme="dark"] .theme-toggle__moon,
[data-theme="light"] .theme-toggle__sun {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-toggle__close {
    display: none;
}

.menu-is-open .menu-toggle__open {
    display: none;
}

.menu-is-open .menu-toggle__close {
    display: grid;
}

.menu-toggle__open,
.menu-toggle__close {
    place-items: center;
}

.menu-toggle__open {
    display: grid;
}

/* Deliberately opaque: nested backdrop-filter misbehaves on iOS Safari. */
.mobile-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 16px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: var(--bg-solid);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
    animation: menu-in .22s var(--ease);
}

.mobile-menu[hidden] {
    display: none;
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
}

.mobile-menu .nav {
    flex-direction: column;
}

.mobile-menu .nav + .nav {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.mobile-menu .nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
}

.mobile-menu .nav a:hover,
.mobile-menu .nav-current a {
    background: var(--hover);
}

.mobile-menu__members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.mobile-menu__members .button {
    min-height: 46px;
}

/* 7. Layout and section titles -------------------------------------------- */

.container {
    width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
}

.section {
    margin-top: var(--section-gap);
}

.section--flush,
.archive-header + .section {
    margin-top: 40px;
}

.container > .section:first-child,
.container > .picks:first-child {
    margin-top: 0;
}

/* Section titles are pills, matching the tabs. */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 15px;
    letter-spacing: 0;
}

.section-title span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* 8. Hero mosaic ---------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: clamp(460px, 64vh, 640px);
}

.hero:has(.tile:only-child) {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.hero:has(.tile:nth-child(2):last-child) .tile:nth-child(2) {
    grid-row: span 2;
}

.tile {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: var(--img-placeholder);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
    isolation: isolate;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.tile--large {
    grid-row: span 2;
}

.tile__img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(5, 6, 10, 0) 30%, rgba(5, 6, 10, .55) 62%, rgba(5, 6, 10, .9) 100%);
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 36px 70px -28px color-mix(in srgb, var(--card-glow, var(--accent)) 55%, transparent);
}

.tile:hover .tile__img {
    transform: scale(1.04);
}

.tile__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    color: #fff;
    pointer-events: none;
}

.tile__body .pill,
.tile__body a {
    pointer-events: auto;
}

.tile--large .tile__body {
    padding: 40px;
}

.tile__title {
    font-size: 1.3rem;
    text-wrap: balance;
}

.tile--large .tile__title {
    max-width: 22ch;
    font-size: clamp(1.8rem, 3vw, 2.75rem);
}

.tile__excerpt {
    max-width: 56ch;
    color: rgba(255, 255, 255, .78);
    font-size: 1.0625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile .meta {
    color: rgba(255, 255, 255, .72);
}

.tile .meta__dot {
    background: rgba(255, 255, 255, .5);
}

.tile > .video-badge {
    top: 20px;
    right: 20px;
    left: auto;
    bottom: auto;
}

/* 9. Featured / Videos tabs ----------------------------------------------- */

.picks {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-xl);
}

.picks__tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.tab .icon {
    width: 14px;
    height: 14px;
}

.tab:hover {
    color: var(--text);
}

.tab.is-active {
    border-color: var(--glass-border);
    background: var(--hover);
    color: var(--text);
}

.picks__panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.picks__panel[hidden] {
    display: none;
}

.pick {
    position: relative;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: var(--radius);
    transition: background .2s var(--ease);
}

.pick:hover {
    background: var(--hover);
}

.pick__thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    background: var(--img-placeholder);
}

.pick__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pick__thumb .video-badge {
    width: 28px;
    height: 28px;
    left: 50%;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
}

.pick__thumb .video-badge .icon {
    width: 12px;
    height: 12px;
}

.pick__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pick__tag {
    color: color-mix(in srgb, var(--accent) 65%, var(--text));
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pick__title {
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pick__date {
    color: var(--text-3);
    font-size: 12px;
}

/* 10. Post cards and feed ------------------------------------------------- */

.feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.card.is-new {
    animation: card-in .5s var(--ease) both;
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(16px); }
}

.card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--card-glow, var(--accent)) 45%, transparent);
    box-shadow: inset 0 1px 0 var(--glass-highlight), 0 28px 60px -26px color-mix(in srgb, var(--card-glow, var(--accent)) 60%, transparent);
}

.card__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--img-placeholder);
}

.card__media--empty {
    display: grid;
    place-items: center;
    background:
        radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%),
        radial-gradient(70% 100% at 100% 100%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%),
        var(--hover);
}

.card__media--empty span {
    max-width: 80%;
    color: color-mix(in srgb, var(--text) 75%, transparent);
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px 22px;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.card__tags:empty {
    display: none;
}

.card__title {
    font-size: 1.25rem;
    line-height: 1.25;
    text-wrap: balance;
}

.card__excerpt {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .meta {
    margin-top: auto;
    padding-top: 4px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-3);
    font-size: 13px;
}

.meta__avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hover);
}

.meta__avatar--empty {
    display: inline-grid;
    place-items: center;
    color: var(--text-3);
}

.meta__avatar--empty .icon {
    width: 14px;
    height: 14px;
}

.meta__author {
    color: var(--text-2);
    font-weight: 600;
}

.tile .meta__author {
    color: #fff;
}

.meta__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}

.video-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(10, 12, 18, .55);
    color: #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.video-badge .icon {
    width: 16px;
    height: 16px;
    margin-left: 2px;
}

/* 11. Load more ----------------------------------------------------------- */

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.load-more .button.is-loading .spinner {
    display: inline-block;
}

.load-more .button.is-loading .load-more__label {
    opacity: .6;
}

/* 12. Subscribe panel ----------------------------------------------------- */

.subscribe {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    margin-top: var(--section-gap);
    padding: 48px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    isolation: isolate;
}

.subscribe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%),
        radial-gradient(50% 100% at 100% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}

.subscribe__title {
    margin-bottom: 10px;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.subscribe__text p {
    color: var(--text-2);
    font-size: 1.0625rem;
}

.subscribe__form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--glass-strong);
}

.subscribe__input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 18px;
    border: 0;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.subscribe__input::placeholder {
    color: var(--text-3);
}

.subscribe__form .button {
    min-height: 48px;
    padding: 0 24px;
}

.subscribe__form:focus-within {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.subscribe__success,
.subscribe__error {
    display: none;
    width: 100%;
    padding: 0 18px 8px;
    font-size: 14px;
}

.subscribe__success {
    align-items: center;
    gap: 8px;
}

.subscribe__error:not(:empty) {
    display: block;
    color: #ff8a8a;
}

.subscribe__form.loading .spinner {
    display: inline-block;
}

.subscribe__form.loading .subscribe__label {
    display: none;
}

.subscribe__form.success {
    border-radius: var(--radius-lg);
}

.subscribe__form.success .subscribe__input,
.subscribe__form.success .button {
    display: none;
}

.subscribe__form.success .subscribe__success {
    display: flex;
    padding: 12px 14px;
}

/* 13. Archive headers ----------------------------------------------------- */

.archive-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.archive-header__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    letter-spacing: -.035em;
}

.archive-header__desc {
    max-width: 60ch;
    color: var(--text-2);
    font-size: 1.125rem;
}

.archive-header__count {
    color: var(--text-3);
    font-size: 14px;
}

.archive-header__avatar {
    width: 104px;
    height: 104px;
    border: 3px solid var(--glass-border);
    border-radius: 50%;
    object-fit: cover;
}

.archive-header__avatar--empty {
    display: grid;
    place-items: center;
    background: var(--hover);
}

.archive-header__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.archive-header__links:empty {
    display: none;
}

/* 14. Article ------------------------------------------------------------- */

.progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 3px;
    pointer-events: none;
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--glow-1, var(--accent)), var(--glow-2, var(--accent)), var(--glow-3, var(--accent)));
    transform: scaleX(0);
    transform-origin: 0 50%;
    box-shadow: 0 0 12px var(--glow-1, var(--accent));
}

.article {
    width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
}

.article__shell {
    padding: 64px 0 56px;
    border-radius: var(--radius-xl);
}

.article__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}

.article__title {
    font-size: clamp(2.2rem, 5vw, 3.75rem);
    line-height: 1.06;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.article__excerpt {
    max-width: 640px;
    color: var(--text-2);
    font-size: clamp(1.125rem, 1.6vw, 1.3rem);
    line-height: 1.5;
    text-wrap: pretty;
}

.article__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article__avatars {
    display: flex;
}

.article__avatars a + a {
    margin-left: -8px;
}

.article__avatars .meta__avatar {
    width: 36px;
    height: 36px;
    border: 2px solid var(--bg-solid);
}

.article__meta .meta {
    font-size: 14px;
}

.article__meta .meta__author a:hover {
    color: var(--text);
    text-decoration: underline;
}

.article__image {
    margin: 48px 32px 0;
}

.article__image img {
    width: 100%;
    max-height: 78vh;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.article__image figcaption,
.gh-content figcaption {
    margin-top: 12px;
    color: var(--text-3);
    font-size: 14px;
    text-align: center;
}

.article--page .article__shell {
    padding-top: 56px;
}

/* Table of contents */
.toc {
    width: min(var(--reading-width), calc(100% - 64px));
    margin: 48px auto 0;
}

.toc[hidden] {
    display: none;
}

.toc details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--hover);
}

.toc summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.toc summary::-webkit-details-marker {
    display: none;
}

.toc summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: auto;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .2s var(--ease);
}

.toc details[open] summary::after {
    transform: rotate(-135deg) translate(-2px, 0);
}

.toc ol {
    margin: 0;
    padding: 0 18px 16px 18px;
    list-style: none;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
}

.toc li a {
    display: flex;
    gap: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.4;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.toc li a::before {
    content: counter(toc, decimal-leading-zero);
    color: var(--text-3);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.75;
}

.toc li a:hover,
.toc li a.is-active {
    background: var(--hover);
    color: var(--text);
}

.toc li.toc__sub a {
    padding-left: 44px;
    font-size: 14px;
}

.toc li.toc__sub a::before {
    content: none;
}

/* 15. Post content and editor cards --------------------------------------- */

.gh-content {
    display: grid;
    grid-template-columns:
        [full-start] minmax(32px, 1fr)
        [wide-start] minmax(0, 120px)
        [main-start] min(var(--reading-width), calc(100% - 64px))
        [main-end] minmax(0, 120px)
        [wide-end] minmax(32px, 1fr)
        [full-end];
    margin-top: 48px;
    color: color-mix(in srgb, var(--text) 88%, var(--text-2));
    font-size: 1.1875rem;
    line-height: 1.75;
}

.toc:not([hidden]) + .gh-content {
    margin-top: 32px;
}

.gh-content > * {
    grid-column: main;
    margin: 0;
}

.gh-content > * + * {
    margin-top: 1.5em;
}

.gh-content > figure + *,
.gh-content > * + figure {
    margin-top: 2em;
}

.gh-content > .kg-width-wide {
    grid-column: wide;
}

.gh-content > .kg-width-full {
    grid-column: full;
}

.gh-content > .kg-width-full img {
    width: 100%;
    border-radius: 0;
}

.gh-content > h2,
.gh-content > h3,
.gh-content > h4 {
    margin-top: 2em;
    color: var(--text);
    scroll-margin-top: 110px;
}

.gh-content > h2 + *,
.gh-content > h3 + *,
.gh-content > h4 + * {
    margin-top: .75em;
}

.gh-content h2 { font-size: 1.85rem; }
.gh-content h3 { font-size: 1.45rem; }
.gh-content h4 { font-size: 1.2rem; }

.gh-content a:not([class]) {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}

.gh-content a:not([class]):hover {
    color: color-mix(in srgb, var(--accent) 65%, var(--text));
    text-decoration-color: var(--accent);
}

.gh-content strong {
    color: var(--text);
}

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

.gh-content li + li {
    margin-top: .5em;
}

.gh-content li::marker {
    color: var(--accent);
}

.gh-content blockquote:not([class]) {
    padding: 4px 0 4px 1.2em;
    border-left: 3px solid var(--accent);
    color: var(--text);
    font-size: 1.2em;
    line-height: 1.6;
}

.gh-content blockquote.kg-blockquote-alt {
    padding: 0 1em;
    color: var(--text);
    font-size: 1.5em;
    font-style: italic;
    line-height: 1.5;
    text-align: center;
}

.gh-content hr {
    height: 1px;
    margin-top: 2.5em;
    margin-bottom: 1em;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.gh-content :not(pre) > code {
    padding: .15em .4em;
    border-radius: 6px;
    background: var(--code-bg);
    font-family: var(--font-mono);
    font-size: .85em;
}

.gh-content pre {
    overflow-x: auto;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--code-bg);
    font-family: var(--font-mono);
    font-size: .875rem;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
}

.gh-content table {
    display: block;
    overflow-x: auto;
    width: 100%;
    border-collapse: collapse;
    font-size: .9em;
}

.gh-content th,
.gh-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.gh-content th {
    color: var(--text);
    font-weight: 700;
}

/* Images and galleries */
.gh-content .kg-image-card img,
.gh-content > img {
    border-radius: var(--radius);
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
    cursor: zoom-in;
}

.kg-image-card {
    margin: 0;
}

.kg-image {
    margin: 0 auto;
}

.kg-width-wide .kg-image,
.kg-width-full .kg-image {
    width: 100%;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kg-gallery-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.kg-gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Video and embeds: everything video-ish goes 16:9 and rounded */
.gh-content .kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gh-content .kg-embed-card iframe[src*="youtube"],
.gh-content .kg-embed-card iframe[src*="vimeo"],
.gh-content .kg-embed-card iframe[src*="loom.com"],
.gh-content .kg-embed-card iframe[src*="wistia"],
.gh-content > iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.gh-content .kg-video-card,
.gh-content .kg-video-container {
    overflow: hidden;
    border-radius: var(--radius);
}

/* Bookmark cards */
.gh-content .kg-bookmark-card {
    width: 100%;
}

.gh-content .kg-bookmark-container,
.gh-content .kg-bookmark-card a.kg-bookmark-container,
.gh-content .kg-bookmark-card a.kg-bookmark-container:hover {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--hover);
    color: var(--text);
    text-decoration: none;
    box-shadow: none;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}

.gh-content .kg-bookmark-card a.kg-bookmark-container:hover {
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.gh-content .kg-bookmark-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
}

.gh-content .kg-bookmark-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.gh-content .kg-bookmark-description {
    color: var(--text-2);
    font-size: .9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gh-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: var(--text-3);
    font-size: .8rem;
}

.gh-content .kg-bookmark-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

.gh-content .kg-bookmark-author,
.gh-content .kg-bookmark-publisher {
    color: var(--text-3);
    font-weight: 500;
}

.gh-content .kg-bookmark-thumbnail {
    position: relative;
    flex: 0 0 34%;
    min-height: 140px;
}

.gh-content .kg-bookmark-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Other cards: blend Ghost's own card styles into the glass look */
.gh-content .kg-callout-card {
    border-radius: var(--radius);
}

.gh-content .kg-toggle-card,
.gh-content .kg-file-card a.kg-file-card-container,
.gh-content .kg-audio-card,
.gh-content .kg-product-card-container {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--hover);
    box-shadow: none;
    color: var(--text);
}

.gh-content .kg-button-card .kg-btn,
.gh-content .kg-btn-accent {
    border-radius: var(--radius-pill);
}

.gh-content .kg-header-card,
.gh-content .kg-signup-card,
.gh-content .kg-cta-card {
    border-radius: var(--radius-lg);
}

/* Members paywall prompt Ghost inserts into restricted posts */
.gh-content .gh-post-upgrade-cta-content {
    border-radius: var(--radius-lg);
}

.gh-content .gh-post-upgrade-cta a.gh-btn {
    border-radius: var(--radius-pill);
}

/* 16. Share, author box, comments, post navigation ------------------------ */

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    width: min(var(--reading-width), calc(100% - 64px));
    margin: 56px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.share__label {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.share [hidden] {
    display: none;
}

.copy__idle,
.copy__done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy__done,
.is-copied .copy__idle {
    display: none;
}

.is-copied .copy__done {
    display: inline-flex;
}

.author-box,
.comments,
.post-nav {
    width: min(860px, 100%);
    margin: 24px auto 0;
}

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    border-radius: var(--radius-xl);
}

.author-box__avatar {
    flex-shrink: 0;
}

.author-box__avatar img,
.author-box__avatar span {
    display: grid;
    place-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hover);
}

.author-box__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.author-box__eyebrow {
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.author-box__name {
    font-size: 1.35rem;
}

.author-box__bio {
    color: var(--text-2);
}

.author-box__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.comments {
    padding: 32px;
    border-radius: var(--radius-xl);
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav:empty {
    display: none;
}

.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    transition: transform .3s var(--ease), border-color .3s var(--ease);
}

.post-nav__link:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--card-glow, var(--accent)) 45%, transparent);
}

.post-nav__link--next {
    grid-column: 2;
    text-align: right;
}

.post-nav__dir {
    color: var(--text-3);
    font-size: 13px;
    font-weight: 600;
}

.post-nav__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

/* 17. Footer -------------------------------------------------------------- */

.site-footer {
    width: min(var(--header-width), calc(100% - 2 * var(--gutter)));
    margin: var(--section-gap) auto 24px;
}

.site-footer__inner {
    padding: 44px 48px 24px;
    border-radius: var(--radius-xl);
}

.site-footer__cols {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.site-footer__desc {
    max-width: 46ch;
    color: var(--text-2);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-left: -10px;
}

.social-links .icon {
    width: 18px;
    height: 18px;
}

.social-links__fallback {
    font-size: 12px;
    font-weight: 700;
}

.site-footer__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.site-footer__nav .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 6px 32px;
}

.site-footer__nav .nav a {
    color: var(--text-2);
    font-size: 15px;
    transition: color .2s var(--ease);
}

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

.site-footer__bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 13px;
    text-align: center;
}

.site-footer__bottom a {
    color: var(--text-2);
}

.site-footer__bottom a:hover {
    color: var(--text);
}

/* 18. Lightbox, error page ------------------------------------------------ */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(5, 6, 10, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fade-in .2s var(--ease);
    cursor: zoom-out;
}

.lightbox[hidden] {
    display: none;
}

.lightbox__img {
    max-width: min(1600px, 94vw);
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8);
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
}

@keyframes fade-in {
    from { opacity: 0; }
}

.error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 720px;
    margin: 40px auto 0;
    padding: 72px 32px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.error__code {
    background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--accent) 70%, var(--text)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: var(--font-heading);
    font-size: clamp(5rem, 16vw, 9rem);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}

.error__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.error__text {
    color: var(--text-2);
}

.error .button {
    margin-top: 12px;
}

/* 19. Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .picks__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .site-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .site-header__bar {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .hero .tile {
        min-height: 280px;
    }

    .hero .tile--large {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 440px;
    }

    .hero:has(.tile:nth-child(2):last-child) .tile:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .subscribe {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px;
    }

    .site-footer__cols {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 700px) {
    :root {
        --gutter: 12px;
        --section-gap: 48px;
    }

    html {
        scroll-padding-top: 96px;
    }

    .site-header {
        top: 10px;
        margin-top: 10px;
    }

    .site-header__bar {
        min-height: 58px;
        padding: 8px 8px 8px 20px;
    }

    .site-members {
        display: none;
    }

    .site-main {
        padding-top: 24px;
    }

    .ambient__blob {
        width: 120vw;
        height: 120vw;
        min-width: 0;
        min-height: 0;
        filter: blur(36px);
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero .tile,
    .hero .tile--large {
        grid-column: auto;
        min-height: 260px;
    }

    .hero .tile--large {
        min-height: 420px;
    }

    .tile__body,
    .tile--large .tile__body {
        padding: 22px;
    }

    .picks {
        padding: 14px;
    }

    .picks__panel,
    .feed {
        grid-template-columns: 1fr;
    }

    .feed {
        gap: 16px;
    }

    .pick {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 8px;
    }

    .card__body {
        padding: 18px 18px 20px;
    }

    .subscribe {
        padding: 28px 22px;
    }

    .subscribe__form {
        border-radius: var(--radius-lg);
    }

    .subscribe__form .button {
        width: 100%;
    }

    .subscribe__input {
        flex-basis: 100%;
    }

    .archive-header {
        padding: 40px 20px;
    }

    .article__shell {
        padding: 40px 0 36px;
        border-radius: var(--radius-lg);
    }

    .article__header {
        padding: 0 20px;
        gap: 16px;
    }

    .article__image {
        margin: 32px 12px 0;
    }

    .article__image img {
        border-radius: var(--radius);
    }

    .gh-content {
        grid-template-columns:
            [full-start] 20px
            [wide-start] 0
            [main-start] minmax(0, 1fr)
            [main-end] 0
            [wide-end] 20px
            [full-end];
        margin-top: 32px;
        font-size: 1.0625rem;
    }

    .toc,
    .share {
        width: calc(100% - 40px);
    }

    .toc {
        margin-top: 32px;
    }

    .gh-content h2 { font-size: 1.5rem; }
    .gh-content h3 { font-size: 1.25rem; }

    .gh-content .kg-bookmark-container {
        flex-direction: column-reverse;
    }

    .gh-content .kg-bookmark-thumbnail {
        flex-basis: auto;
        min-height: 160px;
    }

    .author-box {
        flex-direction: column;
        padding: 24px 22px;
    }

    .comments {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav__link--next {
        grid-column: auto;
    }

    .site-footer__inner {
        padding: 32px 24px 20px;
        border-radius: var(--radius-lg);
    }
}

/* 20. Motion and fallbacks ------------------------------------------------ */

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

    @view-transition {
        navigation: none;
    }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .glass,
    .site-header__bar {
        background: var(--bg-solid);
    }
}
