@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Montserrat:wght@400;600;700&display=swap');

:root {
  --gold: #D4B37A;
  --gold-light: #EADBC1;
  --sage: #9DB89F;
  --sage-dark: #6E5426;
  --beige: #F6EFE5;
  --dark: #3B3936;
  --grey-line: #D9CDB0;
  --white: #FDFAF5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(165deg,
    #F7F0E4 0%,
    #EFE2CB 18%,
    #DCE2D0 40%,
    #B3C6B4 62%,
    #DCDCC8 82%,
    #F3EDDF 100%);
  background-attachment: fixed;
  color: var(--dark);
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--dark);
  margin-top: 0;
}

header.topbar {
  background: rgba(246, 239, 229, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 179, 122, 0.5);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

header.topbar .brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--dark);
}

header.topbar .brand small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--sage-dark);
  letter-spacing: normal;
}

header.topbar nav a, header.topbar button.linklike {
  color: var(--sage-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 16px;
  background: none;
  border: none;
  cursor: pointer;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.card {
  background: linear-gradient(150deg, rgba(255,253,247,0.7), rgba(157,184,159,0.32));
  border: none;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(90,95,85,0.1);
  backdrop-filter: blur(4px);
}

.impulse-box {
  background: linear-gradient(150deg, rgba(255,253,247,0.65), rgba(212,179,122,0.22));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  backdrop-filter: blur(3px);
}

.impulse-box .label {
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

label.prompt {
  display: block;
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 14px 0 6px;
}

textarea, input[type=text], input[type=email], input[type=password], select {
  width: 100%;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  background: rgba(255,255,255,0.85);
}

textarea { min-height: 80px; resize: vertical; }

button.primary {
  background: var(--gold);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 8px 20px rgba(154,123,65,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button.primary:hover { background: var(--sage-dark); transform: translateY(-1px); }

button.gold {
  background: var(--gold);
}
button.gold:hover { background: var(--sage-dark); }

.session-list { list-style: none; padding: 0; margin: 0; }
.session-list li {
  border-bottom: 1px solid var(--grey-line);
}
.session-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6px;
  text-decoration: none;
  color: var(--dark);
}
.session-list .badge {
  background: var(--gold);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}
.session-list .title { flex: 1; }
.session-list .theme { color: var(--sage-dark); font-size: 0.8rem; }
.session-list .check { color: var(--gold); font-weight: 700; }

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin: 10px 0 18px;
}
.weekday-grid .day-cell { text-align: center; }
.weekday-grid .day-label {
  background: var(--sage);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px 4px 0 0;
  padding: 3px 0;
}
.weekday-grid input {
  border-radius: 0 0 4px 4px;
  font-size: 0.75rem;
  padding: 6px 4px;
  text-align: center;
}

.save-indicator {
  font-size: 0.75rem;
  color: var(--sage-dark);
  min-height: 1em;
  margin-top: 4px;
}

.error-msg { color: #a33; font-size: 0.85rem; margin-top: 8px; }

.logo-cover {
  width: 100%;
  max-width: 340px;
  display: block;
  margin: 0 auto 10px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at center, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 85% at center, black 55%, transparent 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('deko.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at center, black 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 75% at center, black 35%, transparent 85%);
  z-index: 0;
  pointer-events: none;
}

header.topbar, .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 700px) {
  body::before { opacity: 0.18; }
}

.center { text-align: center; }

a.back-link {
  color: var(--sage-dark);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
