:root {
  --cream: #f0e8d6;
  --cream-light: #f8f3e9;
  --cream-soft: #e6dbca;
  --ink: #191d14;
  --ink-soft: #4a5441;
  --olive-deep: #252f1f;
  --olive: #526040;
  --olive-muted: #7d8b6c;
  --brass: #9a7a32;
  --stone: #b09a72;
  --line: #c8baaa;
  --line-soft: #dccfba;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --mw: 1120px;
  --px: 24px;
  --r: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(154, 122, 50, 0.08), transparent 34%),
    linear-gradient(180deg, #f6f0e4 0%, var(--cream) 28%, #f7f1e6 100%);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0;
  color: var(--ink-soft);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

li + li {
  margin-top: 0.45rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.25;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  width: min(100%, var(--mw));
  margin: 0 auto;
  padding: 0 var(--px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 232, 214, 0.9);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  display: block;
  height: 34px;
  width: auto;
}

.brand--drawer img {
  height: 30px;
}

.brand--footer img {
  height: 54px;
}

.nav-desktop {
  display: none;
  list-style: none;
  padding: 0;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.18s;
}

.nav-desktop a:hover {
  color: var(--olive-deep);
}

.nav-desktop li + li {
  margin-top: 0;
}

.related-card a,
.back-link {
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta,
.nav-chat-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--cream-light);
  background: var(--olive-deep);
  border-color: var(--olive-deep);
}

.btn-primary:hover {
  background: #1a2016;
  border-color: #1a2016;
}

.btn-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-secondary:hover {
  background: var(--cream-soft);
  border-color: var(--olive);
}

.btn-chat {
  background: var(--cream-light);
  color: var(--olive-deep);
  border-color: var(--line);
}

.btn-chat:hover {
  background: var(--cream-soft);
  border-color: var(--olive);
}

.nav-cta,
.nav-chat-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r);
  color: var(--ink);
  flex-shrink: 0;
  transition: background 0.18s;
}

.menu-toggle:hover {
  background: var(--cream-soft);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(25, 29, 20, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-visible {
  display: block;
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--cream-light);
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r);
  color: var(--ink);
  transition: background 0.18s;
}

.nav-drawer-close:hover {
  background: var(--cream-soft);
}

.nav-drawer-links {
  list-style: none;
  padding: 24px 0;
  margin: 0;
  flex: 1;
}

.nav-drawer-links li {
  margin-top: 0;
}

.nav-drawer-links li a {
  display: block;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-drawer-links li a:hover {
  background: var(--cream-soft);
  color: var(--olive-deep);
}

.nav-drawer-cta {
  padding: 20px 28px 32px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}

.nav-drawer-cta .btn {
  width: 100%;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy p {
  margin-top: 22px;
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(82, 96, 64, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--olive);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.section {
  padding: 36px 0 92px;
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-head p {
  max-width: 58ch;
}

.posts-grid,
.related-grid {
  display: grid;
  gap: 24px;
}

.post-card,
.related-card,
.article-shell,
.highlight-card,
.cta-panel {
  border: 1px solid rgba(200, 186, 170, 0.72);
  background: rgba(248, 243, 233, 0.84);
  box-shadow: 0 12px 34px rgba(37, 47, 31, 0.05);
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(37, 47, 31, 0.08);
  border-color: rgba(82, 96, 64, 0.28);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(200, 186, 170, 0.72);
  background: var(--cream-soft);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px 26px;
}

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.post-card h2,
.post-card h3 {
  margin-bottom: 14px;
}

.post-card-title {
  color: var(--ink);
  transition: color 0.18s ease;
}

.post-card:hover .post-card-title {
  color: var(--olive-deep);
}

.post-card-excerpt {
  flex: 1;
}

.post-card p {
  margin-bottom: 22px;
}

.post-link {
  font-weight: 700;
  color: var(--olive-deep);
}

.post-link:hover {
  color: var(--olive);
}

.article-page {
  padding: 0 0 96px;
}

.article-hero {
  padding-bottom: 34px;
}

.article-hero .container {
  max-width: none;
  padding: 0;
}

.article-hero-frame {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  min-height: clamp(420px, 62vw, 760px);
  overflow: hidden;
  background: var(--cream-soft);
}

.article-hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - var(--mw)) / 2 + 24px));
  bottom: 190px;
  z-index: 2;
  width: min(calc(100% - 48px), 620px);
  padding: 0;
  text-shadow: 0 2px 12px rgba(25, 29, 20, 0.28);
}

.article-hero-copy .eyebrow {
  color: rgba(248, 243, 233, 0.86);
}

.article-hero-copy .eyebrow::before {
  background: currentColor;
}

.article-hero-copy h1 {
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 1.02;
  max-width: 12ch;
  color: var(--cream-light);
}

.article-hero-copy p {
  margin-top: 18px;
  font-size: 1.02rem;
  max-width: 56ch;
  color: rgba(248, 243, 233, 0.88);
}

.article-hero-copy .hero-meta {
  margin-top: 22px;
}

.article-hero-copy .meta-pill {
  color: var(--cream-light);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(248, 243, 233, 0.22);
  backdrop-filter: blur(4px);
}

.article-hero-media {
  position: absolute;
  inset: 0;
  background: var(--cream-soft);
}

.article-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 29, 20, 0.72) 0%, rgba(25, 29, 20, 0.44) 22%, rgba(25, 29, 20, 0.12) 46%, rgba(25, 29, 20, 0.06) 60%, rgba(25, 29, 20, 0.18) 100%),
    linear-gradient(180deg, rgba(25, 29, 20, 0.06), rgba(25, 29, 20, 0.26));
}

.article-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  gap: 28px;
}

.article-shell {
  padding: 34px 24px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--olive);
  font-weight: 700;
}

.article-content {
  display: grid;
  gap: 26px;
}

.article-intro {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.article-intro blockquote {
  margin-bottom: 20px;
}

.article-intro p {
  font-size: 1.02rem;
}

.article-content-body {
  display: grid;
  gap: 26px;
}

.article-content-body section {
  display: grid;
  gap: 14px;
}

.article-content blockquote {
  margin: 0;
  padding: 20px 22px;
  border-left: 3px solid var(--brass);
  background: rgba(230, 219, 202, 0.45);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.58rem);
  line-height: 1.32;
  color: var(--olive-deep);
}

.article-content-body strong {
  color: var(--ink);
}

.article-content-body ul {
  display: grid;
  gap: 8px;
}

.article-content-body .cta-line {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--olive-deep);
}

.sidebar {
  display: grid;
  gap: 20px;
}

.highlight-card,
.cta-panel,
.related-card {
  padding: 24px 22px;
}

.highlight-card ul,
.cta-panel p,
.related-card p {
  margin-top: 14px;
}

.related-card h3 {
  margin-bottom: 10px;
}

footer,
.footer {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 60px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 232, 214, 0.65);
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.69rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li {
  margin-top: 0;
}

.footer-col a {
  font-size: 0.92rem;
  color: rgba(240, 232, 214, 0.8);
  text-decoration: none;
  transition: color 0.18s;
}

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

.footer-col button {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  color: rgba(240, 232, 214, 0.8);
  cursor: pointer;
  transition: color 0.18s;
}

.footer-col button:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(200, 186, 170, 0.18);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(200, 186, 170, 0.65);
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 260;
  padding: 18px var(--px) 22px;
  pointer-events: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  max-width: var(--mw);
  margin: 0 auto;
  display: grid;
  gap: 16px;
  padding: 18px 18px;
  border: 1px solid rgba(240, 232, 214, 0.16);
  border-radius: 18px;
  background: rgba(25, 29, 20, 0.97);
  box-shadow: 0 20px 48px rgba(25, 29, 20, 0.24);
  color: var(--cream);
  backdrop-filter: blur(12px);
}

.cookie-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}

.cookie-banner__eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.cookie-banner__title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--cream);
}

.cookie-banner__text {
  max-width: 780px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(240, 232, 214, 0.78);
}

.cookie-banner__text a {
  color: var(--cream);
  text-decoration-color: rgba(240, 232, 214, 0.35);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cookie-secondary {
  background: transparent;
  color: var(--cream);
  border-color: rgba(240, 232, 214, 0.24);
}

.btn-cookie-secondary:hover {
  background: rgba(240, 232, 214, 0.08);
  border-color: rgba(240, 232, 214, 0.34);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 330;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 20, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-modal-dialog {
  position: relative;
  width: clamp(620px, 52vw, 820px);
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.98), rgba(240, 232, 214, 0.98));
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(25, 29, 20, 0.24);
}

.contact-modal-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.contact-modal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 243, 233, 0.96);
}

.contact-modal-header h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.08;
}

.contact-modal-header p {
  max-width: 720px;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--olive);
}

.contact-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}

.contact-modal-close:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
}

.contact-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(240, 232, 214, 0.52), rgba(248, 243, 233, 0.94)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 32%);
}

.contact-modal-intro {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field--wide {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-input:hover,
.contact-textarea:hover {
  border-color: var(--olive-muted);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.contact-textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-help {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--olive-muted);
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.34);
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--olive);
}

.contact-consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.contact-consent a {
  color: var(--olive-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.contact-consent a:hover {
  color: var(--olive);
}

.contact-status-row {
  font-size: 0.88rem;
  color: var(--olive);
}

.contact-status-row[hidden] {
  display: none;
}

.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 12px;
  margin-top: 2px;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-send-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.contact-send-status[hidden] {
  display: none;
}

.contact-note {
  margin-top: 2px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--olive-muted);
}

.chat-modal[hidden] {
  display: none;
}

.chat-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 29, 20, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chat-modal-dialog {
  position: relative;
  width: clamp(560px, 46vw, 700px);
  height: min(760px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cream-light);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(25, 29, 20, 0.24);
}

.chat-modal-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.chat-modal-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(248, 243, 233, 0.92);
}

.chat-modal-header h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.08;
}

.chat-modal-header p {
  max-width: 720px;
  margin-top: 7px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-access-panel {
  display: grid;
  gap: 14px;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(248, 243, 233, 0.95), rgba(240, 232, 214, 0.82)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 34%);
}

.chat-access-intro {
  max-width: 700px;
  font-size: 0.95rem;
  line-height: 1.62;
}

.chat-access-form {
  display: grid;
  gap: 14px;
}

.chat-access-field {
  display: grid;
  gap: 6px;
}

.chat-access-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}

.chat-access-input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream-light);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-access-input:hover {
  border-color: var(--olive-muted);
}

.chat-access-input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.chat-access-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.4);
}

.chat-access-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--olive);
}

.chat-access-consent label {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.chat-access-consent a {
  color: var(--olive-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.chat-access-consent a:hover {
  color: var(--olive);
}

.chat-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.chat-access-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.chat-access-status[hidden] {
  display: none;
}

.chat-workspace {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-workspace[hidden] {
  display: none;
}

.chat-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--r);
  flex-shrink: 0;
}

.chat-modal-close:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--cream);
}

.chat-prompt-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--cream-light);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.chat-prompt-btn:hover {
  background: var(--cream-soft);
  border-color: var(--olive-muted);
  transform: translateY(-1px);
}

.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(240, 232, 214, 0.55), rgba(248, 243, 233, 0.92)),
    radial-gradient(circle at top right, rgba(154, 122, 50, 0.08), transparent 30%);
}

.chat-message {
  display: flex;
  margin-bottom: 16px;
}

.chat-message--assistant {
  justify-content: flex-start;
}

.chat-message--user {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(720px, 100%);
  padding: 16px 18px;
  border: 1px solid var(--line);
  line-height: 1.65;
  font-size: 0.96rem;
  white-space: pre-wrap;
}

.chat-message--assistant .chat-bubble {
  background: var(--cream);
  color: var(--ink);
}

.chat-message--user .chat-bubble {
  background: var(--olive-deep);
  border-color: var(--olive-deep);
  color: var(--cream);
}

.chat-status-row {
  padding: 0 24px 14px;
  color: var(--olive);
  font-size: 0.86rem;
}

.chat-status-row[hidden] {
  display: none;
}

.chat-composer {
  border-top: 1px solid var(--line-soft);
  background: var(--cream-light);
  padding: 12px 24px 14px;
}

.chat-form {
  display: grid;
  gap: 6px;
}

.chat-turnstile-wrap {
  display: grid;
  gap: 4px;
}

.chat-turnstile {
  min-height: 0;
}

.chat-input-wrap {
  display: grid;
  gap: 6px;
}

.chat-textarea {
  width: 100%;
  min-height: 108px;
  max-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink);
  padding: 16px 18px;
  font: inherit;
  line-height: 1.6;
  border-radius: var(--r);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.chat-textarea:hover {
  border-color: var(--olive-muted);
}

.chat-textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(154, 122, 50, 0.12);
}

.chat-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px 12px;
}

.chat-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-send-status {
  font-size: 0.84rem;
  color: var(--olive);
}

.chat-send-status[hidden] {
  display: none;
}

@media (min-width: 860px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding: 96px 0 62px;
  }

  .section-head {
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
  }

  .posts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
    align-items: start;
  }

  .article-hero {
    padding-bottom: 42px;
  }

  .article-shell {
    padding: 42px 38px;
  }
}

@media (max-width: 639px) {
  .article-page {
    padding-top: 0;
  }

  .article-hero-frame {
    min-height: 520px;
  }

  .article-hero-copy {
    left: 18px;
    right: 18px;
    bottom: 132px;
    width: auto;
    padding: 0;
  }

  .article-hero-copy h1 {
    max-width: none;
  }

  .article-hero-media::after {
    background:
      linear-gradient(180deg, rgba(25, 29, 20, 0.08) 0%, rgba(25, 29, 20, 0.3) 40%, rgba(25, 29, 20, 0.58) 100%);
  }

  .post-card,
  .article-shell,
  .highlight-card,
  .cta-panel,
  .related-card {
    padding: 24px 20px;
  }

  .post-card-body {
    padding: 24px 20px;
  }
}

@media (min-width: 640px) {
  .nav-cta {
    display: inline-flex;
  }
}

@media (min-width: 680px) {
  .footer-inner {
    grid-template-columns: 2.2fr 1fr 1fr 1fr;
    gap: 60px;
  }
}

@media (min-width: 720px) {
  .cookie-banner__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 20px 24px;
  }
}

@media (min-width: 760px) {
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .nav-chat-cta {
    display: inline-flex;
  }
}

@media (max-width: 719px) {
  .cookie-banner__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 699px) {
  .contact-modal {
    padding: 20px;
  }

  .contact-modal-dialog {
    width: min(100%, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 18px;
  }

  .contact-modal-shell {
    height: 100%;
  }

  .contact-modal-header,
  .contact-modal-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-modal-header {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .contact-modal-header h3 {
    font-size: 1.35rem;
  }

  .contact-modal-header p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .contact-modal-body {
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .contact-textarea {
    min-height: 148px;
  }

  .chat-modal {
    padding: 20px;
  }

  .chat-modal-dialog {
    width: min(100%, calc(100vw - 40px));
    height: min(760px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    border-radius: 18px;
  }

  .chat-modal-shell {
    height: 100%;
  }

  .chat-modal-header,
  .chat-quick-actions,
  .chat-thread,
  .chat-composer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chat-modal-header {
    padding-top: 18px;
    padding-bottom: 14px;
  }

  .chat-modal-header h3 {
    font-size: 1.35rem;
  }

  .chat-modal-header p {
    font-size: 0.86rem;
    line-height: 1.48;
  }

  .chat-access-panel {
    padding: 16px;
  }

  .chat-access-intro {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .chat-access-consent {
    padding: 12px 14px;
  }

  .chat-access-consent label {
    font-size: 0.84rem;
    line-height: 1.48;
  }

  .chat-quick-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chat-quick-actions::-webkit-scrollbar {
    display: none;
  }

  .chat-prompt-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 9px 12px;
  }

  .chat-thread {
    padding-top: 16px;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .chat-composer {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .chat-textarea {
    min-height: 92px;
    max-height: 180px;
  }

  .chat-turnstile {
    min-height: 0;
  }
}
