/* =========================================================
   MIST Press LLC — Full Website v2
   Public author name: N. A. Dakhan
   Legal owner / publisher: MIST Press LLC
   ========================================================= */

:root {
  --text: #ffffff;
  --soft: rgba(255,255,255,0.86);
  --muted: rgba(255,255,255,0.72);
  --muted-2: rgba(255,255,255,0.56);
  --green: #baffc0;
  --green-soft: rgba(220,255,220,0.96);
  --line: rgba(255,255,255,0.11);
  --line-strong: rgba(190,255,200,0.30);
  --panel: rgba(0,0,0,0.48);
  --panel-strong: rgba(0,0,0,0.62);
  --max: 1300px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: Georgia, "Times New Roman", serif;
  background: #000;
  color: var(--text);
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.86)),
    var(--page-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(170,255,185,0.08), transparent 58%);
  pointer-events: none;
  z-index: 0;
}
body.home { --page-bg: url('../images/mist-home.jpg'); }
body.publications { --page-bg: url('../images/mist-publications.jpg'); }
body.milaila { --page-bg: url('../images/mist-publications.jpg'); }
body.health { --page-bg: url('../images/mist-research.jpg'); }
body.research { --page-bg: url('../images/mist-research.jpg'); }
body.archive { --page-bg: url('../images/mist-archive.jpg'); }
body.academy { --page-bg: url('../images/mist-academy.jpg'); }
body.journal, body.simple, body.notfound { --page-bg: url('../images/mist-home.jpg'); }

a { color: inherit; }
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
.site-header { padding: 30px 0; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { text-decoration: none; display: inline-block; }
.logo-mark { display: block; font-size: 18px; letter-spacing: 0.45em; color: #ecffef; }
.logo-subtitle { display: block; margin-top: 6px; color: var(--muted-2); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; }
.nav ul { display: flex; list-style: none; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: rgba(255,255,255,0.82); font-size: 12px; text-transform: uppercase; letter-spacing: 0.17em; transition: color 0.25s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); }

.hero { padding: 96px 0 72px; }
.hero-tall { min-height: 78vh; display: flex; align-items: center; }
.hero-content { max-width: 850px; }
.label { color: rgba(210,255,220,0.76); font-size: 11px; text-transform: uppercase; letter-spacing: 0.42em; margin-bottom: 22px; }
h1 { font-size: clamp(54px, 7vw, 110px); font-weight: 400; letter-spacing: 0.13em; line-height: 0.98; margin-bottom: 26px; color: #f4fff4; }
.page-title { font-size: clamp(48px, 6vw, 92px); }
.hero h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 300; color: rgba(255,255,255,0.88); margin-bottom: 34px; }
.hero p, .lede { max-width: 850px; font-size: 18px; line-height: 1.9; color: var(--muted); margin-bottom: 38px; }

.buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; transition: all 0.25s ease; border: 1px solid transparent; font-family: inherit; }
.btn-primary { background: var(--green-soft); color: #000; }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-secondary { color: #fff; border-color: rgba(255,255,255,0.28); background: rgba(0,0,0,0.16); backdrop-filter: blur(5px); }
.btn-secondary:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.btn-muted { color: rgba(255,255,255,0.46); border-color: rgba(255,255,255,0.13); cursor: not-allowed; }

.section { padding: 20px 0 100px; }
.section-spaced { padding: 80px 0 100px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 28px; }
.grid-wide { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: start; }
.card, .book-card, .policy-card, .notice { background: var(--panel); border: 1px solid var(--line); border-radius: 28px; backdrop-filter: blur(12px); }
.card, .policy-card, .notice { padding: 30px; }
.card:hover, .book-card:hover { border-color: var(--line-strong); }
.card-label, .category { color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 16px; }
.card h2, .card h3, .policy-card h2 { font-size: 30px; margin-bottom: 16px; color: #efffef; font-weight: 400; }
.card p, .policy-card p, .policy-card li, .notice p { color: var(--muted); line-height: 1.85; font-size: 15px; }
.policy-card h2:not(:first-child) { margin-top: 30px; }
.policy-card ul, .notice ul { padding-left: 20px; margin-top: 12px; }
.lower-panel { margin-top: -100px; padding-bottom: 90px; }

.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding-bottom: 100px; }
.book-card { overflow: hidden; }
.book-cover { min-height: 360px; background: linear-gradient(rgba(0,0,0,0.12), rgba(0,0,0,0.58)), url('../images/mist-publications.jpg'); background-size: cover; background-position: center; }
.book-content { padding: 30px; }
.book-content h2 { font-size: 36px; margin-bottom: 10px; font-weight: 400; }
.author { color: rgba(255,255,255,0.62); margin-bottom: 18px; font-size: 14px; letter-spacing: 0.04em; }
.book-content p { color: var(--muted); line-height: 1.9; margin-bottom: 26px; }
.price-line { color: #efffef; margin-bottom: 20px; font-size: 14px; }
.small-note { margin-top: 14px; color: rgba(255,255,255,0.50); font-size: 13px; line-height: 1.7; }

.form { display: grid; gap: 16px; max-width: 620px; }
.input, .textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.18); background: rgba(0,0,0,0.40); color: #fff; font-family: inherit; font-size: 16px; }
.textarea { min-height: 150px; }
.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.48); }

.site-footer { border-top: 1px solid var(--line); background: rgba(0,0,0,0.48); backdrop-filter: blur(10px); padding: 44px 0; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.footer-title { color: #ecffef; letter-spacing: 0.28em; margin-bottom: 12px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.8; text-decoration: none; }
.site-footer a:hover { color: var(--green); }
.footer-heading { color: rgba(210,255,220,0.8); font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 12px; }
.footer-list { list-style: none; }
.footer-list li { margin-bottom: 8px; }
.copyright { margin-top: 20px; color: rgba(255,255,255,0.42); }

@media (max-width: 900px) {
  body { background-attachment: scroll; }
  .nav { flex-direction: column; align-items: flex-start; }
  .nav ul { justify-content: flex-start; gap: 18px; }
  .hero { padding-top: 70px; }
  .hero-tall { min-height: 70vh; }
  .lower-panel { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-wide { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 22px; }
  .nav ul { flex-direction: column; gap: 12px; }
  .label { letter-spacing: 0.28em; }
  .buttons { flex-direction: column; align-items: flex-start; }
  .books-grid, .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Health Foundations sales page additions */
.featured-band { padding-top: 0; }
.adjusted-panel { margin-top: 0; }
.compact-title { letter-spacing: 0.055em; line-height: 1.02; }
.cover-panel {
  background: rgba(0,0,0,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 30px;
  padding: 22px;
  backdrop-filter: blur(12px);
}
.cover-panel img {
  display: block;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid rgba(220,255,220,0.24);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.product-cover-panel img { max-width: 420px; }
.book-cover-health {
  background:
    linear-gradient(rgba(0,0,0,0.05), rgba(0,0,0,0.36)),
    url('../images/health-foundations-cover-na-dakhan-2026.jpg');
  background-size: cover;
  background-position: center;
}
.featured-book-card { border-color: rgba(186,255,196,0.26); }
.book-meta-box {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.book-meta-box span {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.28);
  border-radius: 999px;
  padding: 9px 13px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
}
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.contents-grid h3 {
  color: #efffef;
  font-weight: 400;
  font-size: 22px;
  margin-bottom: 12px;
}
.notice code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #baffc0;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 2px 6px;
}
@media (min-width: 901px) {
  .featured-book-card { grid-column: span 2; }
}

/* Apocryphon complete trilogy and volume pages */
body.apocryphon { --page-bg: url('../images/mist-publications.jpg'); }
body.apocryphon .hero { padding-top: 70px; }
.apoc-hero .page-title { font-size: clamp(48px, 6vw, 86px); overflow-wrap: anywhere; }
.apoc-hero .hero-content p { margin-bottom: 20px; }
.apoc-hero .hero-content h2 { margin-bottom: 18px; }
.apoc-tagline { color: #eac077 !important; font-size: clamp(20px, 2.25vw, 27px) !important; font-style: italic; }
.apoc-price { color: #edc56c; font-size: 30px; margin: 10px 0 20px; }
.apoc-price span { font-size: 13px; color: #d7d3cc; }
.apoc-button { background:#dca843; color:#18110c; font-weight:bold; }
.apoc-button:hover { background: #f7d17e; }
.apoc-cover-panel img { border-color: rgba(219,170,73,.4); border-radius:10px; max-width: 390px; }
.apoc-section-heading { font-size: clamp(30px, 4vw, 48px); font-weight:400; margin: 15px 0 20px; color:#f0d19b; }
.apoc-volume-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; margin:30px 0 0; }
.apoc-volume-card { border:1px solid rgba(218,171,82,.3); background:rgba(9,7,4,.8); border-radius:22px; padding:14px; min-width:0; }
.apoc-volume-card img { display:block; width:100%; height:310px; object-fit:contain; object-position:center; border-radius:10px; background:#2b1e17; }
.apoc-volume-card h3 { font-size:25px; line-height:1.18; font-weight:normal; color:#f7ebd9; margin:10px 0; }
.apoc-volume-card > div { padding:12px; }
.apoc-volume-card p { font-size:15px; color:#e8ddca; line-height:1.6; }
.apoc-volume-card .category { color: #e5b958; }
.text-link { display:inline-block; margin-top:16px; color:#f4ca76; text-underline-offset:4px; }
.apoc-accent { border-color:rgba(223,171,76,.4); }
.apoc-accent .category { color:#eec777; }
.apoc-listing { border-color:rgba(223,171,76,.5); }
.apoc-list-cover { height:360px; display:flex; align-items:center; justify-content:center; background:#221812; padding:14px; }
.apoc-list-cover img { display:block; height:100%; width:100%; object-fit:contain; }
.apoc-listing .category { color:#edc56c; }
.apoc-home-feature { margin:45px 0 10px; }
.apoc-home-feature .grid-wide { grid-template-columns: 0.6fr 1.4fr; align-items: center; }
.apoc-home-feature .apoc-home-cover img { max-width:210px; border-radius:9px; }
.apoc-closing { color:#edc56c !important; font-style:italic; }
@media(max-width:900px) { .apoc-volume-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .apoc-home-feature .grid-wide { grid-template-columns:1fr; } }
@media(max-width:620px) { .apoc-volume-grid { grid-template-columns:1fr; } .apoc-volume-card img { height:380px; } .apoc-list-cover { height:330px; } }

/* The Health Foundations book and companion package are announced only, not sold here. */
.coming-soon-kicker {
  display:inline-block; margin:0 0 20px; padding:10px 18px;
  border:1px solid rgba(186,255,192,.55);border-radius:999px;
  color:#d1ffd3; background:rgba(29,77,43,.42);
  font:700 13px/1.35 Arial,sans-serif;letter-spacing:.16em;
}
.disabled-status { display:inline-flex; align-items:center; justify-content:center; opacity:.86; pointer-events:none; }
.health-coming-soon-listing { border-color:rgba(186,255,192,.25); }
.health-coming-soon-listing .price-line { color:#d3dfd3; }


/* ===============================================
   MIST Press homepage spacing refinement — Oct 2026
   Preserve established typography, colors, and content.
   Limit these layout changes to the homepage only.
   =============================================== */
body.home .hero-tall {
  min-height: 0;
  padding: clamp(42px, 5.5vw, 76px) 0 clamp(40px, 5vw, 64px);
  align-items: flex-start;
}
body.home .hero-content { max-width: 900px; }
body.home .hero h1 { margin-bottom: 18px; }
body.home .hero h2 { margin-bottom: 21px; }
body.home .hero .label { margin-bottom: 16px; }
body.home .hero p {
  max-width: 770px;
  line-height: 1.65;
  margin-bottom: 25px;
}
body.home .apoc-home-feature {
  margin: 0;
  padding: 0 0 34px;
}
body.home .apoc-home-feature .grid-wide {
  grid-template-columns: minmax(240px, .72fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 24px;
}
body.home .apoc-home-feature .cover-panel {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.home .apoc-home-feature .apoc-home-cover img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 270px);
  max-height: 540px;
  aspect-ratio: 576 / 919;
  object-fit: contain;
  margin: 0 auto;
}
body.home .apoc-home-feature .policy-card h2 { margin-top: 0; }
body.home .featured-band:not(.apoc-home-feature) { padding: 8px 0 40px; }
body.home .featured-band:not(.apoc-home-feature) .grid-wide {
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .65fr);
  align-items: center;
  gap: 24px;
}
body.home .featured-band:not(.apoc-home-feature) .cover-panel { padding: 14px; }
body.home .featured-band:not(.apoc-home-feature) .cover-panel img { max-width: 245px; }
body.home .lower-panel.adjusted-panel { margin-top: 0; padding-bottom: 52px; }
body.home .lower-panel .card { padding: 24px; }
body.home .lower-panel .card h2 { font-size: 25px; }
body.home .lower-panel .card p { line-height: 1.7; }
@media (max-width: 900px) {
  body.home .hero-tall { min-height: 0; padding: 42px 0 46px; }
  body.home .apoc-home-feature .grid-wide,
  body.home .featured-band:not(.apoc-home-feature) .grid-wide { grid-template-columns: 1fr; }
  body.home .featured-band:not(.apoc-home-feature) { padding-bottom: 28px; }
}
@media (max-width: 620px) {
  body.home .hero-tall { padding: 26px 0 34px; }
  body.home .hero h1 { margin-bottom: 14px; }
  body.home .hero h2 { margin-bottom: 16px; }
  body.home .hero p { line-height: 1.56; margin-bottom: 20px; font-size: 16px; }
  body.home .apoc-home-feature { padding-bottom: 24px; }
  body.home .featured-band:not(.apoc-home-feature) { padding-bottom: 24px; }
  body.home .lower-panel.adjusted-panel { padding-bottom: 36px; }
  body.home .lower-panel .card { padding: 20px; }
}
