/* Healing Circles — warm botanical calm. Fraunces + Albert Sans on cream. */
:root {
  --paper: #f2ecdf;
  --paper-deep: #e9e0cc;
  --card: #faf6ec;
  --ink: #253829;
  --ink-soft: #51624f;
  --moss: #5c7a63;
  --sage: #9db5a0;
  --clay: #b5623a;
  --gold: #a8862c;
  --hairline: #d8cdb4;
  --shadow: 0 1px 2px rgba(37, 56, 41, .06), 0 12px 32px -18px rgba(37, 56, 41, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 15% -8%, rgba(157, 181, 160, .35), transparent 62%),
    radial-gradient(900px 480px at 108% 12%, rgba(181, 98, 58, .14), transparent 60%),
    var(--paper);
  min-height: 100vh;
}
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, .stat em, .day-medallion { font-family: "Fraunces", serif; }

/* ---------- gate (login + admin) ---------- */
body.gate { display: grid; place-items: center; }
.gate-wrap { text-align: center; padding: 48px 24px 40px; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.orb { position: relative; width: 148px; height: 148px; margin: 0 auto 34px; }
.orb span {
  position: absolute; inset: 0; border-radius: 50%;
  animation: breathe 7s ease-in-out infinite;
}
.orb span:nth-child(1) { background: radial-gradient(circle at 38% 32%, #c9dcc9, var(--moss) 72%); opacity: .9; }
.orb span:nth-child(2) { background: radial-gradient(circle at 62% 68%, rgba(181, 98, 58, .55), transparent 66%); animation-delay: -2.4s; }
.orb span:nth-child(3) { border: 1px solid rgba(37, 56, 41, .35); background: transparent; animation-delay: -4.8s; transform: scale(1.22); animation-name: breathe-ring; }
.orb.small { width: 96px; height: 96px; margin-bottom: 26px; }
@keyframes breathe { 0%, 100% { transform: scale(.92); } 50% { transform: scale(1.05); } }
@keyframes breathe-ring { 0%, 100% { transform: scale(1.1); opacity: .25; } 50% { transform: scale(1.32); opacity: .7; } }

.gate-title { font-size: clamp(44px, 7vw, 64px); font-weight: 300; line-height: .98; margin: 0 0 14px; letter-spacing: -.01em; }
.gate-sub { color: var(--ink-soft); margin: 0 0 30px; }
.gate-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.gate-form input {
  font: inherit; padding: 13px 18px; width: min(280px, 74vw);
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--card); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; text-align: center;
}
.gate-form input:focus { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(92, 122, 99, .16); }
.gate-form button {
  font: inherit; font-weight: 600; padding: 13px 30px; cursor: pointer;
  border: none; border-radius: 999px; color: var(--paper);
  background: var(--ink); transition: transform .15s, background .2s;
}
.gate-form button:hover { background: var(--moss); transform: translateY(-1px); }
.gate-error { color: var(--clay); margin-top: 18px; }
.gate-saved { color: var(--moss); font-weight: 600; }
.gate-foot { margin-top: 46px; color: var(--ink-soft); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.pw { font-size: 20px; background: var(--paper-deep); padding: 4px 14px; border-radius: 8px; }

/* ---------- dashboard ---------- */
.masthead { padding: 42px clamp(18px, 5vw, 56px) 0; max-width: 1120px; margin: 0 auto; }
.masthead-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.masthead h1 { font-size: clamp(38px, 5.4vw, 56px); font-weight: 300; margin: 0; letter-spacing: -.01em; }
.dateline { color: var(--ink-soft); margin: 6px 0 0; }
.quiet-link { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--hairline); padding-bottom: 1px; }
.quiet-link:hover { color: var(--clay); border-color: var(--clay); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 30px; }
.stat {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 16px 20px 14px; box-shadow: var(--shadow);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.stat:nth-child(2) { animation-delay: .07s; } .stat:nth-child(3) { animation-delay: .14s; } .stat:nth-child(4) { animation-delay: .21s; }
.stat em { display: block; font-style: normal; font-size: 40px; font-weight: 500; line-height: 1; color: var(--moss); }
.stat:nth-child(3) em { color: var(--clay); }
.stat span { color: var(--ink-soft); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }

.page { max-width: 1120px; margin: 0 auto; padding: 10px clamp(18px, 5vw, 56px) 60px; }
.panel {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 18px;
  padding: 26px clamp(20px, 3vw, 34px) 24px; margin-top: 26px; box-shadow: var(--shadow);
}
.panel h2 { font-size: 24px; font-weight: 500; margin: 0 0 18px; }
.rune { color: var(--gold); margin-right: 6px; }
.empty { color: var(--ink-soft); font-style: italic; }
.fine { color: var(--ink-soft); font-size: 13.5px; margin: 14px 0 0; }
.fine.warn { color: var(--clay); }

.day { display: flex; gap: 18px; padding: 14px 0; border-top: 1px dashed var(--hairline); }
.day:first-of-type { border-top: none; }
.day-medallion {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hairline);
  display: grid; place-content: center; text-align: center; background: var(--paper);
}
.day-medallion b { font-size: 20px; font-weight: 600; line-height: 1; }
.day-medallion i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }
.day-medallion.today { background: var(--ink); border-color: var(--ink); }
.day-medallion.today b, .day-medallion.today i { color: var(--paper); }
.day-body h3 { font-size: 18px; font-weight: 500; margin: 4px 0 8px; }
.day-body mark { background: var(--gold); color: var(--paper); border-radius: 4px; padding: 1px 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-left: 8px; }
.slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.slots li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.slots time { font-variant-numeric: tabular-nums; color: var(--ink-soft); min-width: 58px; }

.chip {
  --c: var(--moss);
  display: inline-block; text-decoration: none; color: var(--paper);
  background: var(--c); border-radius: 999px; padding: 3px 14px; font-size: 14px; font-weight: 500;
  transition: transform .15s, filter .15s;
}
.chip:hover { transform: translateY(-1px); filter: brightness(1.12); }
.tag { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px solid currentColor; border-radius: 4px; padding: 0 6px; }
.tag.kids { color: var(--clay); }

.booked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.booked .win { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.booked b { --c: var(--moss); color: var(--c); margin: 0 6px; }
.booked .sess { color: var(--ink-soft); }

.week-scroll { overflow-x: auto; }
.week { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 13.5px; }
.week thead th { text-align: left; color: var(--ink-soft); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; padding: 6px 10px; border-bottom: 1px solid var(--hairline); }
.week tbody th { text-align: left; font-weight: 500; padding: 8px 10px; white-space: nowrap; }
.week td { padding: 8px 10px; border-top: 1px dashed var(--hairline); vertical-align: top; }
.week tbody tr:hover { background: rgba(157, 181, 160, .12); }
.dot { --c: var(--moss); display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.wt { display: inline-block; background: var(--paper-deep); border-radius: 6px; padding: 1px 7px; margin: 1px 3px 1px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt sup { color: var(--clay); font-weight: 600; }

.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px 22px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend span { color: var(--ink-soft); font-size: 14px; }

.foot { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 40px 0 0; }

@media (max-width: 560px) {
  .day { gap: 12px; }
  .day-medallion { width: 46px; height: 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
