/* zouk.sydney public pages (homepage + sign-in). Look taken from the weekly Instagram graphic:
   the pink-to-violet cloud sky stays put, the agenda scrolls over it on frosted panels, navy for days and titles. */
@font-face { font-family: "Baloo 2"; src: url(/fonts/Baloo2.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/fonts/PlayfairDisplay.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/fonts/OpenSans.woff2) format("woff2"); font-weight: 300 800; font-stretch: 75% 100%; font-display: swap; }

:root {
  color-scheme: light;
  --navy: #1f2a6e;
  --ink: #1e1e1e;
  --soft: #4a4560;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(31, 42, 110, 0.16);
  --pink: #d6257f;
  --violet: #6d3fc4;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Baloo 2", var(--sans);
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #f3c4ec; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.45; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }

/* The sky: a fixed layer (background-attachment: fixed is unreliable on phones). */
.sky { position: fixed; inset: 0; z-index: -1; background: #f3c4ec url(/img/clouds.jpg) center / cover no-repeat; }

.top, main, .foot, .months { width: min(100% - 32px, 660px); margin-inline: auto; }

.top { padding: 26px 0 6px; text-align: center; }
.top h1 { margin: 0; }
.top h1 img { width: min(78%, 400px); display: block; margin: 0 auto; }
.lede { margin: 8px 0 0; color: var(--soft); font-weight: 600; text-wrap: balance; }

.months { position: sticky; top: 10px; z-index: 5; display: flex; gap: 6px; margin-top: 16px; padding: 5px; border-radius: 999px;
  background: var(--panel-strong); box-shadow: 0 4px 18px rgba(60, 30, 110, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.months a { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; border-radius: 999px;
  color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; }
.months a.on { background: var(--navy); color: #fff; }
.months small { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }

.month { margin-top: 26px; }
.month-title { margin: 0 0 12px; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 10vw, 3.3rem); line-height: 1; color: var(--navy); }
.month-title .yr { font-weight: 500; opacity: 0.6; }

.day { margin: 0 0 14px; border-radius: 22px; overflow: hidden; background: var(--panel); box-shadow: 0 6px 24px rgba(60, 30, 110, 0.13);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.day-head { margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 9px 18px; background: var(--navy); color: #fff; font-weight: 700; }
.day-head .dow { font-family: var(--serif); font-size: 1.45rem; }
.day-head .dom { font-family: var(--sans); font-size: 1rem; opacity: 0.85; }
.today-badge { margin-left: auto; align-self: center; padding: 2px 11px; border-radius: 999px; background: #fff; color: var(--navy);
  font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.day.is-today { box-shadow: 0 0 0 3px #fff, 0 8px 28px rgba(60, 30, 110, 0.25); }

.ev + .ev { border-top: 1px solid var(--line); }
.ev-head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; min-height: 58px; }
summary.ev-head { cursor: pointer; list-style: none; }
summary.ev-head::-webkit-details-marker { display: none; }
summary.ev-head:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; border-radius: 6px; }
.emoji { flex: none; width: 1.5em; font-size: 1.5rem; line-height: 1; text-align: center; }
.what { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px; }
.name { font-size: 1.22rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.name em { font-style: normal; font-weight: 600; color: var(--violet); }
.type { flex: none; padding: 1px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1.5px solid currentColor; }
.t-class { color: var(--navy); }
.t-social { color: var(--pink); }
.t-special { color: var(--violet); }
.t-off { color: #a3152f; }
.ev.cancelled .name { text-decoration: line-through; color: var(--soft); }
.chev { flex: none; width: 11px; height: 11px; margin: 0 4px 4px 2px; border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(45deg); opacity: 0.6; transition: transform 0.15s; }
details[open] > summary .chev { transform: rotate(-135deg); margin-bottom: -4px; }
details.ev[open] { background: var(--panel-strong); }

.facts { margin: 0; padding: 0 18px 15px 18px; }
.fact { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.fact dt { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soft); padding-top: 3px; }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.fact dd p { margin: 0 0 8px; }
.fact dd p:last-child { margin-bottom: 0; }
.map { margin-left: 4px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.btn { display: inline-block; margin: 0 6px 6px 0; padding: 7px 15px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; }

.earlier { margin: 0 0 14px; }
.earlier > summary { cursor: pointer; padding: 11px 18px; min-height: 44px; border-radius: 999px; background: var(--panel); text-align: center;
  font-weight: 700; color: var(--navy); list-style: none; }
.earlier > summary::-webkit-details-marker { display: none; }
.earlier[open] > summary { margin-bottom: 14px; }
.earlier .day { opacity: 0.72; }

/* Next month: readable, visibly not final. */
.month.draft { margin-top: 44px; }
.month.draft .day, .month.draft .month-title { opacity: 0.6; }
.month.draft .day { box-shadow: none; }
.month.draft .day:hover, .month.draft .day:focus-within { opacity: 0.92; }
.draft-note { margin: 0 0 14px; padding: 12px 18px; border-radius: 16px; border: 2px dashed rgba(31, 42, 110, 0.4); background: var(--panel);
  color: var(--navy); text-align: center; text-wrap: balance; }
.empty { padding: 18px; border-radius: 16px; background: var(--panel); text-align: center; color: var(--soft); }

.foot { margin-top: 34px; padding: 0 0 44px; text-align: center; color: var(--soft); font-size: 0.95rem; }
.insta { display: inline-flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: var(--panel-strong);
  text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.insta img { border-radius: 50%; display: block; }
.quiet { font-size: 0.85rem; }
.quiet a { color: var(--soft); }

/* Sign-in */
.login { width: min(100% - 32px, 400px); margin: 0 auto; padding: 8vh 0 40px; text-align: center; }
.login-mark { width: min(80%, 320px); }
.login-card { margin-top: 18px; padding: 22px; border-radius: 22px; background: var(--panel-strong); box-shadow: 0 6px 24px rgba(60, 30, 110, 0.15);
  display: flex; flex-direction: column; gap: 14px; text-align: left; }
.login-card h1 { margin: 0; font-family: var(--display); font-size: 1.6rem; color: var(--navy); text-align: center; }
.login-card label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 0.9rem; color: var(--soft); }
.login-card input { font: inherit; font-size: 1.05rem; padding: 11px 13px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.login-card input:focus { outline: none; border-color: var(--navy); }
.login-card button { font: inherit; font-family: var(--display); font-weight: 700; font-size: 1.2rem; min-height: 48px; border: 0; border-radius: 999px;
  background: var(--navy); color: #fff; cursor: pointer; }
.login-error { margin: 0; padding: 10px 13px; border-radius: 12px; background: #ffe3e8; color: #8f1028; font-weight: 600; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .ev-head { padding: 12px 14px; gap: 10px; }
  .facts { padding: 0 14px 13px; }
  .fact { grid-template-columns: 64px 1fr; }
  .day-head { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .chev { transition: none; } }
