/* PREMIUM NICHE BLOG THEME
   Palette: Slate (#2c3e50), Bronze (#8c6f4e), Clay (#8c6f4e), Gray (#e8e7e4)
*/

/* ====== Global Reset & Base ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    line-height: 1.7; /* Relaxed leading for premium readability */
    color: #2c3e50;
    background: #e8e7e4; /* Subdued warm gray */
}

/* ====== Links ====== */
a, a:link, a:visited, a:active {
    color: #2c3e50; /* Muted Steel Blue */
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #2c3e50;
    text-decoration: underline;
}

/* ====== UTILITY BAR (minimal, right-aligned) ====== */
.utility-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fbfaf8;
    padding: 7px 1.25rem;
    border-bottom: 1px solid #e3e0da;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* One consistent type treatment for every item in the top bar */
.nav-right .brand-mark a,
.nav-right a,
.nav-right strong,
.nav-right .sep {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.nav-right .brand-mark a {
    color: #2c3e50;
    text-decoration: none;
}

.nav-right a {
    color: #8b93a1;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Standard Links Hover */
.nav-right a:hover {
    color: #2c3e50 !important;
}

/* Subscriber status label — same type, bronze + emphasis */
.nav-right strong {
    color: #8c6f4e;
    font-weight: 600;
}

/* SUBSCRIBE: quiet bronze accent */
.subscribe-link {
    color: #8c6f4e !important;
    font-weight: 600;
}
.subscribe-link:hover {
    color: #2c3e50 !important;
}

.ext-icon { 
    font-size: 0.7rem; 
    margin-left: 4px; 
    opacity: 0.5; 
}

/* SEPARATOR */
.sep {
    color: #8b93a1;
    user-select: none;
}

/* LEFT SIDE & SEARCH */
.nav-left {
    display: flex;
    align-items: center;
}

.search-mockup {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    height: 23px;
    border-radius: 2px; /* Squared off for premium look */
    background: rgba(255, 255, 255, 0.05); /* Slightly more visible */
    border: 1px solid rgba(197, 160, 89, 0.25);
    margin-left: auto;
    transition: 0.3s ease;
}

.search-mockup:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(197, 160, 89, 0.6);
}

.search-icon {
    font-size: 0.7rem;
    color: #8c6f4e;
}

.search-mockup input {
    width: 100px;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

.search-mockup input::placeholder {
    color: rgba(164, 176, 190, 0.6);
    text-transform: uppercase;
    font-size: 0.6rem;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 480px) {
    .nav-right { gap: 10px; }
    .nav-right .brand-mark a,
    .nav-right a,
    .nav-right strong,
    .nav-right .sep { font-size: 0.6rem; letter-spacing: 1px; }
    .search-mockup { display: none; }
    .menu-icon {display: flex !important; }
    .sub-title {display: none; }
    .main-left {max-width: 375px;}

}

/* ====== Header ====== */
.site-header {
    text-align: center;
    padding: 3rem 1rem 2.4rem;
    background: #ffffff;
    border-bottom: 3px solid #2c3e50; /* Classic masthead rule */
    display: flex;
    justify-content: center;
}

.site-header a,
.site-header a:visited {
    color: #2c3e50;
}

.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 95%;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}


/* ====== Header Text ====== */
.main-title {
    text-decoration: none;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: 2.5px;
    color: #fbfaf8;
}

.main-title .title-M { font-size: 1.05em; color: #2c3e50; }
.main-title .title-YTH { font-size: 0.85em; letter-spacing: 2px; }
.main-title .title-C { font-family: 'Cinzel Decorative', serif; font-size: 1.05em; color: #8c6f4e; }
.main-title .title-ORE { font-size: 0.85em; letter-spacing: 2px; }

.sub-title {
    font-size: 0.68rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #8b93a1;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.sub-title-amp { color: rgba(197, 160, 89, 0.55); font-style: normal; }

@media (min-width: 480px) {
    .sub-title { display: block; }
}


/* ====== Header Typography ====== */
.main-title {
    text-decoration: none;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.1;
    letter-spacing: 2.5px;
    color: #2c3e50;
}

.main-title .title-M { font-size: 1.05em; color: #2c3e50; }
.main-title .title-YTH { font-size: 0.85em; letter-spacing: 2px; }
.main-title .title-C { font-family: 'Cinzel Decorative', serif; font-size: 1.05em; color: #8c6f4e; }
.main-title .title-ORE { font-size: 0.85em; letter-spacing: 2px; }

.sub-title {
    font-size: 0.68rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #8b93a1;
    text-transform: lowercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}


/* ====== Desktop Header ====== */
@media (min-width: 769px) {

    .header-inner { max-width: 1200px; }

    .main-title {
        font-size: 3rem;
        color: #2c3e50;
    }

    .main-title a {
        color: #2c3e50;
    }

    .sub-title {
        font-size: 0.85rem;
        color: #8b93a1;
    }
}

/* ====== Editorial body (no sidebar) ====== */
main.editorial {
    max-width: 1040px;
    margin: 2rem auto 0;
    padding: 2.75rem 3rem 3rem;
    background: #fbfaf8;
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.05);
    min-height: 60vh;
}

main.editorial .magazine-widget {
    max-width: none;
    padding: 0;
    background: transparent;
}

/* ====== Navigation (Muted Slate) ====== */
/* Update Nav to match the softer background */
.site-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2c3e50; /* Matching the new softer tone */
    padding: 0 1rem;
    border-bottom: 1px solid #2c3e50; /* Darker line for definition */
}

.menu-toggle { display: none; }

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 36px;
    height: 30px;
    cursor: pointer;
    padding: 0.4rem;
    margin: 0.75rem;
    border: 1px solid #8b93a1;
    background: rgba(26, 30, 38, 0.9);
}

.menu-icon .bar {
    width: 100%;
    height: 2px;
    background-color: #8b93a1;
    border-radius: 1px;
}

.menu-links {
    max-height: 0;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease-in-out;
}

.menu-links a {
    padding: 0.8rem 0;
    border-bottom: 1px solid #2c3e50;
    color: #8b93a1;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.menu-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.menu-toggle:checked ~ .menu-links {
    max-height: 500px;
}

/* ====== Desktop Navigation ====== */
@media (min-width: 768px) {
    .site-nav {
        display: flex; /* Ensuring flex is active */
        flex-direction: row;
        justify-content: center;
        padding: 0rem 1rem;
        background: #2c3e50;
        border-bottom: 1px solid black;
        height: 34px;
    }

    /* Hide the hamburger icon on desktop just in case */
    .menu-icon {
        display: none !important;
    }

    .menu-links {
        display: flex !important; /* Force flex display */
        flex-direction: row; 
        align-items: center;
        width: auto;
        height: 100%; 

        /* Overriding the mobile "closed" state */
        max-height: none !important;   
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .menu-links a {
        padding: 0rem 1.5rem; 
        line-height: 34px;
        color: #8b93a1;
        text-decoration: none;
        transition: all 0.2s ease;
        border-bottom: none; 
    }

    .menu-links a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.05);
        /* This makes the "square" pop without shifting layout */
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    /* Desktop Header Adjustments */
    .site-header { padding: 1rem 1rem; }
    .header-logo img { width: 130px; height: 130px; }
    .main-title { font-size: 3.5rem; }
    .sub-title { font-size: 0.85rem; }
}

/* ====== Main Content Layout ====== */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    gap: 3rem;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    /* border-bottom: 1px solid #8c6f4e;  */
    border-bottom: 1px solid #8c6f4e;
    padding-bottom: 10px;
}

h1 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    border-bottom: none; /* Remove previous border */
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px; /* Short accent line */
    height: 2px;
    background-color: #8c6f4e;
}

/* ====== Article Card ====== */
.main-left article,
.page-article {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    color: #2c3e50;
    padding: 3rem;
    border: 1px solid #e3e0da;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

h1 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-style: italic;
}


.main-left article h2,
.page-article h2 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* ====== Sidebar ====== */
.main-right {
    flex: 1 1 100%;
    min-width: 250px;
    background: #2c3e50; /* Soft Matte Charcoal */
    padding: 2rem;
    color: #8b93a1;
    border-radius: 2px;
    border-left: 1px solid #e3e0da

}

.main-right h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    color: #8b93a1;
    border-bottom: 1px solid #8c6f4e; /* Teracotta Red*/
    padding-bottom: 0.5rem;
    font-weight: 400;
    width: 95%;
}

.main-right a { color: #8b93a1; font-size: 0.9rem; text-decoration: none !important; border: none; }
.main-right h3 a { color: #ffffff; font-size: 0.9rem; text-decoration: none !important; border: none; }
.main-right p { color: #8b93a1; font-size: 0.9rem; text-decoration: none !important; border: none; }


.main-right a:hover { color: #ffffff; text-decoration: underline !important; }

@media (min-width: 769px) {
    .main-left { flex: 0 1 68%; }
    .main-right { flex: 0 1 27%; }
}

/* ====== Tables (Refined Muted Tone) ====== */
.main-left table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    font-size: 0.9rem;
    background: #fff;
}

.main-left th {
    background-color: #f7f6f3;
    color: #2c3e50;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* border-bottom: 2px solid #8c6f4e; Blackberry accent */
    text-align: left;
}

.main-left td {
    padding: 1rem;
    border-bottom: 1px solid #e3e0da;
}

.main-left tr:hover { background-color: #f7f6f3; }

/* --- Alternating Row Colors --- */
.main-left tr:nth-child(even) {
    background-color: #f7f6f3; /* Very subtle grey for even rows */
}

.main-left tr:nth-child(odd) {
    background-color: #ffffff; /* Clean white for odd rows */
}

/* --- Hover Effect --- */
.main-left tr:hover { 
    background-color: #f7f6f3; /* Slightly darker on hover for interactivity */
    transition: background-color 0.2s ease;
}

/* Remove bottom border from last cell to keep it clean */
.main-left tr:last-child td {
    border-bottom: none;
}

/* ====== Media Gallery ====== */
.media-gallery-container { margin: 4rem 0; }

.gallery-header {
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    border-left: 3px solid #8c6f4e;
}

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.media-card { 
    background: #ffffff; 
    border: 1px solid #e3e0da; 
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.media-card:hover { transform: translateY(-8px); }

.media-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover .media-thumb img {
    transform: scale(1.08);
}

.media-category {
    background: #8c6f4e; /* Gold */
    color: #fff;
    font-size: 0.65rem;
    padding: 3px 10px;
}

.media-info h4 { 
    color: #2c3e50; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.05rem;
    line-height: 1.25;
}

.media-info p { color: #8b93a1 !important; font-size: 0.85rem !important; }

/* ====== Markdown Rendering Fixes ====== */
.main-left p { margin-bottom: 1.8rem; }

.main-left blockquote {
    border-left: 3px solid #8c6f4e;
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: #f7f6f3;
    font-style: italic;
    color: #8b93a1;
}

.main-left img {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mc-testimonial {
  margin-top: 3rem;
  padding: 2rem;
  /* Soft matte background instead of bright blue */
  background: #f7f6f3; 
  border: 1px solid #e3e0da;
  border-radius: 4px; /* Squared off for an editorial feel */
  display: flex;
  flex-direction: column; /* Stacked on mobile */
  gap: 1.2rem;
  align-items: center;
  text-align: center;
  max-width: 100%;
}

.mc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2c3e50;
  /* Muted Champagne Gold border */
  border: 2px solid #8c6f4e; 
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mc-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: #2c3e50; /* Deep Slate */
}

.mc-author {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: #8c6f4e; /* Author in Gold */
}

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

/* Desktop Adjustment */
@media (min-width: 768px) {
  .mc-testimonial {
    flex-direction: row; /* Side-by-side on desktop */
    text-align: left;
    padding: 2.5rem;
  }
  
  .mc-author {
    margin-top: 0.3rem;
  }
}

/* Fix List Overflow & Alignment */
ul {
    list-style-type: none; /* Removes the bulky bullets */
    padding-left: 0;       /* Removes the left overflow */
    margin-left: 0;
}

li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
    
}

li::before {
    /* content: "—"; Premium long dash */
    content: "▪";
    position: absolute;
    left: 0;
    color: #8c6f4e;
    font-weight: bold;
}

.main-right li {
    padding-left: 0px;
}

.main-right li::before {
    content: "";
} 

.sidebar-image {
    position: relative; /* Essential for positioning the overlay */
    display: inline-block; /* Or 'block' depending on your layout */
    overflow: hidden;
}

.sidebar-image img {
    display: block;
    width: 100%; /* Ensures image fills the container */
    height: auto;
}

.sidebar-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjust the 0.3 (30%) to change the darkness level */
    background-color: rgba(0, 0, 0, 0.023); 
    pointer-events: none; /* Allows clicks to pass through to the image/link */
}

/* ====== Footer (light editorial) ====== */
.site-footer {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: #fbfaf8;
    color: #8b93a1;
    border-top: 3px solid #2c3e50;
    margin-top: 4rem;
    font-size: 0.85rem;
}

.site-footer a { color: #8b93a1; }

.site-footer a:hover { color: #2c3e50; }

 /* ====== RSS ITEM CARD (Refined Premium) ====== */
.rss-item {
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e3e0da; /* Subtle paper-edge border */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Soft, natural shadow */
    border-radius: 0; 
    text-align: center;
    transition: transform .4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .4s ease;
}

.rss-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

/* ----- IMAGE CONTAINER ----- */
.rss-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 2px; /* Slight softening, not fully round */
    background: #f7f6f3;
    transition: transform .4s ease;
}

.rss-item:hover .rss-image-container {
    transform: scale(1.02); /* Very subtle expansion */
}

/* ----- IMAGE (Muted Palette) ----- */
.rss-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Muted, slightly warmer feel */
    filter: brightness(1.02) contrast(0.95) saturate(0.9); 
    transition: filter 0.4s ease;
}

.rss-item:hover img {
    filter: brightness(1.05) contrast(1) saturate(1);
}

/* ----- OVERLAYS (Champagne Sheen) ----- */
.img-overlay,
.img-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Soft gold sheen instead of blue */
.img-overlay {
    background: linear-gradient(
        180deg,
        rgba(197, 160, 89, 0.05) 0%, /* Champagne tint */
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.img-vignette {
    background: radial-gradient(
        circle at center,
        transparent 50%,
        rgba(0, 0, 0, 0.03) 100%
    );
}

/* ----- TITLES ----- */
.rss-item h4 {
    font-family: 'Playfair Display', serif; /* Matching the main theme */
    font-size: 1rem;
    line-height: 1.25;
    margin: 12px 0 5px;
    font-weight: 600;
}

.rss-item h4 a {
    color: #2c3e50; /* Deep Slate */
    text-decoration: none;
}

.rss-item h4 a:hover {
    color: #8c6f4e; /* Accent Gold on hover */
    text-shadow: none; /* Removed harsh blue glow */
}

/* ----- META ----- */
.rss-item small {
    color: #8b93a1;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ----- GRID (Restored to 3-column flow) ----- */
@media (min-width: 768px) {
    .rss-grid {
        display: grid;
        /* Lowered min-width from 260px to 220px to ensure 3 cards fit */
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
        gap: 14px; /* Slightly tighter gap for a premium editorial look */
    }
}

@media (min-width: 1024px) {
    .rss-grid {
        /* On larger screens, this ensures exactly 3 or 4 columns depending on container width */
        grid-template-columns: repeat(3, 1fr); 
        gap: 16px;
    }
}



/* ----- PAGINATION (Refined & Minimal) ----- */
.rss-pagination {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    white-space: nowrap;
    font-size: 0.85rem;
    display: block;
    width: 100%;
}

.rss-pagination a,
.rss-pagination span {
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e3e0da;
    background: #ffffff;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.rss-pagination a:hover {
    background: #f7f6f3;
    border-color: #8c6f4e;
    color: #2c3e50;
}

.rss-pagination .current-page {
    background: #2c3e50; /* Dark Slate background */
    color: #ffffff;
    border-color: #2c3e50;
    font-weight: bold;
}

/* Decorative dividers retired — hr.flower rules intentionally removed. */



/* Container sizing */
.contact-container {
    max-width: 650px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Form Layout */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    background: #ffffff; /* Contrast against Paper background */
    padding: 2.5rem;
    border: 1px solid #e3e0da;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Label Styling: Slate & Uppercase */
.form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2c3e50; /* Slate */
}

/* Input & Textarea Styling */
.premium-form input, 
.premium-form textarea {
    padding: 14px;
    border: 1px solid #e3e0da;
    background: #f7f6f3;
    color: #2c3e50;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border-radius: 0; /* Sharp edges for premium feel */
    transition: all 0.3s ease;
}

/* Focus State: Gold accent */
.premium-form input:focus, 
.premium-form textarea:focus {
    outline: none;
    border-color: #8c6f4e; /* Gold */
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.05);
}

/* Submit Button: Blackberry */
.submit-btn {
    background-color: #8c6f4e; /* Teracotta */
    color: #ffffff;
    padding: 16px 34px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-self: flex-start;
}

.submit-btn:hover {
    background-color: #2c3e50; /* Slate on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 68, 61, 0.15);
}

.submit-btn:active {
    transform: translateY(-1px);
}

@media print {
    /* 1. Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* 2. Show only the article and its children */
    article, article * {
        visibility: visible;
    }

    /* 3. Position the article at the top of the printed page */
    article {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* 4. Strip background colors to save ink and ensure text is black */
    body, article {
        background: white !important;
        color: black !important;
    }

    /* 5. Hide specific elements inside the article you might not want (optional) */
    .submit-btn, .media-category, .img-overlay {
        display: none !important;
    }

    /* 6. Clean up links so they don't look like UI elements */
    a {
        text-decoration: underline;
        color: black !important;
    }
}

/* ====== Auth (login / register) ====== */
.auth-wrap {
    display: flex;
    justify-content: center;
    padding: 2.5rem 0;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-top: 3px solid #2c3e50;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    padding: 2.6rem 2.4rem 2.2rem;
    text-align: center;
}

.auth-kicker {
    font-family: 'Playfair Display', serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8c6f4e;
    margin-bottom: 0.6rem;
}

.auth-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #2c3e50;
    border: none;
    margin: 0 0 0.5rem;
    padding: 0;
    text-transform: none;
    letter-spacing: 0.5px;
}

.auth-card h1::after { display: none; }

.auth-sub {
    color: #8b93a1;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 1.6rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    text-align: left;
}

.auth-field label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.auth-optional {
    color: #8b93a1;
    letter-spacing: 1px;
    text-transform: lowercase;
    font-size: 0.62rem;
}

.auth-field input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    color: #2c3e50;
    background: #fbfaf8;
    border: 1px solid #e3e0da;
    border-radius: 0;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.auth-field input::placeholder {
    color: #b6bcc6;
    font-style: italic;
    font-size: 0.85rem;
}

.auth-field input:focus {
    border-color: #8c6f4e;
    box-shadow: 0 0 0 3px rgba(140, 111, 78, 0.12);
    background: #ffffff;
}

.auth-btn {
    margin-top: 0.4rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #2c3e50;
    color: #ffffff;
    border: none;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, letter-spacing 0.25s ease;
}

.auth-btn:hover {
    background: #8c6f4e;
}

.auth-error {
    background: #f7f6f3;
    border: 1px solid #e3c8c0;
    border-left: 3px solid #a0522d;
    color: #7a4636;
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
    text-align: left;
    margin-bottom: 1.3rem;
}

.auth-alt {
    margin: 1.5rem 0 0;
    font-size: 0.85rem;
    color: #8b93a1;
}

.auth-alt a {
    color: #2c3e50;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #8c6f4e;
    padding-bottom: 1px;
}

.auth-alt a:hover {
    color: #8c6f4e;
}

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    text-decoration: none !important;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff !important;
}
.btn-primary:hover {
    background: #8c6f4e;
    border-color: #8c6f4e;
    color: #ffffff !important;
}

.btn-secondary {
    background: #8c6f4e;
    border-color: #8c6f4e;
    color: #ffffff !important;
}
.btn-secondary:hover {
    background: #6f563b;
    border-color: #6f563b;
    color: #ffffff !important;
}

.btn-ghost {
    background: transparent;
    border-color: #2c3e50;
    color: #2c3e50 !important;
}
.btn-ghost:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: #ffffff !important;
}

/* ====== Notices / errors ====== */
.notice,
.error {
    padding: 0.85rem 1.1rem;
    margin: 0 0 1.6rem;
    font-size: 0.9rem;
    text-align: left;
    border: 1px solid #e3e0da;
    background: #ffffff;
    color: #2c3e50;
}
.notice {
    border-left: 3px solid #8c6f4e;
}
.error {
    background: #f7f6f3;
    border: 1px solid #e3c8c0;
    border-left: 3px solid #a0522d;
    color: #7a4636;
}

/* ====== Paywall boxes (article gates) ====== */
.paywall {
    margin-top: 1.6rem;
    padding: 1.6rem;
    text-align: center;
    background: #fbfaf8;
    border: 1px solid #e3e0da;
    border-top: 3px solid #8c6f4e;
}
.paywall h2 {
    margin-bottom: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c3e50;
}
.paywall p {
    color: #5b6472;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

/* ====== Pricing / subscribe page ====== */
.pricing-page {
    max-width: 940px;
    margin: 0 auto;
}

.pricing-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 0.3px;
    color: #2c3e50;
}

/* Headline */
.pricing-hero {
    text-align: center;
    padding: 0.5rem 0 2.2rem;
}
.pricing-kicker {
    font-family: 'Playfair Display', serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8c6f4e;
    margin-bottom: 0.8rem;
}
.pricing-page .pricing-hero h1 {
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 2.15rem;
    line-height: 1.25;
    max-width: 700px;
    margin: 0 auto 1rem;
    padding-bottom: 0;
}
.pricing-page .pricing-hero h1::after { display: none; }
.pricing-lede {
    max-width: 620px;
    margin: 0 auto 1.8rem;
    color: #5b6472;
    font-size: 1.02rem;
    line-height: 1.65;
}
.pricing-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}
.pricing-trust {
    color: #8b93a1;
    font-size: 0.8rem;
}

/* Limited-time founding-member notice */
.founding-notice {
    max-width: 720px;
    margin: 0 auto 2.4rem;
    padding: 0.75rem 1.2rem;
    text-align: center;
    background: #f7f3ee;
    border: 1px solid #e6dccd;
    color: #5b4a37;
    font-size: 0.9rem;
    line-height: 1.6;
}
.founding-notice strong {
    display: inline-block;
    margin-right: 0.35rem;
    color: #8c6f4e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* How access works */
.access-explainer {
    background: #ffffff;
    border: 1px solid #e3e0da;
    border-top: 3px solid #2c3e50;
    padding: 1.8rem 2rem;
    margin-bottom: 2rem;
}
.access-explainer h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.access-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.access-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.4rem 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eeece7;
}
.access-list li:last-child { border-bottom: none; }
.access-list .access-who {
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #2c3e50;
}
.access-list .access-what {
    color: #5b6472;
    font-size: 0.92rem;
}
.access-list .is-subscriber {
    background: #fbf7f1;
    margin: 0.4rem -1rem -0.4rem;
    padding: 0.85rem 1rem;
    border-bottom: none;
    border-left: 3px solid #8c6f4e;
}
.access-list .is-subscriber .access-who { color: #8c6f4e; }

/* First 100 offer */
.founding-banner {
    position: relative;
    text-align: center;
    background: linear-gradient(135deg, #2c3e50 0%, #3a4f63 100%);
    border: 2px solid #8c6f4e;
    padding: 2.2rem 2rem 1.9rem;
    margin-bottom: 2.6rem;
    color: #fbfaf8;
}
.founding-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.9rem;
    background: #8c6f4e;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.founding-banner h2 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    line-height: 1.3;
    max-width: 640px;
    margin: 0 auto 0.9rem;
}
.founding-lede {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    color: #cdd5de;
    font-size: 0.95rem;
    line-height: 1.6;
}
.founding-banner .btn-primary {
    background: #8c6f4e;
    border-color: #8c6f4e;
}
.founding-banner .btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #2c3e50 !important;
}

/* Pricing plans */
.pricing-plans {
    margin-bottom: 2.6rem;
    text-align: center;
}
.pricing-plans h2 { margin-bottom: 0.35rem; }
.pricing-plans-lede {
    color: #8b93a1;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    text-align: left;
}
.plan-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e3e0da;
    border-top: 3px solid #2c3e50;
    padding: 1.7rem 1.5rem;
}
.plan-card--founding {
    border-top-color: #8c6f4e;
    box-shadow: 0 10px 30px rgba(140, 111, 78, 0.14);
}
.plan-flag {
    align-self: flex-start;
    margin-bottom: 0.7rem;
    padding: 0.2rem 0.6rem;
    background: #8c6f4e;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.plan-name {
    margin: 0 0 0.5rem;
    font-style: normal;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}
.plan-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: #2c3e50;
}
.plan-period {
    color: #8b93a1;
    font-size: 0.85rem;
}
.plan-note {
    color: #8b93a1;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}
.plan-features {
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    border-top: 1px solid #eeece7;
    padding-top: 1rem;
}
.plan-features li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.55rem;
    color: #5b6472;
    font-size: 0.88rem;
}
.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8c6f4e;
    font-weight: 700;
}
.plan-card .btn,
.plan-card form {
    margin-top: auto;
    width: 100%;
}
.plan-card .btn { display: block; }

/* Benefits */
.benefits {
    background: #ffffff;
    border: 1px solid #e3e0da;
    border-top: 3px solid #2c3e50;
    padding: 1.8rem 2rem;
    margin-bottom: 2.6rem;
}
.benefits h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.benefits-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.6rem;
    color: #5b6472;
    font-size: 0.95rem;
    border-bottom: 1px solid #f2f0eb;
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #8c6f4e;
    font-weight: 700;
}

/* Final CTA */
.pricing-final {
    text-align: center;
    border-top: 1px solid #e3e0da;
    padding-top: 2rem;
}
.pricing-final h2 { margin-bottom: 1.3rem; }
.trust-notes {
    list-style: none;
    margin: 1.1rem auto 0;
    padding: 0;
    max-width: 620px;
}
.trust-notes li {
    display: inline-block;
    color: #8b93a1;
    font-size: 0.78rem;
    margin: 0 0.6rem;
}
.trust-notes li::before {
    content: "·";
    color: #8c6f4e;
    margin-right: 0.5rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .plan-grid { grid-template-columns: 1fr; }
    .pricing-page .pricing-hero h1 { font-size: 1.7rem; }
    .founding-banner h2 { font-size: 1.35rem; }
    .access-explainer,
    .benefits { padding: 1.4rem 1.3rem; }
}

/* ====== Magazine article page (readability) ====== */
.magazine-page-article {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

/* --- Header --- */
.magazine-page-article > header {
    text-align: center;
    margin-bottom: 2rem;
}
.magazine-page-kicker {
    font-family: 'Playfair Display', serif;
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #8c6f4e;
    margin: 0 0 0.9rem;
}
.magazine-page-article > header h1 {
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 2.5rem;
    line-height: 1.18;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem;
    padding-bottom: 0;
    border-bottom: none;
}
.magazine-page-article > header h1::after { display: none; }
.magazine-page-article > header small {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8b93a1;
}

/* --- Hero image --- */
.magazine-page-hero-wrap { margin: 0 0 2.2rem; }
.magazine-page-hero {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
img.magazine-page-hero.locked-img {
    filter: blur(14px) brightness(0.97) saturate(0.9);
}

/* --- Body typography --- */
.magazine-page-content {
    font-size: 1.07rem;
    line-height: 1.85;
    color: #2c3e50;
}
.magazine-page-content > *:first-child { margin-top: 0; }
.magazine-page-content > *:last-child { margin-bottom: 0; }

.magazine-page-content > p { margin: 0 0 1.55rem; }
.magazine-page-content > p:first-child {
    font-size: 1.2rem;
    line-height: 1.75;
    color: #34495e;
}

.magazine-page-content > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.72rem;
    line-height: 1.25;
    font-weight: 700;
    color: #2c3e50;
    margin: 2.6rem 0 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eeece7;
}
.magazine-page-content > h3 {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
    color: #2c3e50;
    margin: 2rem 0 0.85rem;
}
.magazine-page-content > h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8c6f4e;
    margin: 1.8rem 0 0.7rem;
}

/* In-body links */
.magazine-page-content a {
    color: #8c6f4e;
    text-decoration: none;
    border-bottom: 1px solid rgba(140, 111, 78, 0.4);
}
.magazine-page-content a:hover {
    color: #2c3e50;
    border-bottom-color: #2c3e50;
}

/* Lists */
.magazine-page-content > ul,
.magazine-page-content > ol {
    margin: 0 0 1.6rem;
    padding-left: 1.5rem;
}
.magazine-page-content > ul { list-style: none; }
.magazine-page-content > ol { list-style: decimal; }
.magazine-page-content > ul > li,
.magazine-page-content > ol > li {
    position: relative;
    margin-bottom: 0.6rem;
    line-height: 1.7;
}
.magazine-page-content > ul > li { padding-left: 1.15rem; }
.magazine-page-content > ul > li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #8c6f4e;
    font-weight: 700;
}
.magazine-page-content > ol > li { padding-left: 0.35rem; }
.magazine-page-content > ol > li::before { content: none; }

/* Pull quotes */
.magazine-page-content > blockquote {
    margin: 2rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid #8c6f4e;
    background: #f7f6f3;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #4a5666;
}
.magazine-page-content > blockquote p:last-child { margin-bottom: 0; }

/* Media & accents */
.magazine-page-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.magazine-page-content strong { color: #1f2d3a; font-weight: 700; }
.magazine-page-content > hr {
    border: none;
    border-top: 1px solid #e3e0da;
    width: 64px;
    margin: 2.4rem auto;
}

/* --- Adjacent story nav --- */
.magazine-page-nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 8px;
    padding-top: 16px;
    border-top: 1px solid #eeebe6;
}
.mag-nav-link {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #eeebe6;
    background: #fdfbf7;
    color: #2c3e50;
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.mag-nav-link:hover { border-color: #8c6f4e; transform: translateY(-2px); }
.mag-nav-next { justify-content: flex-end; text-align: right; }
.mag-nav-arrow { font-size: 1.4rem; line-height: 1; color: #8c6f4e; flex-shrink: 0; }
.mag-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.3;
}
.mag-nav-text small {
    font-family: Georgia, serif;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8a94a1;
}

/* --- Back link --- */
.magazine-page-backlink {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #eeece7;
    text-align: center;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.magazine-page-backlink a { color: #8c6f4e; }
.magazine-page-backlink a:hover { color: #2c3e50; text-decoration: none; }

@media (max-width: 640px) {
    main.editorial { padding: 1.8rem 1.25rem 2.2rem; }
    .magazine-page-article > header h1 { font-size: 1.85rem; }
    .magazine-page-content { font-size: 1.02rem; }
    .magazine-page-content > p:first-child { font-size: 1.1rem; }
    .magazine-page-content > h2 { font-size: 1.45rem; }
    .magazine-page-content > h3 { font-size: 1.18rem; }
    .magazine-page-nav { flex-direction: column; }
}

/* ====== Admin console (/admin) ====== */
.admin-page {
    max-width: 1040px;
    margin: 0 auto;
}

.admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem 1.2rem;
    margin-bottom: 1.4rem;
}
.admin-head h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    letter-spacing: 0.2px;
}
.admin-head h1::after { display: none; }
.admin-meta {
    margin: 0;
    color: #8b93a1;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}
.admin-meta a { color: #8c6f4e; }
.admin-meta a:hover { color: #2c3e50; }

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #e3e0da;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.admin-table th,
.admin-table td {
    padding: 0.62rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #eee7dd;
    white-space: nowrap;
}
.admin-table thead th {
    position: sticky;
    top: 0;
    background: #fbfaf8;
    color: #8b93a1;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid #e3e0da;
}
.admin-table tbody tr:hover { background: #fbfaf8; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td:nth-child(2) { font-weight: 600; color: #2c3e50; }
.admin-empty {
    padding: 1.6rem !important;
    text-align: center;
    color: #8b93a1;
}

.status-pill {
    display: inline-block;
    padding: 0.16rem 0.6rem;
    font-size: 0.68rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1px solid #e3e0da;
    background: #f7f6f3;
    color: #5b6472;
    white-space: nowrap;
}
.status-pill.is-founding {
    background: #8c6f4e;
    border-color: #8c6f4e;
    color: #ffffff;
    font-weight: 600;
}
.status-pill.is-premium {
    background: #f7f3ee;
    border-color: #8c6f4e;
    color: #8c6f4e;
}
.status-pill.is-member {
    background: #f2f5f8;
    border-color: #d6dee6;
    color: #5b6472;
}
