:root {
 --primary-color: #22c55e;
 --primary-dark: #16a34a;
 --secondary-color: #3f3f46;
 --bg-light: #f5f5f4;
 --text-dark: #1c1917;
 --text-muted: #57534e;
 --border-color: #d6d3d1;
 --bg-white: #ffffff;
 --font-serif: 'Playfair Display', serif;
 --font-sans: 'Inter', sans-serif;
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
 --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
 --radius: 8px;
 --transition: all 0.3s ease-in-out;
}

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

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

body {
 font-family: var(--font-sans);
 line-height: 1.7;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-serif);
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
 margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 10vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-dark);
}

.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding: 0 24px;
}

.section {
 padding: clamp(48px, 8vw, 96px) 0;
}

.bg-light {
 background-color: var(--bg-light);
}

.section-label {
 display: inline-block;
 font-family: var(--font-sans);
 font-size: 0.8rem;
 font-weight: 600;
 text-transform: uppercase;
 letter-spacing: 1px;
 padding: 6px 16px;
 background-color: var(--primary-color);
 color: white;
 border-radius: 20px;
 margin-bottom: 1.5rem;
}

.section-header {
 margin-bottom: 3rem;
}

.section-header.centered {
 text-align: center;
 max-width: 700px;
 margin-left: auto;
 margin-right: auto;
}

.section-header p {
 font-size: 1.1rem;
 color: var(--text-muted);
}

/* Header & Nav */
.header {
 position: sticky;
 top: 0;
 width: 100%;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}

.header-top-bar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.8rem;
 padding: 8px 24px;
 background-color: var(--bg-light);
 color: var(--text-muted);
 border-bottom: 1px solid var(--border-color);
}

.nav {
 height: 80px;
 display: flex;
 justify-content: center;
 align-items: center;
 position: relative;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

.nav-logo {
 font-family: var(--font-serif);
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-dark);
}
.nav-logo:hover { color: var(--text-dark); }

.nav-links {
 list-style-type: none;
 display: flex;
 gap: 32px;
 position: absolute;
 bottom: -20px;
 background-color: var(--bg-white);
 padding: 10px 20px;
 border-radius: var(--radius);
 box-shadow: var(--shadow-md);
 border: 1px solid var(--border-color);
}

.nav-links a {
 font-family: var(--font-sans);
 font-weight: 500;
 color: var(--text-muted);
 font-size: 0.9rem;
 padding: 5px 0;
 position: relative;
}

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

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

.nav-links a.active {
 color: var(--text-dark);
}

.nav-toggle { display: none; }

/* Buttons */
.btn {
 display: inline-block;
 font-family: var(--font-sans);
 font-weight: 600;
 font-size: 0.9rem;
 padding: 12px 24px;
 border-radius: var(--radius);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
}

.btn-primary {
 background-color: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
 color: white;
}

.btn-secondary {
 background-color: transparent;
 color: var(--secondary-color);
 border-color: var(--secondary-color);
}
.btn-secondary:hover {
 background-color: var(--secondary-color);
 color: white;
}

/* Editorial Hero */
.hero-editorial {
 padding: clamp(60px, 10vw, 120px) 24px;
 min-height: 60vh;
 display: flex;
 align-items: center;
}

.hero-content-editorial {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
}

.byline {
 font-family: var(--font-sans);
 font-size: 0.9rem;
 color: var(--text-muted);
 margin-bottom: 1rem;
}

.hero-content-editorial h1 {
 font-size: clamp(3rem, 8vw, 6rem);
 line-height: 1.1;
}

.drop-cap {
 font-size: 1.5em;
 float: left;
 line-height: 0.8;
 margin-right: 0.1em;
 padding-top: 0.1em;
}

.hero-content-editorial p {
 font-size: clamp(1.1rem, 2vw, 1.25rem);
 color: var(--text-muted);
 max-width: 650px;
 margin-top: 2rem;
}

.hero-accent-image {
 position: absolute;
 width: 120px;
 height: 120px;
 object-fit: cover;
 border-radius: 4px;
 bottom: -1rem;
 right: -2rem;
 box-shadow: var(--shadow-lg);
}

/* Featured Story */
.featured-story { text-align: left; }
.story-header { 
 text-align: center;
 max-width: 700px;
 margin: 0 auto 3rem;
}

.story-content {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 4rem;
 font-size: 1.1rem;
 line-height: 1.8;
 color: var(--text-muted);
}
.story-content p { margin-bottom: 1.5rem; }
.story-content blockquote {
 font-family: var(--font-serif);
 font-size: 1.5rem;
 font-style: italic;
 color: var(--text-dark);
 line-height: 1.5;
 margin: 2rem 0;
 padding-left: 1.5rem;
 border-left: 3px solid var(--primary-color);
}

/* Masonry Grid */
.container-masonry { max-width: 100%; padding: 0; }
.masonry-grid {
 column-count: 3;
 column-gap: 1.5rem;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.masonry-item {
 display: inline-block;
 width: 100%;
 margin-bottom: 1.5rem;
 break-inside: avoid;
 background-color: var(--bg-white);
 box-shadow: var(--shadow-md);
 border-radius: var(--radius);
 overflow: hidden;
 transition: var(--transition);
}
.masonry-item:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}
.masonry-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.masonry-content { padding: 24px; }
.masonry-content h3 { margin-top: 0; margin-bottom: 0.5rem; }
.masonry-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.card-button {
 font-size: 0.8rem;
 font-weight: 600;
 color: var(--primary-color);
}
.card-button:hover {
 text-decoration: underline;
}

/* In-depth Section */
.in-depth-section {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 4rem;
 align-items: center;
}
.in-depth-media img {
 border-radius: var(--radius);
 box-shadow: var(--shadow-lg);
 width: 100%;
 height: 450px;
 object-fit: cover;
}
.in-depth-media-right { grid-column: 2 / 3; }
.in-depth-content { grid-column: 1 / 2; grid-row: 1; }
.in-depth-section.in-depth-media-right .in-depth-content { grid-column: 1 / 2; }
.in-depth-content ul {
 list-style-type: none;
 margin-top: 1.5rem;
}
.in-depth-content li {
 padding-left: 1.5rem;
 position: relative;
 margin-bottom: 1rem;
}
.in-depth-content li::before {
 content: '';
 color: var(--primary-color);
 position: absolute;
 left: 0;
 font-weight: 700;
}
.in-depth-content .btn { margin-top: 2rem; }

/* The Archive */
.archive-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 1.5rem;
}
.archive-item {
 position: relative;
 overflow: hidden;
 border-radius: var(--radius);
 box-shadow: var(--shadow-md);
 display: block;
}
.archive-item img {
 width: 100%;
 height: 250px;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.archive-item:hover img {
 transform: scale(1.05);
}
.archive-caption {
 position: absolute;
 bottom: 0;
 left: 0;
 right: 0;
 padding: 1.5rem 1rem 1rem;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
 color: white;
 font-family: var(--font-sans);
}
.archive-caption span:first-child {
 display: block;
 font-weight: 600;
}
.archive-caption span:last-child {
 font-size: 0.8rem;
 opacity: 0.8;
}

/* Subscribe Section / CTA */
.subscribe-section { background-color: var(--secondary-color); color: white; }
.subscribe-section h2, .subscribe-section .section-label { color: white; }
.subscribe-section p { color: rgba(255,255,255,0.8); }

/* Form */
.form-card {
 background: var(--bg-white);
 padding: 2rem;
 border-radius: var(--radius);
 box-shadow: var(--shadow-lg);
 max-width: 700px;
 margin: 2rem auto 0;
}
.form-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 1.5rem;
}
.form-group { position: relative; }
.form-full-width { grid-column: 1 / -1; }
.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 0.5rem;
 font-size: 0.9rem;
 color: var(--text-dark);
}
.form-group input, .form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius);
 font-family: var(--font-sans);
 font-size: 1rem;
}
.form-group textarea {
 min-height: 120px;
 resize: vertical;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 0.5rem;
}

.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; font-size: 0.9rem; font-weight: 400; color: var(--text-muted);}

/* Form validation styles */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
}
.spinner {
 display: inline-block; width: 16px; height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%; border-top-color: #fff;
 animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled] { opacity: 0.7; cursor: not-allowed; }

/* Timeline */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 2px;
 background-color: var(--border-color);
 top: 0;
 bottom: 0;
 left: 20px;
}
.timeline-step {
 padding: 1rem 0 2rem 50px;
 position: relative;
}
.timeline-step::before {
 content: '';
 position: absolute;
 left: 10px;
 top: 1rem;
 width: 22px;
 height: 22px;
 border-radius: 50%;
 background-color: var(--bg-white);
 border: 3px solid var(--primary-color);
 z-index: 1;
}

/* Featured Grid Alt */
.featured-grid-alt {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 1.5rem;
 margin-bottom: 2rem;
}
.feature-card-alt {
 background-color: var(--bg-light);
 padding: 1.5rem;
 border-radius: var(--radius);
 border-left: 4px solid var(--primary-color);
}
.feature-card-alt h3 { font-size: 1.2rem; }
.feature-card-alt p { color: var(--text-muted); }
.centered-cta { text-align: center; }

/* Team Section Byline Style */
.team-grid.byline-style {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 2rem;
}
.team-member-byline {
 display: flex;
 gap: 1.5rem;
 align-items: flex-start;
}
.team-member-byline img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
}
.team-member-byline h3 {
 font-family: var(--font-sans);
 font-size: 1.25rem; margin-bottom: 0.2rem;
}
.team-member-byline span {
 font-size: 0.9rem;
 color: var(--primary-color);
 font-weight: 500;
}
.team-member-byline p {
 font-size: 0.9rem;
 color: var(--text-muted);
 margin-top: 0.5rem;
}

/* Footer */
.footer {
 background-color: var(--secondary-color);
 color: #a1a1aa;
 font-size: 0.9rem;
 padding: 2rem 0 1rem;
 margin-top: clamp(48px, 8vw, 96px);
}
.footer-content-editorial {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 2rem;
 align-items: center;
 padding-bottom: 2rem;
 border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-editorial {
 font-family: var(--font-serif);
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
}
.footer-contact-info a { color: #a1a1aa; }
.footer-contact-info a:hover { color: white; }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--primary-color); }
.footer-hours {
 padding-top: 1rem;
 border-top: 1px solid rgba(255,255,255,0.1);
 margin-top: 1rem;
}
.footer-hours strong { color: white; }
.footer-links-editorial {
 display: flex;
 justify-content: flex-end;
 gap: 1rem;
 align-items: center;
}
.footer-links-editorial a {
 color: #a1a1aa;
 text-transform: uppercase;
 font-size: 0.8rem;
 letter-spacing: 0.5px;
}
.footer-links-editorial a:hover { color: white; }
.footer-bottom-editorial {
 text-align: center;
 padding-top: 1rem;
 font-size: 0.8rem;
}

/* Legal Pages */
.legal-page main { padding: 4rem 0; }
.legal-content h3 { margin-top: 2rem; }
.legal-content ul { margin: 1rem 0 1rem 2rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.cookie-table table {
 width: 100%;
 margin-top: 1rem;
 border-collapse: collapse;
}
.cookie-table th, .cookie-table td {
 padding: 0.75rem;
 text-align: left;
 border-bottom: 1px solid var(--border-color);
}
.cookie-table th { font-weight: 600; }

/* Contact Page Layout */
.contact-page-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 3rem;
 
}
.contact-card {
 background-color: var(--bg-light);
 padding: 1.5rem;
 border-radius: var(--radius);
 margin-bottom: 1rem;
}
.contact-icon {
 width: 40px; height: 40px;
 background-color: var(--primary-color);
 color: white;
 display: flex; align-items: center; justify-content: center;
 border-radius: 50%;
 margin-bottom: 1rem;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 1.1rem; }
.contact-card p, .contact-card a { color: var(--text-muted); }

.map-container {
 height: 450px;
 width: 100%;
 border-radius: var(--radius);
 overflow: hidden;
 box-shadow: var(--shadow-md);
}

/* Thank You page */
.thank-you-section {
 min-height: 60vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
}
.thank-you-content {
 max-width: 600px;
}

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0; left: 0; right: 0;
 background-color: var(--secondary-color);
 color: #e2e8f0;
 padding: 1rem;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 font-size: 0.9rem;
 z-index: 2000;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--primary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 0.5rem; }
#cookie-banner button {
 padding: 8px 16px;
 border: none;
 border-radius: var(--radius);
 cursor: pointer;
}
#accept-cookies { background-color: var(--primary-color); color: white; }
#decline-cookies { background-color: transparent; color: #e2e8f0; }

/* Bottom Sheet Menu (Mobile) */
.bottom-sheet {
 position: fixed;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0,0,0,0.5);
 z-index: 3000;
 transform: translateY(100%);
 transition: transform 0.3s ease-in-out;
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
}
.bottom-sheet.active {
 transform: translateY(0);
}
.bottom-sheet-content {
 background-color: white;
 padding: 2rem;
 border-top-left-radius: 20px;
 border-top-right-radius: 20px;
 position: relative;
}
.bottom-sheet-close {
 position: absolute;
 top: 1rem;
 right: 1rem;
 background: none;
 border: none;
 font-size: 2rem;
 cursor: pointer;
 color: var(--text-muted);
}
.mobile-nav ul { list-style: none; }
.mobile-nav li a {
 display: block;
 padding: 1rem 0;
 font-size: 1.5rem;
 font-weight: 500;
 color: var(--text-dark);
 text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
 .masonry-grid { column-count: 2; }
 .in-depth-section { grid-template-columns: 1fr; }
 .in-depth-media-right { grid-column: 1 / 2; grid-row: 1; }
 .team-grid.byline-style { grid-template-columns: 1fr; }
 .contact-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 .nav-links { display: none; }
 .nav { justify-content: space-between; }
 .nav-logo { font-size: 1.5rem; }
 .nav-toggle {
 display: flex;
 flex-direction: column;
 justify-content: space-around;
 width: 30px;
 height: 24px;
 background: transparent;
 border: none;
 cursor: pointer;
 padding: 0;
 }
 .nav-toggle span {
 width: 30px;
 height: 3px;
 background-color: var(--text-dark);
 border-radius: 10px;
 transition: all 0.3s linear;
 }
 
 .story-content { grid-template-columns: 1fr; gap: 2rem; }
 .footer-content-editorial { grid-template-columns: 1fr; text-align: center; }
 .footer-links-editorial { justify-content: center; margin-top: 1.5rem; }
 .footer-contact-info, .footer-hours { justify-content: center; text-align: center; }
 .footer-contact-item { justify-content: center; }

 .masonry-grid { column-count: 1; }
 
 .hero-accent-image { display: none; }
 
 .featured-grid-alt { grid-template-columns: 1fr; }

 #cookie-banner { flex-direction: column; text-align: center; }
 #cookie-banner div { width: 100%; justify-content: center; }

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

[data-aos] {
 opacity: 0;
 transform: translateY(20px);
 transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-aos="fade-up"].aos-animate {
 opacity: 1;
 transform: translateY(0);
}