/* ============================================================
   Eichenlaub Physics — booking site
   Unified brand: warm cream + navy, Spectral / IBM Plex Sans.
   ============================================================ */
:root {
  --bg:          #f4efe3;
  --surface:     #fffdf7;
  --surface-2:   #f0e9da;
  --ink:         #1f3a5f;
  --ink-strong:  #16304f;
  --ink-soft:    #4a5a72;
  --muted:       #837964;
  --rule:        #e2d8c4;
  --rule-strong: #d3c7af;
  --accent:      #2a4a6d;
  --accent-ink:  #fbf8f0;
  --accent-soft: #e4ebf2;

  --font-display: 'Spectral', Georgia, serif;
  --font-ui: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --max-width: 920px;
  --shadow-sm: 0 1px 2px rgba(31,58,95,.06), 0 1px 1px rgba(31,58,95,.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--ink-strong); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; margin: 0 0 16px;
}
.eyebrow.center { text-align: center; margin-bottom: 10px; }

/* ---- Header -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; padding-bottom: 13px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark:hover { text-decoration: none; }
.wordmark .mark {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.wordmark .mark svg { width: 17px; height: 17px; display: block; }
.wm-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink-strong); letter-spacing: -0.01em; }
.signin-link {
  font-size: 13.5px; font-weight: 500; color: var(--ink); padding: 7px 14px;
  border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface);
  transition: background .15s, border-color .15s; white-space: nowrap;
}
.signin-link:hover { background: var(--surface-2); border-color: var(--muted); text-decoration: none; }

/* ---- Hero ---------------------------------------------------- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 46px 0 36px;
}
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 22px; }
.focus { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus li {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--rule);
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}
.hero-logo { display: grid; place-items: center; }
.hero-logo .logo {
  width: 100%; max-width: 360px; display: block; border-radius: 12px;
  background: var(--surface); padding: 18px;
  border: 1px solid var(--rule); box-shadow: var(--shadow-sm);
  mix-blend-mode: multiply;
}

.rule { height: 1px; background: var(--rule); border: none; margin: 8px 0 40px; }

/* ---- Bio lines (under logo) ---------------------------------- */
.bio-lines {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.bio-lines li {
  font-family: var(--font-ui); font-size: 13.5px;
  color: var(--ink-soft); line-height: 1.5;
}

/* ---- Accomplishments ----------------------------------------- */
.accomplishments { padding: 36px 0 24px; }
.accomplishment-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.accomplishment-list li {
  font-size: 16px; color: var(--ink-soft); line-height: 1.5;
  padding-left: 18px; position: relative;
}
.accomplishment-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--muted);
}

/* ---- Booking ------------------------------------------------- */
.booking { padding-bottom: 72px; }
.booking h2 { font-size: 30px; text-align: center; margin-bottom: 8px; }
.booking-sub { text-align: center; color: var(--ink-soft); font-size: 15px; margin: 0 0 26px; }

/* ---- Trial booking widget ------------------------------------ */
.trial-widget {
  max-width: 540px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.trial-loading {
  padding: 48px 24px; text-align: center;
  color: var(--muted); font-size: 14px; font-family: var(--font-mono);
}
.trial-cal { padding: 24px 24px 16px; }
.trial-cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.trial-cal-header span {
  font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--ink-strong);
}
.trial-cal-nav {
  background: none; border: 1px solid var(--rule); border-radius: 6px;
  width: 30px; height: 30px; cursor: pointer; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 15px; padding: 0;
  transition: background .12s, border-color .12s;
}
.trial-cal-nav:hover { background: var(--surface-2); border-color: var(--muted); }
.trial-cal-nav:disabled { opacity: .3; cursor: default; }
.trial-dow-row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.trial-dow {
  text-align: center; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 4px 0;
}
.trial-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.trial-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-radius: 6px;
  font-size: 13px; color: var(--ink-soft); position: relative;
  cursor: default; user-select: none;
}
.trial-day.other-month { color: var(--rule-strong); }
.trial-day.past { color: var(--rule-strong); }
.trial-day.has-slots {
  cursor: pointer; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--rule);
}
.trial-day.has-slots:hover { background: var(--accent-soft); border-color: var(--accent); }
.trial-day.selected {
  background: var(--accent) !important; color: var(--accent-ink) !important;
  border-color: var(--accent) !important; font-weight: 600;
}
.trial-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-top: 2px;
}
.trial-day.selected .trial-dot { background: var(--accent-ink); opacity: .7; }
.trial-slots-section {
  border-top: 1px solid var(--rule);
  padding: 18px 24px 22px;
}
.trial-slots-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}
.trial-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.trial-slot {
  font-size: 13px; padding: 6px 14px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--surface-2);
  color: var(--ink); cursor: pointer; font-family: var(--font-ui);
  transition: background .12s, border-color .12s;
}
.trial-slot:hover { background: var(--accent-soft); border-color: var(--accent); }
.trial-slot.selected {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 500;
}
.trial-form-section {
  border-top: 1px solid var(--rule);
  padding: 18px 24px 22px;
}
.trial-form-title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink-strong); margin: 0 0 14px;
}
.trial-field { margin-bottom: 12px; }
.trial-field label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--ink-soft); margin-bottom: 4px;
}
.trial-field input, .trial-field textarea {
  width: 100%; padding: 8px 11px; border-radius: 6px;
  border: 1px solid var(--rule); background: var(--bg);
  font-family: var(--font-ui); font-size: 14px; color: var(--ink);
  outline: none; transition: border-color .12s;
}
.trial-field input:focus, .trial-field textarea:focus {
  border-color: var(--accent);
}
.trial-field textarea { resize: vertical; min-height: 72px; }
.trial-submit {
  width: 100%; padding: 10px; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink);
  border: none; font-family: var(--font-ui); font-size: 15px;
  font-weight: 500; cursor: pointer; margin-top: 4px;
  transition: opacity .12s;
}
.trial-submit:hover { opacity: .88; }
.trial-submit:disabled { opacity: .5; cursor: default; }
.trial-error { font-size: 13px; color: #c0392b; margin-top: 8px; }
.trial-success { padding: 40px 24px; text-align: center; }
.trial-success-icon { font-size: 36px; margin-bottom: 12px; }
.trial-success h3 {
  font-family: var(--font-display); font-size: 20px;
  color: var(--ink-strong); margin: 0 0 8px;
}
.trial-success p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* ---- Footer -------------------------------------------------- */
footer {
  margin-top: 8px; padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
footer p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 32px 0 28px; }
  .hero-logo { order: -1; }
  .hero-logo .logo { max-width: 300px; }
  .booking h2 { font-size: 26px; }
}
