:root {
 --primary-color: #3d5a80;
 --secondary-color: #98c1d9;
 --accent-color: #e0fbfc;
 --text-dark: #293241;
 --text-light: #5f6b7c;
 --bg-light: #f7f9fa;
 --bg-white: #ffffff;
 --border-color: #dee2e6;
 --font-heading: 'Playfair Display', serif;
 --font-body: 'Roboto', sans-serif;
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-body);
 font-size: 16px;
 line-height: 1.7;
 color: var(--text-light);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

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

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

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }

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

a:hover {
 text-decoration: underline;
}

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

/* Header & Navigation */
.header {
 background-color: var(--bg-white);
 border-bottom: 1px solid var(--border-color);
 position: sticky;
 top: 0;
 z-index: 1000;
 width: 100%;
}
.header-top-bar {
 background-color: var(--text-dark);
 color: #ccc;
 font-size: 0.8rem;
 padding: 8px 0;
}
.header-top-bar .container {
 text-align: right;
}
.nav-container {
 padding: 20px 0;
}
.nav-masthead {
 text-align: center;
 padding-bottom: 20px;
 border-bottom: 3px double var(--border-color);
 margin-bottom: 20px;
}
.nav-logo {
 font-family: var(--font-heading);
 font-size: 2.5rem;
 color: var(--text-dark);
 text-transform: uppercase;
 letter-spacing: 2px;
 font-weight: 700;
}
.nav-logo:hover {
 text-decoration: none;
}
.nav-tagline {
 display: block;
 font-size: 0.9rem;
 color: var(--text-light);
 margin-top: 5px;
 letter-spacing: 1px;
}
.nav {
 display: flex;
 justify-content: center;
}
.nav-links {
 display: flex;
 gap: 30px;
 list-style: none;
}
.nav-links a {
 font-family: var(--font-body);
 font-weight: 500;
 color: var(--text-dark);
 font-size: 0.95rem;
 text-transform: uppercase;
 letter-spacing: 0.5px;
 padding: 5px 0;
 position: relative;
}
.nav-links a:hover {
 text-decoration: none;
 color: var(--primary-color);
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0px;
 left: 0;
 width: 0;
 height: 1px;
 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;
 z-index: 1001;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: var(--transition);
}

/* Hero Section */
.hero-editorial, .article-hero {
 padding: 60px 0;
 background-color: var(--bg-white);
}
.hero-content-editorial, .article-hero .container {
 max-width: 800px;
 margin: 0 auto;
}
.hero-byline {
 font-size: 0.9rem;
 font-weight: 500;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: var(--text-light);
 margin-bottom: 20px;
}
.hero-content-editorial h1, .article-hero h1 {
 margin-bottom: 30px;
}
.hero-intro {
 font-size: 1.2rem;
 line-height: 1.8;
 color: var(--text-dark);
}
.drop-cap {
 float: left;
 font-family: var(--font-heading);
 font-size: 5rem;
 line-height: 0.8;
 margin-right: 15px;
 padding-top: 10px;
 color: var(--primary-color);
}

/* Article & Content Styles */
.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 50px auto;
}
.section-title {
 margin-bottom: 15px;
}
.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
}

.multi-column-section .multi-column-content {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
}
.multi-column-content h3 {
 margin-bottom: 15px;
}
.text-button {
 display: inline-block;
 margin-top: 20px;
 font-weight: 500;
 color: var(--primary-color);
}

.pull-quote-section {
 background-color: var(--accent-color);
 padding: 60px 0;
}
.pull-quote-section blockquote {
 font-family: var(--font-heading);
 font-size: 2rem;
 line-height: 1.4;
 text-align: center;
 color: var(--text-dark);
 max-width: 700px;
 margin: 0 auto;
 border: none;
 padding: 0;
}
.pull-quote-section cite {
 display: block;
 font-family: var(--font-body);
 font-style: normal;
 font-size: 1rem;
 margin-top: 20px;
 color: var(--text-light);
}

/* Masonry Grid */
.masonry-grid {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: 30px;
}
.masonry-item {
 background-color: var(--bg-white);
 padding: 30px;
 border: 1px solid var(--border-color);
 break-inside: avoid;
}
.masonry-item h3 {
 margin-bottom: 15px;
}

/* Long-form Article */
.long-form-article {
 padding: 60px 0;
}
.long-form-article .container {
 max-width: 750px;
}
.long-form-article h2 {
 margin-top: 50px;
 margin-bottom: 20px;
 border-bottom: 1px solid var(--border-color);
 padding-bottom: 10px;
}
.long-form-article p {
 margin-bottom: 20px;
}
.pull-quote-wrapper {
 margin: 40px 0;
 padding: 0 20px;
}
.inline-quote {
 font-family: var(--font-heading);
 font-size: 1.6rem;
 line-height: 1.5;
 color: var(--primary-color);
 border-left: 3px solid var(--primary-color);
 padding-left: 25px;
 margin: 0;
}

/* Contributors Section */
.contributors-section {
 background-color: var(--bg-light);
}
.contributors-list {
 display: grid;
 gap: 40px;
}
.contributor-item {
 border-bottom: 1px solid var(--border-color);
 padding-bottom: 20px;
}
.contributor-item:last-child {
 border-bottom: none;
}
.contributor-name {
 font-size: 1.4rem;
}
.contributor-role {
 font-style: italic;
 color: var(--text-light);
 margin: 5px 0 10px;
}

/* Contact Page */
.contact-page-section {
 padding: 60px 0;
}
.contact-grid {
 display: grid;
 grid-template-columns: 1fr 1.5fr;
 gap: 50px;
}
.contact-details h3 {
 margin-bottom: 20px;
}
.contact-item {
 margin-bottom: 25px;
}
.contact-item h4 {
 font-size: 1.1rem;
 color: var(--text-dark);
 margin-bottom: 5px;
}
.contact-item p {
 margin-bottom: 5px;
}
.contact-item a, .contact-item address {
 font-style: normal;
}
.contact-form-wrapper h3 {
 margin-bottom: 10px;
}
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 font-weight: 500;
 margin-bottom: 8px;
 color: var(--text-dark);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 font-family: var(--font-body);
 font-size: 1rem;
 background-color: var(--bg-white);
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 2px rgba(61, 90, 128, 0.2);
}
.form-group.checkbox-group {
 display: flex;
 align-items: flex-start;
 gap: 10px;
}
.form-group.checkbox-group input {
 margin-top: 5px;
}
.form-group.checkbox-group label {
 font-weight: 400;
 font-size: 0.9rem;
 margin-bottom: 0;
}
.submit-button {
 background-color: var(--primary-color);
 color: white;
 padding: 12px 25px;
 border: none;
 font-size: 1rem;
 font-weight: 500;
 cursor: pointer;
 transition: var(--transition);
}
.submit-button:hover {
 background-color: var(--text-dark);
}

/* 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;
}

/* Thank You page */
.text-center-section {
 padding: 100px 0;
}
.thank-you-content {
 max-width: 600px;
 margin: 0 auto;
 text-align: center;
 background: var(--bg-light);
 padding: 40px;
 border: 1px solid var(--border-color);
}
.thank-you-content h1 {
 margin-bottom: 20px;
}

/* Cookie Table */
.cookie-table table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 20px;
 font-size: 0.9rem;
}
.cookie-table th, .cookie-table td {
 text-align: left;
 padding: 12px;
 border-bottom: 1px solid var(--border-color);
}
.cookie-table th {
 background-color: var(--bg-light);
 font-weight: 500;
 color: var(--text-dark);
}

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #a9b4c2;
 font-size: 0.9rem;
 padding: 50px 0 30px;
 margin-top: 80px;
 text-align: center;
}
.footer a {
 color: #a9b4c2;
}
.footer a:hover {
 color: var(--bg-white);
 text-decoration: none;
}
.footer-masthead {
 margin-bottom: 20px;
}
.footer-logo {
 font-family: var(--font-heading);
 font-size: 2rem;
 color: white;
 text-transform: uppercase;
 letter-spacing: 2px;
 font-weight: 700;
}
.footer-nav {
 margin-bottom: 20px;
}
.footer-separator {
 margin: 0 10px;
 color: #5f6b7c;
}
.footer-contact-info {
 margin-bottom: 20px;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 5px 10px;
 font-size: 0.85rem;
 color: #7d899a;
}
.footer-contact-info a {
 color: #7d899a;
}
.footer-hours {
 margin-bottom: 20px;
 font-size: 0.85rem;
}
.footer-bottom {
 border-top: 1px solid #3b4759;
 padding-top: 30px;
 margin-top: 30px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.footer-copyright {
 font-size: 0.85rem;
 color: #7d899a;
}
.back-to-top {
 font-size: 0.85rem;
}

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--text-dark);
 color: var(--bg-light);
 padding: 15px 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 font-size: 0.9rem;
}
#cookie-banner p {
 margin: 0;
}
#cookie-banner a {
 color: var(--secondary-color);
 text-decoration: underline;
}
#cookie-banner div {
 display: flex;
 gap: 10px;
}
#cookie-banner button {
 padding: 8px 15px;
 border: 1px solid var(--secondary-color);
 background: var(--secondary-color);
 color: var(--text-dark);
 cursor: pointer;
 border-radius: 4px;
 transition: var(--transition);
}
#cookie-banner button.decline {
 background: transparent;
 color: var(--secondary-color);
}
#cookie-banner button:hover {
 opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 768px) {
 h1 { font-size: 2.5rem; }
 .nav-masthead, .nav {
 display: none;
 }
 .header.open .nav-masthead, .header.open .nav {
 display: block;
 }
 .header.open .nav-masthead {
 text-align: left;
 padding: 20px;
 border-bottom: 1px solid var(--border-color);
 }
 .header.open .nav-links {
 flex-direction: column;
 gap: 0;
 }
 .header.open .nav-links li {
 border-bottom: 1px solid var(--border-color);
 }
 .header.open .nav-links a {
 display: block;
 padding: 15px 20px;
 }
 .header .nav-container {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 top: auto;
 background: white;
 transform: translateY(100%);
 transition: transform 0.3s ease-in-out;
 padding: 0;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
 border-top: 1px solid var(--border-color);
 }
 .header.open .nav-container {
 transform: translateY(0);
 }
 .nav-toggle {
 display: block;
 position: fixed;
 bottom: 20px;
 right: 20px;
 background: var(--primary-color);
 border-radius: 50%;
 width: 60px;
 height: 60px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.2);
 }
 .nav-toggle span {
 background: white;
 }
 .header.open .nav-toggle span:nth-child(1) {
 transform: rotate(45deg) translate(5px, 5px);
 }
 .header.open .nav-toggle span:nth-child(2) {
 opacity: 0;
 }
 .header.open .nav-toggle span:nth-child(3) {
 transform: rotate(-45deg) translate(5px, -5px);
 }
 .multi-column-section .multi-column-content {
 grid-template-columns: 1fr;
 }
 .contact-grid {
 grid-template-columns: 1fr;
 }
 .footer-bottom {
 flex-direction: column;
 gap: 20px;
 }
 #cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}