:root {
 --font-heading: 'Lora', serif;
 --font-body: 'Roboto', sans-serif;
 --primary-color: #2c3e50;
 --secondary-color: #34495e;
 --accent-color: #bdc3c7;
 --text-dark: #212529;
 --text-light: #5a5a5a;
 --bg-light: #f8f9fa;
 --bg-white: #ffffff;
 --border-color: #dee2e6;
 --radius: 3px;
 --shadow: 0 2px 4px rgba(0,0,0,0.05);
 --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-body);
 line-height: 1.7;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 font-weight: 700;
 line-height: 1.3;
 color: var(--primary-color);
}

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

a:hover {
 color: var(--secondary-color);
 text-decoration: underline;
}

p {
 margin-bottom: 1.25rem;
}

ul, ol {
 margin-bottom: 1.25rem;
 padding-left: 20px;
}

li {
 margin-bottom: 0.5rem;
}

blockquote {
 font-family: var(--font-heading);
 font-style: italic;
 font-size: 1.25rem;
 color: var(--secondary-color);
 border-left: 3px solid var(--accent-color);
 padding-left: 20px;
 margin: 40px 0;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}

.page-container {
 max-width: 900px;
 margin: 0 auto;
 padding: 40px 20px;
}

.text-center {
 text-align: center;
}

/* Header & Navigation */
.header {
 background-color: var(--bg-white);
 box-shadow: var(--shadow);
 position: sticky;
 top: 0;
 z-index: 1000;
 width: 100%;
}
.header-top-bar {
 background-color: #f1f3f5;
 border-bottom: 1px solid var(--border-color);
 padding: 8px 0;
}

.header-top-bar-inner {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.85rem;
 color: var(--text-light);
}

.header-categories a {
 color: var(--text-light);
 margin-left: 15px;
 font-size: 0.8rem;
}

.nav-container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}

.masthead {
 text-align: center;
 padding: 2rem 0 1.5rem;
 border-bottom: 1px solid var(--border-color);
}

.masthead-logo {
 font-family: var(--font-heading);
 font-size: 2.5rem;
 font-weight: 700;
 color: var(--text-dark);
 letter-spacing: 1px;
 text-transform: lowercase;
 text-decoration: none;
}
.masthead-logo:hover {
 text-decoration: none;
}

.masthead-tagline {
 display: block;
 margin-top: 5px;
 font-size: 0.9rem;
 color: var(--text-light);
 letter-spacing: 0.5px;
}

.nav-main {
 display: flex;
 justify-content: center;
 padding: 10px 0;
}

.nav-links {
 list-style: none;
 display: flex;
 gap: 30px;
}

.nav-links a {
 font-size: 1rem;
 font-weight: 500;
 color: var(--secondary-color);
 padding: 10px 5px;
 position: relative;
 text-decoration: none;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 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-toggle {
 display: none;
 position: absolute;
 top: 50px;
 right: 20px;
 background: none;
 border: none;
 cursor: pointer;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: var(--transition);
}

/* Sections */
.section {
 padding: 80px 0;
}
.bg-light {
 background-color: var(--bg-light);
}

/* Editorial Hero */
.hero-editorial {
 padding: 60px 0;
}

.hero-content {
 max-width: 800px;
 margin: 0 auto;
 text-align: center;
}

.hero-byline {
 font-size: 0.9rem;
 color: var(--text-light);
 margin-bottom: 1rem;
}

.hero-headline {
 font-size: clamp(3rem, 10vw, 6rem);
 line-height: 1.1;
 margin-bottom: 1rem;
}

.hero-subheadline {
 font-family: var(--font-body);
 font-size: 1.5rem;
 color: var(--secondary-color);
 font-weight: 400;
 margin-bottom: 2rem;
}

.hero-intro {
 font-size: 1.1rem;
 line-height: 1.8;
 color: var(--text-dark);
 text-align: left;
 max-width: 700px;
 margin: 0 auto;
}

.drop-cap {
 float: left;
 font-family: var(--font-heading);
 font-size: 4rem;
 line-height: 0.8;
 margin-right: 10px;
 font-weight: 700;
 color: var(--primary-color);
}

/* Column Layout */
.column-layout {
 display: flex;
 gap: 40px;
}
.column-main {
 flex: 3;
}
.column-side {
 flex: 1;
}

.side-panel {
 background-color: var(--bg-light);
 padding: 20px;
 border: 1px solid var(--border-color);
}
.side-panel-title {
 font-size: 1.2rem;
 margin-bottom: 15px;
 border-bottom: 1px solid var(--border-color);
 padding-bottom: 10px;
}
.side-panel-list {
 list-style: none;
 padding: 0;
}
.side-panel-list li {
 font-size: 0.9rem;
 padding-left: 15px;
 position: relative;
}
.side-panel-list li::before {
 content: '›';
 position: absolute;
 left: 0;
 color: var(--primary-color);
 font-weight: 700;
}

/* Editorial Section Headers */
.section-header-editorial {
 margin-bottom: 40px;
}
.section-title-editorial {
 font-size: 2.5rem;
 margin-bottom: 10px;
}
.section-subtitle-editorial {
 font-size: 1.2rem;
 color: var(--text-light);
 font-weight: 400;
}

/* Masonry Grid */
.masonry-grid {
 column-count: 3;
 column-gap: 20px;
}
.text-card {
 background-color: var(--bg-white);
 padding: 25px;
 margin-bottom: 20px;
 break-inside: avoid;
 border: 1px solid var(--border-color);
 box-shadow: var(--shadow);
 transition: var(--transition);
}
.text-card:hover {
 box-shadow: 0 4px 15px rgba(0,0,0,0.1);
 transform: translateY(-5px);
}
.card-title-editorial {
 font-size: 1.3rem;
 margin-bottom: 15px;
}
.text-card p {
 font-size: 0.95rem;
}
.card-meta-editorial {
 display: block;
 margin-top: 20px;
 font-size: 0.8rem;
 font-weight: 700;
 color: var(--accent-color);
 text-transform: uppercase;
}
.card-meta-editorial::before {
 content: '';
 display: block;
 width: 20px;
 height: 2px;
 background-color: var(--accent-color);
 margin-bottom: 8px;
}

/* Article Layout */
.article-layout {
 font-size: 1.1rem;
}
.article-header {
 text-align: center;
 margin-bottom: 40px;
 padding-bottom: 20px;
 border-bottom: 1px solid var(--border-color);
}
.article-title {
 font-size: 3rem;
 margin-bottom: 10px;
}
.article-meta {
 font-size: 0.9rem;
 color: var(--text-light);
}
.article-body h2 {
 font-size: 1.8rem;
 margin-top: 40px;
 margin-bottom: 20px;
}
.article-body h3 {
 font-size: 1.4rem;
 margin-top: 30px;
 margin-bottom: 15px;
}
.pull-quote {
 max-width: 80%;
 margin: 40px auto;
 text-align: center;
}

/* Contributors Section */
.contributors-list {
 margin-top: 40px;
}
.contributor-item {
 border-top: 1px solid var(--border-color);
 padding-top: 20px;
 margin-top: 20px;
}
.contributor-name {
 font-size: 1.5rem;
}
.contributor-role {
 font-style: italic;
 color: var(--text-light);
 margin-bottom: 10px;
}
.contributor-bio {
 font-size: 1rem;
}

/* Subscription Form */
.subscribe-box {
 max-width: 600px;
 margin: 0 auto;
 text-align: center;
 background-color: var(--bg-light);
 padding: 40px;
 border: 1px solid var(--border-color);
}

.form-editorial {
 display: flex;
 gap: 10px;
 margin-top: 20px;
}
.form-editorial input {
 flex-grow: 1;
 padding: 12px;
 border: 1px solid var(--border-color);
 font-size: 1rem;
}
.btn-editorial {
 padding: 12px 25px;
 background-color: var(--primary-color);
 color: var(--bg-white);
 border: none;
 cursor: pointer;
 font-size: 1rem;
 font-weight: 500;
 transition: var(--transition);
}
.btn-editorial:hover {
 background-color: var(--secondary-color);
}

/* Contact page */
.contact-page-layout {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 50px;
 margin-top: 40px;
}
.contact-info-section h2, .contact-form-section h2 {
 font-size: 1.8rem;
 margin-bottom: 20px;
}
.contact-details-list {
 margin-top: 20px;
}
.contact-detail-item {
 margin-bottom: 20px;
}
.contact-detail-title {
 font-size: 1rem;
 font-weight: 700;
 text-transform: uppercase;
 color: var(--text-light);
 letter-spacing: 1px;
 margin-bottom: 5px;
}
.form-label {
 display: block;
 margin-bottom: 5px;
 font-weight: 500;
}
.form-control {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 font-size: 1rem;
 font-family: var(--font-body);
 transition: var(--transition);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}
textarea.form-control {
 resize: vertical;
}
.form-group {
 margin-bottom: 20px;
}
.form-group-checkbox {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 margin-bottom: 20px;
 font-size: 0.9rem;
}
.form-group-checkbox input {
 margin-top: 5px;
}
.sr-only {
 position: absolute;
 width: 1px;
 height: 1px;
 padding: 0;
 margin: -1px;
 overflow: hidden;
 clip: rect(0,0,0,0);
 border: 0;
}

/* Cookie table */
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin: 30px 0;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-family: var(--font-body);
}

/* Footer */
.footer {
 background-color: #2c3e50;
 color: #ecf0f1;
 padding: 40px 0 20px;
 margin-top: 80px;
 font-size: 0.9rem;
}
.footer a {
 color: #ecf0f1;
}
.footer a:hover {
 color: #bdc3c7;
}

.footer-content {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 flex-wrap: wrap;
 gap: 30px;
 margin-bottom: 30px;
}
.footer-brand {
 max-width: 250px;
}
.footer-logo {
 font-family: var(--font-heading);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--bg-white);
 text-transform: lowercase;
}
.footer-logo:hover{
 text-decoration: none;
}
.footer-description {
 font-size: 0.85rem;
 color: #bdc3c7;
 line-height: 1.6;
}

.footer-info-block {
 display: flex;
 gap: 40px;
 flex-wrap: wrap;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 500;
 color: #fff;
 margin-bottom: 15px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}
.footer-contact-item {
 display: flex;
 align-items: flex-start;
 gap: 10px;
 margin-bottom: 10px;
 color: #bdc3c7;
}
.footer-contact-item svg {
 margin-top: 4px;
 flex-shrink: 0;
}
.footer-bottom {
 border-top: 1px solid #34495e;
 padding-top: 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.85rem;
 color: #7f8c8d;
}
.footer-legal-links a {
 margin: 0 10px;
 color: #7f8c8d;
}
.back-to-top {
 color: #7f8c8d;
 text-decoration: none;
}
.back-to-top:hover {
 color: #bdc3c7;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: #34495e;
 color: white;
 padding: 15px 20px;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 1001;
 font-size: 0.9rem;
}
.cookie-banner p {
 margin: 0;
}
.cookie-banner a {
 color: #bdc3c7;
 text-decoration: underline;
}
.cookie-buttons button {
 background-color: #ecf0f1;
 color: #2c3e50;
 border: none;
 padding: 8px 15px;
 margin-left: 10px;
 cursor: pointer;
 border-radius: var(--radius);
}
.cookie-buttons button:last-child {
 background-color: transparent;
 border: 1px solid #ecf0f1;
 color: #ecf0f1;
}

/* Form Validation */
.input-error {
 border-color: #e74c3c !important;
 box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1) !important;
}

.field-error {
 color: #c0392b;
 font-size: 0.85rem;
 margin-top: 4px;
 animation: fadeIn 0.3s ease;
}

.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); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

button:disabled, input[type="submit"]:disabled {
 opacity: 0.7;
 cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
 .column-layout {
 flex-direction: column;
 }
 .masonry-grid {
 column-count: 2;
 }
 .contact-page-layout {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 768px) {
 .nav-main {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 height: 0;
 background-color: white;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
 z-index: 999;
 overflow: hidden;
 transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
 }
 .nav-main.active {
 height: 250px;
 }
 .nav-links {
 flex-direction: column;
 width: 100%;
 height: 100%;
 justify-content: center;
 align-items: center;
 padding: 20px;
 }
 .nav-toggle {
 display: block;
 z-index: 1000;
 top: auto;
 bottom: 20px;
 right: 20px;
 background-color: var(--primary-color);
 width: 50px;
 height: 50px;
 border-radius: 50%;
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
 }
 .nav-toggle span {
 background-color: white;
 }
 .nav-toggle.active span:nth-child(1) {
 transform: translateY(7px) rotate(45deg);
 }
 .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }
 .nav-toggle.active span:nth-child(3) {
 transform: translateY(-7px) rotate(-45deg);
 }
 .header-top-bar {
 display: none;
 }
 .masthead {
 padding: 1.5rem 0 1rem;
 }
 .hero-headline {
 font-size: clamp(2.5rem, 12vw, 4rem);
 }
 .masonry-grid {
 column-count: 1;
 }
 .footer-content, .footer-bottom {
 flex-direction: column;
 text-align: center;
 gap: 20px;
 }
 .footer-legal-links {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 }
 .back-to-top {
 margin-top: 10px;
 }
 .cookie-banner {
 flex-direction: column;
 gap: 10px;
 text-align: center;
 }
}