/* Oak & Bramble newsletter sign-up: footer band (every page) and the /newsletter page.
   Email only, no pop-ups. Behaviour in js/ob-newsletter.js; states via [data-state] on the form. */
.ob-nl { --nl-cream: #F5EBDD; --nl-green: #344E41; --nl-ink: #263B50; --nl-terracotta: #C66A32; --nl-terracotta-dark: #B05A27; --nl-peach: #D99570; }

.ob-nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ob-nl-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.ob-nl-fields { display: flex; gap: 10px; }
.ob-nl-input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 1px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ob-nl-btn {
  flex: none;
  padding: 14px 24px;
  border: none;
  border-radius: 1px;
  background: var(--nl-terracotta);
  color: #FFF8F0;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.4s ease;
}
.ob-nl-btn:hover { background: var(--nl-terracotta-dark); }
.ob-nl-btn[disabled] { opacity: 0.7; cursor: progress; }
.ob-nl-consent { margin: 10px 0 0; font-size: 12.5px; line-height: 1.6; }
.ob-nl-consent a { text-decoration: underline; text-underline-offset: 3px; }
.ob-nl-msg { margin: 10px 0 0; font-size: 14px; line-height: 1.6; }
.ob-nl-msg:empty { display: none; }

/* Done: swap the fields for the thank-you line */
.ob-nl[data-state="done"] .ob-nl-fields,
.ob-nl[data-state="done"] .ob-nl-consent { display: none; }
.ob-nl[data-state="done"] .ob-nl-msg { margin-top: 0; font-family: "Cormorant Garamond", serif; font-size: 24px; line-height: 1.3; }

/* ---------- Footer band: brand green ground ---------- */
.ob-nl-band {
  max-width: 1180px;
  margin: clamp(44px, 5vw, 64px) auto 0;
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid rgba(245, 235, 221, 0.22);
}
.ob-nl--footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px clamp(24px, 5vw, 64px);
  align-items: center;
  color: var(--nl-cream);
}
.ob-nl--footer .ob-nl-title { margin: 0 0 4px; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 28px; line-height: 1.15; color: var(--nl-cream); }
.ob-nl--footer .ob-nl-sub { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(245, 235, 221, 0.85); }
.ob-nl--footer .ob-nl-input { border: 1px solid rgba(245, 235, 221, 0.3); background: rgba(245, 235, 221, 0.08); color: var(--nl-cream); }
.ob-nl--footer .ob-nl-input::placeholder { color: rgba(245, 235, 221, 0.6); }
.ob-nl--footer .ob-nl-input:focus { border-color: var(--nl-peach); box-shadow: 0 0 0 3px rgba(217, 149, 112, 0.2); }
.ob-nl--footer .ob-nl-consent { color: rgba(245, 235, 221, 0.72); }
.ob-nl--footer .ob-nl-consent a,
.ob-nl--footer .ob-nl-msg a { color: var(--nl-cream); }
.ob-nl--footer .ob-nl-msg { color: var(--nl-cream); }
.ob-nl--footer[data-state="error"] .ob-nl-msg { color: var(--nl-peach); }
/* Static pages: the footer container is a flex row; the band takes the full width */
.site-footer .ob-nl-band { flex-basis: 100%; margin: 0 0 8px; padding: 0 0 28px; border-top: none; border-bottom: 1px solid rgba(245, 235, 221, 0.22); }

/* ---------- /newsletter page: cream ground ---------- */
.ob-nl--page .ob-nl-input { padding: 17px 18px; font-size: 16px; border: 1px solid rgba(52, 78, 65, 0.35); background: #FFF8F0; color: var(--nl-ink); }
.ob-nl--page .ob-nl-input::placeholder { color: rgba(38, 59, 80, 0.5); }
.ob-nl--page .ob-nl-input:focus { border-color: var(--nl-terracotta); box-shadow: 0 0 0 3px rgba(198, 106, 50, 0.16); }
.ob-nl--page .ob-nl-btn { padding: 17px 28px; }
.ob-nl--page .ob-nl-consent { color: rgba(38, 59, 80, 0.78); font-size: 13px; }
.ob-nl--page .ob-nl-consent a { color: var(--nl-green); }
.ob-nl--page .ob-nl-msg { color: var(--nl-green); }
.ob-nl--page[data-state="error"] .ob-nl-msg { color: var(--nl-terracotta-dark); }
.ob-nl--page[data-state="done"] .ob-nl-msg { font-size: 30px; }

.ob-nl-page { position: relative; overflow: hidden; }
.ob-nl-hero { position: relative; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 9vw, 120px); background: linear-gradient(180deg, #E8DCC9 0%, #F5EBDD 100%); }
.ob-nl-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(36px, 6vw, 90px); align-items: center; }
.ob-nl-eyebrow { margin: 0 0 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: #79543B; }
.ob-nl-h1 { margin: 0 0 20px; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: clamp(44px, 6.4vw, 80px); line-height: 1; color: var(--nl-green, #344E41); text-wrap: balance; }
.ob-nl-lede { margin: 0 0 30px; max-width: 520px; font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.75; color: #263B50; text-wrap: pretty; }
.ob-nl-expect { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(121, 84, 59, 0.3); max-width: 520px; }
.ob-nl-expect li { padding: 13px 0; border-bottom: 1px solid rgba(121, 84, 59, 0.3); font-family: "Cormorant Garamond", serif; font-size: 23px; color: #344E41; }
.ob-nl-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(52, 78, 65, 0.55); }
.ob-nl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.ob-nl-sprite { position: absolute; z-index: 2; height: auto; pointer-events: none; }

@media (max-width: 520px) {
  .ob-nl-fields { flex-direction: column; }
  .ob-nl-btn { width: 100%; }
}

/* Link from the footer band through to the full /newsletter page */
.ob-nl-more {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--nl-peach);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}
.ob-nl--footer .ob-nl-more { color: var(--nl-cream); }
.ob-nl--footer .ob-nl-more:hover { color: var(--nl-peach); }
.ob-nl-more::after { content: " \2192"; }
