/* Mentoire Journal — parchment & ink, matching the app's manuscript aesthetic. */

:root {
  --bg: #F5EFE3;
  --surface: #FAF5EA;
  --surface-elevated: #EFE6D2;
  --ink: #2A1F14;
  --ink-dim: #6B5642;
  --ink-very-dim: #9C8A72;
  --primary: #8B5A2B;
  --primary-variant: #A86E3D;
  --secondary: #5F6F4A;
  --border: #D9C9A7;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.site-header .wrap {
  max-width: 760px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .mark {
  width: 30px; height: 30px;
  border: 1.6px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
}
.brand-sub {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-very-dim);
}
.brand:hover { text-decoration: none; }
.header-cta {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--bg);
  background: var(--primary);
  padding: 9px 18px;
  border-radius: 4px;
  white-space: nowrap;
}
.header-cta:hover { text-decoration: none; background: var(--primary-variant); }

/* ── Newsletter ── */
.newsletter-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 40px 0;
}
.newsletter-inner {
  max-width: 480px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.newsletter-block .mark {
  width: 34px; height: 34px;
  border: 1.4px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.newsletter-block h3 { font-size: 22px; margin-bottom: 8px; }
.newsletter-block > .wrap > p { color: var(--ink-dim); font-size: 15px; margin: 0 0 20px; }

.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.newsletter-form input[type="email"] {
  flex: 1;
  max-width: 280px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Literata', serif;
  font-size: 15px;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
}
.newsletter-form button {
  background: var(--primary);
  color: var(--bg);
  border: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Literata', serif;
  white-space: nowrap;
}
.newsletter-form button:hover:not(:disabled) { background: var(--primary-variant); }
.newsletter-form button:disabled { opacity: 0.6; cursor: default; }

/* Honeypot — kept in the a11y tree as genuinely hidden, not display:none,
   since some spam bots specifically skip display:none fields. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-very-dim);
}
.newsletter-note.newsletter-success { color: var(--secondary); font-weight: 600; }
.newsletter-note.newsletter-error { color: #8B2C1F; }

@media (max-width: 600px) {
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input[type="email"] { max-width: none; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0 48px;
  color: var(--ink-very-dim);
  font-size: 13.5px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-dim); }

/* ── Index / listing page ── */
.journal-hero {
  padding: 48px 0 8px;
  text-align: center;
}
.journal-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.journal-hero h1 {
  font-size: 40px;
  margin: 12px 0 14px;
}
.journal-hero p {
  color: var(--ink-dim);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.post-list {
  padding: 32px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.post-card {
  display: block;
  padding: 26px 4px;
  border-top: 1px solid var(--border);
  border-left: 3px solid var(--tint, var(--primary));
  padding-left: 20px;
  transition: background 0.15s ease;
}
.post-card:hover { background: var(--surface); text-decoration: none; }
.post-card:last-child { border-bottom: 1px solid var(--border); }
.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mentor-pill {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--tint, var(--primary));
}
.dot-sep { color: var(--ink-very-dim); font-size: 12px; }
.topic-tag {
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-very-dim);
}
.post-card h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--ink);
}
.post-card .dek {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.read-time { color: var(--ink-very-dim); font-size: 12.5px; }

/* ── Article page ── */
.article-header {
  padding: 44px 0 6px;
}
.article-header .post-meta-row { margin-bottom: 16px; }
.article-header h1 {
  font-size: 34px;
  line-height: 1.22;
  margin-bottom: 14px;
}
.article-header .dek {
  font-family: 'Literata', serif;
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 18px;
}
.byline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-very-dim);
  font-size: 13px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.article-body { padding: 30px 0 10px; }
.article-body p {
  margin: 0 0 20px;
  font-size: 17.5px;
  line-height: 1.68;
  color: var(--ink);
}
.article-body .intro p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 600;
  color: var(--primary);
  float: left;
  line-height: 0.85;
  padding: 6px 8px 0 0;
}

.item-block {
  margin: 40px 0;
  padding-top: 4px;
}
.item-block .item-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--tint, var(--primary));
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.item-block h3 {
  font-size: 24px;
  line-height: 1.32;
  margin-bottom: 12px;
  color: var(--ink);
}
.item-block p { margin-bottom: 0; }

.mid-cta {
  margin: 44px 0;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--tint, var(--primary));
  border-radius: 3px;
}
.mid-cta p {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--ink-dim);
}
.mid-cta a.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 4px;
}
.mid-cta a.btn:hover { background: var(--primary-variant); text-decoration: none; }

.closing {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.end-cta {
  margin: 48px 0 8px;
  padding: 36px 28px;
  background: var(--surface-elevated);
  border-radius: 4px;
  text-align: center;
}
.end-cta .mark {
  width: 40px; height: 40px;
  border: 1.6px solid var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto 14px;
}
.end-cta h3 { font-size: 24px; margin-bottom: 10px; }
.end-cta p { color: var(--ink-dim); font-size: 15.5px; margin: 0 0 20px; }
.end-cta a.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 4px;
}
.end-cta a.btn:hover { background: var(--primary-variant); text-decoration: none; }

/* ── Related posts ── */
.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.related .eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-very-dim);
  margin-bottom: 16px;
  display: block;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.related-card {
  display: block;
  padding: 16px;
  background: var(--surface);
  border-left: 3px solid var(--tint, var(--primary));
  border-radius: 3px;
}
.related-card:hover { background: var(--surface-elevated); text-decoration: none; }
.related-card .mentor-pill { display: block; margin-bottom: 6px; }
.related-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .journal-hero h1 { font-size: 32px; }
  .article-header h1 { font-size: 27px; }
  .article-body p { font-size: 16.5px; }
  .item-block h3 { font-size: 21px; }
  .related-grid { grid-template-columns: 1fr; }
  .header-cta { padding: 8px 14px; font-size: 12.5px; }
}
