/* =============================================
   WARDA EMAIL SIGN-UP
   Every sign-up block, the dialog, the scroll nudge and the
   /first-batch/ landing page. Behaviour lives in /signup.js.
   Rules are scoped as ".ws .ws-x" so they beat the article and
   page styles (".blog-post-content p" etc.) the blocks sit inside.
   ============================================= */

.ws [hidden] { display: none !important; }

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

/* Honeypot: off-screen for people, still filled in by bots */
.ws .ws-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Base block --- */
.ws {
  position: relative;
  font-family: 'Jost', sans-serif;
  color: var(--dark);
  text-align: left;
}

.ws .ws-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #8A6A3A;
  margin: 0 0 10px;
}

.ws .ws-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(27px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--dark);
  margin: 0 0 10px;
  text-wrap: balance;
}

.ws .ws-text {
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.ws .ws-row {
  display: flex;
  gap: 10px;
}

/* 16px keeps iOS Safari from zooming in when the field is tapped */
.ws .ws-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(60,35,15,0.2);
  border-radius: 8px;
  background: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 16px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ws .ws-input::placeholder { color: #9A8B7D; }

.ws .ws-input:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(168,68,42,0.18);
}

.ws .ws-input[aria-invalid="true"] { border-color: var(--rust); }

.ws .ws-btn {
  padding: 13px 22px;
  border: none;
  border-radius: 8px;
  background: var(--rust);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.ws .ws-btn:hover { background: var(--rust-light); }
.ws .ws-btn:active { transform: scale(0.98); }
.ws .ws-btn:disabled { opacity: 0.75; cursor: wait; }

.ws .ws-error {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--rust);
  margin: 10px 0 0;
}

.ws .ws-error:empty { display: none; }

.ws .ws-note {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.ws .ws-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws .ws-note a:hover { color: var(--rust); }

/* --- Thank-you panel --- */
.ws .ws-done { outline: none; }

.ws .ws-done-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 8px;
}

.ws .ws-done-title svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.ws .ws-done-text {
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.ws .ws-pref,
.ws .ws-share {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(60,35,15,0.12);
}

.ws .ws-pref-q,
.ws .ws-share-q {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--dark);
  margin: 0 0 10px;
}

.ws .ws-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ws .ws-chip {
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid rgba(60,35,15,0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ws .ws-chip:hover { border-color: var(--dark); }

.ws .ws-chip[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #F9F4EE;
}

.ws .ws-pref-thanks {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

.ws .ws-share-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.ws .ws-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--green);
  color: #F9F4EE;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.ws .ws-wa:hover { background: #4A6450; color: #F9F4EE; }

.ws .ws-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rust);
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  text-decoration: none;
}

.ws .ws-ig:hover { text-decoration: underline; }

.ws .ws-wa svg,
.ws .ws-ig svg {
  width: 18px;
  height: 18px;
}

/* --- Dark grounds (feature, tile, hero, landing) --- */
.ws--dark { color: #F9F4EE; }
.ws--dark .ws-eyebrow { color: #E2C48F; }
.ws--dark .ws-title { color: #F9F4EE; }
.ws--dark .ws-text { color: rgba(249,244,238,0.85); }
.ws--dark .ws-input { border-color: transparent; }
.ws--dark .ws-error { color: #F2B8A6; }
.ws--dark .ws-note { color: rgba(249,244,238,0.72); }
.ws--dark .ws-note a:hover { color: #fff; }
.ws--dark .ws-done-title { color: #F9F4EE; }
.ws--dark .ws-done-text,
.ws--dark .ws-pref-thanks { color: rgba(249,244,238,0.85); }
.ws--dark .ws-pref,
.ws--dark .ws-share { border-top-color: rgba(249,244,238,0.2); }
.ws--dark .ws-pref-q,
.ws--dark .ws-share-q { color: #F9F4EE; }
.ws--dark .ws-chip { border-color: rgba(249,244,238,0.5); color: #F9F4EE; }
.ws--dark .ws-chip:hover { border-color: #F9F4EE; }
.ws--dark .ws-chip[aria-pressed="true"] { background: #F9F4EE; border-color: #F9F4EE; color: var(--dark); }
.ws--dark .ws-wa { background: #F9F4EE; color: var(--dark); }
.ws--dark .ws-wa:hover { background: #fff; color: var(--dark); }
.ws--dark .ws-ig { color: #F2C9A0; }

/* --- Layout: card (mid-article) --- */
.ws--card {
  margin: 44px 0;
  padding: clamp(22px, 4vw, 32px);
  border-top: 2px solid var(--gold);
  background: #FFFCF7;
}

/* --- Layout: feature (end of article, Our Story, homepage) --- */
.ws--feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 36px);
  margin: 56px 0;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 12px;
  background: var(--brown);
}

.ws--feature .ws-tins {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws--feature .ws-tins img {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  object-fit: cover;
}

/* --- Layout: tile (blog listing grid) --- */
.ws--tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 3vw, 36px);
  border-radius: 8px;
  background: var(--green);
}

.ws--tile .ws-row { flex-direction: column; }
.ws--tile .ws-btn { width: 100%; }

/* --- Layout: footer band (most pages) --- */
.ws-band {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--border);
  background: #F3EBE0;
}

.ws--footer .ws-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 14px 40px;
  max-width: 1040px;
  margin: 0 auto;
}

.ws--footer .ws-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(21px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  margin: 0;
}

.ws--footer .ws-done { grid-column: 1 / -1; }

/* --- Layout: inline (landing page) --- */
.ws--inline {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.ws--inline .ws-done-title,
.ws--inline .ws-chips,
.ws--inline .ws-share-links { justify-content: center; }

/* --- Homepage hero --- */
.hero-signup.ws { text-align: center; }
.hero-form input { font-size: 16px; }
.hero-content .hero-signup .ws-error { margin: 0 0 12px; }
.hero-content .hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hero-content .hero-signup .ws-done { max-width: 480px; margin: 0 auto; }
.hero-content .hero-signup .ws-done-title { justify-content: center; font-size: clamp(30px, 4vw, 40px); color: #fff; }
.hero-content .hero-signup .ws-done-text { color: rgba(255,255,255,0.88); }
.hero-content .hero-signup .ws-chips,
.hero-content .hero-signup .ws-share-links { justify-content: center; }

/* --- Homepage closing section --- */
.home-join { background: var(--cream); }
.home-join .ws--feature { max-width: 900px; margin: 0 auto; }

/* --- Dialog --- */
.ws-dialog {
  width: 100%;
  max-width: min(480px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
}

.ws-dialog::backdrop { background: rgba(28,20,16,0.6); }

body:has(.ws-dialog[open]) { overflow: hidden; }

.ws-dialog-inner {
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 40px clamp(22px, 5vw, 32px) 28px;
  border-radius: 12px;
  background: #FFFCF7;
}

.ws-dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ws-dialog-close:hover { background: rgba(28,20,16,0.06); color: var(--dark); }

/* --- Scroll nudge (blog posts) --- */
.ws-nudge {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 18px;
  border-radius: 12px;
  background: var(--dark);
  color: #F9F4EE;
  box-shadow: 0 12px 32px rgba(28,20,16,0.25);
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.4s;
}

.ws-nudge.ws-nudge--in {
  transform: none;
  visibility: visible;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.ws-nudge-copy { flex: 1; min-width: 0; }

.ws-nudge-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 2px;
}

.ws-nudge-text {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(249,244,238,0.8);
  margin: 0;
}

.ws-nudge-join {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: var(--rust);
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.ws-nudge-join:hover { background: var(--rust-light); }

.ws-nudge-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: none;
  color: rgba(249,244,238,0.75);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ws-nudge-close:hover { background: rgba(249,244,238,0.1); color: #fff; }

/* --- Mobile menu item (the nav button is hidden under 900px) --- */
.nav-links .nav-join { display: none; }

/* --- /first-batch/ landing page --- */
.landing-page .blog-nav { justify-content: center; }
.landing-page .blog-main { max-width: none; }

.lp-hero {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 48px) clamp(52px, 7vw, 80px);
  background: var(--brown);
  color: #F9F4EE;
  text-align: center;
}

.lp-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #E2C48F;
  margin-bottom: 16px;
}

.lp-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 8vw, 88px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.lp-lead {
  max-width: 640px;
  margin: 0 auto 30px;
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(249,244,238,0.86);
}

.lp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.lp-fact-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 600;
  line-height: 1;
  color: var(--rust);
}

.lp-fact-label {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.lp-teas,
.lp-story,
.lp-faq,
.lp-final {
  padding: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 48px);
}

.lp-teas { background: #FFFCF7; }

.lp-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  color: var(--dark);
  margin: 0 0 clamp(28px, 4vw, 44px);
  text-wrap: balance;
}

.lp-tea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 980px;
  margin: 0 auto;
}

.lp-tea {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
}

.lp-tea img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lp-tea-body { padding: clamp(20px, 3vw, 28px); }

.lp-tea h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--dark);
}

.lp-tea h3 em { font-style: italic; color: var(--rust); }

.lp-tea-sub {
  margin: 4px 0 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8A6A3A;
}

.lp-tea-text {
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.lp-story {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.lp-story-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(23px, 2.8vw, 29px);
  font-style: italic;
  line-height: 1.45;
  color: var(--brown);
}

.lp-sign {
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.lp-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--rust);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-faq {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 0;
}

.lp-faq details { border-bottom: 1px solid rgba(0,0,0,0.08); }

.lp-faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  list-style: none;
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--dark);
  cursor: pointer;
}

.lp-faq summary::-webkit-details-marker { display: none; }

.lp-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--rust);
}

.lp-faq details[open] summary::after { content: "\2013"; }

.lp-faq details p {
  padding: 0 0 20px;
  font-family: 'Lato', 'Jost', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.lp-final {
  background: #F3EBE0;
  text-align: center;
}

/* --- Responsive --- */
@media (min-width: 701px) {
  .ws-nudge {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 400px;
  }
}

@media (max-width: 900px) {
  nav.nav-open .nav-links .nav-join { display: block; }
  nav.nav-open .nav-links .nav-join a { color: #F2C9A0 !important; }
}

@media (max-width: 760px) {
  .ws--footer .ws-main {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

@media (max-width: 640px) {
  .ws .ws-row { flex-direction: column; }
  .ws .ws-btn { width: 100%; }
  .ws--feature { grid-template-columns: minmax(0, 1fr); }
  .ws--feature .ws-tins { flex-direction: row; }
  .ws--feature .ws-tins img { width: 84px; height: 84px; }
  .lp-facts { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lp-tea-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .ws-nudge,
  .ws-nudge.ws-nudge--in { transition: none; }
}
