/* ── Becoming Mahamudra · Base Styles ── */
:root {
  --parchment:  #dce8f0;   /* clear day sky blue — main background */
  --ink:        #0f1a24;   /* deep navy-ink — warm tint pulled blue */
  --muted:      #3a4e5e;   /* mid blue-grey for secondary text */
  --gold:       #b07830;   /* amber-copper — warmer than old gold to push against cool bg */
  --burgundy:   #7a3a20;   /* warm terracotta — replaces cool burgundy */
  --rule:       #b8ccd8;   /* blue-grey rule line */
}

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

/* ── Base font sizes by device ── */
html { font-size: 16px; }
@media (min-width: 600px)  { html { font-size: 17px; } }
@media (min-width: 900px)  { html { font-size: 18px; } }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 1.4rem 1.2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (min-width: 600px) {
  header { padding: 2.4rem 2rem 1.6rem; }
}

.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 600px) {
  .site-title { font-size: 1.7rem; }
}

.site-title em {
  font-style: italic;
  color: var(--gold);
}

nav {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  nav { gap: 2rem; }
}

nav a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0.3rem 0;
}

nav a:hover { color: var(--gold); }
nav a.active { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 1px; }

/* ── Main ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 4rem;
}

@media (min-width: 600px) {
  main { padding: 4rem 2rem 6rem; }
}

.page-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

@media (min-width: 600px) {
  .page-heading { font-size: 2.6rem; }
}

.page-subheading {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.4rem;
}

@media (min-width: 600px) {
  .page-subheading { margin-bottom: 3rem; }
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.4rem 0;
}

p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 400;
}

p:last-child { margin-bottom: 0; }

a {
  color: var(--burgundy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover { border-bottom-color: var(--burgundy); }

.leader {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.8rem;
}

@media (min-width: 600px) {
  .leader { font-size: 1.25rem; }
}

.text-study {
  border-left: 2px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2rem 0;
}

.text-study p {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.text-study p:last-child { margin-bottom: 0; }

.access-note {
  background: #c8dce8;
  border-radius: 2px;
  padding: 1.2rem 1.4rem;
  margin-top: 2.4rem;
}

@media (min-width: 600px) {
  .access-note { padding: 1.4rem 1.6rem; margin-top: 2.8rem; }
}

.access-note p {
  font-family: 'Jost', sans-serif;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}

.access-note a { color: var(--gold); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.4rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 600px) {
  footer { padding: 1.4rem 2rem; }
}

footer p {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.admin-link {
  position: absolute;
  right: 1.4rem;
  font-size: 1rem;
  color: var(--rule);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s;
  line-height: 1;
  padding: 0.4rem;
}

@media (min-width: 600px) {
  .admin-link { right: 2rem; }
}

.admin-link:hover {
  color: var(--gold);
  border-bottom: none;
}
