/* ============================================================
   Aura Academy portal styles.

   Brand tokens live in :root below. If a colour ever needs to
   change, change it there and it changes everywhere.
   ============================================================ */

:root {
  /* Colour tokens from the Aura Academy crest */
  --parchment: #ECE9E2;   /* page background */
  --espresso:  #373030;   /* body text */
  --oxblood:   #5A2E35;   /* primary brand: banner, buttons, links */
  --mushroom:  #94867C;   /* borders, muted text, inactive states */
  --gold:      #B79164;   /* small accents only */
  --surface:   #F8F6F1;   /* cards, slightly lighter than parchment */

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", -apple-system, "Segoe UI", sans-serif;

  --border: 1px solid rgba(148, 134, 124, 0.4);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { background: var(--parchment); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Visible keyboard focus, everywhere. */
:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect reduced motion: no transitions or animations at all. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

.loading, .noscript {
  text-align: center;
  color: var(--mushroom);
  padding: 80px 24px;
}

/* ---------- Header: the arch, the signature element ---------- */

.arch-header {
  border: 1px solid rgba(90, 46, 53, 0.35);
  border-radius: 200px 200px 14px 14px;
  /* The crest artwork carries its own breathing room, so the arch
     needs less padding than the old typed wordmark did. */
  padding: 34px 20px 18px;
  text-align: center;
  margin-bottom: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(183, 145, 100, 0.08), transparent 60%),
    var(--surface);
}

.logo-title { margin: 0; }

/* The crest carries its own wordmark, so it IS the heading. */
.logo {
  display: block;
  width: min(300px, 82%);
  height: auto;
  margin: 0 auto;
}

.logo-small { width: min(180px, 60%); margin-bottom: 4px; }

.arch-header .subtitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mushroom);
  margin: 6px 0 0;
}

.greeting {
  text-align: center;
  margin: 0 0 24px;
  font-size: 15px;
}

/* ---------- Next class banner ---------- */

.next-class {
  position: relative;
  background: var(--oxblood);
  color: var(--parchment);
  border-radius: 28px 28px var(--radius) var(--radius);
  padding: 22px 22px 24px;
  margin-bottom: 16px;
  overflow: hidden;
}

.next-class .star {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--gold);
  opacity: 0.9;
}

.next-class .kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 6px;
}

.next-class h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 4px;
  padding-right: 40px;
}

.next-class .when { margin: 0 0 16px; opacity: 0.9; }

.next-class .note { margin: 0; opacity: 0.9; font-style: italic; }

.btn-zoom {
  display: inline-block;
  background: var(--parchment);
  color: var(--oxblood);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  min-height: 44px;
}

.btn-zoom:hover { background: #fff; }

/* ---------- Progress: moon phases ---------- */

.progress-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 28px;
  text-align: center;
}

.moons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.moons svg { display: block; }

.progress-caption { margin: 0; font-size: 13px; color: var(--espresso); }
.progress-caption .sub { color: var(--mushroom); }

/* ---------- The Arcanum (group chat card) ---------- */

.arcanum {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(90, 46, 53, 0.35);
  border-radius: 28px 28px var(--radius) var(--radius);
  padding: 20px 22px 22px;
  margin-bottom: 28px;
  text-align: center;
}

.arcanum .star {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--gold);
}

.arcanum h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--oxblood);
  margin: 0 0 4px;
}

.arcanum p { margin: 0 0 14px; font-size: 14px; }

.btn-primary.inline {
  display: inline-block;
  width: auto;
  text-decoration: none;
  text-align: center;
}

/* ---------- Star divider ---------- */

.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  margin: 4px 0 20px;
}

/* ---------- Week cards ---------- */

.week-list { list-style: none; margin: 0; padding: 0; }

.week-card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.week-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

/* The arched week-number tile: a small doorway that fills with
   Oxblood once the week opens. */
.arch-tile {
  flex: none;
  width: 44px;
  height: 56px;
  border-radius: 22px 22px 7px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}

.week-card.released .arch-tile {
  background: var(--oxblood);
  color: var(--parchment);
}

.week-card.locked .arch-tile {
  border: 1px solid var(--mushroom);
  color: var(--mushroom);
}

.week-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.25;
}

.week-meta {
  font-size: 12px;
  color: var(--mushroom);
  margin: 2px 0 0;
}

.week-card.locked .week-title { color: var(--mushroom); font-weight: 500; }

/* ---------- Content rows inside a week ---------- */

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  min-height: 48px;
  background: none;
  border: 0;
  border-top: 1px solid rgba(148, 134, 124, 0.25);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.row .icon { flex: none; color: var(--oxblood); display: flex; }

.row .row-label { flex: 1; }

.row .chev {
  flex: none;
  color: var(--mushroom);
  transition: transform 0.2s ease;
}

.row[aria-expanded="true"] .chev { transform: rotate(90deg); }

.row .dl { flex: none; color: var(--mushroom); }

.row:hover { background: rgba(90, 46, 53, 0.05); }

.row-note {
  border-top: 1px solid rgba(148, 134, 124, 0.25);
  padding: 12px 16px;
  margin: 0;
  font-size: 13px;
  color: var(--mushroom);
  font-style: italic;
}

.player { padding: 4px 16px 16px; }

.player video {
  width: 100%;
  border-radius: 12px;
  background: #000;
  display: block;
}

.player audio { width: 100%; display: block; }

/* ---------- Errors ---------- */

.error-card {
  background: var(--surface);
  border: var(--border);
  border-radius: 200px 200px var(--radius) var(--radius);
  text-align: center;
  padding: 56px 28px 36px;
  margin-top: 40px;
}

.error-card .icon { color: var(--mushroom); margin-bottom: 12px; }

.error-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--oxblood);
  margin: 0 0 8px;
}

.error-card p { margin: 0; color: var(--espresso); }

/* ---------- Sign-in card (shares the error card's arch) ---------- */

.signin { margin: 22px auto 0; max-width: 320px; text-align: left; }

.signin input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--espresso);
  border: 1px solid var(--mushroom);
  border-radius: 12px;
  background: #fff;
}

.signin .remember {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin: 12px 0 16px;
  cursor: pointer;
}

.signin .remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--oxblood);
}

.btn-primary {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  background: var(--oxblood);
  color: var(--parchment);
  padding: 13px 24px;
  border-radius: 999px;
  min-height: 44px;
}

.btn-primary:hover { background: #6d3a42; }

.error-card .signin-note {
  color: #8c2f39;
  font-size: 14px;
  margin: 14px 0 0;
}

.error-card .signin-help {
  font-size: 13px;
  color: var(--mushroom);
  margin: 16px 0 0;
}

.switch-line { margin-top: 10px; }

/* ---------- Footer ---------- */

footer {
  text-align: center;
  margin-top: 40px;
  color: var(--mushroom);
  font-size: 12px;
  letter-spacing: 0.06em;
}

footer .foot-star { color: var(--gold); margin-bottom: 8px; }

footer a { color: var(--oxblood); }

@media (min-width: 480px) {
  body { font-size: 16px; }
  .arch-header h1 { font-size: 40px; }
}
