/*
 Theme Name:   Kadence Child - DreamWorks Plus
 Theme URI:    https://dreamworks-plus.com
 Description:  Creative tools and digital workflow publication theme
 Author:       DreamWorks Plus
 Template:     kadence
 Version:      2.0.0
*/

/* ==========================================================================
   DESIGN TOKENS
   Inspired by Vogue, Business of Fashion, Glossy
   ========================================================================== */

:root {
    /* Colors — almost entirely B&W */
    --cfm-black: #000000;
    --cfm-near-black: #111111;
    --cfm-charcoal: #1A1A1A;
    --cfm-dark: #2D2D2D;
    --cfm-gray: #888888;
    --cfm-silver: #BBBBBB;
    --cfm-border: #E5E5E5;
    --cfm-light: #F4F4F4;
    --cfm-off-white: #FAFAFA;
    --cfm-white: #FFFFFF;
    --cfm-accent: #0891B2;

    /* Typography */
    --cfm-serif: 'Georgia', 'Times New Roman', 'Times', serif;
    --cfm-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --cfm-max: 1280px;
    --cfm-content: 720px;
    --cfm-gutter: 24px;
}

/* ==========================================================================
   GLOBAL BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--cfm-sans);
    color: var(--cfm-dark);
    background: var(--cfm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
}

::selection {
    background: var(--cfm-black);
    color: var(--cfm-white);
}

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

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

/* ==========================================================================
   TYPOGRAPHY — Editorial Serif + Clean Sans
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cfm-serif);
    color: var(--cfm-near-black);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* ==========================================================================
   HEADER — Clean Masthead
   ========================================================================== */

.site-header {
    background: var(--cfm-white) !important;
    border-bottom: 2px solid var(--cfm-black) !important;
    position: relative;
}

/* Thin top bar accent line */
.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--cfm-accent);
}

.site-branding .site-title {
    font-family: var(--cfm-sans) !important;
    font-weight: 900 !important;
    font-size: 1.8rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--cfm-black) !important;
    margin: 0 !important;
}

.site-branding .site-title a {
    color: var(--cfm-black) !important;
    text-decoration: none !important;
}

.site-branding .site-title a:hover {
    opacity: 0.7;
}

/* Tagline / description */
.site-branding .site-description {
    display: none !important;
}

/* Navigation */
.header-navigation .menu > li > a,
.header-menu-container .menu > li > a,
#primary-navigation .menu > li > a,
.primary-menu-container .menu > li > a,
nav .menu > li > a {
    font-family: var(--cfm-sans) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    color: var(--cfm-black) !important;
    padding: 0.6rem 0.9rem !important;
    transition: color 0.2s !important;
    position: relative !important;
}

.header-navigation .menu > li > a:hover,
.header-menu-container .menu > li > a:hover,
#primary-navigation .menu > li > a:hover,
nav .menu > li > a:hover {
    color: var(--cfm-accent) !important;
}

/* ==========================================================================
   HOMEPAGE — Magazine Layout
   ========================================================================== */

.cfm-homepage {
    max-width: var(--cfm-max);
    margin: 0 auto;
    padding: 0 var(--cfm-gutter);
}

/* --- HERO (Full-width featured story) --- */
.cfm-hero {
    margin: 2rem 0 0;
}

.cfm-hero__link {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--cfm-white);
}

.cfm-hero__image {
    position: relative;
    aspect-ratio: 21/9;
    overflow: hidden;
    background: var(--cfm-near-black);
}

.cfm-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cfm-hero__link:hover .cfm-hero__image img {
    transform: scale(1.03);
}

.cfm-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.3) 40%,
        rgba(0,0,0,0.05) 100%
    );
}

.cfm-hero__placeholder {
    width: 100%;
    height: 100%;
    background: var(--cfm-charcoal);
}

.cfm-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 4rem;
    z-index: 2;
}

.cfm-hero__title {
    font-family: var(--cfm-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    color: var(--cfm-white);
    margin: 0.8rem 0 0.6rem;
    max-width: 800px;
    letter-spacing: -0.02em;
}

.cfm-hero__excerpt {
    font-family: var(--cfm-sans);
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    margin: 0 0 0.8rem;
    max-width: 600px;
}

.cfm-hero__meta {
    font-family: var(--cfm-sans);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
}

/* --- Category Badge --- */
.cfm-category-badge {
    display: inline-block;
    font-family: var(--cfm-sans);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cfm-accent);
    border: 1.5px solid var(--cfm-accent);
    padding: 0.2rem 0.65rem;
    line-height: 1;
}

.cfm-hero .cfm-category-badge {
    color: var(--cfm-white);
    border-color: var(--cfm-white);
}

.cfm-category-badge--small {
    font-size: 0.6rem;
    padding: 0.15rem 0.5rem;
}

/* --- Section Label --- */
.cfm-section-label {
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.cfm-section-label::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--cfm-border);
}

.cfm-section-label span {
    background: var(--cfm-white);
    padding: 0 1.5rem;
    font-family: var(--cfm-sans);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cfm-gray);
    position: relative;
    z-index: 1;
}

/* --- 4-UP CARD GRID --- */
.cfm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-bottom: 1rem;
}

.cfm-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cfm-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--cfm-light);
    margin-bottom: 1rem;
}

.cfm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cfm-card__link:hover .cfm-card__image img {
    transform: scale(1.04);
    opacity: 0.88;
}

.cfm-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--cfm-light);
}

.cfm-card__body {
    padding: 0;
}

.cfm-card__title {
    font-family: var(--cfm-serif);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cfm-near-black);
    margin: 0.5rem 0 0.4rem;
    transition: color 0.2s;
}

.cfm-card__link:hover .cfm-card__title {
    color: var(--cfm-accent);
}

.cfm-card__meta {
    font-family: var(--cfm-sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cfm-gray);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --- NEWSLETTER CTA --- */
.cfm-newsletter {
    margin: 3rem 0;
    padding: 3.5rem 2rem;
    background: var(--cfm-near-black);
    text-align: center;
}

.cfm-newsletter h3 {
    font-family: var(--cfm-serif);
    font-size: 1.8rem;
    color: var(--cfm-white);
    margin: 0 0 0.5rem;
    font-weight: 400;
    font-style: italic;
}

.cfm-newsletter p {
    font-size: 0.9rem;
    color: var(--cfm-silver);
    margin: 0 0 1.5rem;
}

.cfm-newsletter__form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
}

.cfm-newsletter__input {
    flex: 1;
    padding: 0.85rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: var(--cfm-white);
    font-family: var(--cfm-sans);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.cfm-newsletter__input::placeholder {
    color: var(--cfm-gray);
}

.cfm-newsletter__input:focus {
    border-color: rgba(255,255,255,0.5);
}

.cfm-newsletter__btn {
    padding: 0.85rem 2rem;
    background: var(--cfm-accent);
    color: var(--cfm-white);
    border: none;
    font-family: var(--cfm-sans);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.cfm-newsletter__btn:hover {
    background: #067A94;
}

/* --- ARTICLE RIVER (list view) --- */
.cfm-river {
    margin-bottom: 3rem;
}

.cfm-river-item {
    border-bottom: 1px solid var(--cfm-border);
}

.cfm-river-item:last-child {
    border-bottom: none;
}

.cfm-river-item__link {
    display: flex;
    gap: 1.8rem;
    padding: 1.5rem 0;
    text-decoration: none;
    color: inherit;
    align-items: flex-start;
}

.cfm-river-item__image {
    flex: 0 0 220px;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--cfm-light);
}

.cfm-river-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cfm-river-item__link:hover .cfm-river-item__image img {
    transform: scale(1.04);
}

.cfm-river-item__placeholder {
    width: 100%;
    height: 100%;
    background: var(--cfm-light);
}

.cfm-river-item__body {
    flex: 1;
    padding: 0.2rem 0;
}

.cfm-river-item__title {
    font-family: var(--cfm-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cfm-near-black);
    margin: 0.4rem 0 0.5rem;
    transition: color 0.2s;
}

.cfm-river-item__link:hover .cfm-river-item__title {
    color: var(--cfm-accent);
}

.cfm-river-item__excerpt {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--cfm-gray);
    margin: 0 0 0.5rem;
}

.cfm-river-item__meta {
    font-family: var(--cfm-sans);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--cfm-silver);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   SINGLE POST — Editorial Reading Experience
   ========================================================================== */

.single .entry-header {
    text-align: center;
    max-width: 800px;
    margin: 2.5rem auto 2rem;
    padding: 0 var(--cfm-gutter);
}

.single .entry-title {
    font-family: var(--cfm-serif) !important;
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: var(--cfm-near-black) !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 0.8rem !important;
}

.single .entry-meta {
    font-family: var(--cfm-sans);
    font-size: 0.75rem;
    color: var(--cfm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single .entry-meta a {
    color: var(--cfm-gray);
}

.single .post-thumbnail {
    margin: 0 auto 2.5rem;
    max-width: 960px;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single .entry-content {
    max-width: var(--cfm-content);
    margin: 0 auto;
    padding: 0 var(--cfm-gutter);
}

.single .entry-content p {
    font-size: 1.12rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--cfm-dark);
}

.single .entry-content h2 {
    font-size: 1.7rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.single .entry-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
}

.single .entry-content a {
    color: var(--cfm-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s;
}

.single .entry-content a:hover {
    opacity: 0.7;
}

/* Drop cap */
.single .entry-content > p:first-of-type::first-letter {
    font-family: var(--cfm-serif);
    font-size: 4.2rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.08em 0.14em 0 0;
    color: var(--cfm-near-black);
}

.single .entry-content blockquote {
    border-left: 3px solid var(--cfm-near-black);
    margin: 2.5rem 0;
    padding: 1rem 0 1rem 2rem;
    background: none;
    font-family: var(--cfm-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--cfm-near-black);
}

.single .entry-content ul,
.single .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.single .entry-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
    font-size: 1.08rem;
}

/* Tables */
.single .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.88rem;
}

.single .entry-content th {
    background: var(--cfm-near-black);
    color: var(--cfm-white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--cfm-sans);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.single .entry-content td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--cfm-border);
}

.single .entry-content tr:nth-child(even) {
    background: var(--cfm-off-white);
}

/* Tags and categories on single post */
.entry-taxonomies a,
a[rel="category tag"] {
    display: inline-block;
    font-family: var(--cfm-sans);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cfm-accent) !important;
    border: 1.5px solid var(--cfm-accent);
    padding: 0.18rem 0.6rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.entry-taxonomies a:hover,
a[rel="category tag"]:hover {
    background: var(--cfm-accent);
    color: var(--cfm-white) !important;
}

/* ==========================================================================
   READING PROGRESS BAR
   ========================================================================== */

#cfm-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--cfm-accent);
    z-index: 99999;
    transition: width 0.08s linear;
    width: 0%;
}

/* ==========================================================================
   PAGES
   ========================================================================== */

.page .entry-header {
    text-align: center;
    margin: 2.5rem auto 2rem;
    max-width: 800px;
}

.page .entry-title {
    font-family: var(--cfm-serif) !important;
    font-size: 2.4rem !important;
    color: var(--cfm-near-black) !important;
}

.page .entry-content {
    max-width: var(--cfm-content);
    margin: 0 auto;
}

.page .entry-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ==========================================================================
   ARCHIVE / CATEGORY PAGES
   ========================================================================== */

.archive .entry-title a,
.blog .entry-title a,
.search .entry-title a {
    color: var(--cfm-near-black);
    text-decoration: none;
    transition: color 0.2s;
}

.archive .entry-title a:hover,
.blog .entry-title a:hover {
    color: var(--cfm-accent);
}

.loop-entry {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cfm-border);
}

.loop-entry:last-child {
    border-bottom: none;
}

.loop-entry .post-thumbnail {
    overflow: hidden;
}

.loop-entry .post-thumbnail img {
    transition: transform 0.5s ease;
}

.loop-entry:hover .post-thumbnail img {
    transform: scale(1.03);
}

.loop-entry .entry-title {
    font-family: var(--cfm-serif);
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0.6rem 0 0.3rem;
}

.loop-entry .entry-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cfm-gray);
}

.loop-entry .entry-summary {
    font-size: 0.92rem;
    color: var(--cfm-gray);
    line-height: 1.6;
}

/* Archive page title */
.archive-title,
.wp-block-query-title {
    font-family: var(--cfm-serif) !important;
    font-size: 2rem;
    text-align: center;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--cfm-black);
}

/* ==========================================================================
   FOOTER — Professional multi-column
   ========================================================================== */

.site-footer {
    background: var(--cfm-near-black) !important;
    color: rgba(255,255,255,0.6) !important;
    margin-top: 3rem !important;
    font-size: 0.85rem;
}

.site-footer a {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
}

.site-footer a:hover {
    color: var(--cfm-white) !important;
}

.footer-widget-area .widget-title,
.site-footer .widget-title {
    font-family: var(--cfm-sans) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: var(--cfm-white) !important;
    margin-bottom: 1rem !important;
}

.site-footer .site-info {
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Footer navigation */
.site-footer .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer .menu li a {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    text-align: center;
    margin: 2rem 0;
}

.pagination .page-numbers {
    font-family: var(--cfm-sans);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    color: var(--cfm-dark);
    border: 1px solid var(--cfm-border);
    margin: 0 0.15rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--cfm-near-black);
    color: var(--cfm-white);
    border-color: var(--cfm-near-black);
}

/* ==========================================================================
   KADENCE OVERRIDES — Remove default cruft
   ========================================================================== */

/* Remove Kadence's default container padding on homepage */
.home .site-container .site-main {
    padding: 0 !important;
}

.home .content-wrap {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Ensure single posts use our width */
.single .content-wrap,
.page .content-wrap {
    max-width: 100% !important;
}

/* Remove default sidebar on homepage */
.home .site-container .site-main .content-area {
    width: 100% !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .cfm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cfm-hero__title {
        font-size: 2.2rem;
    }
    
    .cfm-hero__content {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .cfm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .cfm-hero__image {
        aspect-ratio: 16/9;
    }
    
    .cfm-hero__title {
        font-size: 1.7rem;
    }
    
    .cfm-hero__excerpt {
        display: none;
    }
    
    .cfm-hero__content {
        padding: 1.5rem;
    }
    
    .cfm-river-item__link {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cfm-river-item__image {
        flex: auto;
        width: 100%;
    }
    
    .single .entry-title {
        font-size: 2rem !important;
    }
    
    .single .entry-content p {
        font-size: 1rem;
    }
    
    .cfm-newsletter {
        padding: 2.5rem 1.5rem;
    }
    
    .cfm-newsletter__form {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .site-branding .site-title {
        font-size: 1.2rem !important;
        letter-spacing: 0.12em !important;
    }
}

@media (max-width: 480px) {
    .cfm-grid {
        grid-template-columns: 1fr;
    }
    
    .cfm-hero__title {
        font-size: 1.4rem;
    }
    
    .single .entry-title {
        font-size: 1.6rem !important;
    }
    
    .single .entry-content > p:first-of-type::first-letter {
        font-size: 3.2rem;
    }
    
    .site-branding .site-title {
        font-size: 1rem !important;
    }
    
    .cfm-card__title {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   CUSTOM SINGLE POST TEMPLATE
   ========================================================================== */

.cfm-single__header {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 2rem;
    padding: 0 var(--cfm-gutter);
}

.cfm-single__category {
    margin-bottom: 1.2rem;
}

.cfm-single__title {
    font-family: var(--cfm-serif) !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    color: var(--cfm-near-black) !important;
    letter-spacing: -0.025em !important;
    margin: 0 0 1rem !important;
}

.cfm-single__meta {
    font-family: var(--cfm-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cfm-gray);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cfm-single__meta-sep {
    margin: 0 0.5rem;
}

.cfm-single__hero {
    max-width: 1000px;
    margin: 0 auto 2.5rem;
    padding: 0 var(--cfm-gutter);
}

.cfm-single__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.cfm-single__content {
    max-width: var(--cfm-content);
    margin: 0 auto;
    padding: 0 var(--cfm-gutter);
}

.cfm-single__content p {
    font-size: 1.12rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    color: var(--cfm-dark);
}

.cfm-single__content h2 {
    font-size: 1.7rem;
    margin: 2.5rem 0 1rem;
}

.cfm-single__content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
}

.cfm-single__content a {
    color: var(--cfm-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.cfm-single__content a:hover {
    opacity: 0.7;
}

/* Drop cap */
.cfm-single__content > p:first-of-type::first-letter {
    font-family: var(--cfm-serif);
    font-size: 4.2rem;
    font-weight: 700;
    float: left;
    line-height: 0.8;
    margin: 0.06em 0.14em 0 0;
    color: var(--cfm-near-black);
}

.cfm-single__content blockquote {
    border-left: 3px solid var(--cfm-near-black);
    margin: 2.5rem 0;
    padding: 0.5rem 0 0.5rem 2rem;
    font-family: var(--cfm-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--cfm-near-black);
}

.cfm-single__content ul, .cfm-single__content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.cfm-single__content li {
    margin-bottom: 0.6rem;
    font-size: 1.08rem;
    line-height: 1.7;
}

.cfm-single__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.88rem;
}

.cfm-single__content th {
    background: var(--cfm-near-black);
    color: var(--cfm-white);
    padding: 0.75rem 1rem;
    text-align: left;
    font-family: var(--cfm-sans);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cfm-single__content td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--cfm-border);
}

.cfm-single__content tr:nth-child(even) {
    background: var(--cfm-off-white);
}

.cfm-single__footer {
    max-width: var(--cfm-content);
    margin: 3rem auto;
    padding: 2rem var(--cfm-gutter) 0;
    border-top: 1px solid var(--cfm-border);
}

.cfm-tag {
    display: inline-block;
    font-family: var(--cfm-sans);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cfm-gray);
    border: 1px solid var(--cfm-border);
    padding: 0.25rem 0.75rem;
    margin: 0 0.3rem 0.3rem 0;
    text-decoration: none;
    transition: all 0.2s;
}

.cfm-tag:hover {
    border-color: var(--cfm-near-black);
    color: var(--cfm-near-black);
}

@media (max-width: 768px) {
    .cfm-single__title {
        font-size: 2rem !important;
    }
    .cfm-single__content p {
        font-size: 1rem;
    }
    .cfm-single__content > p:first-of-type::first-letter {
        font-size: 3.2rem;
    }
}

@media (max-width: 480px) {
    .cfm-single__title {
        font-size: 1.6rem !important;
    }
}
