/* page: newsletters */

/* page: newsletters — page-specific styles only */

/* page: newsletters — extracted from newsletters.html; keep page-specific rules only */

:root {
            --teal: #00A896;
            --deep-brown: #3D2321;
            --copper: #B8956A;
            --sand-50: #FDFAF4;
        }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
            font-family: 'Lato', sans-serif;
            background: var(--sand-50);
            color: var(--deep-brown);
            line-height: 1.6;
        }

/* Hero Section */
        .page-hero {
            padding: 180px 5% 80px;
            text-align: center;
            background: linear-gradient(180deg, rgba(184,149,106,0.25) 0%, transparent 100%);
        }

.page-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 400;
            color: var(--deep-brown);
            margin-bottom: 1rem;
        }

.page-hero h1 em {
            color: var(--copper);
            font-style: italic;
        }

.page-hero p {
            font-size: 1.1rem;
            color: rgba(61,35,33,0.7);
            max-width: 600px;
            margin: 0 auto;
        }

/* Newsletter Layout */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 5% 80px;
        }

/* ── Featured (most recent) hero card ── */
        .nl-featured {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 6px 32px rgba(0,0,0,0.10);
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            transition: box-shadow 0.3s, transform 0.3s;
            margin-top: 3rem;
        }

.nl-featured:hover {
            transform: translateY(-4px);
            box-shadow: 0 16px 48px rgba(0,0,0,0.16);
        }

.nl-featured-img {
            overflow: hidden;
            min-height: 340px;
            background: #f0ebe3;
        }

.nl-featured-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

.nl-featured:hover .nl-featured-img img { transform: scale(1.04); }

.nl-featured-body {
            padding: 3rem 2.5rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

.nl-featured-label {
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--teal);
            margin-bottom: 0.75rem;
        }

.nl-featured-date {
            font-size: 0.8rem;
            color: var(--copper);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            margin-bottom: 0.6rem;
        }

.nl-featured-title {
            font-family: 'Playfair Display', serif;
            font-size: clamp(1.5rem, 2.5vw, 2.1rem);
            color: var(--deep-brown);
            line-height: 1.2;
            margin-bottom: 1rem;
        }

.nl-featured-excerpt {
            font-size: 0.95rem;
            color: rgba(61,35,33,0.65);
            line-height: 1.7;
            margin-bottom: 1.75rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

.nl-featured-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--teal);
            color: white;
            font-weight: 700;
            font-size: 0.85rem;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 0.75rem 1.5rem;
            border-radius: 40px;
            align-self: flex-start;
            transition: background 0.25s, gap 0.2s;
        }

.nl-featured:hover .nl-featured-cta { background: #088f7f; gap: 0.75rem; }

/* ── Archive section heading ── */
        .nl-archive-heading {
            font-family: 'Playfair Display', serif;
            font-size: 1.1rem;
            color: var(--deep-brown);
            margin: 3rem 0 1.25rem;
            padding-bottom: 0.6rem;
            border-bottom: 1px solid rgba(184,149,106,0.25);
            display: flex;
            align-items: center;
            gap: 0.6rem;
        }

.nl-archive-heading::before {
            content: '';
            display: inline-block;
            width: 18px;
            height: 2px;
            background: var(--copper);
            flex-shrink: 0;
        }

/* ── Smaller archive grid ── */
        .newsletter-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 1.5rem;
        }

.newsletter-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0,0,0,0.07);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
        }

.newsletter-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.13);
        }

.newsletter-card-thumb {
            width: 100%;
            aspect-ratio: 16/9;
            overflow: hidden;
        }

.newsletter-card-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }

.newsletter-card:hover .newsletter-card-thumb img { transform: scale(1.05); }

.newsletter-card-body {
            padding: 1.1rem 1.25rem 1.4rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

.newsletter-card-date {
            font-size: 0.72rem;
            color: var(--copper);
            margin-bottom: 0.35rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

.newsletter-card-title {
            font-family: 'Playfair Display', serif;
            font-size: 1.05rem;
            color: var(--deep-brown);
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

.newsletter-card-excerpt {
            font-size: 0.82rem;
            color: rgba(61,35,33,0.6);
            line-height: 1.55;
            margin-bottom: 0.9rem;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

.read-more {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--teal);
            font-weight: 700;
            font-size: 0.78rem;
            text-decoration: none;
            letter-spacing: 0.03em;
            margin-top: auto;
            transition: gap 0.2s;
        }

.newsletter-card:hover .read-more { gap: 0.65rem; }

/* Empty State */
        .empty-state {
            text-align: center;
            padding: 4rem 2rem;
        }

.empty-state i {
            font-size: 4rem;
            color: var(--copper);
            margin-bottom: 1.5rem;
            opacity: 0.5;
        }

.empty-state h3 {
            font-family: 'Playfair Display', serif;
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }

.empty-state p {
            color: rgba(61,35,33,0.6);
            margin-bottom: 2rem;
        }

/* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 9999;
            overflow-y: auto;
            padding: 60px 20px;
        }

.modal.open {
            display: block;
        }

.modal-content {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            padding: 3rem;
            position: relative;
        }

.modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: none;
            border: none;
            font-size: 2rem;
            cursor: pointer;
            color: var(--deep-brown);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.3s;
        }

.modal-close:hover {
            background: rgba(0,0,0,0.1);
        }

/* Dispatch viewer modal */
        .dispatch-modal {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(20,10,8,0.82);
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
            z-index: 9999;
            overflow-y: auto;
            padding: 40px 16px;
        }

.dispatch-modal.open { display: block; }

.dispatch-modal-inner {
            max-width: 1060px;
            width: 100%;
            margin: 0 auto;
            background: #fff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(184,149,106,0.18);
        }

/* Header */
        .dispatch-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.1rem 2.25rem;
            background: linear-gradient(135deg, #fdfaf4 0%, #f5ece0 100%);
            border-bottom: 1px solid rgba(184,149,106,0.3);
            position: relative;
        }

.dispatch-modal-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 2.25rem;
            right: 2.25rem;
            height: 2px;
            background: linear-gradient(90deg, var(--copper) 0%, var(--teal) 100%);
            opacity: 0.6;
            border-radius: 2px;
        }

.dispatch-logo {
            height: 52px;
            width: auto;
            filter: none;
            drop-shadow: none;
        }

.dispatch-header-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
        }

.dispatch-brand {
            font-family: 'Playfair Display', serif;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--deep-brown);
            letter-spacing: 0.01em;
            line-height: 1.2;
        }

.dispatch-brand-sub {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.18em;
            color: var(--copper);
            font-weight: 600;
        }

.dispatch-modal-close {
            background: rgba(61,35,33,0.07);
            border: 1px solid rgba(61,35,33,0.14);
            color: var(--deep-brown);
            font-size: 1.3rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s, border-color 0.2s;
            line-height: 1;
            flex-shrink: 0;
            margin-left: 1.5rem;
        }

.dispatch-modal-close:hover {
            background: rgba(61,35,33,0.14);
            border-color: rgba(61,35,33,0.25);
        }

/* Content area */
        .dispatch-modal-body {
            padding: 3rem 4rem;
            background: #fff;
        }

/* Footer — ticket style (mirrors home.html) */
        .dispatch-modal-footer {
            padding: 2rem 1rem 3rem;
            display: flex;
            justify-content: center;
            font-family: 'Lato', sans-serif;
        }

.stub-title {
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            font-weight: 900;
            margin: 0 0 0.5rem 0;
            color: #C5A059;
        }

.stub-heading { font-size: 1.5rem; font-weight: 300; margin: 0 0 1.5rem 0; line-height: 1.2; }

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

.stub-form input {
            background: transparent;
            border: none;
            border-bottom: 2px solid rgba(61,35,33,0.2);
            padding: 0.5rem 0;
            font-family: 'Lato', sans-serif;
            font-size: 0.95rem;
            color: #3D2321;
            outline: none;
            transition: border-color 0.3s ease;
        }

.stub-form input:focus { border-color: #3D2321; }

.stub-form input::placeholder { color: rgba(61,35,33,0.6); font-style: italic; }

.stub-form button {
            background-color: transparent;
            color: #3D2321;
            border: 2px solid #3D2321;
            padding: 0.6rem;
            border-radius: 6px;
            font-family: 'Lato', sans-serif;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease ease;
        }

.stub-form button:hover { background-color: #3D2321; color: #F2EFE9; }

.barcode {
            margin-top: 2rem;
            height: 30px;
            width: 100%;
            background: linear-gradient(90deg,
                #3D2321 0%, #3D2321 5%, transparent 5%, transparent 8%,
                #3D2321 8%, #3D2321 10%, transparent 10%, transparent 15%,
                #3D2321 15%, #3D2321 22%, transparent 22%, transparent 24%,
                #3D2321 24%, #3D2321 26%, transparent 26%, transparent 30%,
                #3D2321 30%, #3D2321 32%, transparent 32%, transparent 35%,
                #3D2321 35%, #3D2321 45%, transparent 45%, transparent 48%,
                #3D2321 48%, #3D2321 50%, transparent 50%, transparent 55%,
                #3D2321 55%, #3D2321 60%, transparent 60%, transparent 62%,
                #3D2321 62%, #3D2321 70%, transparent 70%, transparent 75%,
                #3D2321 75%, #3D2321 77%, transparent 77%, transparent 80%,
                #3D2321 80%, #3D2321 85%, transparent 85%, transparent 88%,
                #3D2321 88%, #3D2321 95%, transparent 95%, transparent 97%,
                #3D2321 97%, #3D2321 100%
            );
            opacity: 0.3;
        }

.dispatch-header-link {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
        }

.dispatch-content p { line-height: 1.8; margin: 0 0 1rem; }

.dispatch-content h2, .dispatch-content h3, .dispatch-content h4 {
            font-family: 'Playfair Display', serif;
            color: var(--deep-brown);
            margin: 1.5rem 0 .75rem;
        }

.dispatch-content a { color: var(--teal); }

.dispatch-content img { width: 100%; border-radius: 6px; margin: 1rem 0; }

.dispatch-content blockquote {
            border-left: 3px solid var(--copper);
            padding: .75rem 1.25rem;
            margin: 1.25rem 0;
            background: #fdfaf4;
            font-style: italic;
        }

.dispatch-content hr { border: none; border-top: 1px solid rgba(184,149,106,0.3); margin: 2rem 0; }

@media (max-width: 900px) {
  .nl-featured {
                grid-template-columns: 1fr;
            }

  .nl-featured-img {
                min-height: 220px;
                max-height: 280px;
            }

  .nl-featured-body {
                padding: 2rem 1.75rem;
            }
}

@media (max-width: 768px) {
  .newsletter-grid {
                grid-template-columns: 1fr 1fr;
            }

  .modal-content {
                padding: 2rem 1.5rem;
            }

  .dispatch-modal-body {
                padding: 2rem 1.5rem;
            }

  .dispatch-modal-header {
                padding: 0.85rem 1.25rem;
            }

  .dispatch-modal-header::after {
                left: 1.25rem;
                right: 1.25rem;
            }

  .dispatch-brand {
                display: none;
            }

  .dispatch-brand-sub {
                display: none;
            }

  .dispatch-modal-footer {
                padding: 0;
            }
}

@media (max-width: 500px) {
  .newsletter-grid {
                grid-template-columns: 1fr;
            }
}

@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;
  }
}
