/* Mitothrum v1 — calm, warm, luxurious */
:root {
  --espresso: #17110c;
  --espresso-2: #211912;
  --espresso-3: #2b2117;
  --cream: #f7f1e6;
  --cream-2: #efe5d1;
  --ink: #2b2119;
  --muted: #8d7c64;
  --muted-dark: #b9a888;
  --amber: #c9a05c;
  --amber-soft: #e4cb93;
  --line: rgba(201, 160, 92, 0.28);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.55rem; margin-bottom: 0.4rem; }

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

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.section { padding: 5.5rem 0; }
.section-sub { max-width: 640px; color: var(--muted); margin-bottom: 2.5rem; font-size: 1.05rem; }
.section-dark .section-sub { color: var(--muted-dark); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--amber); color: var(--espresso); }
.btn-gold:hover { background: var(--amber-soft); }
.btn-ghost { border-color: rgba(247, 241, 230, 0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 241, 230, 0.08); }
.btn-small { padding: 0.6rem 1.25rem; font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 17, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.wordmark { text-decoration: none; color: var(--cream); line-height: 1.1; display: inline-flex; align-items: center; gap: 0.7rem; }
.wordmark-mark { width: 42px; height: 42px; flex: none; }
.wordmark-name { font-size: 1.65rem; display: block; }
.wordmark-tag {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; color: var(--amber-soft); }

/* Hero */
.hero {
  position: relative;
  color: var(--cream);
  padding: 7rem 0 6rem;
  overflow: hidden;
  background: var(--espresso);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('media/hero.jpg') center / cover no-repeat;
  opacity: 0.55;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,17,12,0.55) 0%, rgba(23,17,12,0.25) 45%, rgba(23,17,12,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.hero h1 { max-width: 16ch; margin-bottom: 1.2rem; }
.hero h1 em { color: var(--amber-soft); font-style: italic; }
.lede { max-width: 34rem; font-size: 1.12rem; color: rgba(247,241,230,0.88); margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.hero-note { font-size: 0.85rem; color: var(--muted-dark); letter-spacing: 0.04em; }

/* Sections */
.section-cream { background: var(--cream); }
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark h2 { color: var(--cream); }

/* Concierge / chat */
.chat {
  max-width: 720px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(23, 17, 12, 0.10);
  overflow: hidden;
}
.chat-messages {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 220px;
  max-height: 420px;
  overflow-y: auto;
}
.msg {
  max-width: 85%;
  padding: 0.75rem 1.05rem;
  border-radius: 16px;
  font-size: 0.96rem;
  line-height: 1.55;
}
.msg-bot { background: var(--cream-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--espresso); color: var(--cream); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-typing { color: var(--muted); font-style: italic; }
.chat-suggest {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  padding: 0 1.4rem 1rem;
}
.chat-suggest button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
.chat-suggest button:hover { border-color: var(--amber); color: var(--amber); }
.chat-input {
  display: flex; gap: 0.7rem;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--ink);
}
.chat-input input:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.chat-email {
  padding: 0 1.4rem 1.4rem;
  display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center;
}
.chat-email p { width: 100%; font-size: 0.92rem; color: var(--muted); }
.chat-email input {
  flex: 1; min-width: 200px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 0.95rem;
  font-family: inherit;
}
.email-msg { font-size: 0.9rem; color: #3f6b3a; }
.is-hidden { display: none !important; }

/* Rituals */
.ritual-banner {
  height: 180px;
  border-radius: var(--radius);
  background: url('media/accent-ritual.jpg') center / cover no-repeat;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(23, 17, 12, 0.10); }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }
.card-soon {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber) !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}
.card-picks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.card-picks li {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0.4rem;
}
.card-picks li::after {
  content: "";
  display: table;
  clear: both;
}
.pick-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  float: left;
  margin: 0.15rem 0.85rem 0.5rem 0;
  border: 1px solid var(--line);
  background: #f7f1e6;
}
.card-picks li a { font-weight: 600; }
.price-note { white-space: nowrap; font-size: 0.85em; }

/* Science */
.science-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.science-grid p { color: rgba(247,241,230,0.88); margin-bottom: 1.4rem; font-size: 1.05rem; }
.science-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.science-list li {
  padding-left: 1.8rem;
  position: relative;
  color: rgba(247,241,230,0.88);
}
.science-list li::before {
  content: "◆";
  position: absolute; left: 0;
  color: var(--amber);
  font-size: 0.8rem;
  top: 0.3rem;
}
.science-accent {
  min-height: 320px;
  border-radius: var(--radius);
  background: url('media/accent-science.jpg') center / cover no-repeat;
  border: 1px solid var(--line);
}

/* Episodes */
.episode-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #000;
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }
.episode-meta {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--amber-soft);
  margin-bottom: 1rem;
  font-weight: 600;
}
.episode-copy p { color: rgba(247,241,230,0.88); margin-bottom: 1.1rem; }
.episode-tease {
  border-left: 3px solid var(--amber);
  padding-left: 1.1rem;
  margin-top: 1.6rem;
}
.episode-tease strong { color: var(--amber-soft); }

/* Comparisons */
.table-shell {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  overflow-x: auto;
}
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
caption {
  text-align: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  padding-bottom: 1rem;
}
th, td { text-align: left; padding: 0.9rem 0.8rem; border-bottom: 1px solid var(--cream-2); }
th {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
tbody tr:last-child td { border-bottom: none; }
.pill {
  display: inline-block;
  background: var(--cream-2);
  color: var(--amber);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pill-live { background: #2e7d4f; color: #fff; }
.table-note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.about-grid p { margin-bottom: 1.1rem; color: var(--ink); }
.about-accent {
  min-height: 300px;
  border-radius: var(--radius);
  background: url('media/accent-about.jpg') center / cover no-repeat;
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  background: var(--espresso);
  color: var(--cream);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.2rem;
  align-items: start;
}
.footer-brand .wordmark-name { font-size: 1.5rem; color: var(--cream); }
.footer-tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 0.3rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav a { color: rgba(247,241,230,0.8); text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { color: var(--amber-soft); }
.footer-contact p { color: rgba(247,241,230,0.8); font-size: 0.95rem; }
.footer-contact a { color: var(--amber-soft); }
.disclosure {
  font-size: 0.88rem;
  color: rgba(247,241,230,0.75);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.disclosure strong { color: var(--amber-soft); }
.legal { font-size: 0.82rem; color: var(--muted-dark); }

/* Responsive */
@media (max-width: 860px) {
  .science-grid, .episode-grid, .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .header-inner { gap: 1rem; }
  .header-inner .btn { margin-left: auto; }
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .science-accent, .about-accent { min-height: 220px; }
}

.card-picks li > a:first-child img { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-picks li > a:first-child:hover img { transform: scale(1.06); box-shadow: 0 4px 14px rgba(23,17,12,0.25); }

.pick-disclosure {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 0.9rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--line);
}

/* Small phones */
@media (max-width: 560px) {
  .wrap { padding: 0 1.1rem; }
  .section { padding: 3rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6.5vw, 2rem); }
  .card { padding: 1.4rem 1.2rem; }
  .cards { grid-template-columns: 1fr; }
  .pick-thumb { width: 56px; height: 56px; border-radius: 10px; }
  .table-shell { padding: 1rem; border-radius: 12px; }
  table { font-size: 0.85rem; }
  .chat-messages { max-height: 300px; min-height: 180px; padding: 1rem; }
  .chat-suggest { padding: 0 1rem 0.8rem; }
  .chat-suggest button { font-size: 0.8rem; padding: 0.4rem 0.85rem; }
  .chat-input { padding: 0 1rem 1rem; }
  .msg { font-size: 0.9rem; max-width: 92%; }
  .episode-card video, .hero-media video { width: 100%; height: auto; }
  .site-footer { padding: 2.5rem 0 2rem; }
  img { max-width: 100%; height: auto; }
}
