:root {
  --bg: #FBFBFD;
  --ink: #1D1D1F;
  --text: #3C4858;
  --muted: #7B7B7B;
  --line: #E6E6EA;
  --teal: #33B0AB;
  --teal-deep: #238C87;
  --mist: #E4F4F3;
  --card: rgba(255, 255, 255, .78);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the app's soft glow */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.glow i { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.glow .o1 { width: 420px; height: 420px; left: -140px; top: 60px; background: rgba(51, 176, 171, .28); animation: d1 28s ease-in-out infinite alternate; }
.glow .o2 { width: 360px; height: 360px; right: -120px; top: -60px; background: rgba(153, 215, 212, .30); animation: d2 34s ease-in-out infinite alternate; }
.glow .o3 { width: 440px; height: 440px; left: 30%; bottom: -200px; background: rgba(75, 186, 181, .22); animation: d3 40s ease-in-out infinite alternate; }
@keyframes d1 { to { transform: translate(90px, 60px); } }
@keyframes d2 { to { transform: translate(-70px, 80px); } }
@keyframes d3 { to { transform: translate(-80px, -60px); } }
@media (prefers-reduced-motion: reduce) { .glow i { animation: none; } }

main, footer { position: relative; z-index: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 0 20px; }
main { padding-top: max(44px, env(safe-area-inset-top)); }

.top { text-align: center; margin-bottom: 30px; }
.mark { display: block; margin: 0 auto 18px; width: 210px; height: auto; }
.who { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--text); }
.motto {
  display: inline-block; margin: 16px 0 0; padding: 7px 14px; border-radius: 99px;
  background: var(--mist); color: var(--teal-deep); font-size: 13px; font-weight: 600;
}

.group { margin-top: 28px; }
.group h2 {
  margin: 0 0 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.links { display: flex; flex-direction: column; gap: 10px; }
.link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--card); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line), 0 6px 18px rgba(20, 50, 50, .05);
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(20, 50, 50, .09); }
.link:active { transform: scale(.985); }
.link:focus-visible, .nav:focus-visible, .day:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.ic {
  flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--mist); color: var(--teal-deep);
}
.ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic img { width: 26px; height: 26px; border-radius: 7px; display: block; }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tx b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tx small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { flex: none; width: 18px; height: 18px; fill: none; stroke: #B5B5BB; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top + .links { margin-top: 0; }
main > .links { margin-bottom: 0; }

/* agenda */
.card {
  border-radius: 22px; padding: 16px 14px 12px; background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 0 0 1px var(--line), 0 6px 18px rgba(20, 50, 50, .05);
}
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 10px; }
.month { font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-transform: capitalize; }
.nav {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.nav:hover { background: var(--mist); }
.nav:disabled { opacity: .3; cursor: default; background: transparent; }
.nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { text-align: center; font-size: 11px; font-weight: 600; color: #A0A0A8; padding: 4px 0 6px; }
.day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; font-weight: 500;
  color: var(--text); border: 0; background: transparent; border-radius: 50%; padding: 0; font-family: inherit;
}
.day.out { color: #C7C7CD; }
.day.today { color: var(--teal-deep); font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(51, 176, 171, .55); }
.day.has { cursor: pointer; font-weight: 700; color: var(--ink); }
.day.has::after {
  content: ""; position: absolute; bottom: 15%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--teal);
}
.day.has:hover { background: var(--mist); }
.day.sel { background: var(--teal); color: #fff; }
.day.sel::after { background: #fff; }

.events { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ev {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line); scroll-margin-top: 20px;
}
.ev.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 2px var(--teal); } 100% { box-shadow: 0 0 0 1px var(--line); } }
.date {
  flex: none; width: 48px; border-radius: 12px; background: var(--mist); color: var(--teal-deep);
  text-align: center; padding: 6px 0 7px;
}
.date .d { display: block; font-size: 20px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.date .m { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ev .tx b { font-size: 15px; }
.ev .tx small { white-space: normal; }
.ev a.more { color: var(--teal-deep); font-size: 13px; font-weight: 600; text-decoration: none; margin-top: 2px; }
.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 10px; }

footer { text-align: center; padding-top: 34px; padding-bottom: max(28px, env(safe-area-inset-bottom)); font-size: 12px; color: #A0A0A8; }

@media (min-width: 560px) { main { padding-top: 64px; } }
.ic.app { background: none; } .ic.app img { width: 44px; height: 44px; border-radius: 11px; }
