:root {
  --bg: #1e1a17;
  --bg-soft: #2a241f;
  --card: #f4e4c8;
  --text: #27211a;
  --muted: #6d5a45;
  --accent: #c6923b;
  --accent-dark: #8b6224;
}

/* Global */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top, #f7e5c5 0, #1e1a17 55%);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex: 1;
}

/* Top nav bar (used on all pages) */

header {
  width: 100%;
  padding: 14px 24px;
  background: rgba(30, 26, 23, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f9f4eb;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.nav-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
}

nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

nav a {
  color: #e7dccf;
  opacity: 0.85;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

nav a:hover {
  opacity: 1;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

nav a:hover::after {
  width: 100%;
}

/* Homepage layout (index.html) */

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 16px 40px;
  display: flex;
  justify-content: center;
}

.card {
  max-width: 720px;
  width: 100%;
  background: var(--card);
  border-radius: 18px;
  padding: 32px 28px 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #3c2e20;
}

.tagline {
  margin: 4px 0 16px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.body-text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #4a3824;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: #fdf7eb;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: #f3e1c0;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.btn.accent {
  background: linear-gradient(135deg, #f7b14b, #c47a2a);
  color: #26170b;
  border-color: rgba(0, 0, 0, 0.3);
}

.btn.accent:hover {
  background: linear-gradient(135deg, #ffca6b, #d08632);
}

.btn-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  fill: #c2302b; /* YouTube red tone */
  flex-shrink: 0;
}

/* Generic page wrapper (about, privacy, posts, teachings) */

main.page-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 16px 40px;
}

.page {
  max-width: 860px;
  width: 100%;
  background: rgba(244, 228, 200, 0.96);
  border-radius: 18px;
  padding: 28px 24px 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Standard text on content pages */

.page h1 {
  margin-top: 0;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3c2e20;
}

.page h2 {
  font-size: 19px;
  margin: 20px 0 8px;
  color: #3c2e20;
}

.page p {
  line-height: 1.7;
  color: #4a3824;
  font-size: 15px;
  margin: 0 0 14px;
}

.page ul {
  margin: 0 0 14px 18px;
  padding: 0;
}

.page li {
  margin-bottom: 6px;
  color: #4a3824;
}

/* Meta + blockquote for studies */

.meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #8d7455;
  margin-bottom: 14px;
}

blockquote {
  margin: 12px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #4a3824;
}

.inline-link {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Teachings listing page */

.teaching-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.teaching-card {
  background: #fdf7eb;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 14px 14px 12px;
}

.teaching-card h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #3c2e20;
}

.teaching-card a {
  text-decoration: none;
  color: inherit;
}

.teaching-card a:hover {
  color: var(--accent-dark);
}

.teaching-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8d7455;
  margin-bottom: 6px;
}

.teaching-desc {
  font-size: 14px;
  color: #4a3824;
  line-height: 1.5;
}

/* Footer */

footer {
  width: 100%;
  padding: 12px 16px 18px;
  text-align: center;
  font-size: 12px;
  color: #b8aa97;
}

footer a {
  color: #d9c29a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Responsive */

@media (max-width: 640px) {
  .btns {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}
  header {
    padding: 10px 14px;
  }

  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wrap {
    padding-top: 32px;
  }

  .card {
    padding: 22px 18px 20px;
  }

  .logo {
    width: 90px;
    height: 90px;
  }

  .page-wrap {
    padding-top: 32px;
  }
}
