
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--primary);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Sticky glass topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Editorial Hero Banner (desktop background photo + left gradient; mobile 16:9 stacked) */
.hero-wrap {
  position: relative;
}
.hero-banner {
  position: relative;
  min-height: clamp(320px, 38vw, 460px);
  display: flex;
  align-items: center;
  background-color: var(--hero-bg, var(--surface));
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-mobile-media {
  display: none;
}
.hero-inner {
  width: 100%;
  max-width: var(--container, 1140px);
  margin: 0 auto;
  padding: clamp(2.4rem, 5vw, 4rem) 1.5rem;
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: min(560px, 56%);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.hero-banner h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero-lead {
  margin: 0 0 1.45rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.62;
  max-width: 48ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.68rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.hero-cta:hover {
  transform: translateY(-1px);
}
.hero-cta-arrow {
  transition: transform 0.18s ease;
}
.hero-cta:hover .hero-cta-arrow {
  transform: translateX(3px);
}

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.15rem;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.65rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
}
.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

/* Editorial article reading view */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.article-breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.article-header h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}
.article-meta-sep { opacity: 0.45; }
.reading-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.58rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface-alt, var(--surface));
  border: 1px solid var(--border);
  color: var(--text);
}

/* Prose typography */
.article-body {
  font-size: 1.03rem;
  line-height: 1.78;
}
.article-body > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--text);
}
.article-body h2 {
  margin: 2.3rem 0 0.85rem;
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  line-height: 1.24;
  letter-spacing: -0.015em;
}
.article-body h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.16rem;
  line-height: 1.3;
}
.article-body p { margin: 0 0 1.2rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.3rem;
  padding-left: 1.35rem;
}
.article-body li { margin-bottom: 0.45rem; }
.article-body blockquote {
  margin: 1.6rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--surface);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article-body details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1.15rem;
  margin: 0.75rem 0;
}
.article-body summary {
  font-weight: 600;
  cursor: pointer;
}

/* Editorial article cards (home + section pages) */
.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem;
  margin: 1rem 0 2.2rem;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}
.article-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt, var(--surface));
  border-bottom: 1px solid var(--border);
}
.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.article-card:hover .article-card-media img {
  transform: scale(1.02);
}
.article-card-body {
  padding: 1.1rem 1.25rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.article-card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.32;
  color: var(--text);
}
.article-card-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.52;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card-meta {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Article cover (1200x630) & inline editorial photo (1200x800) */
.article-cover {
  margin: 0 0 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt, var(--surface));
  box-shadow: var(--shadow-card);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.article-inline {
  margin: 2rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt, var(--surface));
  box-shadow: var(--shadow-card);
}
.article-inline img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.pill-ok { background: #E7F4EC; color: #165B38; border: 1px solid #C2E2CE; }
.pill-no { background: #FCECE8; color: #962E1B; border: 1px solid #F2C9BF; }
.pill-warn { background: #FDF3DF; color: #7C4A0E; border: 1px solid #F0D6A3; }

/* Responsive tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.1rem 0 2.2rem;
}

/* Mobile hero stack (< 768px): full 16:9 image above, crisp copy below, zero overlap */
@media (max-width: 767px) {
  .hero-banner {
    background-image: none !important;
    min-height: 0;
    display: block;
  }
  .hero-mobile-media {
    display: block;
    width: 100%;
    overflow: hidden;
  }
  .hero-mobile-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: right center;
  }
  .hero-inner {
    padding: 1.75rem 1.25rem 2.1rem;
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-banner h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --primary: #6F9C8C;
  --primary-deep: #3E6B5C;
  --secondary: #B7A4D4;
  --blush: #F2C9C0;
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --surface-alt: #F3EFE9;
  --text: #27312D;
  --muted: #56635E;
  --border: #E6DDD3;
  --hero-bg: #F2ECE2;
  --container: 1120px;
  --shadow-card: 0 1px 2px rgba(39,49,45,.04), 0 12px 32px rgba(39,49,45,.05);
}
body { font-family: 'Karla', system-ui, -apple-system, sans-serif; }
h1, h2, h3, .brand { font-family: 'Crimson Pro', Georgia, serif; font-weight: 500; }
a { color: var(--primary-deep); }
a:hover { color: var(--text); }
.mono { font-size: 0.84rem; color: var(--muted); }

.topbar {
  background: rgba(251, 248, 244, 0.88);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--container); margin: 0 auto; padding: 0.85rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text); font-size: 1.48rem; font-weight: 600;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.92rem; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  padding: 0.35rem 0.75rem; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary-deep); background: rgba(111, 156, 140, 0.14); }

.hero-wrap { max-width: var(--container); margin: 1.75rem auto 0; padding: 0 1.5rem; }
.hero-banner {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background-image:
    linear-gradient(95deg, rgba(251, 248, 244, 0.97) 0%, rgba(251, 248, 244, 0.91) 42%, rgba(251, 248, 244, 0.4) 62%, rgba(251, 248, 244, 0) 80%),
    url('banner.webp');
}
.hero-inner { padding: clamp(2.4rem, 4.8vw, 3.6rem) clamp(1.5rem, 3.5vw, 3rem); }
.hero-kicker { color: var(--primary-deep); }
.hero-banner h1 { color: var(--text); font-weight: 500; }
.hero-lead { color: #43504B; }
.hero-cta {
  background: var(--primary-deep); color: #FBF8F4; border-radius: 999px;
  padding: 0.7rem 1.4rem;
}
.hero-cta:hover { background: var(--text); color: #FBF8F4; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 2.6rem 1.5rem 4.2rem; }
.narrow { max-width: 680px; margin: 0 auto; }
.journal-shell { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2.5rem; align-items: start; }
.lead-story {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 2rem; margin-bottom: 2.2rem; box-shadow: var(--shadow-card);
}
.lead-kicker {
  display: inline-block; font-size: 0.74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary-deep); background: rgba(111, 156, 140, 0.14);
  padding: 0.22rem 0.7rem; border-radius: 999px; margin-bottom: 0.85rem;
}
.lead-story h2 { margin: 0 0 0.65rem; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.2; }
.lead-story p { margin: 0; color: var(--muted); }

.section-strips { display: grid; gap: 0.9rem; margin: 1rem 0 2.4rem; }
.strip-link {
  display: flex; align-items: flex-start; gap: 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.35rem;
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.strip-link:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 22px rgba(39,49,45,.07); }
.strip-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; margin-top: 0.45rem; }
.strip-link h3 { margin: 0 0 0.25rem; font-size: 1.28rem; color: var(--text); }
.strip-link p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }

.journal-aside { display: grid; gap: 1.15rem; position: sticky; top: 5rem; }
.aside-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.35rem; box-shadow: var(--shadow-card);
}
.aside-card.blush { background: #FDF4F1; border-color: #F0D5CE; }
.aside-card.lavender { background: #F6F3FA; border-color: #DFD6EB; }
.aside-card h2 { margin: 0 0 0.6rem; font-size: 1.22rem; color: var(--text); }
.aside-card p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.aside-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; font-size: 0.94rem; }
.aside-card a { text-decoration: none; color: var(--text); }
.aside-card a:hover { color: var(--primary-deep); text-decoration: underline; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.2rem 1.4rem; margin: 1.25rem 0; box-shadow: var(--shadow-card); }
.article-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.85rem; }
.article-list li {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 1.05rem 1.3rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-card); transition: transform 0.18s ease, border-color 0.18s ease;
}
.article-list li:hover { transform: translateY(-2px); border-color: var(--primary); }
.article-list a { text-decoration: none; color: var(--text); }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 2.4rem 1.5rem; font-size: 0.88rem; color: var(--muted); }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--primary-deep); }
@media (max-width: 860px) {
  .journal-shell { grid-template-columns: 1fr; }
  .journal-aside { position: static; }
}
@media (max-width: 767px) {
  .hero-wrap { margin-top: 0; padding: 0; }
  .hero-banner { border-radius: 0; border-left: 0; border-right: 0; }
}
