/* Site-local CSS layered on top of pkg/design's bundle.
   pkg/design supplies the tokens, themes, and base reset; this file
   adds the chrome specific to japanatnight.com. */

body {
  margin: 0;
  font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", sans-serif);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.08));
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.site-wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.hello h2 {
  margin-top: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.hello p {
  color: var(--text-secondary, var(--text-primary));
  font-size: 1rem;
}

/* Theme toggle — crib of brain's pattern with the tenant prefix
   swapped to clinic-. Active-promotion candidate: pkg/design should
   own this once we have a third site asking for the same thing. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: transparent;
  color: var(--text-secondary, var(--text-primary));
  border: 1px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-tag, rgba(0, 0, 0, 0.06));
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--border-focus, currentColor);
  outline-offset: 1px;
}

.theme-icon { display: none; }
.theme-icon-system { display: block; }
:root[data-theme="clinic-light"] .theme-icon-system,
:root[data-theme="clinic-light"] .theme-icon-dark { display: none; }
:root[data-theme="clinic-light"] .theme-icon-light { display: block; }
:root[data-theme="clinic-dark"] .theme-icon-system,
:root[data-theme="clinic-dark"] .theme-icon-light { display: none; }
:root[data-theme="clinic-dark"] .theme-icon-dark { display: block; }
