/* AI by AI — editorial Ghost theme */

:root {
    --ink: #f7f9ff;
    --ink-muted: #9ca9c4;
    --ink-faint: #6f7c97;
    --night: #020817;
    --night-raised: #071224;
    --night-soft: #0b1930;
    --line: rgba(135, 164, 219, 0.18);
    --line-strong: rgba(74, 144, 255, 0.34);
    --blue: var(--site-accent, #168cff);
    --blue-bright: #18b7ff;
    --violet: #7b6cff;
    --cyan: #19e3e6;
    --gh-font-heading: Inter, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --gh-font-body: Inter, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-sans: var(--gh-font-body);
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --shell: min(1280px, calc(100vw - 64px));
    --article: min(760px, calc(100vw - 48px));
    --radius: 8px;
    --ease: 180ms ease;
}

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

html {
    background: var(--night);
    color-scheme: dark;
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 0, rgba(21, 92, 224, 0.11), transparent 27rem),
        var(--night);
    font: 400 1.6rem/1.65 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    pointer-events: none;
}

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--gh-font-heading);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    color: #fff;
    background: rgba(34, 122, 255, 0.65);
}

.site-shell {
    width: var(--shell);
    margin-inline: auto;
}

.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;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: var(--night);
    background: var(--ink);
    border-radius: 4px;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow,
.story-kicker,
.story-meta,
.pagination-status {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow,
.story-kicker a,
.live-dot {
    color: var(--blue-bright);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 22px;
    color: #fff;
    background: linear-gradient(110deg, #087cf0, #315bff 60%, #6f56e8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(15, 93, 255, 0.19);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.button:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 14px 38px rgba(15, 93, 255, 0.3);
    transform: translateY(-2px);
}

.button-small {
    min-height: 38px;
    padding-inline: 17px;
    font-size: 1.2rem;
}

.button-secondary {
    background: rgba(10, 26, 51, 0.8);
    border-color: var(--line-strong);
    box-shadow: none;
}

/* Header */

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 8, 23, 0.88);
    backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-lockup img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid rgba(73, 127, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 0 22px rgba(38, 114, 255, 0.2);
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong,
.footer-brand .brand-lockup span {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
    width: 100%;
}

.nav-list,
.footer-links .nav-list {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-list a,
.text-link {
    position: relative;
    color: #b5bfd3;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color var(--ease);
}

.nav-list a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: var(--blue-bright);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ease);
}

.nav-list a:hover,
.nav-current a,
.text-link:hover {
    color: #fff;
}

.nav-list a:hover::after,
.nav-current a::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .gh-search-icon {
    color: var(--ink-muted);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0 11px;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
}

.nav-toggle > span:not(.visually-hidden) {
    display: block;
    width: 100%;
    height: 1px;
    margin: 5px 0;
    background: var(--ink);
    transition: transform var(--ease);
}

.nav-toggle[aria-expanded="true"] > span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
}

/* Home */

.masthead {
    position: relative;
    width: min(1080px, calc(100vw - 64px));
    padding-top: 22px;
}

.masthead::after {
    position: absolute;
    right: 6%;
    bottom: -6%;
    left: 42%;
    z-index: -1;
    height: 36%;
    background: #1259ff;
    filter: blur(80px);
    opacity: 0.18;
    content: "";
}

.masthead img {
    width: 100%;
    height: clamp(190px, 22vw, 290px);
    object-fit: cover;
    border: 1px solid rgba(89, 143, 255, 0.22);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.homepage-intro {
    display: grid;
    grid-template-columns: 0.45fr 1.65fr 1fr;
    gap: 30px;
    align-items: start;
    padding-block: 78px 90px;
    border-bottom: 1px solid var(--line);
}

.homepage-intro .eyebrow {
    margin: 10px 0 0;
}

.homepage-intro h2 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(3.4rem, 5vw, 6.8rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.homepage-intro > p:last-child {
    max-width: 400px;
    margin: 8px 0 0;
    color: var(--ink-muted);
    font-size: 1.7rem;
    line-height: 1.6;
}

.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 12px currentColor;
}

.featured-wrap,
.latest-section,
.related-stories {
    padding-block: 72px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.section-heading > * {
    margin: 0;
}

.section-heading > span {
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-heading-large {
    margin-bottom: 34px;
}

.section-heading-large h2 {
    margin: 5px 0 0;
    font-size: clamp(2.8rem, 4vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.feature-story {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 54px;
    align-items: stretch;
    padding-top: 34px;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 8px;
}

.story-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--ink-faint);
}

.story-kicker a:hover {
    color: var(--cyan);
}

.feature-copy h1 {
    max-width: 720px;
    margin: 25px 0 22px;
    font-size: clamp(3.7rem, 5vw, 6.5rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.feature-copy h1 a,
.post-card h2 a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 320ms ease;
}

.feature-copy h1 a:hover,
.post-card h2 a:hover {
    background-size: 100% 1px;
}

.feature-copy > p {
    max-width: 570px;
    margin: 0 0 26px;
    color: var(--ink-muted);
    font-size: 1.8rem;
}

.story-meta {
    display: flex;
    gap: 18px;
    color: var(--ink-faint);
}

.story-meta span + span::before {
    margin-right: 18px;
    color: var(--line-strong);
    content: "/";
}

.story-cta {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    margin-top: auto;
    padding-top: 34px;
    color: var(--blue-bright);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.story-cta span,
.card-arrow span {
    transition: transform var(--ease);
}

.story-cta:hover span,
.card-arrow:hover span {
    transform: translateX(5px);
}

.feature-visual,
.post-card-image {
    position: relative;
    overflow: hidden;
    background: var(--night-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-visual {
    min-height: 480px;
}

.feature-visual > img:not(.fallback-mark),
.post-card-image > img:not(.fallback-mark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.feature-visual:hover > img:not(.fallback-mark),
.post-card:hover .post-card-image > img:not(.fallback-mark) {
    transform: scale(1.035);
}

.feature-visual-fallback,
.post-card-image-fallback {
    background:
        radial-gradient(circle at 78% 20%, rgba(92, 70, 255, 0.28), transparent 31%),
        linear-gradient(145deg, rgba(14, 77, 194, 0.35), transparent 60%),
        #020b1d;
}

.feature-visual-fallback::before,
.post-card-image-fallback::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(44, 134, 255, 0.48) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
    mask-image: linear-gradient(135deg, transparent, #000 38%, transparent 90%);
}

.fallback-mark {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 34%;
    border: 1px solid rgba(59, 122, 255, 0.34);
    border-radius: 18%;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%);
}

.signal-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
    transform: rotate(-12deg);
}

.signal-line-one {
    right: -10%;
    bottom: 20%;
    left: 3%;
}

.signal-line-two {
    top: 23%;
    right: 5%;
    left: 18%;
    opacity: 0.45;
}

.latest-section {
    padding-top: 58px;
}

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

.post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.post-card-image {
    display: block;
    aspect-ratio: 16 / 10;
    margin-bottom: 22px;
}

.post-card-image-fallback img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28%;
    height: auto;
    border: 1px solid rgba(59, 122, 255, 0.35);
    border-radius: 18%;
    transform: translate(-50%, -50%);
}

.post-card-content {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.post-card .story-kicker {
    justify-content: space-between;
    min-height: 16px;
}

.post-card .story-kicker time:only-child {
    margin-left: auto;
}

.post-card h2 {
    margin: 14px 0 12px;
    font-size: clamp(2.1rem, 2.2vw, 2.7rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.post-card-content > p {
    display: -webkit-box;
    margin: 0 0 22px;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 1.45rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-card .story-meta {
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.card-arrow {
    display: grid;
    width: 30px;
    height: 30px;
    color: var(--blue-bright);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    place-items: center;
}

.post-card.is-appended {
    animation: reveal-card 500ms both;
}

@keyframes reveal-card {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.pagination {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding-top: 58px;
}

.pagination-status {
    margin: 0;
    color: var(--ink-faint);
}

.pagination-fallback {
    display: flex;
    gap: 30px;
}

.newsletter-band,
.inline-newsletter {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line-strong);
    background:
        radial-gradient(circle at 78% 20%, rgba(92, 70, 255, 0.24), transparent 28%),
        linear-gradient(120deg, #06132a, #030b1c 64%);
}

.newsletter-band::after,
.inline-newsletter::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background-image: radial-gradient(rgba(39, 140, 255, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
    content: "";
    mask-image: linear-gradient(90deg, transparent, #000);
    pointer-events: none;
}

.newsletter-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 90px;
    align-items: end;
    padding-block: 72px;
}

.newsletter-inner h2,
.inline-newsletter h2 {
    max-width: 760px;
    margin: 12px 0 0;
    font-size: clamp(3.2rem, 5vw, 5.8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.05em;
}

.newsletter-action p {
    margin: 0 0 24px;
    color: var(--ink-muted);
}

/* Archives */

.archive-hero {
    padding-block: 100px 70px;
    border-bottom: 1px solid var(--line);
}

.archive-hero h1,
.error-page h1 {
    max-width: 980px;
    margin: 12px 0 18px;
    font-size: clamp(5rem, 9vw, 10rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.archive-hero > p:last-child,
.author-hero > div > p {
    max-width: 660px;
    margin: 0;
    color: var(--ink-muted);
    font-size: 1.8rem;
}

.author-hero {
    display: flex;
    gap: 34px;
    align-items: flex-start;
}

.author-avatar {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
}

.author-links {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    color: var(--blue-bright);
    font-size: 1.3rem;
    font-weight: 700;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 70px 0;
    text-align: center;
}

.empty-state h2 {
    max-width: 620px;
    margin: 12px auto 28px;
    font-size: 3.4rem;
    line-height: 1.1;
}

/* Article */

.article-header {
    padding-block: 104px 58px;
}

.article-shell {
    width: var(--article);
}

.article-header h1 {
    margin: 25px 0 26px;
    font-size: clamp(4.5rem, 8vw, 8.4rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.article-dek {
    max-width: 700px;
    margin: 0 0 30px;
    color: var(--ink-muted);
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    line-height: 1.55;
}

.article-feature {
    width: min(1220px, calc(100vw - 48px));
    margin: 0 auto 72px;
}

.article-feature img {
    width: 100%;
    max-height: 760px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.article-feature figcaption,
.gh-content figcaption {
    margin-top: 12px;
    color: var(--ink-faint);
    font-size: 1.25rem;
    text-align: center;
}

.article-content {
    width: var(--article);
    margin-inline: auto;
    color: #d9e0ed;
    font-size: 1.8rem;
    line-height: 1.78;
}

.gh-content > * {
    margin-top: 0;
    margin-bottom: 1.55em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: #fff;
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.gh-content h2 {
    margin-top: 1.8em;
    font-size: 3.4rem;
}

.gh-content h3 {
    margin-top: 1.7em;
    font-size: 2.6rem;
}

.gh-content h4 {
    font-size: 2rem;
}

.gh-content a {
    color: var(--blue-bright);
    text-decoration: underline;
    text-decoration-color: rgba(24, 183, 255, 0.4);
    text-underline-offset: 3px;
}

.gh-content strong {
    color: #fff;
}

.gh-content blockquote {
    padding: 4px 0 4px 28px;
    margin: 2em 0;
    color: #fff;
    border-left: 2px solid var(--blue-bright);
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.5;
}

.gh-content hr {
    height: 1px;
    margin-block: 3em;
    background: var(--line-strong);
    border: 0;
}

.gh-content code {
    padding: 0.15em 0.35em;
    color: #b9e9ff;
    background: var(--night-soft);
    border: 1px solid var(--line);
    border-radius: 3px;
    font: 0.86em/1.5 var(--font-mono);
}

.gh-content pre {
    max-width: 100%;
    padding: 22px;
    overflow-x: auto;
    background: #061126;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.gh-content pre code {
    padding: 0;
    background: transparent;
    border: 0;
}

.gh-content table {
    display: block;
    width: 100%;
    margin: 2em 0;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 1.45rem;
}

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

.gh-content th {
    color: #fff;
    background: var(--night-soft);
}

.gh-content .kg-width-wide {
    width: min(1000px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-width-full {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-image img {
    width: 100%;
    height: auto;
}

.gh-content .kg-bookmark-card a {
    text-decoration: none;
}

.gh-content .kg-bookmark-container {
    display: flex;
    overflow: hidden;
    color: var(--ink);
    background: var(--night-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.gh-content .kg-bookmark-content {
    min-width: 0;
    padding: 20px;
}

.gh-content .kg-bookmark-title {
    font-weight: 700;
}

.gh-content .kg-bookmark-description,
.gh-content .kg-bookmark-metadata {
    margin-top: 8px;
    color: var(--ink-muted);
    font-size: 1.3rem;
    line-height: 1.4;
}

.gh-content .kg-bookmark-thumbnail {
    flex: 0 0 34%;
}

.gh-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-content .kg-button-card .kg-btn {
    color: #fff;
    background: linear-gradient(110deg, #087cf0, #5f52e9);
    border-radius: 4px;
    text-decoration: none;
}

.gh-content iframe {
    max-width: 100%;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 46px 80px;
    margin-top: 50px;
    border-top: 1px solid var(--line);
}

.article-tags,
.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags a,
.article-share a,
.article-share span {
    padding: 7px 10px;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-tags a:hover,
.article-share a:hover {
    color: #fff;
    border-color: var(--line-strong);
}

.article-share span {
    color: var(--ink-faint);
    border-color: transparent;
}

.inline-newsletter .article-shell {
    position: relative;
    z-index: 1;
    padding-block: 70px;
}

.inline-newsletter h2 {
    font-size: clamp(3.2rem, 5vw, 5rem);
}

.inline-newsletter p:not(.eyebrow) {
    max-width: 560px;
    color: var(--ink-muted);
}

.related-stories {
    padding-block: 84px;
}

.comments-wrap {
    padding-bottom: 90px;
}

.page-article {
    padding-bottom: 100px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 0.8fr;
    gap: 60px;
    padding-block: 62px;
}

.footer-brand p {
    max-width: 410px;
    margin: 18px 0 0;
    color: var(--ink-muted);
    font-size: 1.4rem;
}

.footer-links .nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
}

.footer-links .nav-list a::after {
    display: none;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    color: var(--ink-faint);
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-meta a {
    color: var(--ink-muted);
}

.footer-meta a:hover {
    color: var(--blue-bright);
}

.error-page {
    min-height: 70vh;
    padding-block: 120px;
}

.error-page > p:not(.eyebrow) {
    max-width: 560px;
    margin-bottom: 30px;
    color: var(--ink-muted);
    font-size: 1.8rem;
}

/* Responsive */

@media (max-width: 1050px) {
    :root {
        --shell: min(100% - 44px, 1280px);
    }

    .header-nav {
        gap: 22px;
    }

    .nav-list {
        gap: 18px;
    }

    .homepage-intro {
        grid-template-columns: 0.35fr 1.35fr;
    }

    .homepage-intro > p:last-child {
        grid-column: 2;
    }

    .feature-story {
        gap: 34px;
    }

    .feature-visual {
        min-height: 400px;
    }

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

    .footer-grid {
        grid-template-columns: 1.3fr 1fr;
    }

    .footer-meta {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
    }
}

@media (max-width: 820px) {
    .nav-toggle {
        display: block;
    }

    .header-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 24px;
        background: rgba(2, 8, 23, 0.98);
        border-bottom: 1px solid var(--line-strong);
    }

    .header-nav.is-open {
        display: grid;
    }

    .header-nav .nav-list {
        display: grid;
        gap: 0;
    }

    .header-nav .nav-list a {
        display: block;
        padding-block: 12px;
        border-bottom: 1px solid var(--line);
        font-size: 1.6rem;
    }

    .header-nav .nav-list a::after {
        display: none;
    }

    .header-actions {
        justify-content: space-between;
        padding-top: 4px;
    }

    .feature-story {
        grid-template-columns: 1fr;
    }

    .feature-copy {
        padding-top: 0;
    }

    .feature-visual {
        order: -1;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .story-cta {
        margin-top: 10px;
    }

    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .archive-hero {
        padding-block: 76px 54px;
    }
}

@media (max-width: 640px) {
    :root {
        --shell: calc(100vw - 32px);
        --article: calc(100vw - 32px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-copy small {
        display: none;
    }

    .masthead {
        width: calc(100vw - 24px);
        padding-top: 12px;
    }

    .masthead img {
        height: 148px;
        min-height: 0;
        border-radius: 5px;
        object-position: center;
    }

    .homepage-intro {
        display: block;
        padding-block: 52px 58px;
    }

    .homepage-intro h2 {
        margin-top: 18px;
    }

    .homepage-intro > p:last-child {
        margin-top: 24px;
    }

    .featured-wrap,
    .latest-section,
    .related-stories {
        padding-block: 52px;
    }

    .feature-story {
        padding-top: 25px;
    }

    .feature-copy h1 {
        margin-block: 19px 16px;
    }

    .feature-copy > p {
        font-size: 1.6rem;
    }

    .story-meta {
        gap: 10px;
        font-size: 0.95rem;
    }

    .story-meta span + span::before {
        margin-right: 10px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .post-card h2 {
        font-size: 2.5rem;
    }

    .newsletter-band::after,
    .inline-newsletter::after {
        width: 80%;
        opacity: 0.4;
    }

    .newsletter-inner,
    .inline-newsletter .article-shell {
        padding-block: 54px;
    }

    .author-hero {
        display: block;
    }

    .author-avatar {
        width: 88px;
        height: 88px;
        margin-bottom: 24px;
    }

    .article-header {
        padding-block: 70px 42px;
    }

    .article-header h1 {
        margin-block: 18px 22px;
    }

    .article-feature {
        width: 100%;
        margin-bottom: 48px;
    }

    .article-feature img {
        border-inline: 0;
        border-radius: 0;
    }

    .article-content {
        font-size: 1.7rem;
    }

    .gh-content h2 {
        font-size: 2.8rem;
    }

    .gh-content blockquote {
        padding-left: 20px;
        font-size: 1.95rem;
    }

    .gh-content .kg-width-wide {
        width: calc(100vw - 32px);
    }

    .gh-content .kg-bookmark-thumbnail {
        display: none;
    }

    .article-footer {
        display: grid;
        gap: 24px;
        padding-bottom: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-block: 48px;
    }

    .footer-meta {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
