/* Sacred Herbology podcast - shared styles (header, footer, forms, modals).
   Palette and type follow the sacredherbology.com theme: forest, ink, stone, cream, rust;
   Instrument Serif for display, Figtree for everything else. White ground. Local fonts only.
   DESIGN PASS PENDING - Graphic Design / Community Outreach refine this before go-live. */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/podcast/fonts/instrument-serif-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/podcast/fonts/instrument-serif-italic.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/podcast/fonts/figtree-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: italic; font-weight: 300 900; font-display: swap; src: url("/podcast/fonts/figtree-italic.woff2") format("woff2"); }

/* The player and page CSS (podcast.css, notes.css) are written against these token names;
   the values are Sacred Herbology's. navy = forest, gold = warm accent, gold-deep = rust. */
:root {
  --navy: #1b4332;
  --navy-2: #245c45;
  --blue: #2d6a4f;
  --gold: #e6d5b8;
  --gold-soft: #efe4d0;
  --gold-deep: #9a3412;
  --green: #2d6a4f;
  --red: #b3261e;
  --rust: #9a3412;
  --ink: #1a1a1a;
  --muted: #57534e;
  --line: #e7e2da;
  --mist: #eef3ef;
  --parchment: #ffffff;
  --cream: #fcfaf7;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(27, 67, 50, 0.08);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
button { font-family: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.hp-field { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.quarters { height: 1px; border: 0; background: var(--line); }

/* ---------- Header: logo + title left, nav right (same layout as the sacredherbology.com header) ---------- */
.sh-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.sh-hwrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sh-masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .8rem; padding-bottom: .8rem; }
.sh-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.sh-brand img { width: 56px; height: 56px; display: block; }
.sh-brand-name { font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--navy); letter-spacing: -.01em; }
.sh-navbar { display: flex; align-items: center; gap: 1.4rem; }
.sh-nav { display: flex; align-items: center; gap: 1.4rem; list-style: none; }
.sh-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.sh-nav a:hover, .sh-nav a[aria-current="page"] { border-bottom-color: var(--rust); color: var(--navy); }
.sh-acct-btn { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .4rem .9rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sh-acct-btn:hover { border-color: var(--navy); }
.sh-acct-btn svg { width: 16px; height: 16px; }
.sh-nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--navy); }
.sh-nav-toggle svg { width: 28px; height: 28px; display: block; }
@media (max-width: 780px) {
  .sh-brand img { width: 44px; height: 44px; }
  .sh-brand-name { font-size: 1.3rem; }
  .sh-nav-toggle { display: block; }
  .sh-navbar { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; padding: .6rem 24px 1rem; border-bottom: 1px solid var(--line); }
  .sh-navbar.open { display: flex; }
  .sh-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .sh-nav a { display: block; text-align: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .sh-acct-btn { justify-content: center; margin-top: .7rem; }
}

/* ---------- Footer (forest band, as on sacredherbology.com) ---------- */
.sh-footer { background: var(--navy); color: var(--cream); padding: 3rem 0 1.5rem; font-size: .95rem; }
.sh-footer a { color: var(--cream); }
.sh-footer a:hover { color: #fff; }
.sh-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.sh-footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.sh-footer-brand img { width: 52px; height: 52px; background: #fff; border-radius: 8px; padding: 4px; box-sizing: content-box; }
.sh-footer-brand strong { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.sh-footer p { color: rgba(252, 250, 247, .85); margin-bottom: .6rem; }
.sh-footer h3 { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #cfe3d6; margin-bottom: .9rem; }
.sh-footer ul { list-style: none; }
.sh-footer li { margin-bottom: .45rem; }
.sh-footer li a { text-decoration: none; }
.sh-footer-note { margin-top: 2rem; font-size: .85rem; color: rgba(252, 250, 247, .72) !important; }
.sh-footer-sep { border: 0; border-top: 1px solid rgba(252, 250, 247, .15); margin: 1.5rem 0 1rem; }
.sh-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .82rem; }
.sh-footer-bottom p { color: rgba(252, 250, 247, .7) !important; margin: 0; }
@media (max-width: 780px) { .sh-footer-cols { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Staging marks (preview only; the server drops the banner once staging: false) ---------- */
.sh-staging-banner { background: #fff4d6; color: #5c3d00; border-bottom: 1px solid #ecd9a6; font-size: .85rem; text-align: center; padding: .45rem 1rem; }
.sh-placeholder { display: block; border: 1.5px dashed var(--rust); background: #fbf1ea; color: var(--rust); border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; font-family: var(--sans); font-style: normal; }
.sh-placeholder strong { font-weight: 700; }
.sh-art-pending { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 1 / 1; border: 1.5px dashed rgba(252, 250, 247, .55); border-radius: 28px; color: rgba(252, 250, 247, .85); font-size: .9rem; padding: 1.5rem; background: rgba(10, 26, 18, .35); }


/* ---------- Type helpers ---------- */
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.4rem; display: block; }
.rule { width: 56px; height: 3px; background: var(--gold); margin: 0.55rem 0 1.4rem; border: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.02em; border-radius: var(--radius); padding: 0.7rem 1.3rem; cursor: pointer; text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; line-height: 1.2; white-space: nowrap; }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #fff; color: var(--navy); border-color: var(--gold); }
.btn-outline { background: transparent; color: var(--blue); border-color: currentColor; }
.btn-outline:hover { background: var(--mist); color: var(--navy); }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(179,20,28,.45); }
.btn-danger:hover { background: rgba(179,20,28,.06); border-color: var(--red); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .field .label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field .req { color: var(--red); margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--parchment); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 10px 12px; outline: none; width: 100%; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; }
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a6275' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.field .invalid { border-color: var(--red) !important; }
.field-error { font-size: 0.82rem; color: var(--red); min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink); cursor: pointer; line-height: 1.45; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.msg { font-size: 0.95rem; padding: 12px 14px; border-radius: var(--radius); display: none; }
.msg.success { display: block; background: rgba(47,122,98,.1); color: #1f5a47; border: 1px solid rgba(47,122,98,.35); }
.msg.error { display: block; background: rgba(179,20,28,.06); color: var(--red); border: 1px solid rgba(179,20,28,.3); }
.msg.info { display: block; background: var(--mist); color: var(--navy); border: 1px solid var(--line); }
.privacy-note { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Modals ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10, 26, 18, 0.82); z-index: 600; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 32px 16px; backdrop-filter: blur(3px); }
.modal-overlay.open { display: block; }
.modal { background: #fff; max-width: 580px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,.35); animation: modalIn .25s ease; }
.modal-wide { max-width: 760px; }
.modal-head { background: var(--navy); color: #fff; padding: 26px 64px 22px 28px; position: relative; }
.modal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rust); opacity: .8; }
.modal-head h2, .modal-head h3 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.modal-head p { color: rgba(255,255,255,.78); font-size: 0.95rem; line-height: 1.5; }
.modal-head .eyebrow { color: var(--gold); }
.modal-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,.28); }
.modal-body { padding: 26px 28px 28px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .modal-head { padding: 22px 56px 20px 20px; } .modal-body { padding: 20px; } .modal-overlay { padding: 12px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: var(--radius); font-size: 0.93rem; box-shadow: 0 6px 24px rgba(0,0,0,.25); z-index: 9999; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); }
.toast.error { background: var(--red); }
.toast button { background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-weight: 700; }

/* ---------- Simple page shell (account / manage / offline / 404) ---------- */
.page-band { background: var(--navy); color: #fff; padding: 44px 0 38px; background-image: radial-gradient(120% 90% at 50% 0%, #245c45 0%, var(--navy) 55%, #133024 100%); }
.page-band h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-band p { color: rgba(255,255,255,.8); max-width: 60ch; margin-top: 0.5rem; }
.page-band .eyebrow { color: var(--gold); }
.page-main { padding: 40px 0 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); max-width: 640px; }
.card + .card { margin-top: 24px; }
.card h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.card p { margin-bottom: 0.8rem; }
.card-green { border-top-color: var(--green); }
.card-red { border-top-color: var(--red); }
.card-gold { border-top-color: var(--gold); }
.status-pill { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.status-pill.active { background: rgba(47,122,98,.12); color: var(--green); }
.status-pill.unsubscribed { background: rgba(179,20,28,.08); color: var(--red); }
.spinner { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.field > label.check { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
