/*
Theme Name: EarpinSalt
Theme URI: https://earpinsalt.boats
Author: Earpin Salt Journal
Author URI: https://earpinsalt.boats
Description: A coastal editorial WordPress theme for marine journals, boating guides, fishing knowledge, and coastal travel stories. Full-width, no sidebar, styled comments, fixed submenu.
Version: 1.0.2
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: earpinsalt
Tags: blog, one-column, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks, editorial
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --es-navy: #0B2545;
  --es-navy-dark: #061a33;
  --es-navy-light: #1A3A5C;
  --es-sea: #1E6091;
  --es-sea-dark: #134872;
  --es-sea-light: #D9E8F0;
  --es-muted: #89A9C4;
  --es-sand: #F5EFE6;
  --es-sand-dark: #E8DFCE;
  --es-coral: #E76F51;
  --es-coral-dark: #C7502F;
  --es-coral-light: #FCE9E2;
  --es-off: #FDFCF9;
  --es-bg: #FFFFFF;
  --es-text: #2B2B2B;
  --es-muted-text: #6B7280;
  --es-border: #E4E0D8;
  --es-shadow-sm: 0 1px 3px rgba(11,37,69,.06);
  --es-shadow: 0 4px 16px rgba(11,37,69,.08);
  --es-shadow-lg: 0 12px 36px rgba(11,37,69,.14);
  --es-radius: 10px;
  --es-radius-sm: 4px;
  --es-container: 1400px;
  --es-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --es-font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --es-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--es-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--es-text);
  background: var(--es-off);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--es-sea); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--es-coral); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--es-font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--es-navy);
  letter-spacing: -.2px;
}

/* ============================================================
   TOP COMPASS BAR
   ============================================================ */
.es-top-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--es-navy) 0%,
    var(--es-sea) 30%,
    var(--es-muted) 55%,
    var(--es-sand-dark) 75%,
    var(--es-coral) 100%);
  position: relative;
  z-index: 100;
}
.es-top-bar::after {
  content: '⚓';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--es-off);
  color: var(--es-navy);
  font-size: 12px;
  line-height: 1;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(11,37,69,.12);
  border: 1px solid var(--es-border);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.es-container {
  width: 100%;
  max-width: var(--es-container);
  margin: 0 auto;
  padding: 0 24px;
}

.es-site { display: flex; flex-direction: column; min-height: 100vh; }
.es-content-area { flex: 1 0 auto; padding: 56px 0; display: block; }
.es-layout { display: block; width: 100%; max-width: 100%; }
.es-main { width: 100%; max-width: 100%; margin: 0 auto; }

/* ============================================================
   HEADER
   ============================================================ */
.es-header {
  background: var(--es-off);
  border-bottom: 1px solid var(--es-border);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow .25s ease, background .25s ease;
}
.es-header.no-sticky { position: static; }
.es-header.scrolled { box-shadow: 0 4px 20px rgba(11,37,69,.08); background: #fff; }

.es-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  flex-wrap: wrap;
}

.es-branding { display: flex; align-items: center; gap: 16px; flex: 1 1 auto; }
.es-branding img { max-height: 56px; width: auto; }

.es-logo-anchor { width: 46px; height: 46px; flex-shrink: 0; transition: transform .8s cubic-bezier(.4,0,.2,1); }
.es-branding:hover .es-logo-anchor { transform: rotate(-12deg) translateY(-2px); }

.es-site-title {
  font-family: var(--es-font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.5px;
  color: var(--es-navy);
  line-height: 1.05;
}
.es-site-title a { color: inherit; }
.es-site-title a:hover { color: var(--es-sea); }
.es-site-title .es-accent { color: var(--es-coral); }

.es-site-description {
  margin: 4px 0 0;
  font-family: var(--es-font-mono);
  font-size: .7rem;
  color: var(--es-muted-text);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 500;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.es-nav { flex: 1 1 auto; }

.es-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
}

.es-nav > ul > li { position: relative; }

.es-nav > ul > li > a {
  color: var(--es-navy);
  font-family: var(--es-font-body);
  font-weight: 500;
  font-size: .82rem;
  padding: 8px 0;
  position: relative;
  display: inline-block;
  transition: color .2s ease;
  text-transform: uppercase;
  letter-spacing: 1.6px;
}
.es-nav > ul > li > a:hover,
.es-nav .current-menu-item > a,
.es-nav .current-menu-ancestor > a { color: var(--es-coral); }

.es-nav .current-menu-item > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--es-coral);
  border-radius: 2px;
}

/* ---------- SUBMENU (fixed) ---------- */
.es-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 14px 0 0;
  margin: 0;
  background: transparent;
  list-style: none;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.es-nav .sub-menu::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 3px solid var(--es-sea);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 14px 40px rgba(11,37,69,.16);
  pointer-events: none;
  z-index: 0;
}

.es-nav li:hover > .sub-menu,
.es-nav li:focus-within > .sub-menu { display: flex; }

.es-nav .sub-menu li {
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
  background: transparent;
}

.es-nav .sub-menu a {
  display: block;
  padding: 11px 24px;
  font-size: .82rem;
  text-transform: none;
  letter-spacing: .5px;
  color: var(--es-navy);
  font-weight: 500;
  border-bottom: 1px solid rgba(11,37,69,.06);
  transition: background .15s ease, color .15s ease;
}
.es-nav .sub-menu li:last-child a { border-bottom: none; }
.es-nav .sub-menu a:hover,
.es-nav .sub-menu .current-menu-item > a {
  background: var(--es-sea-light);
  color: var(--es-sea-dark);
  padding-left: 28px;
}

.es-nav .sub-menu .sub-menu { top: -3px; left: 100%; padding: 0; min-width: 240px; }
.es-nav .sub-menu .sub-menu::before { top: 0; border-radius: 6px; border-top: 3px solid var(--es-coral); }

.es-nav > ul > li.menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  margin-right: 7px;
  opacity: .55;
  vertical-align: middle;
}
.es-nav .sub-menu li.menu-item-has-children > a::after {
  content: '›';
  float: right;
  font-size: 1.1em;
  opacity: .6;
  line-height: 1;
}

/* ---------- MENU TOGGLE ---------- */
.es-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  order: 3;
}
.es-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--es-navy);
  margin: 6px 0;
  transition: .3s;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .es-menu-toggle { display: block; }
  .es-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-basis: 100%;
    border-top: 1px solid var(--es-border);
  }
  .es-nav.open { display: block; }
  .es-nav > ul { flex-direction: column; gap: 0; padding: 12px 0; justify-content: flex-start; align-items: stretch; }
  .es-nav > ul > li { border-bottom: 1px solid var(--es-border); }
  .es-nav > ul > li:last-child { border-bottom: none; }
  .es-nav > ul > li > a { padding: 14px 0; display: block; font-size: .9rem; }
  .es-nav .sub-menu { position: static; display: none; padding: 0 0 0 20px; box-shadow: none; min-width: 0; background: transparent; }
  .es-nav .sub-menu::before { display: none; }
  .es-nav li:hover > .sub-menu,
  .es-nav li:focus-within > .sub-menu { display: none; }
  .es-nav li.submenu-open > .sub-menu { display: block; }
  .es-nav .sub-menu a { padding: 11px 0; border-bottom: 1px solid rgba(11,37,69,.05); }
  .es-nav .sub-menu a:hover { background: transparent; padding-left: 6px; }
  .es-nav .sub-menu .sub-menu { position: static; padding-left: 16px; }
  .es-nav .current-menu-item > a::after { display: none; }
  .es-nav > ul > li.menu-item-has-children > a::before { transform: rotate(45deg) translate(-2px, -1px); transition: transform .2s ease; }
  .es-nav > ul > li.menu-item-has-children.submenu-open > a::before { transform: rotate(-135deg) translate(-2px, -1px); }
}

/* ============================================================
   POSTS
   ============================================================ */
.es-post {
  margin-bottom: 64px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--es-border);
  position: relative;
}
.es-post:last-child { border-bottom: none; }

.es-post::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 0;
  bottom: 44px;
  width: 3px;
  background: transparent;
  transition: background .3s ease;
  border-radius: 3px;
}
.es-post:hover::before { background: var(--es-coral); }
@media (max-width: 900px) { .es-post::before { display: none; } }

.es-post-thumbnail {
  margin-bottom: 28px;
  overflow: hidden;
  border-radius: var(--es-radius);
  display: block;
  position: relative;
}
.es-post-thumbnail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,96,145,.15), rgba(231,111,81,.15));
  opacity: 0;
  transition: opacity .3s ease;
}
.es-post-thumbnail:hover::after { opacity: 1; }
.es-post-thumbnail img { width: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.es-post-thumbnail:hover img { transform: scale(1.04); }

.es-post-title {
  font-family: var(--es-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: -.4px;
}
.es-post-title a { color: var(--es-navy); }
.es-post-title a:hover { color: var(--es-sea); }

.es-post-meta {
  font-family: var(--es-font-mono);
  font-size: .72rem;
  color: var(--es-muted-text);
  margin-bottom: 22px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}
.es-post-meta a { color: var(--es-muted-text); font-weight: 600; }
.es-post-meta a:hover { color: var(--es-coral); }
.es-post-meta .es-cat-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--es-coral-light);
  color: var(--es-coral-dark);
  border-radius: 3px;
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.es-post-meta .es-cat-badge:hover { background: var(--es-coral); color: #fff; }
.es-post-meta .es-dot { display: inline-block; width: 3px; height: 3px; background: var(--es-muted); border-radius: 50%; margin: 0 2px; }

/* ============================================================
   POST CONTENT
   ============================================================ */
.es-post-content,
.entry-content {
  color: var(--es-text) !important;
  font-size: 1.08rem;
  visibility: visible;
  opacity: 1;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.85;
}
.es-post-content > *, .entry-content > * { max-width: 100%; }
.es-post-content p, .entry-content p { margin: 0 0 1.5em; color: var(--es-text); }

.es-post-content h1, .es-post-content h2, .es-post-content h3,
.es-post-content h4, .es-post-content h5, .es-post-content h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--es-navy) !important;
  margin-top: 1.6em;
  margin-bottom: .5em;
  font-family: var(--es-font-heading);
  font-weight: 700;
}
.es-post-content h1, .entry-content h1 { font-size: 2.5rem; }
.es-post-content h2, .entry-content h2 { font-size: 2rem; padding-bottom: .25em; position: relative; }
.es-post-content h2::after, .entry-content h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 2px;
  background: linear-gradient(to right, var(--es-sea), var(--es-coral));
  border-radius: 2px;
  margin-top: .45em;
}
.es-post-content h3, .entry-content h3 { font-size: 1.55rem; }
.es-post-content h4, .entry-content h4 { font-size: 1.25rem; }

.es-post-content ul, .es-post-content ol,
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin: 0 0 1.5em; }
.es-post-content li, .entry-content li { margin-bottom: .6em; color: var(--es-text); }
.es-post-content ul li::marker, .entry-content ul li::marker { color: var(--es-coral); }
.es-post-content ol li::marker, .entry-content ol li::marker { color: var(--es-sea); font-weight: 700; }

.es-post-content img, .es-post-content figure img, .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--es-radius);
  margin: 1em 0;
}
.es-post-content figure, .entry-content figure { margin: 1.6em 0; }
.es-post-content figcaption, .entry-content figcaption {
  font-family: var(--es-font-mono);
  font-size: .72rem;
  color: var(--es-muted-text);
  text-align: center;
  margin-top: .8em;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.es-post-content blockquote, .entry-content blockquote {
  border-left: 4px solid var(--es-coral);
  padding: 20px 28px;
  margin: 30px 0;
  font-family: var(--es-font-heading);
  font-style: italic;
  font-size: 1.25em;
  color: var(--es-navy);
  background: var(--es-sand);
  border-radius: 0 var(--es-radius-sm) var(--es-radius-sm) 0;
  position: relative;
}
.es-post-content blockquote::before, .entry-content blockquote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 14px;
  font-family: var(--es-font-heading);
  font-size: 4.5rem;
  color: var(--es-coral);
  line-height: 1;
  opacity: .35;
}

.es-post-content hr, .entry-content hr { border: none; border-top: 1px solid var(--es-border); margin: 3em 0; }
.es-post-content strong, .entry-content strong { font-weight: 700; color: var(--es-navy); }
.es-post-content a, .entry-content a {
  color: var(--es-sea);
  text-decoration: underline;
  text-decoration-color: rgba(30,96,145,.3);
  text-underline-offset: 3px;
  transition: all .2s ease;
  font-weight: 500;
}
.es-post-content a:hover, .entry-content a:hover { color: var(--es-coral); text-decoration-color: var(--es-coral); }

.es-post-content pre, .entry-content pre {
  background: var(--es-navy);
  color: #E8DFCE;
  padding: 22px 24px;
  border-radius: var(--es-radius-sm);
  overflow-x: auto;
  font-family: var(--es-font-mono);
  font-size: .85rem;
  line-height: 1.65;
}
.es-post-content code, .entry-content code {
  background: var(--es-sand);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--es-font-mono);
  font-size: .88em;
  color: var(--es-navy);
}

/* ============================================================
   WP BLOCKS FALLBACK
   ============================================================ */
.wp-block-image { margin: 1.6em 0; }
.wp-block-image img { border-radius: var(--es-radius); }
.wp-block-heading { margin: 1.6em 0 .5em; font-family: var(--es-font-heading); }
.wp-block-separator {
  border: none !important;
  border-top: 1px solid var(--es-border) !important;
  margin: 3em 0 !important;
  background: none !important;
  height: 0 !important;
}
.wp-block-list { padding-left: 1.6em; }
.wp-block-button__link {
  background: var(--es-sea) !important;
  color: #fff !important;
  border-radius: var(--es-radius-sm) !important;
  padding: 15px 32px !important;
  text-decoration: none !important;
  font-family: var(--es-font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  font-size: .78rem !important;
  transition: .25s !important;
}
.wp-block-button__link:hover { background: var(--es-coral) !important; transform: translateY(-1px); }
.wp-block-quote {
  border-left: 4px solid var(--es-coral);
  background: var(--es-sand);
  padding: 20px 28px;
  border-radius: 0 var(--es-radius-sm) var(--es-radius-sm) 0;
  font-family: var(--es-font-heading);
  font-style: italic;
  font-size: 1.2em;
  color: var(--es-navy);
}
.wp-block-pullquote {
  border-top: 3px solid var(--es-sea);
  border-bottom: 3px solid var(--es-sea);
  padding: 36px 0;
  font-family: var(--es-font-heading);
  font-style: italic;
  font-size: 1.4em;
  color: var(--es-navy);
  text-align: center;
}
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  border-radius: var(--es-radius-sm);
  overflow: hidden;
  border: 1px solid var(--es-border);
}
.wp-block-table th {
  background: var(--es-navy);
  color: #fff;
  padding: 14px 18px;
  text-align: left;
  font-family: var(--es-font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.wp-block-table td { padding: 12px 18px; border-bottom: 1px solid var(--es-border); font-size: .95rem; }
.wp-block-table tr:last-child td { border-bottom: none; }
.wp-block-table tr:hover td { background: var(--es-sand); }
.wp-block-columns { gap: 32px; }

/* ============================================================
   READ MORE
   ============================================================ */
.es-read-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--es-font-body);
  font-weight: 700;
  color: var(--es-sea);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: all .25s ease;
}
.es-read-more::after {
  content: '→';
  transition: transform .25s ease;
  color: var(--es-coral);
  font-size: 1rem;
}
.es-read-more:hover { color: var(--es-coral); border-bottom-color: var(--es-coral); }
.es-read-more:hover::after { transform: translateX(6px); }

/* ============================================================
   FOOTER
   ============================================================ */
.es-footer {
  background: var(--es-navy);
  color: #A8B8CC;
  padding: 0;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
}
.es-footer-widgets { display: flex; flex-wrap: wrap; gap: 48px; padding: 72px 0 44px; }
.es-footer-column { flex: 1 1 220px; min-width: 200px; }
.es-footer .widget-title {
  color: #fff;
  font-family: var(--es-font-heading);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 700;
  margin: 0 0 22px;
  padding-bottom: 14px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.es-footer .widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 46px;
  height: 2px;
  background: var(--es-coral);
  border-radius: 2px;
}
.es-footer a { color: #A8B8CC; }
.es-footer a:hover { color: var(--es-coral); }
.es-footer ul { list-style: none; padding: 0; margin: 0; }
.es-footer ul li { padding: 7px 0; }

.es-footer-nav {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
  text-align: center;
}
.es-footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.es-footer-nav a {
  color: #A8B8CC;
  font-family: var(--es-font-body);
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.es-footer-nav a:hover { color: var(--es-coral); }

.es-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
  text-align: center;
  font-size: .82rem;
  color: #7A8B9F;
}
.es-footer-bottom .es-made {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--es-font-mono);
  font-size: .68rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.es-footer-bottom .es-anchor-icon { width: 14px; height: 14px; color: var(--es-coral); }
.es-footer-bottom .es-accent-text { color: var(--es-coral); font-weight: 600; }

/* ============================================================
   BUTTONS
   ============================================================ */
.es-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--es-sea);
  color: #fff;
  border-radius: var(--es-radius-sm);
  font-family: var(--es-font-body);
  font-weight: 600;
  font-size: .78rem;
  transition: all .25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.es-btn:hover {
  background: var(--es-coral);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(231,111,81,.28);
}
.es-btn-outline {
  background: transparent;
  color: var(--es-navy);
  border: 2px solid var(--es-navy);
}
.es-btn-outline:hover { background: var(--es-navy); color: #fff; box-shadow: 0 10px 26px rgba(11,37,69,.2); }
.es-btn-coral { background: var(--es-coral); }
.es-btn-coral:hover { background: var(--es-coral-dark); box-shadow: 0 10px 26px rgba(199,80,47,.3); }

/* ============================================================
   SEARCH
   ============================================================ */
.es-search-form { display: flex; gap: 10px; margin: 16px 0; max-width: 640px; }
.es-search-form input[type="search"] {
  flex: 1;
  padding: 13px 18px;
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s;
  color: var(--es-text);
}
.es-search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--es-sea);
  box-shadow: 0 0 0 3px var(--es-sea-light);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.es-pagination { margin-top: 52px; text-align: center; }
.es-pagination .page-numbers {
  display: inline-block;
  padding: 11px 17px;
  margin: 0 4px 6px 0;
  border-radius: var(--es-radius-sm);
  background: var(--es-sand);
  color: var(--es-navy);
  font-weight: 700;
  font-family: var(--es-font-body);
  font-size: .85rem;
  transition: all .2s;
  border: 1px solid var(--es-border);
  letter-spacing: .5px;
}
.es-pagination .page-numbers:hover { background: var(--es-sea-light); border-color: var(--es-sea); }
.es-pagination .current { background: var(--es-navy); color: #fff; border-color: var(--es-navy); }
.es-pagination .current:hover { background: var(--es-navy); color: #fff; }

/* ============================================================
   POST NAVIGATION
   ============================================================ */
.es-post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 52px 0;
  padding: 32px 0;
  border-top: 1px solid var(--es-border);
  border-bottom: 1px solid var(--es-border);
  flex-wrap: wrap;
}
.es-post-navigation a {
  max-width: 48%;
  padding: 22px 26px;
  background: var(--es-sand);
  border-radius: var(--es-radius);
  transition: all .25s;
  color: var(--es-navy);
  border: 1px solid var(--es-border);
}
.es-post-navigation a:hover {
  background: var(--es-sea-light);
  transform: translateY(-2px);
  box-shadow: var(--es-shadow);
  border-color: var(--es-sea);
}
.es-post-navigation .nav-subtitle {
  display: block;
  font-family: var(--es-font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--es-coral);
  font-weight: 600;
  margin-bottom: 8px;
}
.es-post-navigation .nav-title {
  font-family: var(--es-font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--es-navy);
  line-height: 1.3;
}

/* ============================================================
   ARCHIVE HEADER
   ============================================================ */
.page-header { margin-bottom: 44px; padding-bottom: 26px; border-bottom: 1px solid var(--es-border); }
.page-header .page-title {
  font-family: var(--es-font-heading);
  font-style: italic;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 2.5rem;
  margin: 0;
  position: relative;
  padding-left: 26px;
}
.page-header .page-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: linear-gradient(to bottom, var(--es-sea), var(--es-coral));
  border-radius: 3px;
}

/* ============================================================
   HERO
   ============================================================ */
.es-hero {
  background: linear-gradient(135deg, var(--es-navy) 0%, var(--es-sea) 55%, var(--es-coral) 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 56px;
}
.es-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255,255,255,.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.08) 0%, transparent 45%);
  pointer-events: none;
}
.es-hero h1 {
  color: #fff;
  font-family: var(--es-font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 3.6rem;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
  letter-spacing: -.8px;
  line-height: 1.1;
}
.es-hero p { font-size: 1.15rem; opacity: .95; max-width: 760px; margin: 0 auto 32px; position: relative; line-height: 1.7; }
.es-hero .es-hero-buttons { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.es-hero .es-btn { background: #fff; color: var(--es-navy); }
.es-hero .es-btn:hover { background: var(--es-coral); color: #fff; }
.es-hero .es-btn-outline { background: transparent; border-color: #fff; color: #fff; }
.es-hero .es-btn-outline:hover { background: #fff; color: var(--es-navy); }

/* ============================================================
   GRID CARDS
   ============================================================ */
.es-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; }
.es-card {
  background: var(--es-sand);
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius);
  padding: 32px 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.es-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--es-sea);
  transition: width .3s ease;
}
.es-card:hover { transform: translateY(-4px); box-shadow: var(--es-shadow-lg); background: #fff; }
.es-card:hover::before { width: 5px; background: var(--es-coral); }
.es-card h3 { font-family: var(--es-font-heading); font-size: 1.4rem; margin: 0 0 10px; color: var(--es-navy); }
.es-card p { margin: 0; color: var(--es-muted-text); font-size: .95rem; line-height: 1.6; }

/* ============================================================
   GEOTAGS
   ============================================================ */
.es-geotags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
  font-family: var(--es-font-mono);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.es-geotags a, .es-geotags span {
  display: inline-block;
  padding: 5px 10px;
  background: var(--es-sea-light);
  color: var(--es-navy);
  border-radius: 3px;
  font-weight: 600;
}
.es-geotags a:hover { background: var(--es-sea); color: #fff; }

/* ============================================================
   ✨ COMMENTS — full styling
   ============================================================ */
.es-comments {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--es-border);
}

.es-comments .comments-title {
  font-family: var(--es-font-heading);
  font-style: italic;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 2rem;
  margin: 0 0 12px;
  letter-spacing: -.3px;
  line-height: 1.25;
}
.es-comments .comments-title em {
  font-style: italic;
  color: var(--es-sea);
}

/* Navigation between comment pages */
.es-comments .comment-navigation,
.es-comments .comment-navigation + .comment-navigation,
.es-comments .comments-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  font-family: var(--es-font-mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.es-comments .comment-navigation a {
  padding: 8px 14px;
  background: var(--es-sand);
  border-radius: 3px;
  color: var(--es-navy);
  font-weight: 600;
  border: 1px solid var(--es-border);
}
.es-comments .comment-navigation a:hover {
  background: var(--es-sea-light);
  border-color: var(--es-sea);
}

/* Comment list */
.es-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}

.es-comments .comment-list .children {
  list-style: none;
  padding: 0 0 0 44px;
  margin: 18px 0 0;
  border-left: 2px solid var(--es-sand-dark);
}

.es-comments .comment {
  margin-bottom: 28px;
  position: relative;
}

.es-comments .comment-body {
  background: var(--es-sand);
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius);
  padding: 26px 30px;
  position: relative;
  transition: box-shadow .2s ease, transform .2s ease;
}
.es-comments .comment-body:hover {
  box-shadow: var(--es-shadow);
}

/* Comment author */
.es-comments .comment-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-family: var(--es-font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  color: var(--es-navy);
}
.es-comments .comment-author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--es-sea-light);
  background: #fff;
  flex-shrink: 0;
}
.es-comments .comment-author .fn {
  font-style: normal;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 1.02rem;
}
.es-comments .comment-author .fn a { color: inherit; }
.es-comments .comment-author .fn a:hover { color: var(--es-coral); }
.es-comments .comment-author .says { display: none; }

/* Comment metadata */
.es-comments .comment-metadata {
  font-family: var(--es-font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--es-muted-text);
  margin-bottom: 16px;
  padding-left: 60px;
  font-weight: 500;
}
.es-comments .comment-metadata a { color: var(--es-muted-text); }
.es-comments .comment-metadata a:hover { color: var(--es-coral); }

/* Comment content */
.es-comments .comment-content {
  color: var(--es-text);
  font-size: 1rem;
  line-height: 1.75;
}
.es-comments .comment-content p:last-child { margin-bottom: 0; }
.es-comments .comment-content a {
  color: var(--es-sea);
  text-decoration: underline;
  text-decoration-color: rgba(30,96,145,.3);
  text-underline-offset: 3px;
}
.es-comments .comment-content a:hover { color: var(--es-coral); }

/* Reply link */
.es-comments .reply {
  margin-top: 16px;
  padding-left: 60px;
}
.es-comments .comment-reply-link {
  display: inline-block;
  font-family: var(--es-font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--es-sea);
  padding: 7px 16px;
  border: 1px solid var(--es-sea-light);
  border-radius: 3px;
  transition: all .2s ease;
}
.es-comments .comment-reply-link:hover {
  background: var(--es-sea);
  color: #fff;
  border-color: var(--es-sea);
}

/* Author's own comments */
.es-comments .bypostauthor > .comment-body {
  background: var(--es-sea-light);
  border-color: var(--es-sea);
}
.es-comments .bypostauthor > .comment-body::before {
  content: 'Author';
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: var(--es-font-mono);
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--es-sea);
  font-weight: 700;
  padding: 3px 8px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid var(--es-sea-light);
}

/* Pingbacks */
.es-comments .pingback .comment-body {
  padding: 14px 20px;
  font-size: .9rem;
  background: transparent;
  border-style: dashed;
}
.es-comments .pingback .comment-body .comment-author,
.es-comments .pingback .comment-body .comment-metadata { display: inline; }
.es-comments .pingback .comment-body .comment-author .avatar { display: none; }
.es-comments .pingback .comment-body .comment-metadata { padding-left: 8px; }

/* Trackbacks */
.es-comments .trackback .comment-body { background: transparent; border-style: dashed; }

/* Comments closed / no comments messages */
.es-no-comments {
  padding: 22px 26px;
  background: var(--es-sand);
  border-left: 4px solid var(--es-coral);
  border-radius: 0 var(--es-radius-sm) var(--es-radius-sm) 0;
  color: var(--es-navy);
  font-style: italic;
  font-family: var(--es-font-heading);
  font-size: 1.15rem;
  margin: 32px 0;
}

.es-comments-closed {
  margin: 40px 0 0;
  padding: 20px 24px;
  background: var(--es-sand);
  border-radius: var(--es-radius);
  border: 1px dashed var(--es-border);
  color: var(--es-muted-text);
  font-style: italic;
  text-align: center;
  font-size: .95rem;
}

/* ============================================================
   COMMENT FORM
   ============================================================ */
.es-comments .comment-respond {
  margin-top: 56px;
  padding: 36px 36px 40px;
  background: #fff;
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius);
  box-shadow: var(--es-shadow-sm);
  position: relative;
}
.es-comments .comment-respond::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 3px;
  background: linear-gradient(to right, var(--es-sea), var(--es-coral));
  border-radius: 0 0 3px 3px;
}

.es-comments .comment-reply-title {
  font-family: var(--es-font-heading);
  font-style: italic;
  font-weight: 700;
  color: var(--es-navy);
  font-size: 1.7rem;
  margin: 8px 0 12px;
  display: block;
  line-height: 1.25;
}
.es-comments .comment-reply-title small {
  display: block;
  margin-top: 8px;
  font-family: var(--es-font-mono);
  font-size: .68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 500;
}
.es-comments .comment-reply-title small a {
  color: var(--es-coral);
  font-weight: 600;
}

.es-comments .comment-notes,
.es-comments .logged-in-as {
  font-size: .85rem;
  color: var(--es-muted-text);
  margin: 0 0 26px;
  font-style: italic;
  line-height: 1.6;
}
.es-comments .logged-in-as a { color: var(--es-sea); font-weight: 600; }
.es-comments .logged-in-as a:hover { color: var(--es-coral); }

.es-comments .comment-form { display: block; }

.es-comments .comment-form-comment,
.es-comments .comment-form-author,
.es-comments .comment-form-email,
.es-comments .comment-form-url {
  margin: 0 0 22px;
}

.es-comments .comment-form label {
  display: block;
  font-family: var(--es-font-body);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--es-navy);
  margin-bottom: 8px;
}
.es-comments .comment-form label .required {
  color: var(--es-coral);
  font-weight: 700;
}

.es-comments .comment-form input[type="text"],
.es-comments .comment-form input[type="email"],
.es-comments .comment-form input[type="url"],
.es-comments .comment-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--es-border);
  border-radius: var(--es-radius-sm);
  font-size: .95rem;
  font-family: inherit;
  background: var(--es-off);
  color: var(--es-text);
  transition: border-color .2s, background .2s, box-shadow .2s;
  line-height: 1.6;
}

.es-comments .comment-form input::placeholder,
.es-comments .comment-form textarea::placeholder {
  color: #A8B0BC;
}

.es-comments .comment-form input:focus,
.es-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--es-sea);
  background: #fff;
  box-shadow: 0 0 0 3px var(--es-sea-light);
}

.es-comments .comment-form textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

.es-comments .comment-form .form-submit { margin: 28px 0 0; }

.es-comments .comment-form .submit,
.es-comments .comment-form input[type="submit"] {
  display: inline-block;
  padding: 15px 34px;
  background: var(--es-sea);
  color: #fff;
  border: none;
  border-radius: var(--es-radius-sm);
  font-family: var(--es-font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.es-comments .comment-form .submit:hover,
.es-comments .comment-form input[type="submit"]:hover {
  background: var(--es-coral);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(231,111,81,.28);
}

/* Cookies consent */
.es-comments .comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
}
.es-comments .comment-form .comment-form-cookies-consent input[type="checkbox"] {
  margin-top: 4px;
  width: auto;
  flex-shrink: 0;
}
.es-comments .comment-form .comment-form-cookies-consent label {
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
  font-weight: 400;
  color: var(--es-muted-text);
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .es-comments { margin-top: 48px; padding-top: 32px; }
  .es-comments .comments-title { font-size: 1.5rem; }
  .es-comments .comment-body { padding: 18px 20px; }
  .es-comments .comment-author .avatar { width: 38px; height: 38px; }
  .es-comments .comment-metadata { padding-left: 0; margin-top: 8px; }
  .es-comments .reply { padding-left: 0; }
  .es-comments .comment-list .children { padding-left: 20px; }
  .es-comments .comment-respond { padding: 24px 20px 28px; margin-top: 40px; }
  .es-comments .comment-reply-title { font-size: 1.35rem; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background: #fff;
  color: var(--es-sea);
  padding: 12px 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100000;
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  border-radius: 0 0 var(--es-radius-sm) 0;
  font-weight: 700;
}

/* ============================================================
   MOBILE GENERAL
   ============================================================ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .es-container { padding: 0 16px; }
  .es-content-area { padding: 32px 0; }
  .es-post-title { font-size: 1.7rem; }
  .es-single .es-post-title { font-size: 2rem; }
  .es-post-content h1 { font-size: 1.9rem; }
  .es-post-content h2 { font-size: 1.55rem; }
  .es-post-content h3 { font-size: 1.3rem; }
  .es-post-navigation a { max-width: 100%; }
  .es-hero { padding: 64px 0; }
  .es-hero h1 { font-size: 2.2rem; }
  .es-hero p { font-size: 1rem; }
  .page-header .page-title { font-size: 1.8rem; }
  .es-site-title { font-size: 1.55rem; }
  .es-logo-anchor { width: 38px; height: 38px; }
  .es-grid { grid-template-columns: 1fr; }
}
