/* Salt & Sand Weekly — Coastal Lifestyle Media
   Light sea + warm feminine palette, 360px+ responsive */

:root {
  --color-sand: #faf7f2;
  --color-sand-deep: #f0ebe3;
  --color-sea-mist: #e8f4f7;
  --color-aqua-soft: #c5e3ea;
  --color-aqua: #6eb3c3;
  --color-sea-deep: #2d5a63;
  --color-sea-ink: #1a3d45;
  --color-coral: #e5988e;
  --color-coral-soft: #fce8e4;
  --color-blush: #f5e8ec;
  --color-lilac-mist: #ede8f5;
  --color-sage: #9cb9a8;
  --color-sage-soft: #e2efe8;
  --color-white: #ffffff;
  --color-text: #2a3438;
  --color-text-muted: #5a656b;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-soft: 0 4px 24px rgba(45, 90, 99, 0.08);
  --shadow-card: 0 8px 32px rgba(45, 90, 99, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --max-content: 72rem;
  /* Horizontal page gutter; tightened on desktop (see media query) */
  --wrap-pad-x: max(var(--space-md), 4vw);
  --pattern-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'%3E%3Cpath fill='%236eb3c3' fill-opacity='0.06' d='M0 20 Q30 5 60 20 T120 20 V40H0z'/%3E%3C/svg%3E");
  --pattern-dots: radial-gradient(circle at 1px 1px, rgba(45, 90, 99, 0.07) 1px, transparent 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  line-height: 1.68;
  color: var(--color-text);
  background-color: var(--color-sand);
  background-image: var(--pattern-dots);
  background-size: 20px 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-sea-deep);
  color: var(--color-white);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--space-md);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-sea-ink);
}

h1 {
  font-size: clamp(2.125rem, 1.6rem + 2.6vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.625rem, 1.3rem + 1.35vw, 2.25rem);
}

h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.625rem);
}

a {
  color: var(--color-sea-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-aqua);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Decorative icon wash (background) */
.icon-wash {
  position: absolute;
  pointer-events: none;
  color: var(--color-aqua);
  opacity: 0.12;
  font-size: clamp(4.25rem, 12vw, 10.5rem);
  z-index: 0;
}

.icon-wash--tr {
  top: -0.15em;
  right: -0.05em;
}

.icon-wash--bl {
  bottom: -0.1em;
  left: -0.05em;
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(110, 179, 195, 0.25);
}

.site-header__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-sm) var(--wrap-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 4.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-aqua-soft), var(--color-coral-soft));
  display: grid;
  place-items: center;
  color: var(--color-sea-deep);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.logo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 1.15rem + 0.65vw, 1.85rem);
  line-height: 1.1;
  color: var(--color-sea-ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-sea-mist);
  color: var(--color-sea-deep);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
}

.nav-toggle i {
  font-size: 1.2rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--color-text);
}

.site-nav a:hover {
  color: var(--color-sea-deep);
}

.site-nav .is-active {
  color: var(--color-sea-deep);
  font-weight: 700;
}

@media (max-width: 52rem) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-white);
    border-bottom: 1px solid rgba(110, 179, 195, 0.3);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}

/* Layout */
.wrap {
  max-width: var(--max-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--wrap-pad-x);
  padding-right: var(--wrap-pad-x);
}

@media (min-width: 48rem) {
  :root {
    --wrap-pad-x: clamp(1rem, 2.25vw, 1.75rem);
  }

  .split-band__panel {
    padding: var(--space-xl) var(--space-md);
  }
}

.section {
  position: relative;
  padding-block: var(--space-xl);
  overflow: hidden;
}

.section--mist {
  background: linear-gradient(180deg, var(--color-sea-mist) 0%, var(--color-sand) 100%);
  background-image: var(--pattern-wave), linear-gradient(180deg, var(--color-sea-mist) 0%, var(--color-sand) 100%);
  background-size: 120px 40px, 100% 100%;
}

/* Align with site content rail (--max-content) like other .wrap sections */
.section--mist .prose {
  max-width: var(--max-content);
}

.section--blush {
  background: linear-gradient(135deg, var(--color-blush) 0%, var(--color-lilac-mist) 50%, var(--color-sea-mist) 100%);
}

.section--sage {
  background: var(--color-sage-soft);
  background-image: var(--pattern-dots);
  background-size: 18px 18px;
}

.section--coral-accent {
  border-block: 1px solid rgba(229, 152, 142, 0.35);
}

.section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.section__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-aqua);
  margin-bottom: var(--space-sm);
}

.section__lead {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-inline: auto;
}

/* Hero */
.hero {
  padding-block: var(--space-2xl) var(--space-xl);
  position: relative;
  background: linear-gradient(165deg, var(--color-sea-mist) 0%, var(--color-sand-deep) 45%, var(--color-blush) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern-wave);
  background-size: 100px 34px;
  opacity: 0.5;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 48rem) {
  .hero .wrap {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.hero__content h1 {
  margin: 0 0 var(--space-md);
}

.hero__content p {
  font-size: 1.175rem;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-lg);
  max-width: 32rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--color-sea-deep);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-sea-deep);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(45, 90, 99, 0.25);
}

.btn--primary:hover {
  background: var(--color-sea-ink);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--color-white);
  color: var(--color-sea-deep);
  border-color: rgba(45, 90, 99, 0.2);
}

.btn--ghost:hover {
  border-color: var(--color-aqua);
  color: var(--color-sea-deep);
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-white), var(--color-aqua-soft));
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  min-height: 12rem;
}

.hero__visual-inner {
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__visual-inner .icon-wash {
  opacity: 0.08;
  right: 50%;
  transform: translateX(50%);
  top: 10%;
}

/* Full-width continuous news / alert ticker (under hero) */
.news-ticker {
  width: 100%;
  display: flex;
  align-items: stretch;
  background: linear-gradient(90deg, var(--color-sea-ink) 0%, #1e4550 50%, var(--color-sea-ink) 100%);
  color: rgba(255, 255, 255, 0.95);
  border-block: 1px solid rgba(110, 179, 195, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.news-ticker__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0.65rem var(--space-sm) 0.65rem var(--wrap-pad-x);
  background: linear-gradient(90deg, var(--color-sea-ink) 70%, transparent 100%);
  z-index: 2;
}

.news-ticker__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(229, 152, 142, 0.35);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-ticker__badge i {
  font-size: 0.7rem;
  color: var(--color-coral-soft);
}

.news-ticker__mask {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(90deg, transparent, black 0.75rem, black calc(100% - 0.75rem), transparent);
  mask-size: 100% 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 0.75rem, black calc(100% - 0.75rem), transparent);
  -webkit-mask-size: 100% 100%;
}

.news-ticker__track {
  display: flex;
  width: max-content;
  animation: news-ticker-scroll 55s linear infinite;
}

@keyframes news-ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.news-ticker__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0.65rem 0;
  flex-shrink: 0;
}

.news-ticker__item {
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.news-ticker__item a {
  color: rgba(255, 255, 255, 0.98);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.news-ticker__item a:hover {
  color: var(--color-aqua-soft);
  text-decoration: underline;
}

.news-ticker__sep {
  color: rgba(110, 179, 195, 0.65);
  font-size: 0.28rem;
  padding: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 22.5rem) {
  .news-ticker {
    flex-direction: column;
    align-items: stretch;
  }

  .news-ticker__label {
    padding: var(--space-sm) var(--space-md) 0;
    background: transparent;
  }

  .news-ticker__mask {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    transform: none;
    padding: var(--space-sm) var(--space-md);
  }

  .news-ticker__list[aria-hidden="true"] {
    display: none;
  }

  .news-ticker__list {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    width: 100%;
    padding: 0;
  }

  .news-ticker__item {
    white-space: normal;
    text-align: center;
    padding: var(--space-xs) var(--space-sm);
  }

  .news-ticker__sep {
    display: none;
  }
}

/* Ad slots — no placeholder background or border (creative fills the box) */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  background: none;
  border: none;
}

.ad-slot--leaderboard {
  width: min(100%, 728px);
  height: 90px;
}

.ad-slot--medium {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.ad-slot--skyscraper {
  width: 160px;
  max-width: 100%;
  min-height: 600px;
}

.my-ad-ins {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 1px;
}

.ad-leaderboard-wrap {
  padding-block: var(--space-md);
}

/* Prose / editorial */
.prose {
  max-width: 42rem;
  margin-inline: auto;
}

.prose p {
  margin: 0 0 var(--space-md);
}

.prose h2 {
  margin: var(--space-lg) 0 var(--space-sm);
}

.prose blockquote {
  margin: var(--space-lg) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-coral);
  background: var(--color-coral-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-sea-ink);
}

/* Feature strip — diversity of layout */
.feature-grid {
  display: grid;
  gap: var(--space-md);
  position: relative;
  z-index: 1;
}

@media (min-width: 36rem) {
  .feature-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56rem) {
  .feature-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(110, 179, 195, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-sea-mist), var(--color-blush));
  color: var(--color-sea-deep);
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  margin: 0 0 var(--space-sm);
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* RSS blocks */
.rss-block {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid rgba(110, 179, 195, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.rss-block__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.rss-block__head i {
  font-size: 1.875rem;
  color: var(--color-aqua);
  margin-top: 0.15rem;
}

.rss-block__title {
  margin: 0;
  font-size: 1.35rem;
}

.rss-block__source {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0.15rem 0 0;
}

.rss-block__feed {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 6rem;
}

.rss-block__loading {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

a.rss-item {
  display: block;
  padding: var(--space-md) 0;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(110, 179, 195, 0.22);
  transition: background-color 0.15s ease;
  border-radius: var(--radius-sm);
}

a.rss-item:first-child {
  border-top: none;
  padding-top: 0;
}

a.rss-item:hover {
  background: rgba(232, 244, 247, 0.45);
}

a.rss-item:focus-visible {
  outline: 2px solid var(--color-sea-deep);
  outline-offset: 2px;
}

.rss-item h4 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-sea-ink);
  line-height: 1.35;
}

.rss-item p {
  margin: 0 0 var(--space-xs);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rss-item .meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  font-size: 0.85rem;
  color: var(--color-aqua);
  font-weight: 600;
}

.rss-item-icon {
  font-size: 0.7rem;
  opacity: 0.9;
}

.rss-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .rss-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Voices / diversity section */
.voices-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 52rem) {
  .voices-layout {
    grid-template-columns: 1fr 1.1fr;
  }
}

.voice-pill {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 152, 142, 0.35);
  margin-bottom: var(--space-sm);
}

.voice-pill__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-lilac-mist), var(--color-aqua-soft));
  color: var(--color-sea-deep);
  font-weight: 700;
  font-size: 0.9rem;
}

.voice-pill h4 {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
}

.voice-pill p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Split band — dual editorial pillars (palette + mood) */
.split-band-section {
  padding-block: var(--space-xl);
  background: var(--color-sand);
}

.split-band-section__intro {
  text-align: center;
  margin-bottom: var(--space-lg);
  max-width: 40rem;
  margin-inline: auto;
}

.split-band-section__intro .section__lead {
  margin-bottom: 0;
}

.split-band {
  display: grid;
  gap: 0;
  max-width: var(--max-content);
  margin-inline: auto;
}

.split-band__panel:first-child {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.split-band__panel:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

@media (min-width: 40rem) {
  .split-band {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
  }

  .split-band__panel:first-child {
    border-radius: 0;
  }

  .split-band__panel:last-child {
    border-radius: 0;
  }
}

.split-band__panel {
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.split-band__panel--sea {
  background: var(--color-sea-mist);
  background-image: var(--pattern-wave);
  background-size: 80px 28px;
}

.split-band__panel--blush {
  background: linear-gradient(160deg, var(--color-blush) 0%, var(--color-lilac-mist) 100%);
}

.split-band__panel .icon-wash {
  font-size: 6.35rem;
  opacity: 0.1;
}

.split-band__content {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

@media (min-width: 40rem) {
  .split-band__panel--blush .split-band__content {
    margin-left: auto;
  }
}

.split-band__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.65);
  color: var(--color-sea-deep);
  font-size: 1.35rem;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(45, 90, 99, 0.12);
}

/* Match global h3 + feature-card body copy */
.split-band__panel h3 {
  margin: 0 0 var(--space-sm);
}

.split-band__panel p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.split-band__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.68;
}

.split-band__list li {
  margin-bottom: var(--space-xs);
}

.split-band__list li::marker {
  color: var(--color-aqua);
}

/* Blog listing */
.blog-hero {
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, var(--color-sea-mist), var(--color-sand));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero .icon-wash {
  opacity: 0.07;
  left: 50%;
  transform: translateX(-50%);
  top: -0.5rem;
}

.blog-hero h1 {
  margin: 0 0 var(--space-sm);
}

.blog-layout {
  display: grid;
  gap: var(--space-xl);
  padding-block: var(--space-xl);
}

@media (min-width: 56rem) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }

  .blog-layout--sidebar-ads {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

/* Article + sidebar: main column uses full grid width */
.blog-layout--article .article-single {
  max-width: none;
  margin-inline: 0;
}

.blog-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 36rem) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(110, 179, 195, 0.22);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.blog-card__img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-aqua-soft), var(--color-coral-soft));
  display: grid;
  place-items: center;
  color: var(--color-sea-deep);
  font-size: 2.65rem;
  opacity: 0.95;
}

.blog-card__img--photo {
  display: block;
  padding: 0;
  position: relative;
  overflow: hidden;
  opacity: 1;
}

.blog-card__img--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__img--photo {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.blog-card__img--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: var(--space-md);
}

.blog-card__meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-aqua);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.blog-card h2 {
  font-size: 1.3rem;
  margin: 0 0 var(--space-sm);
  color: var(--color-sea-ink);
}

.blog-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.sidebar {
  position: relative;
}

.sidebar__box {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(110, 179, 195, 0.2);
  box-shadow: var(--shadow-soft);
}

/* Journal sidebar: ads sit below widgets, no card chrome */
.sidebar-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--space-md);
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.sidebar-ad:last-child {
  margin-bottom: 0;
}

.sidebar-ad .ad-slot {
  flex-shrink: 0;
}

@media (max-width: 55.99rem) {
  .sidebar .ad-slot--skyscraper {
    min-height: 400px;
  }
}

.sidebar__box h3 {
  margin: 0 0 var(--space-md);
  font-size: 1.175rem;
}

.search-form {
  display: flex;
  gap: var(--space-xs);
}

.search-form input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(45, 90, 99, 0.2);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.search-form button {
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-sea-deep);
  color: var(--color-white);
  cursor: pointer;
}

.search-form button:hover {
  background: var(--color-sea-ink);
}

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-list a {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-sand-deep);
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.95rem;
}

.cat-list a:hover {
  color: var(--color-sea-deep);
}

.cat-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.pagination a,
.pagination span {
  min-width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.pagination a {
  background: var(--color-white);
  color: var(--color-sea-deep);
  border: 1px solid rgba(45, 90, 99, 0.15);
}

.pagination a:hover {
  background: var(--color-sea-mist);
}

.pagination .is-current {
  background: var(--color-sea-deep);
  color: var(--color-white);
  border: 1px solid var(--color-sea-deep);
}

/* Article (single column) */
.article-single {
  padding-block: var(--space-lg) var(--space-2xl);
  max-width: 42rem;
  margin-inline: auto;
}

.article-hero-img {
  margin: var(--space-md) 0 var(--space-lg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(110, 179, 195, 0.22);
}

.article-hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-main {
  min-width: 0;
}

.article-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.article-meta time {
  font-weight: 600;
  color: var(--color-aqua);
}

.article-footer-share {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(110, 179, 195, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.share-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-right: var(--space-sm);
}

.share-links a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.4rem 0.75rem;
  background: var(--color-sea-mist);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Related posts */
.related-strip {
  background: var(--color-lilac-mist);
  background-image: var(--pattern-dots);
  background-size: 16px 16px;
  padding-block: var(--space-xl);
}

.related-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 36rem) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 52rem) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(110, 179, 195, 0.2);
  transition: transform 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
}

.related-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 var(--space-xs);
}

.related-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Coastal Journal only — “Related on the shore” RSS grid (not homepage .rss-block) */
.related-strip--journal-rss .journal-related-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

/* Two cards per row on wider viewports; one column on typical phones */
@media (min-width: 40rem) {
  .related-strip--journal-rss .journal-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.related-strip--journal-rss .journal-related-loading,
.related-strip--journal-rss .journal-related-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: var(--space-lg);
}

.related-strip--journal-rss .journal-related-empty a {
  font-weight: 600;
}

.related-strip--journal-rss .journal-related-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(110, 179, 195, 0.22);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-strip--journal-rss .journal-related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.related-strip--journal-rss .journal-related-card:focus-visible {
  outline: 2px solid var(--color-sea-deep);
  outline-offset: 3px;
}

.related-strip--journal-rss .journal-related-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-aqua-soft), var(--color-coral-soft));
  display: grid;
  place-items: center;
  color: var(--color-sea-deep);
  font-size: 2.25rem;
  opacity: 0.95;
}

.related-strip--journal-rss .journal-related-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.related-strip--journal-rss .journal-related-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-aqua);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.related-strip--journal-rss .journal-related-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-sea-ink);
  margin: 0 0 var(--space-sm);
}

.related-strip--journal-rss .journal-related-card__excerpt {
  margin: 0 0 var(--space-md);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-strip--journal-rss .journal-related-card__foot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sea-deep);
}

.related-strip--journal-rss .journal-related-card__foot i {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Article page only — three live RSS cards under “More from the journal” */
.related-strip--article-rss .article-related-rss-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .related-strip--article-rss .article-related-rss-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.related-strip--article-rss .article-rss-loading,
.related-strip--article-rss .article-rss-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  padding: var(--space-lg);
}

.related-strip--article-rss .article-rss-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(110, 179, 195, 0.22);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.related-strip--article-rss .article-rss-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.related-strip--article-rss .article-rss-card:focus-visible {
  outline: 2px solid var(--color-sea-deep);
  outline-offset: 3px;
}

.related-strip--article-rss .article-rss-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-aqua-soft), var(--color-coral-soft));
  display: grid;
  place-items: center;
  color: var(--color-sea-deep);
  font-size: 2rem;
  opacity: 0.95;
}

.related-strip--article-rss .article-rss-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.related-strip--article-rss .article-rss-card__eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-aqua);
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.related-strip--article-rss .article-rss-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-sea-ink);
  margin: 0 0 var(--space-sm);
}

.related-strip--article-rss .article-rss-card__excerpt {
  margin: 0 0 var(--space-md);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-strip--article-rss .article-rss-card__foot {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-sea-deep);
}

.related-strip--article-rss .article-rss-card__foot i {
  font-size: 0.7rem;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  background: var(--color-sea-ink);
  color: rgba(255, 255, 255, 0.88);
  padding-block: var(--space-xl);
  margin-top: 0;
}

.site-footer a {
  color: var(--color-aqua-soft);
}

.site-footer a:hover {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1.0625rem;
  margin: 0 0 var(--space-sm);
}

.site-footer p,
.site-footer li {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  opacity: 0.85;
}

/* 360px tweaks */
@media (max-width: 22.5rem) {
  .wrap {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }

  .section {
    padding-block: var(--space-lg);
  }

  .hero {
    padding-block: var(--space-lg);
  }

  .ad-slot--leaderboard {
    height: 50px;
  }

  .blog-card h2 {
    font-size: 1.2rem;
  }
}
