/* ===== Mindism — Academic Site Stylesheet ===== */

:root {
  --bg:        #faf8f4;
  --bg-alt:    #f0ece4;
  --text:      #2c2c2c;
  --text-muted: #5a5a5a;
  --accent:    #4a3728;
  --accent2:   #1e3a5f;
  --border:    #d5cfc4;
  --gold:      #8b7340;
  --link:      #1e3a5f;
  --link-hover:#4a3728;
  --max-width: 820px;
}

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

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Crimson Text', 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Navigation --- */

nav {
  background: var(--accent);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav .site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0ece4;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav .site-title:hover {
  color: #fff;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}

nav a {
  color: #d5cfc4;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover {
  color: #fff;
}

/* --- Layout --- */

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  width: 100%;
}

/* --- Landing / Hero --- */

.hero {
  text-align: center;
  padding: 2rem 0 1rem;
}

.hero-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

.hero-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.hero-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Headings --- */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.5rem;
  text-align: center;
}

h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
  text-align: center;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}

/* --- Text --- */

p {
  margin-bottom: 1.2rem;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* --- Blockquotes --- */

blockquote {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--bg-alt);
  font-style: italic;
  color: var(--text);
}

blockquote cite,
blockquote .attribution {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Images in content --- */

.figure {
  margin: 2rem 0;
  text-align: center;
}

.figure img {
  max-width: 100%;
  height: auto;
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Article links / readings list --- */

.readings-list {
  list-style: none;
  margin: 2rem 0;
}

.readings-list li {
  margin-bottom: 1rem;
}

.readings-list a {
  display: block;
  padding: 1rem 1.3rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.readings-list a:hover {
  background: #e8e3d8;
  border-left-color: var(--accent2);
  color: var(--accent2);
}

.readings-list .reading-title {
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
}

.readings-list .reading-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

/* --- Purchase block --- */

.purchase-block {
  margin: 2rem auto;
  padding: 1.5rem;
  max-width: 560px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
}

.purchase-block h2 {
  margin: 0 0 1rem;
}

.purchase-placeholder {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--bg);
}

.purchase-price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--accent);
}

.purchase-price-equiv {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  font-style: italic;
}

.book-cover {
  display: block;
  max-width: 280px;
  width: 60%;
  margin: 2rem auto;
  border: 1px solid var(--border);
}

.book-contents {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-muted);
}

.purchase-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #f0ece4;
  text-decoration: none;
  font-weight: 600;
  border: none;
  transition: opacity 0.2s;
}

.purchase-button:hover {
  opacity: 0.9;
}

.purchase-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reading-list {
  max-width: var(--max-width);
  margin: 3rem auto;
}

.reading-list h2 {
  text-align: center;
}

.reading-list ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.reading-list li {
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}

.reading-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* --- Thank You page --- */

.thank-you-card {
  max-width: 620px;
  margin: 4rem auto;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
}

.thank-you-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 68px;
}

.thank-you-card h1 {
  border-bottom: none;
  margin: 0 0 0.5rem;
  padding-bottom: 0;
}

.thank-you-lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.thank-you-body {
  text-align: left;
  margin-bottom: 2rem;
}

.thank-you-body p {
  margin-bottom: 1rem;
}

.thank-you-card .enter-link {
  margin-top: 0.5rem;
}

/* --- Enter link / CTA --- */

.enter-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: var(--accent);
  color: #f0ece4;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--gold);
  transition: all 0.2s;
}

.enter-link:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  color: #fff;
}

/* --- Dividers --- */

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* --- Footer --- */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --- Article pages --- */

.article-body p {
  text-align: justify;
  hyphens: auto;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--link);
  text-decoration: none;
}

.back-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* --- Symbol Grid (4 images row) --- */

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 900px;
  text-align: center;
  justify-items: center;
}

.symbol-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.symbol-grid div p {
  margin: 0 0 0.5rem;
  font-size: 0.9em;
}

.symbol-grid div img {
  width: 180px;
}


/* --- Responsive --- */

@media (max-width: 600px) {
  html { font-size: 18px; }
  h1 { font-size: 1.6rem; }
  main { padding: 1.5rem 1rem 3rem; }
  nav .nav-inner { padding: 0.5rem 1rem; }
  .hero-image { max-width: 100%; }

  .symbol-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    max-width: 380px;
  }

  .symbol-grid div {
    text-align: center;
  }

  .symbol-grid div img {
    width: 150px;
  }
}
