/* ================================
   THEME TOKENS
   ================================ */
:root{
  --bg: #0e0e10;
  --card: rgba(255,255,255,0.06);
  --card-strong: rgba(255,255,255,0.12);
  --text: #eaeaf0;
  --muted: #b4b4c7;
  --accent: #f59622;
  --accent-2: #ffd789;
  --radius: 18px;
  --ring: 1.25px solid rgba(255,255,255,0.18);
  --shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ================================
   BASE / RESET
   ================================ */
html, body { height: 100%; }
html { scroll-behavior: smooth; }

[id] {
  scroll-margin-top: 1rem; /* adjust value as needed */
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
}

/* ================================
   LAYOUT: HERO
   ================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto; /* content then arrow */
  align-items: center;
  justify-items: center;
  isolation: isolate;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 35%);
  pointer-events:none;
}

/* ================================
   TYPOGRAPHY
   ================================ */
.title {
  font-family: "Fraunces", serif;         /* decorative hero title */
  font-size: 5rem;
  line-height: 1.3;
  background: linear-gradient(180deg, #fff, #dcdcf3 60%, #9be6d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 400;
  margin-top: 0.2rem;
  opacity: 0.92;
  max-width: 60ch;
}

.tagline {
  color: var(--muted);
  font-weight: 400;
  margin-top: .4rem;
  font-size: 1.1rem;
}

/* ================================
   SCROLL CUE
   ================================ */
.scroll-down{
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  opacity: 0.9;
  transition: transform .15s ease, opacity .2s ease;
}
.scroll-down:hover,
.scroll-down:focus {
  transform: translate(-50%, 3px);
  opacity: 1;
}
@media (max-height: 680px){
  .scroll-down{ bottom: 18px; }
}

/* ================================
   BACKDROP BLOBS (BLUE/GOLD)
   ================================ */
.blobs {
  position: fixed;
  inset: -30vmax;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(60px); /* less blendy, more form */
  background:
    /* blue anchors */
    radial-gradient(70vmax 70vmax at 20% 25%, #1B2856 0%, transparent 55%),
    radial-gradient(75vmax 75vmax at 65% 80%, #1B2856 0%, transparent 55%),
    /* golden yellows */
    radial-gradient(80vmax 80vmax at 80% 25%, #BCA330 0%, transparent 55%),
    radial-gradient(85vmax 85vmax at 30% 75%, #BCA330 0%, transparent 55%),
    radial-gradient(70vmax 70vmax at 55% 50%, #BCA330 0%, transparent 50%),
    radial-gradient(65vmax 65vmax at 40% 90%, #BCA330 0%, transparent 50%);
  animation: drift 55s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(0%, 0%) scale(1); }
  to   { transform: translate(2%, -3%) scale(1.04); }
}

/* ================================
   GLOBAL CONTAINERS
   ================================ */
main {
 max-width: 1200px;
 margin: 1rem auto 5rem;
 padding: 0 1.2rem 4rem;
}

a {
  color: #E6E6E6;
  font-weight: bold;
}


.grid {
  display:grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
}
.left  { grid-column: span 5; }
.right { grid-column: span 7; }

@media (max-width: 980px){
  .left, .right { grid-column: span 12; }
}

/* ================================
   CARDS
   ================================ */
.card {
  background: var(--card);
  border: var(--ring);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(8px);
  margin-bottom: 1rem;
}

.card.instructor {
  padding: 1rem;
  display: flex;
  flex-direction: column; /* title on top, body below */
  align-items: stretch;
}

.card-title {
  font-family: "Fraunces", serif;
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 1.2rem;
  color: var(--accent-2);
  letter-spacing: 1px;
}

.instructor-body {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow);
}

.instructor h3 { margin:0 0 .25rem; font-weight: 700; }
.instructor small { color: var(--muted); }

.about { padding: 1rem; }
.about h4 {
  margin:.2rem 0 .6rem;
  font-weight: 400;
  letter-spacing:.2px;
  font-family: "Montserrat", sans-serif;
}
.about p { margin:.3rem 0; }

/* ================================
   CTAS / BUTTONS / LINKS
   ================================ */
.pillbar {
  display:flex;
  gap:.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .4rem;
}

.pill {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.55rem .8rem;
  border-radius: 999px;
  border: var(--ring);
  background: var(--card-strong);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: transform .15s ease, border-color .2s ease;
}
.pill:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.35); }

.btn {
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding: .9rem 1rem;
  margin-top:.6rem;
  font-weight:800;
  letter-spacing:.3px;
  border-radius: 12px;
  color: #0a0a0f;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}

/* ================================
   CLASS GRID
   ================================ */

.section-heading {
 font-family: "Fraunces", serif;
 font-size: clamp(2.5rem, 5vw, 3.2rem);
 font-weight: 700;
 text-align: center;
 margin: 3rem 0 2.5rem;
 color: var(--accent-2);
 letter-spacing: 0.5px;
 position: relative;
}

.section-heading::after {
 content: "";
 display: block;
 width: 15rem;
 height: 3px;
 background: linear-gradient(90deg, var(--accent), var(--accent-2));
 margin: 0.8rem auto 0;    /* spacing above divider, auto centers */
 border-radius: 2px;
}

.classes {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  align-items: start;
}

.class-card {
  position:relative;
  padding: 1rem;
  min-height: 180px;
  overflow:hidden;
  height: auto;

}

.class-card::after {
  content:"";
  position:absolute; inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  background: radial-gradient(80% 80% at 100% 0%, rgba(255,255,255,.18), transparent 40%);
  mask: linear-gradient(black, transparent 55%);
}

.class-head {
  display:flex;
  justify-content: space-between;
  align-items: start;
  gap:.8rem;
}

.day        { font-weight: 800; letter-spacing:.4px; color: var(--muted); }
.class-title { font-weight:700; margin:.2rem 0 .35rem; font-size: 1.05rem; }

.linkrow {
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
  margin-top: .7rem;
}
.link {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-weight:600;
  color: var(--text);
  text-decoration:none;
  border:1px dashed rgba(255,255,255,.18);
  padding:.45rem .6rem;
  border-radius: 10px;
}
.link:hover { border-color: rgba(255,255,255,.35); }

/* Todo bubble layout */
.todo-wrap { position: relative; }

.todo-toggle {
  cursor: pointer;
  background: transparent;
  border: 1px dashed rgba(255,255,255,.18);
  padding: .45rem .6rem;
  border-radius: 10px;
  font: inherit;
  color: inherit;
}

/* Match hover of links */
.todo-toggle:hover { border-color: rgba(255,255,255,.35); }

/* The bubble itself */
.todo-bubble {
  margin-top: 8px;
  background: var(--card);
  border: var(--ring);
  border-radius: 12px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(1.1) blur(8px);
  overflow: hidden;

  /* smooth open/close */
  max-height: 0;
  opacity: 0;
  transition: max-height .25s ease, opacity .2s ease;
}
.todo-bubble-inner {
  padding: .8rem .9rem;
  color: var(--text);
  line-height: 1.5;
}

.todo-bubble ul,
.todo-bubble ol {
  margin: 0;
  padding-left: 0;
  list-style-position: inside;
}

details.todo[open] .todo-bubble {
  max-height: 800px; /* large enough for your longest content */
  opacity: 1;
}

/* (Optional) add a subtle divider above the content when open */
details.todo[open] .todo-bubble {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.todo-bubble.is-hidden {
  opacity: 0;
  transform: scale(.98);
  pointer-events: none;
}

/* Keep bubble inside card on small screens */
.class-card { overflow: visible; }
.linkrow details.todo {
  display: inline-block;
}
.linkrow details.todo.todo-main{
  flex-basis: 100%;
  order: 10000; /* bubble it to the top of the link list */
}
.todo-toggle {
  cursor: pointer;
  list-style: none;         /* hide default marker in some browsers */
}
details.todo > summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--text);
  border: 1px dashed rgba(255,255,255,.18);
  padding: .45rem .6rem;
  border-radius: 10px;
  user-select: none;
}
details.todo > summary::-webkit-details-marker { display: none; } /* Safari/Chrome marker */

details.todo > summary:hover { border-color: rgba(255,255,255,.35); }

details.todo-main > summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #4e297d, #1B2856);
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
details.todo-main > summary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1) saturate(1.1);
}

.linkrow { position: relative; }
@media (max-width: 520px){
  .todo-bubble { max-width: 90vw; }
}


/* ================================
   PRINT
   ================================ */
@media print{
  .blobs, .btn { display:none !important; }
  body { background:#fff; color:#111 }
  .card { background:#fff; border: 1px solid #ddd; box-shadow:none }
}

/* Canvas icon that inherits text color */
.icon-canvas{
  width: 16px;
  height: 16px;
  display: inline-block;
  background-color: currentColor;                /* makes it match the pill text */
  -webkit-mask: url('https://www.svgrepo.com/show/501124/canvas-logo.svg') no-repeat center / contain;
          mask: url('https://www.svgrepo.com/show/501124/canvas-logo.svg') no-repeat center / contain;
  vertical-align: -2px;                           /* baseline align with text */
}
