/* ==========================================================================
   Boats & Me — Design System & Main Stylesheet
   Palette: Deep Ocean Navy, Mediterranean Terracotta, Warm Sand Shore
   ========================================================================== */

:root {
  /* Brand Colors */
  --navy-900: #072330;
  --navy-800: #0B3648;
  --navy-700: #0B4F6C;
  --navy-600: #146B8A;
  --navy-200: #C8E3ED;
  --navy-100: #E8F4F8;
  --navy-50:  #F3F9FB;

  --terra-700: #A84931;
  --terra-600: #C45E45;
  --terra-500: #E07A5F;
  --terra-200: #F7D0C5;
  --terra-100: #FDEDE8;

  --sand-50:  #FCFAF7;
  --sand-100: #F7F3EC;
  --sand-200: #EFE9DE;
  --sand-300: #E2DACB;

  --ink-900: #141724;
  --ink-800: #1F2236;
  --ink-700: #373A50;
  --ink-500: #5C5F77;
  --ink-400: #8588A0;

  --white: #FFFFFF;
  --border: #E2DACB;
  --border-light: #ECE6DA;

  --green-800: #104F42;
  --green-700: #1A6B5A;
  --green-100: #DCF5ED;
  --amber-700: #B36822;
  --amber-100: #FEF2DF;
  --red-700:   #B83226;
  --red-100:   #FDE8E7;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* Form branding */
  --brand-color: var(--terra-500);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11, 79, 108, 0.06), 0 1px 2px rgba(11, 79, 108, 0.04);
  --shadow-md: 0 4px 14px rgba(11, 79, 108, 0.08), 0 2px 6px rgba(11, 79, 108, 0.04);
  --shadow-lg: 0 12px 28px rgba(11, 79, 108, 0.12), 0 4px 10px rgba(11, 79, 108, 0.06);
  --shadow-xl: 0 20px 40px rgba(7, 35, 48, 0.16), 0 8px 16px rgba(7, 35, 48, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 240ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-800);
  background-color: var(--sand-50);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--brand-color);
}

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

a {
  color: var(--navy-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--terra-600);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Base Layout Containers */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Announcement Banner */
.top-banner {
  background: var(--navy-900);
  color: var(--sand-100);
  padding: 0.5rem 1rem;
  font-size: 0.825rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.top-banner a {
  color: var(--terra-200);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.35rem;
}
.top-banner a:hover {
  color: var(--white);
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(252, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-title span {
  color: var(--terra-500);
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--ink-700);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--navy-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--terra-500);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--navy-800);
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.5rem;
  left: 0;
  right: 0;
  background: var(--sand-50);
  border-bottom: 2px solid var(--navy-700);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-list .nav-link {
  font-size: 1.1rem;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--terra-500);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(224, 122, 95, 0.28);
}
.btn-primary:hover {
  background-color: var(--terra-600);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.38);
}

.btn-navy {
  background-color: var(--navy-700);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(11, 79, 108, 0.25);
}
.btn-navy:hover {
  background-color: var(--navy-800);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-700);
  border-color: var(--navy-700);
}
.btn-outline:hover {
  background-color: var(--navy-50);
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn-white {
  background-color: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  background-color: var(--sand-50);
  color: var(--navy-900);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
  border-radius: 10px;
}

/* Badges and Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.badge-navy {
  background-color: var(--navy-100);
  color: var(--navy-700);
}
.badge-terra {
  background-color: var(--terra-100);
  color: var(--terra-700);
}
.badge-green {
  background-color: var(--green-100);
  color: var(--green-700);
}
.badge-amber {
  background-color: var(--amber-100);
  color: var(--amber-700);
}
.badge-outline {
  border: 1px solid var(--border);
  color: var(--ink-700);
  background-color: var(--white);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(175deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
  color: var(--white);
  padding: 5rem 0 7rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(224, 122, 95, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(20, 107, 138, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-100);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--white);
  letter-spacing: -0.015em;
}

.hero-title span {
  color: var(--terra-500);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(252, 250, 247, 0.88);
  margin-bottom: 2.25rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Wave Dividers */
.wave-divider {
  line-height: 0;
  width: 100%;
  overflow: hidden;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 54px;
}
.wave-to-sand path {
  fill: var(--sand-50);
}
.wave-to-navy path {
  fill: var(--navy-800);
}

/* Section Shells */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--navy-900);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--ink-500);
  line-height: 1.6;
}

/* Cards & Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-200);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Regional Waters Cards */
.water-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.water-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.water-card-banner {
  padding: 1.75rem 1.5rem 1.25rem;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  position: relative;
}

.water-card-flag {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.5rem;
}

.water-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.water-card-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.water-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.water-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.water-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.water-feature-item svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--terra-500);
}

/* Featured Newsletter Issue (Issue #14 Reader) */
.issue-container {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.issue-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.issue-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.issue-date {
  font-size: 0.85rem;
  color: var(--ink-400);
  font-weight: 500;
}

.issue-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--navy-900);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.issue-subtitle {
  font-size: 1.2rem;
  color: var(--ink-500);
  margin-bottom: 2rem;
  font-style: italic;
}

.issue-featured-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.issue-prose {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-800);
}

.issue-prose p {
  margin-bottom: 1.5rem;
}

.issue-prose h2, .issue-prose h3 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.issue-prose h2 {
  font-size: 1.7rem;
  border-bottom: 2px solid var(--sand-200);
  padding-bottom: 0.5rem;
}

.issue-prose h3 {
  font-size: 1.35rem;
}

.issue-prose em.italian-term {
  font-style: italic;
  color: var(--navy-700);
  font-weight: 500;
}

/* Custom Editorial Blocks (matching Beehiiv styles) */
.section-anchor-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--navy-700);
}
.section-anchor-divider::before, .section-anchor-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border);
}

.editorial-callout {
  border-left: 4px solid var(--navy-700);
  background-color: var(--navy-100);
  padding: 1.5rem 1.75rem;
  border-radius: 0 10px 10px 0;
  margin: 2rem 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-800);
}

.editorial-callout-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}

.find-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  background: var(--sand-50);
  margin: 2rem 0;
}
.find-card-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-bottom: 0.5rem;
}
.find-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.find-card-text {
  font-size: 0.95rem;
  color: var(--ink-700);
  margin-bottom: 1rem;
}

.qa-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin: 2rem 0;
}
.qa-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.qa-badge {
  background: var(--navy-700);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  height: fit-content;
  flex-shrink: 0;
}
.qa-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-900);
  line-height: 1.45;
}
.qa-answer {
  font-size: 1rem;
  color: var(--ink-700);
  line-height: 1.7;
}

/* Issue Archive Grid */
.archive-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.archive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-600);
}

.archive-thumb {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  background: var(--navy-900);
}

.archive-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.archive-issue-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terra-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.archive-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.archive-desc {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

/* Newsletter Subscription Section */
.newsletter-box {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.newsletter-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 122, 95, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.newsletter-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 500px;
  margin: 0 auto;
}

.subscribe-input-group {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.subscribe-input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--white);
  color: var(--ink-900);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.subscribe-input:focus {
  border-color: var(--terra-500);
  box-shadow: 0 0 0 4px rgba(224, 122, 95, 0.25);
}

.subscribe-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.subscribe-consent a {
  color: var(--terra-200);
  text-decoration: underline;
}

.subscribe-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

/* Author Section / Story */
.author-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.author-image-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--navy-800);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-bio h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.author-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terra-600);
  margin-bottom: 1rem;
  display: block;
}

.author-bio p {
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

/* Modal Dialog */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 35, 48, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
  animation: fadeIn var(--transition-fast) ease-out;
}

.modal-card {
  background: var(--white);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-400);
  padding: 0.25rem;
  line-height: 1;
}
.modal-close:hover {
  color: var(--ink-900);
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.modal-text {
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--navy-900);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid var(--terra-500);
  animation: slideInRight var(--transition-normal) ease;
  max-width: 380px;
}

/* Footer */
.footer {
  background: var(--navy-900);
  color: var(--sand-200);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(247, 243, 236, 0.75);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--terra-500);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(247, 243, 236, 0.6);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions .btn {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .author-image-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
  .subscribe-input-group {
    flex-direction: column;
  }
  .subscribe-input-group .btn {
    width: 100%;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
