/* site/styles.css — LMS shell styles.
 *
 * Imports the portal's full theme + component system, then layers the
 * LMS-specific layout (header nav, home hero, 3-up explainer) on top.
 * Same theme tokens, same fonts, same Stained Glass palette.
 */

@import url('./profile/styles.css');

/* ─── Shared header (every page in the LMS) ────────────────────── */

.lms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem clamp(1.5rem, 4vw, 3rem);
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(96% 0.015 70 / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--t-line);
}

.lms-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--t-ink);
  font-family: var(--t-font-display);
}
.lms-logo-mark {
  font-family: var(--t-font-mono);
  font-size: 1.5rem;
  color: var(--t-accent);
  line-height: 1;
}
.lms-logo-text {
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.005em;
  color: var(--t-ink);
}

.lms-nav {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
}
.lms-nav a {
  font-family: var(--t-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--t-ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 200ms, border-color 200ms;
}
.lms-nav a:hover { color: var(--t-ink); }
.lms-nav a[aria-current="page"] {
  color: var(--t-accent);
  border-bottom-color: var(--t-accent);
}
.lms-nav a.is-disabled {
  color: var(--t-ink-faint);
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.55;
}

/* ─── Home: hero ──────────────────────────────────────────────── */

.lms-home {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.lms-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  min-height: 80vh;
  padding: 4vh 0;
}

.lms-hero-text {
  max-width: 56ch;
}
.lms-hero-text .eyebrow {
  margin-bottom: 1.2rem;
}
.lms-hero-text .display {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-weight: 400;
  font-style: normal;
}
.lms-hero-text .display em {
  font-style: italic;
  color: oklch(45% 0.20 30); /* deeper accent for the emphasis */
}
.lms-hero-text .lede {
  max-width: 50ch;
  font-size: 1.08rem;
  margin-bottom: 2rem;
}
.lms-hero-text .lede em {
  font-style: italic;
  color: var(--t-ink);
}

.lms-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 1.6rem 0 1.4rem;
}
.btn-primary {
  text-decoration: none;
  display: inline-block;
}
.btn-ghost {
  text-decoration: none;
  display: inline-block;
}
.btn.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
  opacity: 0.5;
}

.lms-hero-meta {
  font-family: var(--t-font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: var(--t-ink-faint);
  margin: 0;
}

.lms-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
#lms-mandala {
  width: 380px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lms-mandala svg {
  animation: spin 240s linear infinite;
  filter: drop-shadow(0 0 32px oklch(60% 0.20 60 / 0.25));
  max-width: 100%;
  height: auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Home: 3-up explainer ───────────────────────────────────── */

.lms-three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 4rem 0;
  border-top: 1px solid var(--t-line);
}
.lms-three-up article {
  /* no card; structure via spacing per design rules */
}
.lms-three-up .step-num {
  font-family: var(--t-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--t-accent);
  margin: 0 0 0.8rem;
}
.lms-three-up h3 {
  font-family: var(--t-font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: var(--t-ink);
  margin: 0 0 0.7rem;
}
.lms-three-up p {
  font-family: var(--t-font-body);
  font-size: 1rem;
  color: var(--t-ink-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.lms-foot {
  padding: 3rem 0 4rem;
  margin-top: 4vh;
  border-top: 1px solid var(--t-line);
  text-align: center;
}
.lms-foot p {
  font-family: var(--t-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--t-ink-faint);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}
.lms-foot p + p {
  margin-top: 0.7rem;
}
.lms-foot .foot-source strong {
  color: var(--t-ink-soft);
  font-weight: 500;
}
.lms-foot .foot-source a,
.lms-foot .foot-design a {
  color: var(--t-ink-soft);
  text-decoration: none;
  border-bottom: 1px dashed var(--t-line);
  transition: color 200ms ease, border-color 200ms ease;
}
.lms-foot .foot-source a:hover,
.lms-foot .foot-design a:hover {
  color: var(--t-accent);
  border-color: var(--t-accent);
}
.lms-foot .foot-design {
  color: var(--t-ink-soft);
}

/* ─── Mobile fallback ────────────────────────────────────────── */

@media (max-width: 880px) {
  .lms-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
    min-height: auto;
    padding: 3rem 0;
  }
  .lms-hero-visual { order: -1; }
  #lms-mandala { width: 280px; }
  .lms-three-up { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0; }
  .lms-nav { gap: 0.8rem; }
  .lms-nav a { font-size: 0.68rem; }
}

@media (max-width: 540px) {
  .lms-nav a:nth-child(2),
  .lms-nav a:nth-child(4) { display: none; }
}
