/* ===== ЭФЕМЕРИДА — design tokens ===== */
:root {
  /* surfaces — midnight navy stack */
  --bg-void:  #06080f;
  --bg-deep:  #0a0e1a;
  --bg-panel: #0e1320;
  --bg-elev:  #131a2a;
  --bg-glass: rgba(18, 24, 39, 0.62);

  /* gold accent (warm brass) — single accent family */
  --gold:        #c9a96a;
  --gold-bright: #e6d2a3;
  --gold-dim:    #9a8049;
  --gold-glow:   rgba(201, 169, 106, 0.18);

  /* functional: hard aspects only */
  --rust: #b8704f;
  --cool: #6f86b8; /* harmonious-cool, soft aspects */

  /* ink */
  --ink:      #ece7da;
  --ink-soft: #b6bccb;
  --ink-mute: #7f879d;
  --ink-faint:#525a72;

  /* lines */
  --line:       rgba(201, 169, 106, 0.16);
  --line-soft:  rgba(201, 169, 106, 0.09);
  --line-cool:  rgba(150, 162, 192, 0.12);

  /* type */
  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  /* shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* shadow */
  --shadow-soft: 0 18px 50px -24px rgba(0,0,0,0.8);
  --shadow-gold: 0 0 0 1px rgba(201,169,106,0.18), 0 24px 60px -28px rgba(201,169,106,0.22);

  /* layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}
::selection { background: rgba(201,169,106,0.28); color: #fff; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }

/* eyebrow / mono label */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.mono { font-family: var(--mono); }

/* focus ring */
:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }

/* native date/time pickers — dark theme + visible gold calendar/clock icon */
input[type="date"], input[type="time"] { color-scheme: dark; }
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(72%) sepia(28%) saturate(560%) hue-rotate(2deg) brightness(95%);
  opacity: 0.9;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: #1b2336; border-radius: 8px; border: 2px solid var(--bg-void); }
::-webkit-scrollbar-thumb:hover { background: #25304a; }

/* buttons */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background .25s, box-shadow .25s, color .25s, border-color .25s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1407;
  box-shadow: 0 10px 30px -12px rgba(201,169,106,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -14px rgba(201,169,106,0.62); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* fade/utility */
.u-center { display: flex; align-items: center; justify-content: center; }
