/* Trickett Blog — Ghost theme
   Built from the Trickett Blog Ghost Design System.
   One brand color, Blue Slate, over three neutrals: Silver, Alabaster and
   White Smoke. Every page opens on a Blue Slate header and closes on a Blue
   Slate footer; the home page header grows into a full masthead. */

/* 1. Tokens
   ------------------------------------------------------------------ */
:root {
    /* Brand */
    --tb-blue: #536878;         /* Blue Slate */
    --tb-blue-hover: #3F5260;

    /* Neutrals */
    --tb-smoke: #F5F5F5;        /* White Smoke: page ground */
    --tb-alabaster: #E5E4E2;    /* Alabaster: soft fills, photo frames, soft text on blue */
    --tb-silver: #C0C0C0;       /* Silver: hairlines, field borders, separators */
    --tb-white: #FFFFFF;

    /* Inks */
    --tb-ink: #22272A;          /* headings */
    --tb-body: #2E3438;         /* post text */
    --tb-soft: #3A4146;         /* excerpts */
    --tb-label: #4A5257;        /* kickers */
    --tb-muted: #5F676B;        /* meta, captions */

    /* Type: Cormorant Garamond over Lora. Ghost's custom font settings win when set. */
    --font-heading: var(--gh-font-heading, 'Cormorant Garamond', Georgia, serif);
    --font-body: var(--gh-font-body, Lora, Georgia, serif);

    /* Spacing: a 4.6px step */
    --sp-1: 4.6px;
    --sp-2: 9.2px;
    --sp-3: 13.8px;
    --sp-4: 18.4px;
    --sp-5: 23px;
    --sp-6: 27.6px;
    --sp-8: 36.8px;
    --sp-10: 46px;
    --sp-12: 55px;
    --sp-14: 64px;
    --sp-20: 92px;

    /* Layout */
    --container: 1180px;
    --measure: 720px;
    --wide: 1040px;
    --gutter: var(--sp-8);
    --radius: 4px;
    --shadow-float: 0 2px 10px rgba(34, 39, 42, 0.12);
    --shadow-modal: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@media (max-width: 700px) {
    :root {
        --gutter: var(--sp-4);
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--tb-smoke);
    font-family: var(--font-body);
    color: var(--tb-ink);
    -webkit-font-smoothing: antialiased;
}

.site-main {
    flex: 1 0 auto;
}

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

a {
    color: var(--tb-blue);
    text-decoration: none;
}

a:hover {
    color: var(--tb-blue-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--tb-blue);
    outline-offset: 2px;
}

/* On Blue Slate the focus ring switches to white so it stays visible */
.on-color a:focus-visible,
.on-color button:focus-visible,
.on-color input:focus-visible {
    outline-color: var(--tb-white);
}

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

.skip-link {
    position: absolute;
    top: var(--sp-2);
    left: var(--sp-2);
    z-index: 100;
    padding: 12px 18px;
    border-radius: var(--radius);
    background: var(--tb-white);
    color: var(--tb-ink);
    font: 400 14px/1 var(--font-body);
    transform: translateY(-200%);
}

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

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: content-box;
}

.measure {
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: var(--gutter);
    box-sizing: content-box;
}

/* 3. Shared pieces
   ------------------------------------------------------------------ */
.kicker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-blue);
}

.kicker:not(:has(*)) {
    display: none;
}

.kicker a {
    color: var(--tb-blue);
}

.kicker > * + *::before {
    content: "/";
    content: "/" / "";
    margin-right: var(--sp-2);
    color: var(--tb-silver);
}

.section-label {
    margin: 0;
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-label);
}

.section-head {
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--tb-silver);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    align-items: center;
    font: 400 13px/1 var(--font-body);
    color: var(--tb-muted);
}

.meta-author {
    color: var(--tb-ink);
}

time {
    font-feature-settings: 'tnum';
}

.avatar {
    display: block;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: var(--tb-silver);
}

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

.avatar-28 { width: 28px; height: 28px; }
.avatar-40 { width: 40px; height: 40px; }
.avatar-56 { width: 56px; height: 56px; }
.avatar-64 { width: 64px; height: 64px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 400 14px/1 var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    color: var(--tb-white);
    background: var(--tb-blue);
    border-color: var(--tb-blue);
}

.btn-primary:hover {
    color: var(--tb-white);
    background: var(--tb-blue-hover);
    border-color: var(--tb-blue-hover);
}

/* Inverse: inside the header and Blue Slate boxes */
.btn-inverse {
    color: var(--tb-blue);
    background: var(--tb-white);
    border-color: var(--tb-white);
}

.btn-inverse:hover {
    color: var(--tb-blue);
    background: var(--tb-alabaster);
    border-color: var(--tb-alabaster);
}

.load-more {
    display: flex;
    justify-content: center;
    padding-top: var(--sp-8);
}

.load-more [aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

.empty-state {
    margin: 0;
    padding: var(--sp-6) 0;
    font: 400 16px/1.65 var(--font-body);
    color: var(--tb-soft);
}

/* 4. Header
   ------------------------------------------------------------------ */
.site-header {
    background: var(--tb-blue);
    color: var(--tb-white);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding-block: var(--sp-5);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    color: var(--tb-white);
    text-decoration: none;
}

.brand:hover {
    color: var(--tb-white);
    text-decoration: none;
}

.brand-kicker {
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-alabaster);
}

.brand-name {
    font: 600 34px/1 var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--tb-white);
}

.brand-logo {
    max-height: 44px;
    width: auto;
}

/* Desktop: nav sits centred between the brand and the account links */
.site-menu {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-6);
}

.site-menu .site-nav {
    margin-inline: auto;
}

.menu-toggle {
    display: none;
}

/* Navigation: links sit in an outlined pill group; the current page is a darker inset pill */
.site-nav .nav {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 4px;
    list-style: none;
    border: 1px solid rgba(245, 245, 245, 0.22);
    border-radius: 999px;
    font: 400 15px/1 var(--font-body);
}

.site-nav a {
    display: block;
    padding: 9px 18px;
    border-radius: 999px;
    color: var(--tb-white);
    transition: background-color 0.15s ease;
}

.site-nav a:hover {
    color: var(--tb-white);
    background: rgba(245, 245, 245, 0.1);
    text-decoration: none;
}

.site-nav .nav-current a,
.site-nav .nav-current a:hover {
    background: var(--tb-blue-hover);
    font-weight: 500;
}

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

.header-actions a {
    padding: 9px 14px;
    border-radius: 999px;
    font: 400 15px/1 var(--font-body);
    color: var(--tb-white);
    transition: background-color 0.15s ease;
}

.header-actions a:hover {
    color: var(--tb-white);
    background: rgba(245, 245, 245, 0.1);
    text-decoration: none;
}

/* Subscribe: a solid white pill, the one call to action in the header */
.header-actions .header-subscribe {
    padding: 10px 20px;
    background: var(--tb-white);
    color: var(--tb-blue);
    font-weight: 500;
}

.header-actions .header-subscribe:hover {
    background: var(--tb-alabaster);
    color: var(--tb-blue-hover);
}

/* 5. Home
   ------------------------------------------------------------------ */
/* Home masthead: the header grows into a Blue Slate block with the site's heading */
.masthead {
    padding-top: var(--sp-14);
    padding-bottom: calc(var(--sp-20) + var(--sp-5));
}

.masthead-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

/* On the home page the wordmark scales up so it balances the masthead heading */
.home-template .site-header .brand-kicker {
    font-size: 13px;
}

.home-template .site-header .brand-name {
    font-size: 46px;
}

.masthead-title {
    max-width: 760px;
    margin: 0;
    font: 600 56px/1.06 var(--font-heading);
    letter-spacing: -0.015em;
    color: var(--tb-white);
    text-wrap: balance;
}

.masthead-text {
    max-width: 600px;
    margin: 0;
    font: 400 19px/1.6 var(--font-body);
    color: var(--tb-smoke);
    text-wrap: pretty;
}

/* Featured post, pushed down below the masthead */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: var(--sp-10);
    align-items: center;
    padding-top: var(--sp-14);
    padding-bottom: var(--sp-8);
}

.hero-no-image {
    grid-template-columns: minmax(0, 1fr);
}

.hero-no-image .hero-body {
    max-width: 760px;
}

.hero-media {
    display: block;
    height: 400px;
    overflow: hidden;
    border: 1px solid var(--tb-alabaster);
    border-radius: var(--radius);
    background: var(--tb-alabaster);
}

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

.hero-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title {
    margin: 0;
    font: 600 48px/1.08 var(--font-heading);
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.hero-title a,
.hero-title a:hover {
    color: var(--tb-ink);
}

.hero-excerpt {
    margin: 0;
    font: 400 17px/1.65 var(--font-body);
    color: var(--tb-soft);
    text-wrap: pretty;
}

.post-list {
    padding-bottom: var(--sp-10);
}

.post-item {
    display: flex;
    gap: var(--sp-8);
    align-items: flex-start;
    padding: var(--sp-6) 0;
    border-bottom: 1px solid var(--tb-silver);
}

.post-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-item-title {
    margin: 0;
    font: 600 30px/1.15 var(--font-heading);
    letter-spacing: -0.01em;
    text-wrap: pretty;
}

.post-item-title a,
.post-item-title a:hover {
    color: var(--tb-ink);
}

.post-item-excerpt {
    margin: 0;
    max-width: 640px;
    font: 400 16px/1.65 var(--font-body);
    color: var(--tb-soft);
}

.post-item-media {
    flex: none;
    width: 260px;
    height: 170px;
    overflow: hidden;
    border: 1px solid var(--tb-alabaster);
    border-radius: var(--radius);
    background: var(--tb-alabaster);
}

.post-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 6. Subscribe box
   ------------------------------------------------------------------ */
.subscribe-section {
    padding-bottom: var(--sp-14);
}

.subscribe {
    border-radius: var(--radius);
    background: var(--tb-blue);
    color: var(--tb-white);
}

.subscribe-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-10);
    align-items: center;
    padding: var(--sp-8) var(--sp-10);
}

.subscribe-copy {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.subscribe-title {
    margin: 0;
    font: 600 30px/1.15 var(--font-heading);
    color: var(--tb-white);
}

.subscribe-text {
    margin: 0;
    font: 400 15px/1.6 var(--font-body);
    color: var(--tb-smoke);
}

.subscribe-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.subscribe-center .subscribe-title {
    font-size: 28px;
}

.subscribe-center .subscribe-form {
    width: 100%;
    max-width: 440px;
}

.subscribe-form .fields {
    display: flex;
    gap: var(--sp-2);
}

.subscribe-form .field {
    flex: 1;
    min-width: 0;
    display: flex;
}

.input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid var(--tb-silver);
    border-radius: var(--radius);
    background: var(--tb-white);
    color: var(--tb-ink);
    font: 400 15px/1 var(--font-body);
}

.input::placeholder {
    color: var(--tb-muted);
}

.subscribe-form .btn {
    padding: 0 22px;
}

.form-message {
    display: none;
    margin: var(--sp-2) 0 0;
    font: 400 14px/1.5 var(--font-body);
    color: var(--tb-white);
}

.subscribe-form.loading .btn {
    opacity: 0.7;
    cursor: progress;
}

.subscribe-form.success .fields {
    display: none;
}

.subscribe-form.success .form-success,
.subscribe-form.error .form-error {
    display: block;
}

/* 7. Post and page
   ------------------------------------------------------------------ */
.article-header {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    padding-top: var(--sp-14);
    padding-bottom: var(--sp-8);
}

.article-title {
    margin: 0;
    font: 600 56px/1.05 var(--font-heading);
    letter-spacing: -0.015em;
    text-wrap: pretty;
}

.standfirst {
    margin: 0;
    font: italic 400 21px/1.5 var(--font-body);
    color: var(--tb-soft);
    text-wrap: pretty;
}

.byline {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: var(--sp-2);
    font: 400 13px/1 var(--font-body);
    color: var(--tb-muted);
}

.byline-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.byline-names {
    font-size: 14px;
}

.byline-names a {
    color: var(--tb-ink);
}

.byline-meta {
    font-feature-settings: 'tnum';
}

/* Feature image sits in the same 720px column as the text */
.article-image {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: var(--measure);
    margin: 0 auto;
    padding-inline: var(--gutter);
    box-sizing: content-box;
}

.article-image img {
    width: 100%;
    max-height: 640px;
    object-fit: cover;
    border: 1px solid var(--tb-alabaster);
    border-radius: var(--radius);
}

.article-image figcaption,
.gh-content figcaption {
    font: italic 400 13px/1.5 var(--font-body);
    color: var(--tb-muted);
    text-align: center;
}

/* Post content */
.gh-content {
    padding-block: var(--sp-10);
    font: 400 18px/1.75 var(--font-body);
    color: var(--tb-body);
}

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

.gh-content > * + * {
    margin-top: var(--sp-5);
}

.gh-content p {
    text-wrap: pretty;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    color: var(--tb-ink);
    font-family: var(--font-heading);
    font-weight: 600;
}

.gh-content h2 {
    font-size: 32px;
    line-height: 1.15;
}

.gh-content h3 {
    font-size: 26px;
    line-height: 1.2;
}

.gh-content h4 {
    font-size: 21px;
    line-height: 1.3;
}

.gh-content > * + h2,
.gh-content > * + h3 {
    margin-top: calc(var(--sp-5) + var(--sp-4));
}

.gh-content a {
    color: var(--tb-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gh-content a:hover {
    color: var(--tb-blue-hover);
}

.gh-content strong {
    font-weight: 500;
    color: var(--tb-ink);
}

.gh-content blockquote:not(.kg-blockquote-alt) {
    margin-block: calc(var(--sp-5) + var(--sp-2));
    padding: 0 0 0 var(--sp-5);
    border-left: 1px solid var(--tb-blue);
    font: italic 400 24px/1.45 var(--font-heading);
    color: var(--tb-ink);
}

.gh-content blockquote.kg-blockquote-alt {
    margin-block: calc(var(--sp-5) + var(--sp-2));
    padding: 0 var(--sp-6);
    border: 0;
    text-align: center;
    font: italic 400 28px/1.4 var(--font-heading);
    color: var(--tb-ink);
}

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

.gh-content li + li {
    margin-top: var(--sp-2);
}

.gh-content hr {
    height: 1px;
    margin-block: var(--sp-10);
    border: 0;
    background: var(--tb-silver);
}

.gh-content figure {
    margin-inline: 0;
}

.gh-content img {
    border-radius: var(--radius);
    margin-inline: auto;
}

.gh-content figcaption {
    margin-top: 10px;
}

.gh-content code {
    padding: 0.1em 0.35em;
    border-radius: 3px;
    background: var(--tb-alabaster);
    font-size: 0.85em;
}

.gh-content pre {
    overflow-x: auto;
    padding: var(--sp-5);
    border-radius: var(--radius);
    background: var(--tb-ink);
    color: var(--tb-smoke);
    font-size: 15px;
    line-height: 1.6;
}

.gh-content pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.gh-content th,
.gh-content td {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--tb-silver);
    text-align: left;
}

/* Koenig card widths: wide and full-width cards stay inside the text column
   so every post reads as one uniform column */
.gh-content .kg-width-wide,
.gh-content .kg-width-full {
    width: 100%;
    max-width: 100%;
}

/* Members gate: opening paragraph, fade, members box */
.gh-content .gate {
    position: relative;
    margin-top: var(--sp-6);
}

.gate-fade {
    position: absolute;
    left: 0;
    right: 0;
    top: -90px;
    height: 90px;
    background: linear-gradient(rgba(245, 245, 245, 0), var(--tb-smoke));
    pointer-events: none;
}

.gate-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding: var(--sp-10) var(--sp-8);
    border-radius: var(--radius);
    background: var(--tb-blue);
    text-align: center;
}

.gh-content .gate-box > * {
    margin: 0;
}

.gate-kicker {
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-alabaster);
}

.gh-content .gate-title {
    max-width: 480px;
    font: 600 32px/1.15 var(--font-heading);
    color: var(--tb-white);
}

.gate-text {
    max-width: 440px;
    font: 400 15px/1.6 var(--font-body);
    color: var(--tb-smoke);
}

.gh-content .gate-box .btn {
    margin-top: 6px;
    padding: 13px 28px;
    color: var(--tb-blue);
    text-decoration: none;
}

.gate-signin {
    font: 400 14px/1 var(--font-body);
    color: var(--tb-smoke);
}

.gh-content .gate-signin a {
    color: var(--tb-white);
}

/* Post footer: tags, author, subscribe */
.article-footer {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    padding-bottom: var(--sp-10);
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.pill {
    padding: 8px 14px;
    border: 1px solid var(--tb-blue);
    border-radius: 999px;
    font: 400 12px/1 var(--font-body);
    color: var(--tb-blue);
}

.pill:hover {
    color: var(--tb-white);
    background: var(--tb-blue);
    text-decoration: none;
}

.author-cards {
    border-top: 1px solid var(--tb-silver);
    border-bottom: 1px solid var(--tb-silver);
}

/* Comments: full thread for members, one quiet line for everyone else */
.comments-gate {
    display: flex;
    gap: var(--sp-2);
    align-items: center;
    margin: 0;
    font: 400 14px/1.5 var(--font-body);
    color: var(--tb-muted);
}

.comments-gate svg {
    flex: none;
    color: var(--tb-silver);
}

.author-card {
    display: flex;
    gap: var(--sp-4);
    align-items: flex-start;
    padding: var(--sp-5) 0;
}

.author-card + .author-card {
    border-top: 1px solid var(--tb-silver);
}

.author-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.author-card-name {
    font: 600 22px/1.2 var(--font-heading);
    color: var(--tb-ink);
}

.author-card-name:hover {
    color: var(--tb-ink);
}

.author-card-bio {
    margin: 0;
    font: 400 15px/1.6 var(--font-body);
    color: var(--tb-soft);
}

.author-card-link {
    margin-top: 4px;
    font: 400 13px/1 var(--font-body);
}

/* Read more */
.read-more {
    border-top: 1px solid var(--tb-silver);
    background: var(--tb-alabaster);
}

.read-more-inner {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-12);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-6);
}

.card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--tb-ink);
    text-decoration: none;
}

.card:hover {
    color: var(--tb-ink);
    text-decoration: none;
}

.card:hover .card-title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-media {
    display: block;
    height: 180px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--tb-smoke);
}

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

.card-compact .card-media {
    height: 160px;
    border: 1px solid var(--tb-alabaster);
    background: var(--tb-alabaster);
}

.card-kicker {
    margin-top: 4px;
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-blue);
}

.card-title {
    font: 600 22px/1.2 var(--font-heading);
}

.card-meta {
    font: 400 13px/1 var(--font-body);
    color: var(--tb-muted);
}

/* About page: author cards */
.staff {
    padding-bottom: var(--sp-14);
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-6);
}

.staff-card {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: var(--sp-5);
    border: 1px solid var(--tb-silver);
    border-radius: var(--radius);
    color: var(--tb-ink);
    text-decoration: none;
}

.staff-card:hover {
    border-color: var(--tb-blue);
    color: var(--tb-ink);
    text-decoration: none;
}

.staff-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.staff-name {
    font: 600 22px/1.1 var(--font-heading);
}

.staff-count {
    font: 400 13px/1 var(--font-body);
    color: var(--tb-blue);
}

/* 8. Tag and author archives
   ------------------------------------------------------------------ */
.archive-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: var(--sp-14);
    padding-bottom: var(--sp-8);
}

.display-title {
    margin: 0;
    font: 600 64px/1 var(--font-heading);
    letter-spacing: -0.015em;
}

.archive-description {
    margin: 0;
    max-width: 600px;
    font: 400 17px/1.65 var(--font-body);
    color: var(--tb-soft);
}

.archive-list {
    padding-bottom: var(--sp-14);
}

.author-band + .archive-list {
    padding-top: var(--sp-10);
}

.rule {
    height: 1px;
    background: var(--tb-silver);
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-6);
    font: 400 14px/1 var(--font-body);
    color: var(--tb-muted);
}

.pagination .is-disabled {
    color: var(--tb-silver);
}

.page-number {
    font-feature-settings: 'tnum';
}

/* Author band: continues the Blue Slate header, with a faint line between them */
.author-band {
    border-top: 1px solid rgba(245, 245, 245, 0.18);
    background: var(--tb-blue);
    color: var(--tb-smoke);
}

.author-band-inner {
    display: flex;
    gap: var(--sp-10);
    align-items: center;
    padding-block: var(--sp-12);
}

.author-portrait {
    flex: none;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--tb-silver);
}

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

.author-band-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 620px;
}

.author-band .section-label {
    color: var(--tb-alabaster);
}

.author-name {
    margin: 0;
    font: 600 56px/1 var(--font-heading);
    letter-spacing: -0.015em;
    color: var(--tb-white);
}

.author-bio {
    margin: 0;
    font: 400 17px/1.65 var(--font-body);
    color: var(--tb-smoke);
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-5);
    padding-top: 4px;
    font: 400 14px/1 var(--font-body);
    color: var(--tb-alabaster);
}

.author-links a {
    color: var(--tb-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 9. 404
   ------------------------------------------------------------------ */
.error-hero {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    align-items: center;
    padding-top: var(--sp-20);
    padding-bottom: var(--sp-14);
    text-align: center;
}

.error-code {
    margin: 0;
    font: 400 120px/1 var(--font-heading);
    font-feature-settings: 'tnum';
    color: var(--tb-blue);
}

.error-title {
    margin: 0;
    font: 600 36px/1.15 var(--font-heading);
}

.error-text {
    margin: 0;
    font: 400 16px/1.65 var(--font-body);
    color: var(--tb-soft);
}

.error-hero .btn {
    margin-top: var(--sp-2);
}

.recent-posts {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    padding-bottom: var(--sp-14);
}

/* 10. Footer
   ------------------------------------------------------------------ */
.site-footer {
    background: var(--tb-blue);
    color: var(--tb-smoke);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-10);
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-8);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font: 400 14px/1 var(--font-body);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-heading {
    margin: 0 0 4px;
    font: 400 11px/1 var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tb-alabaster);
}

.footer-col a,
.footer-col a:hover {
    color: var(--tb-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: var(--sp-4) 0 var(--sp-5);
    border-top: 1px solid rgba(245, 245, 245, 0.25);
    font: 400 12px/1 var(--font-body);
    color: var(--tb-alabaster);
}

/* Floating Portal trigger, bottom-right */
.floating-subscribe {
    position: fixed;
    right: var(--sp-6);
    bottom: var(--sp-6);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--tb-blue);
    border-radius: 999px;
    background: var(--tb-blue);
    box-shadow: var(--shadow-float);
    font: 400 14px/1 var(--font-body);
    color: var(--tb-white);
}

.floating-subscribe:hover {
    background: var(--tb-blue-hover);
    border-color: var(--tb-blue-hover);
    color: var(--tb-white);
    text-decoration: none;
}

/* 11. Responsive
   ------------------------------------------------------------------ */
@media (max-width: 900px) {
    /* Header: brand and a menu button; the menu opens as a panel inside the Blue Slate header */
    .site-header-inner {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .js .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-right: -10px;
        padding: 0;
        border: 0;
        border-radius: var(--radius);
        background: none;
        color: var(--tb-white);
        cursor: pointer;
    }

    .menu-toggle .icon-close,
    .site-header.is-open .menu-toggle .icon-open {
        display: none;
    }

    .site-header.is-open .menu-toggle .icon-close {
        display: block;
    }

    .site-menu {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: var(--sp-4);
    }

    .js .site-menu {
        display: none;
    }

    .js .site-header.is-open .site-menu {
        display: flex;
    }

    .site-menu .site-nav {
        margin-inline: 0;
    }

    /* Menu panel: rounded rows, text aligned with the logo */
    .site-nav .nav {
        flex-direction: column;
        gap: 2px;
        margin-inline: -14px;
        padding: 0;
        border: 0;
        border-radius: 0;
        font-size: 16px;
    }

    .site-nav a {
        padding: 13px 14px;
        border-radius: 10px;
    }

    .header-actions {
        gap: var(--sp-2);
        margin-top: var(--sp-3);
        padding-top: var(--sp-4);
        border-top: 1px solid rgba(245, 245, 245, 0.18);
    }

    .header-actions a {
        font-size: 16px;
    }

    .header-actions a:first-child {
        margin-left: -14px;
    }

    .masthead {
        padding-top: var(--sp-10);
        padding-bottom: var(--sp-14);
    }

    .masthead-title {
        font-size: 46px;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-6);
        padding-top: var(--sp-10);
    }

    .hero-media {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .subscribe-wide {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--sp-5);
        padding: var(--sp-8) var(--sp-6);
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .author-band-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-6);
    }

    .author-portrait {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 700px) {
    .brand-name {
        font-size: 30px;
    }

    .masthead {
        padding-top: var(--sp-8);
        padding-bottom: var(--sp-12);
    }

    .masthead-title {
        font-size: 36px;
    }

    .home-template .site-header .brand-kicker {
        font-size: 12px;
    }

    .home-template .site-header .brand-name {
        font-size: 38px;
    }

    .masthead-text {
        font-size: 17px;
    }

    .hero-title {
        font-size: 38px;
    }

    .post-item {
        flex-direction: column;
        gap: var(--sp-4);
    }

    .post-item-media {
        order: -1;
        width: 100%;
        height: auto;
        aspect-ratio: 26 / 17;
    }

    .post-item-title {
        font-size: 26px;
    }

    .article-header {
        padding-top: var(--sp-10);
    }

    .article-title,
    .author-name {
        font-size: 40px;
    }

    .display-title {
        font-size: 48px;
    }

    .standfirst {
        font-size: 19px;
    }

    .gh-content {
        font-size: 17px;
    }

    .subscribe-form .fields {
        flex-direction: column;
    }

    .subscribe-form .btn {
        padding: 12px 22px;
    }

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

    .error-code {
        font-size: 88px;
    }

    .floating-subscribe {
        right: var(--sp-4);
        bottom: var(--sp-4);
    }
}
