/* ================================================
   A Terra Liberty — Shared Stylesheet
   ================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --cream:             #FAF7F2;
  --cream-dark:        #F2EDE4;
  --cream-mid:         #E8E1D6;
  --brown-dark:        #2C2010;
  --brown-mid:         #6B5240;
  --brown-light:       #998070;
  --terracotta:        #D4865A;
  --terracotta-light:  #F5E4D8;
  --terracotta-accent: #C4714A;
  --text:              #2C2010;
  --text-muted:        #6B5240;
  --text-light:        #998070;
  --border:            #E5DDD4;
  --border-light:      #EDE8E0;
  --white:             #FFFFFF;
  --font-serif:        'Cormorant Garamond', Georgia, serif;
  --font-sans:         'DM Sans', system-ui, sans-serif;
  --max-width:         1180px;
  --transition:        0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--brown-dark);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p {
  font-size: 0.97rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

/* --- Layout Utilities --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

/* --- Site Header --- */
.site-header {
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 0;
}

.site-header__top {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brown-dark);
  display: inline-block;
  margin-bottom: 0.25rem;
}

.site-header__brand span {
  color: var(--terracotta);
}

.site-header__tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Navigation --- */
.site-nav {
  padding: 0;
}

/* OLD NAV - to be removed after rollout
.site-nav__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.site-nav__list li a {
  display: block;
  padding: 1rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.site-nav__list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--terracotta);
  transition: width var(--transition);
}

.site-nav__list li a:hover,
.site-nav__list li a.active {
  color: var(--brown-dark);
}

.site-nav__list li a:hover::after,
.site-nav__list li a.active::after {
  width: 60%;
}
*/

/* OLD NAV - to be removed after rollout
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  right: 2rem;
  top: 1.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--brown-mid);
  transition: var(--transition);
}
*/

/* --- Navigation v2 (primary bar + overlay) --- */
.site-nav__primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(44, 32, 16, 0.08);
}

.site-nav__brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
}

.site-nav__brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--brown-dark);
}

.site-nav__brand-sub {
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-accent);
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav__link {
  position: relative;
  padding-bottom: 3px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5a4a3a;
  text-decoration: none;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--terracotta);
  transition: width 0.25s;
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

.site-nav__link--active {
  color: var(--brown-dark);
}

.site-nav__more {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5a4a3a;
}

.site-nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.site-nav__burger-line {
  display: block;
  width: 100%;
  height: 1px;
  background: #5a4a3a;
  transition: all 0.2s;
}

.site-nav__burger-line:nth-child(2) {
  width: 12px;
}

.site-nav__more:hover .site-nav__burger-line {
  background: var(--brown-dark);
}

.site-nav__more:hover .site-nav__burger-line:nth-child(2) {
  width: 18px;
}

.site-nav__strip {
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.site-nav__strip--open {
  transform: scaleX(1);
}

.site-nav__overlay {
  background: var(--cream);
  border-bottom: 1px solid rgba(44, 32, 16, 0.08);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.site-nav__overlay--open {
  max-height: 500px;
}

.site-nav__overlay-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 2.5rem;
}

.site-nav__overlay-col {
  padding-right: 2.5rem;
}

.site-nav__overlay-col + .site-nav__overlay-col {
  border-left: 1px solid rgba(44, 32, 16, 0.07);
  padding-left: 2.5rem;
  padding-right: 0;
}

.site-nav__overlay-label {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta-accent);
}

.site-nav__overlay-item {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(44, 32, 16, 0.06);
  cursor: pointer;
  text-decoration: none;
  transition: padding-left 0.2s;
}

.site-nav__overlay-item:hover {
  padding-left: 4px;
}

.site-nav__overlay-item:last-child {
  border-bottom: none;
}

.site-nav__overlay-item-title {
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--brown-dark);
}

.site-nav__overlay-item-desc {
  font-family: var(--font-sans);
  font-size: 10.5px;
  line-height: 1.5;
  color: #8a7a6a;
}

.site-nav__overlay-featured {
  background: var(--brown-dark);
  border-radius: 3px;
  padding: 1.5rem;
}

.site-nav__overlay-featured .site-nav__overlay-label {
  color: var(--terracotta-accent);
}

.site-nav__overlay-featured-title {
  margin-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--cream);
}

.site-nav__overlay-featured-desc {
  font-family: var(--font-sans);
  font-size: 10.5px;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.6);
}

.site-nav__overlay-featured-cta {
  display: inline-block;
  margin-top: 1rem;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(212, 134, 90, 0.4);
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta-accent);
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-nav__links { display: none; }
  .site-nav__primary { padding: 0 1.25rem; }
  .site-nav__brand-name { font-size: 17px; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--cream);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__video {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.hero__video--ready {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(44, 32, 16, 0.28) 40%, rgba(44, 32, 16, 0.2) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.hero__overlay--ready {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0;
  max-width: 560px;
}

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: block;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-style: italic;
  color: rgba(250, 247, 242, 0.85);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.hero__sub {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* --- Newsletter Hero Box --- */
.newsletter-hero {
  background: var(--brown-dark);
  border-top: 3px solid var(--terracotta);
  padding: 2.5rem 0;
}

.newsletter-hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-hero__text h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--cream);
  margin-bottom: 0.35rem;
}

.newsletter-hero__text p {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.65);
  margin: 0;
}

.newsletter-hero__form {
  display: flex;
  gap: 0;
  flex: 1;
  max-width: 420px;
  min-width: 260px;
}

.newsletter-hero__form input {
  flex: 1;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(250, 247, 242, 0.2);
  border-right: none;
  background: rgba(250, 247, 242, 0.08);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--cream);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-hero__form input::placeholder {
  color: rgba(250, 247, 242, 0.4);
}

.newsletter-hero__form input:focus {
  border-color: var(--terracotta);
}

.newsletter-hero__form button {
  padding: 0.8rem 1.5rem;
  background-color: var(--terracotta);
  color: var(--cream);
  border: 1px solid var(--terracotta);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition);
}

.newsletter-hero__form button:hover {
  background-color: var(--terracotta-accent);
  border-color: var(--terracotta-accent);
}

/* --- Page Title Bar --- */
.page-title-bar {
  background-color: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.page-title-bar h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.page-title-bar p {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* --- Divider --- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
}

/* --- Post Card --- */
.post-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(44, 32, 16, 0.08);
}

.post-card__image {
  aspect-ratio: 4/3;
  background-color: var(--cream-dark);
  overflow: hidden;
  position: relative;
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card__image img {
  transform: scale(1.03);
}

.post-card__body {
  padding: 1.5rem;
}

.post-card__category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.5rem;
  display: block;
}

.post-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--brown-dark);
  margin-bottom: 0.7rem;
  transition: color var(--transition);
}

.post-card:hover .post-card__title {
  color: var(--terracotta);
}

.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  font-size: 0.73rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.post-card__meta span::after {
  content: '·';
  margin-left: 0.6rem;
}

.post-card__meta span:last-child::after {
  content: '';
}

/* --- Featured Grid (3 columns) --- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Main + Sidebar Layout --- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* --- Posts List (main column) --- */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 1.25rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 32, 16, 0.06);
}

.post-list-item__image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  overflow: hidden;
}

.post-list-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list-item__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Sidebar --- */
.sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  margin-bottom: 2.5rem;
}

.sidebar-widget__title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

/* Sidebar recent posts */
.sidebar-post {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-post:last-child {
  border-bottom: none;
}

.sidebar-post__image {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-mid));
  overflow: hidden;
}

.sidebar-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post__title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--brown-dark);
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}

.sidebar-post:hover .sidebar-post__title {
  color: var(--terracotta);
}

.sidebar-post__date {
  font-size: 0.72rem;
  color: var(--text-light);
}

/* Sidebar categories */
.category-list li {
  border-bottom: 1px solid var(--border-light);
}

.category-list li:last-child {
  border-bottom: none;
}

.category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.category-list li a:hover {
  color: var(--terracotta);
}

.category-list li a span {
  font-size: 0.72rem;
  color: var(--text-light);
  background: var(--cream-dark);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

/* --- Section Label --- */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* --- Newsletter Section --- */
.newsletter-section {
  background-color: var(--cream-dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
  text-align: center;
}

.newsletter-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.75rem;
}

.newsletter-section p {
  font-size: 0.9rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form input:focus {
  border-color: var(--terracotta);
}

.newsletter-form button,
.btn {
  padding: 0.85rem 1.75rem;
  background-color: var(--brown-dark);
  color: var(--cream);
  border: 1px solid var(--brown-dark);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.newsletter-form button:hover,
.btn:hover {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--brown-dark);
  border: 1px solid var(--brown-mid);
  padding: 0.65rem 1.5rem;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-outline:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: var(--cream);
}

.btn-light {
  background: rgba(250, 247, 242, 0.15);
  color: var(--cream);
  border: 1px solid rgba(250, 247, 242, 0.4);
  padding: 0.5rem 1.25rem;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-light:hover {
  background: rgba(250, 247, 242, 0.28);
}

.btn-terracotta {
  background: #D4865A;
  color: #ffffff;
  border: 1px solid #D4865A;
  padding: 0.5rem 1.25rem;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-terracotta:hover {
  background: var(--terracotta-accent);
  color: #ffffff;
}

/* --- Site Footer --- */
.site-footer {
  background-color: var(--brown-dark);
  color: var(--cream);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.84rem;
  color: rgba(250, 247, 242, 0.6);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.65);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--terracotta);
}

/* Footer Newsletter */
.footer-newsletter {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-newsletter p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(250, 247, 242, 0.75);
  margin: 0;
}

.footer-newsletter-form {
  max-width: 380px;
  flex: 1;
  min-width: 240px;
  margin: 0;
}

.footer-newsletter-form input {
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-right: none;
  color: var(--cream);
}

.footer-newsletter-form input::placeholder {
  color: rgba(250, 247, 242, 0.35);
}

.footer-newsletter-form input:focus {
  border-color: var(--terracotta);
}

.footer-newsletter-form button {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}

.footer-newsletter-form button:hover {
  background-color: var(--terracotta-accent);
  border-color: var(--terracotta-accent);
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(250, 247, 242, 0.35);
}

/* --- Shop Grid --- */
.shop-intro {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.shop-intro h2 {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  border: 1px solid var(--border-light);
  background: var(--white);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(44, 32, 16, 0.07);
}

.product-card__image {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, var(--cream-dark), var(--cream-mid));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}

.product-card__image svg {
  width: 32px;
  height: 32px;
  opacity: 0.4;
}

.product-card__cover {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.product-card__cover[src]:not([src=""]) {
  display: block;
}

.product-card__cover[src]:not([src=""]) ~ svg {
  display: none;
}

.product-card__cover[src]:not([src=""]) ~ span {
  display: none;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.product-card__body > *:last-child {
  margin-top: auto;
}

.product-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
  display: block;
}

.product-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.product-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
  border: 1px solid var(--border);
  padding: 0.3rem 0.9rem;
  background: var(--cream-dark);
}

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.video-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(44, 32, 16, 0.07);
}

.video-card__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--brown-dark);
}

.video-card__embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__body {
  padding: 1.25rem;
}

.video-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.video-card__date {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- Health Notes --- */
.health-notes-intro {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.health-notes-intro p {
  font-size: 1rem;
  font-style: italic;
  color: var(--text-muted);
}

.health-note-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
  margin-bottom: 1.75rem;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.health-note-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(44, 32, 16, 0.06);
}

.health-note-card__source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  background: var(--terracotta-light);
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.health-note-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
  display: block;
}

.health-note-card__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--brown-dark);
}

.health-note-card__section {
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--terracotta-light);
}

.health-note-card__section h4 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-accent);
  margin-bottom: 0.4rem;
}

.health-note-card__section p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.health-note-card__meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.73rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* --- About Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 2rem;
}

.about-photo__caption {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.75rem;
  font-style: italic;
}

.about-content h1 {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.about-content .tagline {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2rem;
  display: block;
}

.about-content p {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.about-content .lead {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--brown-mid);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pillar {
  background: var(--cream-dark);
  padding: 1.5rem;
  border-left: 3px solid var(--terracotta);
}

.pillar h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Newsletter Page --- */
.newsletter-page-hero {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 5rem 0;
  text-align: center;
}

.newsletter-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  margin-bottom: 1rem;
}

.newsletter-page-hero .lead {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.newsletter-trust {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--terracotta-accent);
  background: var(--terracotta-light);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
}

.newsletter-signup-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-signup-box h2 {
  font-style: italic;
  margin-bottom: 0.75rem;
}

.newsletter-signup-box > p {
  margin-bottom: 2rem;
}

.interests-group {
  margin-bottom: 2rem;
}

.interests-group__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: block;
}

.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.interest-item:hover {
  border-color: var(--terracotta);
  background: var(--terracotta-light);
}

.interest-item input[type="checkbox"] {
  accent-color: var(--terracotta);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.interest-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.newsletter-full-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-full-form input[type="text"],
.newsletter-full-form input[type="email"] {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-full-form input:focus {
  border-color: var(--terracotta);
}

.newsletter-full-form input::placeholder {
  color: var(--text-light);
}

.newsletter-full-form button {
  width: 100%;
  padding: 1rem;
  background-color: var(--terracotta);
  color: var(--white);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition);
}

.newsletter-full-form button:hover {
  background-color: var(--terracotta-accent);
}

/* --- Contact Section (within newsletter page) --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-style: italic;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 0.94rem;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-detail:last-child {
  border-bottom: none;
}

.contact-detail__icon {
  width: 36px;
  height: 36px;
  background: var(--terracotta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--terracotta);
  fill: none;
}

.contact-detail__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}

.contact-detail__value {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terracotta);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--brown-dark);
  color: var(--cream);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition);
}

.form-submit:hover {
  background-color: var(--terracotta);
}

/* --- YouTube Channel Banner --- */
.channel-banner {
  background: var(--cream-dark);
  border: 1px solid var(--border);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.channel-banner__text h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.channel-banner__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.5);
  color: rgba(250, 247, 242, 0.7);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
  transition: background var(--transition);
}

.btn-youtube:hover {
  background: rgba(255, 0, 0, 0.4);
  color: white;
}

.btn-youtube svg {
  width: 18px;
  height: 18px;
  fill: rgba(250, 247, 242, 0.7);
}

/* --- Instagram Link --- */
.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity var(--transition);
}

.btn-instagram:hover {
  opacity: 0.88;
  color: white;
}

.btn-instagram svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* --- Read More Link --- */
.read-more {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}

.read-more:hover {
  gap: 0.7rem;
}

.read-more::after {
  content: '→';
}

/* --- What subscribers get (newsletter page) --- */
.newsletter-perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 3rem 0;
}

.newsletter-perk {
  background: var(--white);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  border-top: 3px solid var(--terracotta);
}

.newsletter-perk h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--brown-dark);
}

.newsletter-perk p {
  font-size: 0.83rem;
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .sidebar-widget {
    margin-bottom: 0;
  }
  .about-layout {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .newsletter-hero .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter-hero__form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-photo {
    position: static;
    max-width: 300px;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .post-list-item {
    grid-template-columns: 120px 1fr;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
  .channel-banner {
    flex-direction: column;
    text-align: center;
  }
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }
  .newsletter-form input {
    border-right: 1px solid var(--border);
    border-bottom: none;
    width: 100%;
  }
  .newsletter-form button {
    width: 100%;
  }
  /* Stack the newsletter-hero subscribe form on mobile */
  .newsletter-hero__form {
    flex-direction: column;
    min-width: 0;
  }
  .newsletter-hero__form input {
    border-right: 1px solid rgba(250, 247, 242, 0.2);
    border-bottom: none;
    width: 100%;
  }
  .newsletter-hero__form button {
    width: 100%;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-newsletter-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .footer-newsletter-form input,
  .footer-newsletter-form button {
    width: 100%;
  }
  /* Nav hamburger — right side, logo truly centered */
  .site-header__top {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
  }
  /* Tagline becomes invisible left spacer (same width as toggle = 44px)
     so logo is perfectly centered between spacer and toggle */
  .site-header__tagline {
    order: 1;
    visibility: hidden;
    flex-shrink: 0;
    width: 44px;
    font-size: 0;
    margin: 0;
    padding: 0;
  }
  .site-header__brand {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: clamp(1.35rem, 5.5vw, 1.8rem);
    white-space: nowrap;
  }
  /* OLD NAV - to be removed after rollout
  .nav-toggle {
    order: 3;
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    flex-shrink: 0;
    width: 44px;
    justify-content: flex-end;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }
  */
  .site-header {
    position: relative;
  }
  .hero {
    min-height: 420px;
  }
  .hero__content {
    padding: 3.5rem 0;
  }
  .newsletter-perks {
    grid-template-columns: 1fr;
  }
  .interests-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-signup-box {
    padding: 2rem 1.5rem;
  }

  /* Fix tiny font sizes on mobile */
  .post-card__category,
  .health-note-card__source-badge,
  .health-note-card__tag,
  .health-note-card__section h4,
  .post-header__category,
  .product-card__tag,
  .coming-soon-badge,
  .footer-col h4 {
    font-size: 0.78rem;
  }
  .post-list-item__image {
    font-size: 0.75rem;
  }
  .site-header__tagline,
  .hero__eyebrow,
  .sidebar-widget__title,
  .sidebar-post__date,
  .category-list li a span,
  .section-label,
  .product-card__image,
  .filter-btn {
    font-size: 0.8rem;
  }

  /* Fix filter button touch targets */
  .filter-btn {
    padding: 0.6rem 1.2rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Fix button touch targets */
  .btn-outline,
  .btn-light,
  .btn-youtube,
  .btn-terracotta,
  .btn-instagram {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* OLD NAV - to be removed after rollout
  .nav-toggle {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  */

  /* Fix category list touch targets */
  .category-list li a {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Fix about photo height on mobile */
  .about-layout img {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .post-list-item {
    grid-template-columns: 1fr;
  }
  .post-list-item__image {
    aspect-ratio: 16/9;
  }
  .hero__title {
    font-size: 2.4rem;
  }
  /* Task 2d — stack subscribe input + button on small screens */
  .newsletter-hero__form {
    flex-direction: column;
  }
  .newsletter-hero__form input {
    border-right: 1px solid rgba(250, 247, 242, 0.2);
    border-bottom: none;
    width: 100%;
  }
  .newsletter-hero__form button {
    width: 100%;
  }
}

/* --- Filter Buttons (Journal) --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  background: var(--cream-dark);
  color: var(--text-muted);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--brown-dark);
  color: var(--cream);
  border-color: var(--brown-dark);
}

/* --- YouTube Channel Link Card (replaces broken iframes) --- */
.video-channel-link {
  position: absolute;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--transition);
}

.video-channel-link:hover {
  background: #1e1e1e;
}

.video-channel-link__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem;
  text-align: center;
}

.video-channel-link__icon {
  width: 56px;
  height: 56px;
  background: #FF0000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.video-channel-link:hover .video-channel-link__icon {
  background: #CC0000;
}

.video-channel-link__icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.video-channel-link__text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-channel-link__handle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* --- Blog Post Page Layout --- */
.post-header {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.post-header__breadcrumb {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.post-header__breadcrumb a {
  color: var(--terracotta);
  transition: color var(--transition);
}

.post-header__breadcrumb a:hover {
  color: var(--terracotta-accent);
}

.post-header__category {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: block;
}

.post-header__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--brown-dark);
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.post-header__meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.post-header__meta span::after {
  content: '·';
  margin-left: 1rem;
}

.post-header__meta span:last-child::after {
  content: '';
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
}

.post-body {
  min-width: 0;
}

.post-body__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

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

.post-body__content h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--brown-dark);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-body__content p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.post-body__content blockquote {
  border-left: 3px solid var(--terracotta);
  padding: 0.5rem 0 0.5rem 1.75rem;
  margin: 2rem 0;
}

.post-body__content blockquote p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brown-mid);
  margin: 0;
  line-height: 1.65;
}

.post-body__back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.post-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  transition: color var(--transition);
}

.post-nav a:hover {
  color: var(--terracotta-accent);
}

@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   AI CONCIERGE WIDGET
   z-index 1200: floats over page content, sits bottom-right so it
   never visually collides with the top nav / Explore overlay.
   =================================================================== */
.atl-cc-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  border: none; cursor: pointer; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  overflow: visible;                 /* let the glow bloom past the circle as a halo */
  box-shadow: 0 6px 20px rgba(44, 32, 16, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.35s ease, visibility 0.35s ease;
}
.atl-cc-btn svg { width: 26px; height: 26px; }
.atl-cc-btn:hover { transform: scale(1.05); box-shadow: 0 10px 26px rgba(44, 32, 16, 0.34); }
.atl-cc-btn.hidden { display: none; }
/* Scroll-aware hide: faded out while reading down the page, faded back in on
   scroll up or at the page bottom. display:none from .hidden still wins when the
   panel is open, so this never fights the open/close logic. */
.atl-cc-btn--scrolled-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Living-plasma aurora glow behind the icon: three blurred, semi-transparent
   sage/peach/gold blobs that drift continuously and layer into a soft aurora.
   The chat icon paints on top via z-index. */
.atl-cc-btn-ico { position: relative; z-index: 3; width: 26px; height: 26px; }
.atl-cc-glow {
  position: absolute;
  inset: -14px;                      /* bloom past the 56px circle */
  border-radius: 50%;
  z-index: 1;                        /* below the icon */
  pointer-events: none;
  filter: blur(11px);
  will-change: transform;
}
.atl-cc-glow1 { background: radial-gradient(circle at 40% 35%, #9FE1CB, transparent 55%); animation: atl-cc-drift1 8s ease-in-out infinite; }
.atl-cc-glow2 { background: radial-gradient(circle at 65% 65%, #E8B998, transparent 55%); animation: atl-cc-drift2 10s ease-in-out infinite; }
.atl-cc-glow3 { background: radial-gradient(circle at 55% 25%, #F0C987, transparent 50%); animation: atl-cc-drift1 6s ease-in-out infinite reverse; }
@keyframes atl-cc-drift1 {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(5px,-4px) scale(1.18); }
  66%  { transform: translate(-4px,5px) scale(0.88); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes atl-cc-drift2 {
  0%   { transform: translate(0,0) scale(1.1); }
  33%  { transform: translate(-6px,4px) scale(0.82); }
  66%  { transform: translate(5px,-5px) scale(1.22); }
  100% { transform: translate(0,0) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .atl-cc-glow { animation: none; }
}

.atl-cc-tip {
  position: fixed; bottom: 92px; right: 24px; z-index: 1200;
  background: var(--brown-dark); color: var(--cream);
  font-family: var(--font-sans); font-size: 0.82rem;
  padding: 0.7rem 1rem; border-radius: 8px; max-width: 220px;
  box-shadow: 0 6px 18px rgba(44, 32, 16, 0.25);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.atl-cc-tip.show { opacity: 1; transform: translateY(0); }

.atl-cc-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 1200;
  width: 380px; height: 560px; max-height: calc(100vh - 48px);
  background: var(--cream); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(44, 32, 16, 0.34);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.atl-cc-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.atl-cc-head {
  background: var(--terracotta); color: var(--brown-dark);
  display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1rem;
}
.atl-cc-ava { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.atl-cc-head-txt { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.atl-cc-head-txt strong { font-family: var(--font-sans); font-size: 0.95rem; }
.atl-cc-head-txt span { font-size: 0.72rem; opacity: 0.8; }
.atl-cc-x { background: none; border: none; color: var(--brown-dark); font-size: 1rem; cursor: pointer; padding: 0.3rem; line-height: 1; }

.atl-cc-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.85rem; }
.atl-cc-msg { display: flex; flex-direction: column; gap: 0.3rem; max-width: 100%; }
.atl-cc-msg.atl-cc-user { align-self: flex-end; }
.atl-cc-msg.atl-cc-ai { align-self: flex-start; }
/* .atl-cc-mava (the old left-gutter avatar) is no longer used; the footer avatar
   is .atl-cc-mava-sm. Kept defined to avoid breaking any cached markup. */
.atl-cc-mava { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin-top: 2px; }
.atl-cc-mava-sm { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; vertical-align: middle; opacity: 0.7; flex-shrink: 0; }
.atl-cc-msgfoot { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem; font-family: var(--font-sans); font-size: 0.72rem; color: var(--text-light); }
.atl-cc-time { color: #9a8c78; font-variant-numeric: tabular-nums; }
.atl-cc-bub {
  font-family: var(--font-sans); font-size: 0.88rem; line-height: 1.6;
  padding: 0.85rem 1rem; border-radius: 10px; color: var(--brown-dark);
  animation: atl-cc-fade 0.3s ease;
  overflow-wrap: anywhere; word-break: break-word;
}
.atl-cc-ai .atl-cc-bub { background: var(--white); border: 1px solid var(--border); border-top-left-radius: 2px; }
.atl-cc-user .atl-cc-bub { background: var(--cream-dark, #efe6d8); border: 1px solid var(--terracotta-light); border-top-right-radius: 2px; }
.atl-cc-bub a { color: var(--terracotta-accent); text-decoration: underline; }

/* Markdown rendered inside AI bubbles (concierge.js formatAiMessage). Block
   spacing so headers, paragraphs, lists, and rules breathe. */
.atl-cc-bub .atl-cc-p { margin: 0 0 0.55rem; }
.atl-cc-bub .atl-cc-p:last-child { margin-bottom: 0; }
.atl-cc-bub .atl-cc-h2 { font-family: var(--font-sans); font-weight: 700; font-size: 0.98rem; margin: 0.65rem 0 0.35rem; color: var(--brown-dark); }
.atl-cc-bub .atl-cc-h3 { font-family: var(--font-sans); font-weight: 700; font-size: 0.9rem;  margin: 0.55rem 0 0.3rem;  color: var(--brown-dark); }
.atl-cc-bub .atl-cc-h2:first-child, .atl-cc-bub .atl-cc-h3:first-child { margin-top: 0; }
.atl-cc-bub .atl-cc-hr { border: 0; border-top: 1px solid var(--border); margin: 0.7rem 0; }
.atl-cc-bub .atl-cc-ul, .atl-cc-bub .atl-cc-ol { margin: 0.3rem 0 0.55rem; padding-left: 1.3rem; }
.atl-cc-bub .atl-cc-ul li, .atl-cc-bub .atl-cc-ol li { margin: 0.15rem 0; }
.atl-cc-bub .atl-cc-code { font-family: 'SF Mono', Consolas, monospace; font-size: 0.85em; background: var(--cream); padding: 0.05rem 0.32rem; border-radius: 4px; }
@keyframes atl-cc-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.atl-cc-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; align-self: flex-start; max-width: 100%; }
.atl-cc-chip {
  font-family: var(--font-sans); font-size: 0.8rem; cursor: pointer;
  background: var(--white); border: 1px solid var(--terracotta-light);
  color: var(--brown-dark); padding: 0.45rem 0.75rem; border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.atl-cc-chip:hover { background: var(--terracotta-light); border-color: var(--terracotta); }

.atl-cc-dot { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--text-light); animation: atl-cc-blink 1.2s infinite both; }
.atl-cc-dot:nth-child(2) { animation-delay: 0.2s; }
.atl-cc-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes atl-cc-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

.atl-cc-input { display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--border); background: var(--cream); align-items: flex-end; }
.atl-cc-input textarea {
  flex: 1; resize: none; border: 1px solid var(--border); border-radius: 8px;
  padding: 0.6rem 0.7rem; font-family: var(--font-sans); font-size: 0.88rem;
  color: var(--text); background: var(--white); outline: none; max-height: 96px; line-height: 1.4;
}
.atl-cc-input textarea:focus { border-color: var(--terracotta); }
.atl-cc-send {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--terracotta); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.atl-cc-send svg { width: 17px; height: 17px; }
.atl-cc-send:hover:not(:disabled) { background: var(--terracotta-accent); }
.atl-cc-send:disabled { opacity: 0.5; cursor: not-allowed; }

.atl-cc-foot { padding: 0.55rem 0.9rem 0.75rem; background: var(--cream); border-top: 1px solid var(--border-light); }
.atl-cc-quota { font-family: var(--font-sans); font-size: 0.74rem; color: var(--text-light); }
.atl-cc-quota a { color: var(--terracotta-accent); text-decoration: none; font-weight: 600; }
.atl-cc-legal { font-family: var(--font-sans); font-size: 0.68rem; color: var(--text-light); margin-top: 0.3rem; line-height: 1.45; }
.atl-cc-legal a { color: var(--text-light); text-decoration: underline; }

/* Feedback row + hit-reply escape hatch under each AI response (Task 9). */
/* .atl-cc-meta is retired: the thumbs now live in .atl-cc-msgfoot (no left
   avatar gutter to align under). Rule kept minimal in case of cached markup. */
.atl-cc-meta { margin-top: 0.4rem; }
.atl-cc-feedback {
  display: flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-sans); font-size: 0.78rem;
}
.atl-cc-fb-btn {
  background: none; border: 1px solid transparent;
  padding: 0.1rem 0.35rem; border-radius: 4px;
  font-size: 0.9rem; line-height: 1; cursor: pointer;
  opacity: 0.55; transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}
.atl-cc-fb-btn:hover { opacity: 1; background: var(--cream); border-color: var(--border-light); }
.atl-cc-fb-btn:disabled { cursor: default; opacity: 0.35; }
.atl-cc-fb-btn:disabled:hover { background: none; border-color: transparent; }
.atl-cc-fb-btn.atl-cc-fb-picked {
  opacity: 1; background: var(--cream); border-color: var(--terracotta);
}
.atl-cc-fb-thanks {
  font-size: 0.72rem; color: var(--text-light); font-style: italic; margin-left: 0.25rem;
}
.atl-cc-hit-reply {
  margin-top: 0.3rem;
  font-family: var(--font-sans); font-size: 0.7rem;
  color: var(--text-light); line-height: 1.5;
}
.atl-cc-limit-nudge .atl-cc-bub { background: var(--cream); border: 1px solid var(--border-light); }

/* Beta notice (public beta) — soft note above the welcome. */
.atl-cc-beta {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--brown-dark, #2C2010);
  border-radius: 0 4px 4px 0;
}
/* Persistent Elena-voice beta line. Soft note above the conversation, every open.
   Gentle (cream, small italic, terracotta accent edge), not a corporate banner. */
.atl-cc-beta-persistent {
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 4px 4px 0;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans); font-size: 0.76rem; font-style: italic;
  line-height: 1.55; color: var(--brown-dark, #2C2010);
}

/* Knowledge-gap panel: shown under an AI reply when the worker had no KB material.
   Same soft cream + terracotta accent as the beta line, a touch larger and clearer. */
.atl-cc-gap-panel {
  margin-top: 0.5rem;
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 6px 6px 0;
  padding: 0.8rem;
  font-family: var(--font-sans); font-size: 0.85rem; line-height: 1.6;
  color: var(--brown-dark, #2C2010);
}
.atl-cc-gap-intro { margin: 0 0 0.6rem; }
.atl-cc-gap-form { display: flex; gap: 0.4rem; margin-bottom: 0.5rem; }
.atl-cc-gap-email {
  flex: 1; min-width: 0; padding: 0.45rem 0.6rem;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
  font-family: var(--font-sans); font-size: 0.85rem; color: var(--text);
}
.atl-cc-gap-email:focus { outline: none; border-color: var(--terracotta); }
.atl-cc-gap-send {
  flex-shrink: 0; background: var(--terracotta); color: #fff; border: none;
  padding: 0.45rem 0.9rem; border-radius: 6px; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.82rem; transition: background 0.15s;
}
.atl-cc-gap-send:hover:not(:disabled) { background: var(--terracotta-accent); }
.atl-cc-gap-send:disabled { opacity: 0.5; cursor: default; }
.atl-cc-gap-tg {
  display: inline-block; margin-bottom: 0.55rem;
  color: var(--terracotta-accent); text-decoration: underline;
  font-size: 0.82rem; font-weight: 600;
}
.atl-cc-gap-tg:hover { color: var(--terracotta); }
.atl-cc-gap-reassure { margin: 0; font-size: 0.76rem; color: var(--text-light); line-height: 1.5; }
.atl-cc-gap-msg { margin-top: 0.45rem; font-size: 0.78rem; color: var(--text-light); font-style: italic; }
.atl-cc-gap-msg--err { color: #b94a4a; font-style: normal; }
.atl-cc-gap-done { margin: 0; font-size: 0.85rem; line-height: 1.55; }

/* Written-feedback box: thumbs-down prompt + persistent "Tell Elena" link. */
.atl-cc-tell {
  display: inline-block;
  margin-top: 0.35rem;
  background: none; border: none; padding: 0;
  font-family: var(--font-sans); font-size: 0.72rem;
  color: var(--terracotta-accent); cursor: pointer;
  text-decoration: underline; letter-spacing: 0.01em;
}
.atl-cc-tell:hover { color: var(--terracotta); }
.atl-cc-fbtext {
  margin-top: 0.45rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.atl-cc-fbtext-ta {
  width: 100%; resize: vertical; min-height: 2.4rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border-light); border-radius: 6px;
  font-family: var(--font-sans); font-size: 0.8rem; line-height: 1.4;
  color: var(--brown-dark, #2C2010); background: #fff;
}
.atl-cc-fbtext-ta:focus { outline: none; border-color: var(--terracotta); }
.atl-cc-fbtext-row { display: flex; align-items: center; gap: 0.5rem; }
.atl-cc-fbtext-send {
  background: var(--terracotta); color: #fff; border: none;
  padding: 0.32rem 0.85rem; border-radius: 6px; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.76rem; letter-spacing: 0.02em;
  transition: background 0.15s;
}
.atl-cc-fbtext-send:hover { background: var(--terracotta-accent); }
.atl-cc-fbtext-send:disabled { background: var(--border-light); cursor: default; }
.atl-cc-fbtext-msg { font-family: var(--font-sans); font-size: 0.74rem; font-style: italic; }
.atl-cc-fbtext-msg--ok  { color: var(--text-light); }
.atl-cc-fbtext-msg--err { color: #b94a4a; font-style: normal; }

@media (max-width: 640px) {
  .atl-cc-panel {
    width: 100%; height: 100%; max-height: 100vh;
    bottom: 0; right: 0; border-radius: 0;
  }
  .atl-cc-btn { bottom: 18px; right: 18px; }
  .atl-cc-tip { bottom: 84px; right: 18px; }
  /* Full width on a phone; read larger. */
  .atl-cc-msg { max-width: 100%; }
  .atl-cc-bub { font-size: 0.95rem; line-height: 1.65; }
}
