/* ==========================================================================
   CE Bookings — book.champlinenterprises.com
   Brand v2: Warm Paper · Ink · Brass. Light-first; dark used as a jewel.
   Fraunces (display) · Inter (body) · JetBrains Mono (eyebrows/labels)
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-italic-500.woff2') format('woff2');
  font-weight: 500; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/jetbrains-mono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper-50: #FBFAF7;
  --paper-100: #F5F2EA;
  --paper-200: #EDE8DC;
  --white-warm: #FFFEFC;
  --ink-900: #2B2720;
  --ink-600: #5A5346;
  --ink-400: #8A8272;
  --ink-200: #C9C3B5;
  --brass-500: #C8A15A;
  --brass-700: #8A6E3C;
  --brass-lit: #E4C27C;
  --brass-tint: rgba(200, 161, 90, 0.12);
  --blue-600: #2F55C2;
  --green-700: #3D6B4A;
  --green-tint: rgba(61, 107, 74, 0.10);
  --red-700: #9C3B31;
  --red-tint: rgba(156, 59, 49, 0.08);
  --d-bg: #14120E;
  --d-bg-2: #1C1914;
  --on-d: #F5F1E8;
  --on-d-muted: rgba(245, 241, 232, 0.64);

  --hairline: rgba(43, 39, 32, 0.12);
  --hairline-strong: rgba(43, 39, 32, 0.22);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(43, 39, 32, 0.05), 0 1px 3px rgba(43, 39, 32, 0.06);
  --shadow-md: 0 2px 6px rgba(43, 39, 32, 0.06), 0 10px 24px rgba(43, 39, 32, 0.08);
  --shadow-lg: 0 4px 10px rgba(43, 39, 32, 0.07), 0 20px 48px rgba(43, 39, 32, 0.12);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
[x-cloak] { display: none !important; }

::selection { background: var(--brass-tint); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout shell ---------- */
.wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(720px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--ink-900); text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em;
}
.wordmark__suffix {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass-700);
  border: 1px solid var(--brass-500);
  border-radius: 4px; padding: 3px 7px 2px;
  transform: translateY(-2px);
}
.header-link {
  font-size: 0.85rem; color: var(--ink-600);
}
.header-link:hover { color: var(--ink-900); }

.site-footer {
  margin-top: 96px;
  background: var(--d-bg);
  color: var(--on-d-muted);
  border-top: 2px solid var(--brass-700);
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: center; justify-content: space-between;
  padding: 28px 0;
  font-size: 0.82rem;
}
.site-footer a { color: var(--on-d); }
.site-footer .foot-id { display: flex; align-items: center; gap: 10px; }
.site-footer .foot-id img { display: block; }
.site-footer .foot-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: var(--on-d);
}
.site-footer .foot-mono {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-700);
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--brass-500);
  display: inline-block;
}
.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.display em {
  font-style: italic; font-weight: 500; color: var(--brass-700);
}
.lede {
  font-size: 1.08rem; color: var(--ink-600); line-height: 1.65;
  max-width: 56ch; margin: 0;
}
.h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 8px;
}
.muted { color: var(--ink-400); }
.small { font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  border-radius: 10px; padding: 13px 26px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
    background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-primary { background: var(--ink-900); color: var(--paper-50); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent; color: var(--ink-900);
  border-color: var(--hairline-strong);
}
.btn-ghost:hover { border-color: var(--ink-900); }
.btn-danger-ghost {
  background: transparent; color: var(--red-700);
  border-color: rgba(156, 59, 49, 0.35);
}
.btn-danger-ghost:hover { border-color: var(--red-700); background: var(--red-tint); }
.btn-brass { background: var(--brass-700); color: var(--paper-50); }
.btn-brass:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; border-radius: 8px; }

/* ---------- Landing: hero + jewel ---------- */
.hero { padding: 72px 0 12px; }
.hero--split {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 56px; align-items: center;
}

.hero-jewel {
  position: relative; overflow: hidden;
  background: var(--d-bg);
  border: 1px solid var(--brass-700);
  border-radius: 20px;
  padding: 42px 34px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero-jewel__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 26%, rgba(228, 194, 124, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-jewel img {
  position: relative;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.55));
}
.hero-jewel__rule {
  width: 44px; height: 1px; background: var(--brass-700);
  margin: 26px auto 16px;
}
.hero-jewel__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem; letter-spacing: 0.01em;
  color: var(--on-d); margin: 0 0 8px;
}
.hero-jewel__tag {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-d-muted); margin: 0 0 20px;
}
.hero-jewel__live {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--brass-lit); margin: 0;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  padding-top: 18px; width: 100%; justify-content: center;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #7FBF8E; flex: none;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 191, 142, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(127, 191, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 191, 142, 0); }
}

.type-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  padding: 40px 0 8px;
}
.type-card {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 28px 24px;
  color: var(--ink-900);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out),
    border-color 240ms var(--ease-out);
  overflow: hidden;
}
.type-card::after {
  content: '→';
  position: absolute; right: 26px; bottom: 22px;
  font-size: 1.1rem; color: var(--brass-700);
  transition: transform 240ms var(--ease-out);
}
.type-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-500);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.type-card:hover::after { transform: translateX(5px); }
.type-card__aud {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-700); margin: 0 0 2px;
  display: flex; align-items: center; gap: 10px;
}
.type-card__aud::before {
  content: ''; width: 20px; height: 1px; background: var(--brass-500);
  display: inline-block;
}
.type-card__meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px;
}
.chip {
  font-family: var(--font-mono); font-weight: 600;
  font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 5px; padding: 4px 8px 3px;
}
.chip-brass { background: var(--brass-tint); color: var(--brass-700); }
.chip-plain { border: 1px solid var(--hairline); color: var(--ink-600); }
.chip-green { background: var(--green-tint); color: var(--green-700); }
.type-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: -0.015em; margin: 4px 0 0;
}
.type-card__tag { color: var(--ink-600); margin: 0; }
.type-card__next {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--ink-400); margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.type-card__next .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brass-500);
}

.decider {
  text-align: center;
  border-top: 1px solid var(--hairline);
  margin-top: 40px; padding-top: 32px;
}
.decider p {
  max-width: 64ch; margin: 0 auto;
  color: var(--ink-600); font-size: 0.95rem;
}
.decider a { font-weight: 600; }

/* ---------- Booking page ---------- */
.book-layout {
  display: grid; grid-template-columns: 340px 1fr; gap: 32px;
  padding: 48px 0 24px;
  align-items: start;
}
.side-card {
  position: sticky; top: 92px;
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.side-card .back {
  font-size: 0.82rem; color: var(--ink-400);
  display: inline-block; margin-bottom: 14px;
}
.side-card .back:hover { color: var(--ink-900); text-decoration: none; }
.side-card__rows {
  display: flex; flex-direction: column; gap: 9px;
  margin: 16px 0; padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.side-card__row {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--ink-600);
}
.side-card__row svg { flex: none; color: var(--brass-700); }
.side-card__desc { font-size: 0.9rem; color: var(--ink-600); margin: 0; }

.panel {
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.step-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px;
}
.step-num {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.7rem;
  letter-spacing: 0.16em; color: var(--brass-700);
}
.step-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem;
  letter-spacing: -0.01em; margin: 0;
}

/* Calendar + slots */
.picker { display: grid; grid-template-columns: 1fr 220px; gap: 28px; }
.cal__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cal__month {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--hairline); background: transparent;
  color: var(--ink-600); font-size: 0.95rem; cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease;
}
.cal__nav button:hover:not(:disabled) { border-color: var(--ink-900); color: var(--ink-900); }
.cal__nav button:disabled { opacity: 0.3; cursor: default; }
.cal__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.cal__dow {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400);
  text-align: center; padding: 6px 0 10px;
}
.cal__day {
  position: relative;
  aspect-ratio: 1; width: 100%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; border-radius: 50%;
  font-family: var(--font-body); font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-200); cursor: default;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.cal__day--avail {
  color: var(--ink-900); font-weight: 600; cursor: pointer;
  background: var(--brass-tint);
}
.cal__day--avail::after {
  content: ''; position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--brass-700);
}
.cal__day--avail:hover { background: var(--brass-500); color: var(--white-warm); transform: scale(1.06); }
.cal__day--selected,
.cal__day--selected:hover {
  background: var(--ink-900); color: var(--paper-50); transform: scale(1.06);
}
.cal__day--selected::after { background: var(--brass-lit); }
.cal__day--today:not(.cal__day--selected) { box-shadow: inset 0 0 0 1px var(--hairline-strong); }

.slots__date {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400);
  margin: 0 0 12px;
}
.slots__list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 320px; overflow-y: auto; padding-right: 4px;
}
.slot {
  font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem;
  padding: 11px 14px; border-radius: 9px;
  border: 1px solid var(--hairline); background: transparent;
  color: var(--ink-900); cursor: pointer; text-align: center;
  transition: border-color 160ms ease, background-color 160ms ease,
    color 160ms ease, transform 160ms var(--ease-out);
}
.slot:hover { border-color: var(--brass-500); background: var(--brass-tint); transform: translateY(-1px); }
.slot--selected, .slot--selected:hover {
  background: var(--ink-900); border-color: var(--ink-900); color: var(--paper-50);
}
.slots__empty {
  color: var(--ink-400); font-size: 0.88rem; padding: 20px 0;
}

.tz-row {
  display: flex; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 0.82rem; color: var(--ink-400);
}
.tz-row svg { color: var(--brass-700); flex: none; }
.tz-row select {
  font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-600);
  border: none; background: transparent; cursor: pointer;
  border-bottom: 1px dashed var(--hairline-strong); padding: 2px 0;
  max-width: 260px;
}

/* Skeleton loading */
.skeleton { display: flex; flex-direction: column; gap: 8px; }
.skeleton__bar {
  height: 40px; border-radius: 9px;
  background: linear-gradient(100deg, var(--paper-100) 40%, var(--paper-200) 50%, var(--paper-100) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

/* Details form */
.summary-line {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--brass-tint);
  border: 1px solid rgba(200, 161, 90, 0.35);
  border-radius: var(--r-md);
  padding: 14px 18px; margin-bottom: 24px;
  font-size: 0.92rem;
}
.summary-line strong { font-weight: 600; }
.summary-line button {
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; color: var(--blue-600); padding: 0;
  font-family: var(--font-body);
}
.summary-line button:hover { text-decoration: underline; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-600);
}
.field label .req { color: var(--brass-700); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-900);
  background: var(--white-warm);
  border: 1px solid var(--hairline-strong); border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(47, 85, 194, 0.12);
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error { color: var(--red-700); font-size: 0.8rem; }
.form-actions {
  display: flex; align-items: center; gap: 16px; margin-top: 26px;
}
.form-note { font-size: 0.8rem; color: var(--ink-400); }

/* ---------- Manage page ---------- */
.status-hero { padding: 64px 0 8px; text-align: center; }
.status-hero__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.status-hero__icon--ok { background: var(--green-tint); color: var(--green-700); }
.status-hero__icon--wait { background: var(--brass-tint); color: var(--brass-700); }
.status-hero__icon--bad { background: var(--red-tint); color: var(--red-700); }
.status-hero__icon--done { background: var(--paper-200); color: var(--ink-600); }
.status-hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.status-hero p { color: var(--ink-600); max-width: 54ch; margin: 0 auto; }

.detail-card {
  background: var(--white-warm);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 6px 30px;
  margin-top: 36px;
}
.detail-row {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.94rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt {
  font-family: var(--font-mono); font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400);
  margin: 0; padding-top: 3px; flex: none;
}
.detail-row dd { margin: 0; text-align: right; }

.action-row {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 28px;
}

.proposal-banner {
  background: var(--d-bg);
  color: var(--on-d);
  border-radius: var(--r-lg);
  padding: 28px 30px;
  margin-top: 36px;
  border: 1px solid var(--brass-700);
  box-shadow: var(--shadow-lg);
}
.proposal-banner .eyebrow { color: var(--brass-lit); }
.proposal-banner .eyebrow::before { background: var(--brass-lit); }
.proposal-banner h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.4rem;
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.proposal-banner .times {
  display: flex; flex-direction: column; gap: 4px; margin: 14px 0 20px;
}
.proposal-banner .times .old {
  color: var(--on-d-muted); text-decoration: line-through; font-size: 0.9rem;
}
.proposal-banner .times .new {
  font-size: 1.05rem; font-weight: 600; color: var(--brass-lit);
}
.proposal-banner .btn-primary { background: var(--brass-lit); color: var(--d-bg); }
.proposal-banner .btn-ghost { color: var(--on-d); border-color: rgba(245, 241, 232, 0.3); }
.proposal-banner .btn-ghost:hover { border-color: var(--on-d); }

.reschedule-well {
  margin-top: 28px;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--r-lg);
  padding: 30px;
  background: var(--paper-50);
}

/* ---------- Small pages (login, actions) ---------- */
.jewel-page {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  padding: 72px 0;
}
.jewel-card {
  background: var(--d-bg);
  color: var(--on-d);
  border-radius: 20px;
  border: 1px solid var(--brass-700);
  box-shadow: var(--shadow-lg);
  padding: 44px;
  width: min(440px, calc(100vw - 48px));
}
.jewel-card .eyebrow { color: var(--brass-lit); }
.jewel-card .eyebrow::before { background: var(--brass-lit); }
.jewel-card__mark {
  display: block; margin: 0 0 22px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}
.jewel-card h1 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.6rem;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.jewel-card p { color: var(--on-d-muted); font-size: 0.92rem; margin: 0 0 22px; }
.jewel-card .field label { color: var(--on-d-muted); }
.jewel-card .field input {
  background: var(--d-bg-2); border-color: rgba(245, 241, 232, 0.18);
  color: var(--on-d);
}
.jewel-card .field input:focus { border-color: var(--brass-lit); box-shadow: 0 0 0 3px rgba(228, 194, 124, 0.15); }
.jewel-card .btn-primary { background: var(--brass-lit); color: var(--d-bg); width: 100%; }

/* Auth-hub OAuth buttons themed for the dark jewel card */
.login-oauth .ce-oauth__divider { display: none; } /* Google is the only door */
.login-oauth {
  margin-top: 6px;
  --ceoa-bg: var(--d-bg-2);
  --ceoa-bg-hover: #262119;
  --ceoa-text: var(--on-d);
  --ceoa-muted: var(--on-d-muted);
  --ceoa-border: rgba(245, 241, 232, 0.22);
  --ceoa-border-hover: var(--brass-lit);
  --ceoa-radius: 10px;
  --ceoa-ring: rgba(228, 194, 124, 0.25);
  --ceoa-rule: rgba(245, 241, 232, 0.12);
  --ceoa-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --ceoa-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.notice {
  border-radius: var(--r-md); padding: 14px 18px; font-size: 0.9rem;
  margin-bottom: 20px;
}
.notice-ok { background: var(--green-tint); color: var(--green-700); border: 1px solid rgba(61, 107, 74, 0.25); }
.notice-warn { background: var(--brass-tint); color: var(--brass-700); border: 1px solid rgba(200, 161, 90, 0.35); }
.notice-bad { background: var(--red-tint); color: var(--red-700); border: 1px solid rgba(156, 59, 49, 0.25); }

/* ---------- Reveal animation ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 640ms var(--ease-out) both; }
.rise-1 { animation-delay: 60ms; }
.rise-2 { animation-delay: 140ms; }
.rise-3 { animation-delay: 220ms; }
.rise-4 { animation-delay: 300ms; }
.rise-5 { animation-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero--split { grid-template-columns: 1fr; gap: 36px; }
  .hero-jewel { max-width: 380px; margin: 0 auto; }
  .book-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .picker { grid-template-columns: 1fr; }
  .slots__list { max-height: none; flex-direction: row; flex-wrap: wrap; }
  .slot { flex: 1 1 100px; }
  .type-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .detail-row { flex-direction: column; gap: 4px; }
  .detail-row dd { text-align: left; }
  .hero { padding: 48px 0 8px; }
}
