/* Billy Broas — Personal Hub Site */
/* Warm, editorial aesthetic shared with Five Lightbulbs ecosystem */
/* Accent: Orange (#EC6E23) to distinguish from FLB's amber (#c9852b) */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
    /* Shared ecosystem palette */
    --color-ink: #1a1a1a;
    --color-text: #2d2926;
    --color-text-light: #5c5552;
    --color-cream: #faf6f0;
    --color-cream-dark: #f0ebe3;
    --color-warm-white: #fffdf9;
    --color-border: #e5ddd3;

    /* Billy Broas accent — orange (distinct from FLB amber) */
    --color-accent: #EC6E23;
    --color-accent-dark: #c95a1a;

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Spacing */
    --max-width: 1140px;
    --content-width: 720px;
    --section-spacing: 80px;
    --card-radius: 8px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 1000;
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 1.85rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--color-accent-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
header {
    background: var(--color-warm-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.02em;
}

.logo:hover {
    color: var(--color-ink);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ========================================
   MAIN CONTENT CONTAINER
   ======================================== */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    padding: 5rem 0 6rem;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-headline {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--color-ink);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-tertiary {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.hero-tertiary a {
    font-weight: 500;
}

.hero-image {
    flex: 0 0 380px;
}

.hero-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.hero-image-placeholder {
    background-color: var(--color-cream-dark);
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1rem;
    text-align: center;
    padding: 1rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #fff;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #fff;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
}

/* ========================================
   CARD GRID (What I Do)
   ======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background-color: var(--color-warm-white);
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(45, 41, 38, 0.04);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(45, 41, 38, 0.08);
    border-color: var(--color-accent);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.card-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.65;
}

/* ========================================
   FEATURED WORK GRID
   ======================================== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-tile {
    background-color: var(--color-warm-white);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(45, 41, 38, 0.04);
    display: block;
    color: var(--color-text);
}

.featured-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 41, 38, 0.06);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.featured-tile-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

.featured-tile-description {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.featured-tile-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   ESSAY HERO IMAGE
   ======================================== */
.essay-hero-image {
    max-width: var(--content-width);
    margin: 0 auto 2.5rem;
}

.essay-hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
}

/* ========================================
   ARTICLE CONTENT IMAGES
   ======================================== */
.article-content img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: var(--card-radius);
    margin: 1.5rem auto;
}

.article-content .image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ========================================
   CONTENT GRID (Essays Index)
   ======================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.content-card {
    background: var(--color-warm-white);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 2rem;
    display: block;
    color: var(--color-text);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(45, 41, 38, 0.04);
}

.content-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 41, 38, 0.06);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.content-card .tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent-dark);
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.content-card h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.content-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
    line-height: 1.6;
}

.content-card .card-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.content-card:has(.card-thumb) {
    padding: 0;
    overflow: hidden;
}

.content-card:has(.card-thumb) .tag,
.content-card:has(.card-thumb) h3,
.content-card:has(.card-thumb) p {
    padding-left: 2rem;
    padding-right: 2rem;
}

.content-card:has(.card-thumb) .tag {
    padding-top: 1.25rem;
}

.content-card:has(.card-thumb) p:last-child {
    padding-bottom: 2rem;
}

/* ========================================
   ARTICLE LIST (Homepage Writing Section)
   ======================================== */
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    background-color: var(--color-warm-white);
    border-radius: var(--card-radius);
    padding: 1.75rem;
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 12px rgba(45, 41, 38, 0.04);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 41, 38, 0.06);
    border-color: var(--color-accent);
}

.article-date {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-ink);
}

.article-summary {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
    line-height: 1.55;
}

.article-link {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: var(--section-spacing) 0;
}

.section-alt {
    background-color: var(--color-warm-white);
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-ink);
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 700px;
}

.section-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   PAGE HEADER (Inner Pages)
   ======================================== */
.page-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 3rem;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.page-header h1 {
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-size: 2.75rem;
}

.page-header .lead {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.page-header .tag {
    font-family: var(--font-body);
    color: var(--color-accent-dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.page-header .byline {
    font-family: var(--font-body);
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* ========================================
   ARTICLE CONTENT (Essay/Content Pages)
   ======================================== */
.article-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-ink);
    font-size: 1.65rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-ink);
}

.article-content p {
    margin-bottom: 1.35rem;
    line-height: 1.8;
    color: var(--color-text);
}

.article-content blockquote {
    border-left: 3px solid var(--color-accent);
    padding: 1rem 0 1rem 1.75rem;
    margin: 2rem 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-ink);
    line-height: 1.6;
    background: linear-gradient(to right, rgba(236, 110, 35, 0.04), transparent);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}

.article-content strong {
    color: var(--color-ink);
    font-weight: 600;
}

.article-content em {
    font-style: italic;
}

/* About Page Content */
.about-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

.about-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.about-content p {
    color: var(--color-text);
    margin-bottom: 1.35rem;
    line-height: 1.8;
}

/* ========================================
   CTA BOX
   ======================================== */
.cta-box {
    background: var(--color-cream-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: 2.75rem;
    margin-top: 4rem;
    text-align: center;
}

.cta-box h3 {
    font-family: var(--font-display);
    color: var(--color-ink);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.cta-box p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-warm-white);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--color-accent-dark);
    color: var(--color-warm-white);
    transform: translateY(-2px);
}

/* ========================================
   SPEAKING SECTION
   ======================================== */
.speaking-content {
    max-width: 700px;
}

.speaking-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.speaking-topics {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.speaking-topics li {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}

/* ========================================
   CONTACT SECTION / PAGE
   ======================================== */
.contact-content {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1rem 0 5rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.contact-email {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--color-warm-white);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ========================================
   SERIES NAVIGATION (Fractal Thinking)
   ======================================== */
.series-nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.series-nav a {
    font-weight: 600;
    font-size: 0.95rem;
}

.series-nav .series-back {
    width: 100%;
    text-align: center;
}

.series-nav:has(.series-back) {
    justify-content: center;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-cream-dark);
    color: var(--color-text);
    margin-top: var(--section-spacing);
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-brand strong {
    font-family: var(--font-display);
    color: var(--color-ink);
    font-size: 1.1rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-links p,
.footer-contact p {
    font-size: 0.9rem;
}

/* ========================================
   TWO WORLDS GRID (Homepage)
   ======================================== */
.worlds-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.world-card {
    background-color: var(--color-cream);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(45, 41, 38, 0.04);
}

.world-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-ink);
}

.world-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.world-links {
    list-style: none;
    padding: 0;
}

.world-links li {
    margin-bottom: 0.5rem;
}

.world-links a {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   FEATURED ARTICLE CARD (Homepage)
   ======================================== */
.article-card-featured {
    grid-column: 1 / -1;
    border-left: 3px solid var(--color-accent);
    background: linear-gradient(to right, rgba(236, 110, 35, 0.03), var(--color-warm-white));
}

/* ========================================
   HIRE TEASER (Homepage)
   ======================================== */
.hire-teaser {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hire-teaser-image {
    flex: 0 0 400px;
}

.hire-teaser-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.hire-teaser-content {
    flex: 1;
}

.hire-teaser-content p {
    color: var(--color-text);
    line-height: 1.7;
    max-width: 540px;
}

/* ========================================
   ABOUT INNER (About Page Layout Fix)
   ======================================== */
.about-inner {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.about-image {
    flex: 0 0 280px;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   RESPONSIVE — TABLET (max 900px)
   ======================================== */
@media (max-width: 900px) {
    :root {
        --section-spacing: 70px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-inner {
        gap: 3rem;
    }

    .hero-image {
        flex: 0 0 300px;
    }

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

    .article-list {
        grid-template-columns: 1fr;
    }

    .worlds-grid {
        grid-template-columns: 1fr;
    }

    .hire-teaser {
        flex-direction: column;
        gap: 2rem;
    }

    .hire-teaser-image {
        flex: none;
        width: 100%;
        max-width: 400px;
    }

}

/* ========================================
   RESPONSIVE — MOBILE (max 600px)
   ======================================== */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-warm-white);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 0;
        box-shadow: 0 8px 24px rgba(45, 41, 38, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }

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

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        flex: none;
        width: 100%;
        max-width: 320px;
    }

    .hero-image-placeholder {
        height: 280px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-heading {
        font-size: 1.75rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .about-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .page-header {
        padding: 3rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .series-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Skip-to-content link — visible only on keyboard focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background: var(--color-ink);
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
}

/* Screen-reader-only text (visually hidden headings, etc.) */
.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;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
