/* =============================================================
   Larkwin Ghost Theme — screen.css
   Mirrors the Larkwin website design system exactly.
   ============================================================= */

/* =============================================================
   Design tokens
   ============================================================= */
:root {
    /* Colours */
    --color-deep-teal:  #1A5C6B;
    --color-warm-slate: #3D4F5F;
    --color-amber-dawn: #E8943A;
    --color-soft-cloud: #F5F2ED;
    --color-midnight:   #1C2530;
    --color-fern:       #3A8A6E;
    --color-pale-teal:  #D4E8EA;
    --color-error:      #E05252;
    --color-white:      #FFFFFF;

    /* Typography */
    --font-heading: 'General Sans', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Spacing (8px base) */
    --space-1:  0.5rem;
    --space-2:  1rem;
    --space-3:  1.5rem;
    --space-4:  2rem;
    --space-6:  3rem;
    --space-8:  4rem;
    --space-12: 6rem;

    /* Layout */
    --nav-height:    4.5rem;
    --content-width: 720px;
    --wide-width:    1200px;

    /* Transitions */
    --transition-base: 0.3s ease;
    --transition-fast: 0.15s ease;
}


/* =============================================================
   Reset & base
   ============================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-midnight);
    background-color: var(--color-soft-cloud);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-deep-teal);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-amber-dawn);
}

::selection {
    background: var(--color-pale-teal);
    color: var(--color-midnight);
}


/* =============================================================
   Site header
   ============================================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-midnight);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    background: var(--color-midnight);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: var(--space-2) var(--space-4);
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo img {
    display: block;
    height: 36px;
    width: auto;
    min-width: 120px;
    object-fit: contain;
}

.header-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-soft-cloud);
    text-decoration: none;
}

/* Nav links (Ghost {{navigation}} outputs <ul><li><a>) */
.header-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    list-style: none;
    margin: 0 0 0 var(--space-4);
    padding: 0;
}

.header-nav a {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-soft-cloud);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-base), color var(--transition-base);
}

.header-nav a:hover,
.header-nav a:focus-visible {
    color: var(--color-soft-cloud);
    border-bottom-color: var(--color-pale-teal);
    outline: none;
}

.header-nav .nav-current a {
    border-bottom-color: var(--color-amber-dawn);
}

/* Hamburger button — hidden on desktop */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}

.hamburger-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-soft-cloud);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.header-hamburger:focus-visible {
    outline: 2px solid var(--color-amber-dawn);
    outline-offset: 3px;
    border-radius: 2px;
}

.header-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.header-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.header-hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--color-midnight);
    overflow-y: auto;
}

.nav-overlay.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-overlay-inner ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: var(--space-8) var(--space-4);
    width: 100%;
}

.nav-overlay-inner a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    max-width: 320px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-soft-cloud);
    text-decoration: none;
    border-radius: 4px;
    transition: color var(--transition-base);
}

.nav-overlay-inner a:hover,
.nav-overlay-inner a:focus-visible {
    color: var(--color-pale-teal);
    outline: none;
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    .header-nav {
        display: none;
    }
    .header-hamburger {
        display: flex;
    }
}


/* =============================================================
   Hero (homepage)
   ============================================================= */
.hero {
    display: grid;
    place-items: center;
    min-height: 50vh;
    background-color: var(--color-midnight);
    color: var(--color-soft-cloud);
    padding: calc(var(--space-12) + var(--nav-height)) var(--space-4) var(--space-12);
}

.hero-inner {
    width: 100%;
    max-width: var(--wide-width);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.hero-headline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    color: var(--color-soft-cloud);
    margin: 0;
}

.hero-subheading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--color-pale-teal);
    margin: 0;
    max-width: 55ch;
}


/* =============================================================
   Archive headers (tag, author)
   ============================================================= */
.archive-header {
    background: var(--color-deep-teal);
    color: var(--color-soft-cloud);
    padding: calc(var(--space-12) + var(--nav-height)) var(--space-4) var(--space-8);
    text-align: center;
}

.archive-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.archive-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 var(--space-2) 0;
}

.archive-description {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-pale-teal);
    margin: 0 0 var(--space-2) 0;
}

.archive-count {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-pale-teal);
    opacity: 0.8;
    margin: 0;
}

.author-archive-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-3) auto;
    border: 3px solid var(--color-pale-teal);
}


/* =============================================================
   Post feed (card grid)
   ============================================================= */
.post-feed-section {
    background: var(--color-soft-cloud);
}

.post-feed-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--color-deep-teal);
    line-height: 1.2;
    margin: 0 0 var(--space-6) 0;
}

/* Post card */
.post-card {
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(28, 37, 48, 0.08);
    border-top: 3px solid var(--color-pale-teal);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    margin-bottom: var(--space-4);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(28, 37, 48, 0.12);
}

.post-card-link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-decoration: none;
    color: inherit;
}

.post-card-link:hover {
    color: inherit;
}

.post-card-image {
    margin: 0;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.post-card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.post-card-tag {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-amber-dawn);
}

.post-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--color-midnight);
    margin: 0;
}

.post-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-warm-slate);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-warm-slate);
    margin-top: auto;
    padding-top: var(--space-2);
}

.post-card-author {
    font-weight: 500;
}

.post-card-meta > *:not(:last-child)::after {
    content: "\00b7";
    margin-left: var(--space-2);
    color: var(--color-warm-slate);
    opacity: 0.5;
}

/* Cards without images go full-width content */
.post-card:not(:has(.post-card-image)) .post-card-link {
    grid-template-columns: 1fr;
}

/* Responsive: stack on mobile */
@media (max-width: 767px) {
    .post-card-link {
        grid-template-columns: 1fr;
    }
}


/* =============================================================
   Single post
   ============================================================= */
.post-full {
    padding-top: var(--nav-height);
}

/* Post header */
.post-header {
    background: var(--color-midnight);
    color: var(--color-soft-cloud);
    padding: var(--space-12) var(--space-4) var(--space-8);
}

.post-header-inner {
    max-width: var(--content-width);
    margin: 0 auto;
}

.post-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-amber-dawn);
    text-decoration: none;
    margin-bottom: var(--space-3);
    transition: color var(--transition-base);
}

.post-tag:hover {
    color: var(--color-soft-cloud);
}

.post-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    color: var(--color-soft-cloud);
    margin: 0 0 var(--space-3) 0;
}

.post-excerpt {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: var(--color-pale-teal);
    margin: 0 0 var(--space-4) 0;
    max-width: 55ch;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-pale-teal);
}

.post-author-name {
    font-weight: 500;
    color: var(--color-soft-cloud);
    text-decoration: none;
}

.post-author-name:hover {
    color: var(--color-amber-dawn);
}

.post-meta > *:not(:last-child)::after {
    content: "\00b7";
    margin-left: var(--space-2);
    opacity: 0.5;
}

/* Feature image */
.post-feature-image {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    transform: translateY(-2rem);
}

.post-feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(28, 37, 48, 0.15);
}

.post-feature-image figcaption {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-warm-slate);
    text-align: center;
    margin-top: var(--space-2);
}


/* =============================================================
   Post content (gh-content)
   ============================================================= */
.post-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: var(--space-8) var(--space-4);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-midnight);
}

/* Headings in post content */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--color-midnight);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.post-content h2 {
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-pale-teal);
}

.post-content h3 {
    font-weight: 600;
    font-size: 1.375rem;
}

.post-content h4 {
    font-weight: 500;
    font-size: 1.125rem;
}

.post-content p {
    margin: 0 0 var(--space-3) 0;
}

.post-content a {
    color: var(--color-deep-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.post-content a:hover {
    color: var(--color-amber-dawn);
}

/* Lists */
.post-content ul,
.post-content ol {
    margin: 0 0 var(--space-3) 0;
    padding-left: var(--space-4);
}

.post-content li {
    margin-bottom: var(--space-1);
}

.post-content li::marker {
    color: var(--color-deep-teal);
}

/* Blockquote */
.post-content blockquote {
    margin: var(--space-6) 0;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-6);
    border-left: 4px solid var(--color-amber-dawn);
    background: var(--color-white);
    border-radius: 0 8px 8px 0;
    font-size: 1.125rem;
    color: var(--color-warm-slate);
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Code */
.post-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-pale-teal);
    color: var(--color-deep-teal);
    padding: 0.125em 0.375em;
    border-radius: 3px;
}

.post-content pre {
    margin: var(--space-6) 0;
    padding: var(--space-4);
    background: var(--color-midnight);
    border-radius: 8px;
    overflow-x: auto;
    line-height: 1.5;
}

.post-content pre code {
    font-size: 0.875rem;
    background: none;
    color: var(--color-soft-cloud);
    padding: 0;
    border-radius: 0;
}

/* Images */
.post-content img {
    border-radius: 8px;
    margin: var(--space-6) auto;
}

.post-content figure {
    margin: var(--space-6) 0;
}

.post-content figcaption {
    font-size: 0.8125rem;
    color: var(--color-warm-slate);
    text-align: center;
    margin-top: var(--space-2);
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: 0.9375rem;
}

.post-content thead th {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
    padding: var(--space-2);
    border-bottom: 2px solid var(--color-deep-teal);
    color: var(--color-deep-teal);
}

.post-content tbody td {
    padding: var(--space-2);
    border-bottom: 1px solid var(--color-pale-teal);
    color: var(--color-warm-slate);
}

.post-content tbody tr:hover {
    background: var(--color-white);
}

/* Horizontal rule */
.post-content hr {
    border: none;
    border-top: 2px solid var(--color-pale-teal);
    margin: var(--space-8) 0;
}

/* Ghost gallery / wide content */
.post-content .kg-width-wide {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.post-content .kg-width-full {
    max-width: none;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Ghost bookmark card */
.post-content .kg-bookmark-card {
    border: 1px solid var(--color-pale-teal);
    border-radius: 8px;
    overflow: hidden;
    margin: var(--space-6) 0;
}

.post-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.post-content .kg-bookmark-content {
    padding: var(--space-3);
    flex: 1;
}

.post-content .kg-bookmark-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-midnight);
    margin-bottom: var(--space-1);
}

.post-content .kg-bookmark-description {
    font-size: 0.875rem;
    color: var(--color-warm-slate);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-2);
    font-size: 0.8125rem;
    color: var(--color-warm-slate);
}

.post-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
}

.post-content .kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
}

.post-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

/* Ghost callout card */
.post-content .kg-callout-card {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: 8px;
    margin: var(--space-6) 0;
}

.post-content .kg-callout-card-grey {
    background: var(--color-pale-teal);
}

.post-content .kg-callout-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Ghost button card */
.post-content .kg-button-card {
    display: flex;
    justify-content: center;
    margin: var(--space-6) 0;
}

.post-content .kg-btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-midnight);
    background: var(--color-amber-dawn);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.post-content .kg-btn:hover {
    color: var(--color-midnight);
    opacity: 0.88;
}

.post-content .kg-btn-accent {
    background: var(--color-amber-dawn);
    color: var(--color-midnight);
}


/* =============================================================
   Post footer (tags, author card)
   ============================================================= */
.post-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 var(--space-4) var(--space-8);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
    margin-bottom: var(--space-6);
}

.post-tag-pill {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-deep-teal);
    background: var(--color-pale-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background var(--transition-base), color var(--transition-base);
}

.post-tag-pill:hover {
    background: var(--color-deep-teal);
    color: var(--color-soft-cloud);
}

/* Author card */
.author-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-white);
    border-radius: 8px;
    border-top: 3px solid var(--color-pale-teal);
    box-shadow: 0 2px 12px rgba(28, 37, 48, 0.08);
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-midnight);
    text-decoration: none;
}

.author-card-name:hover {
    color: var(--color-deep-teal);
}

.author-card-bio {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-warm-slate);
    line-height: 1.6;
    margin: var(--space-1) 0 0 0;
}


/* =============================================================
   Pagination
   ============================================================= */
.pagination {
    background: var(--color-soft-cloud);
    padding: 0 var(--space-4) var(--space-8);
}

.pagination-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-pale-teal);
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-deep-teal);
    text-decoration: none;
    transition: color var(--transition-base);
}

.pagination-prev:hover,
.pagination-next:hover {
    color: var(--color-amber-dawn);
}

.pagination-prev.disabled,
.pagination-next.disabled {
    visibility: hidden;
}

.pagination-location {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-warm-slate);
}


/* =============================================================
   Error pages
   ============================================================= */
.error-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    background: var(--color-midnight);
    color: var(--color-soft-cloud);
    padding: var(--space-4);
    text-align: center;
}

.error-inner {
    max-width: 480px;
}

.error-code {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(5rem, 12vw, 10rem);
    line-height: 1;
    color: var(--color-deep-teal);
    margin: 0 0 var(--space-4) 0;
}

.error-message {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.5rem;
    margin: 0 0 var(--space-2) 0;
}

.error-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-pale-teal);
    margin: 0 0 var(--space-6) 0;
}

/* CTA button (shared) */
.btn-cta {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-midnight);
    background: var(--color-amber-dawn);
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition-base), transform var(--transition-fast);
}

.btn-cta:hover,
.btn-cta:focus-visible {
    color: var(--color-midnight);
    opacity: 0.88;
    outline: none;
}

.btn-cta:focus-visible {
    outline: 2px solid var(--color-amber-dawn);
    outline-offset: 3px;
}


/* =============================================================
   Footer
   ============================================================= */
.site-footer {
    background: var(--color-midnight);
    color: var(--color-soft-cloud);
    border-top: 1px solid var(--color-warm-slate);
}

.footer-inner {
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.footer-logo {
    display: block;
    height: 32px;
    width: auto;
    min-width: 120px;
    object-fit: contain;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--color-soft-cloud);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-soft-cloud);
    margin: 0;
    opacity: 0.75;
}

.footer-spacer {
    flex: 1;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-soft-cloud);
    opacity: 0.6;
}

.footer-powered {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    color: var(--color-soft-cloud);
    opacity: 0.4;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.footer-powered:hover {
    opacity: 0.7;
    color: var(--color-soft-cloud);
}

/* Footer mobile */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    .footer-spacer {
        display: none;
    }
}


/* =============================================================
   Ghost members / subscription forms
   ============================================================= */
.gh-portal-triggerbtn-iframe {
    /* Tint the Ghost portal button to match Amber Dawn */
    color-scheme: light;
}

/* Global focus style */
*:focus-visible {
    outline: 2px solid var(--color-amber-dawn);
    outline-offset: 3px;
}


/* =============================================================
   Utility / helpers
   ============================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
