/* Kana CMS styles copied from https://www.kana.io/assets/style.css */
:root {
  --ground: #F6F4EF;
  --charcoal: #1A1A1A;
  --muted: #555555;
  --rule: #E5E3DD;
  --rule-dark: rgba(26,26,26,.12);
  --ai: #1A1A1A;
  --kachi: #F6F4EF;
  --paper: #F6F4EF;
  --paper-2: #ECEAE4;
  --brass: #1A1A1A;
  --slate: #666666;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: #F6F4EF;
  color: #1A1A1A;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { line-height: 1.68; }
h1, h2, h3, .logo {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1A1A1A;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 68ch; }
html[lang="en"] .narrow { max-width: 72ch; }
.fine { color: #666666; font-size: 14px; }

/* ---- masthead ---- */
.mast {
  background: #F6F4EF;
  color: #1A1A1A;
  border-bottom: 1px solid #E5E3DD;
}
.mast .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo, .logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #1A1A1A;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo img {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}
.logo .name {
  display: block;
  line-height: 1;
}
.logo .name small {
  display: block;
  font-size: 11px;
  letter-spacing: .15em;
  color: #555555;
  margin-top: 4px;
}
.mast-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mast-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mast-nav a {
  text-decoration: none;
  color: #555555;
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.mast-nav a:hover {
  color: #1A1A1A;
  background: rgba(26, 26, 26, 0.05);
}
.mast-nav a.active {
  color: #1A1A1A;
  font-weight: 600;
  background: rgba(26, 26, 26, 0.08);
}
.mast-account {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  font-size: 14px;
  color: #555555;
}
.btn-logout {
  background: transparent;
  color: #1A1A1A;
  border: 1px solid #1A1A1A;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 9999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.15s ease;
}
.btn-logout:hover {
  background: #ECEAE4;
  border-color: #1A1A1A;
}

/* ---- primary button: charcoal/black pill ---- */
.btn, .btn-large, .btn-dark, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #1A1A1A;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid #1A1A1A;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}
.btn:hover, .btn-large:hover, .btn-dark:hover, .btn-primary:hover {
  opacity: 0.85;
  color: #FFFFFF;
}
.btn:focus-visible, .btn-large:focus-visible, .btn-dark:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 2px;
}
.btn-sm, .btn-small {
  font-size: 13.5px;
  padding: 8px 18px;
}
.btn-large {
  font-size: 17px;
  padding: 16px 32px;
}

/* ---- footer ---- */
footer, .mast-footer {
  background: #F6F4EF !important;
  color: #666666 !important;
  border-top: 1px solid #E5E3DD !important;
  padding: 40px 0 48px !important;
  font-size: 14px !important;
}
footer .wrap, .mast-footer .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
footer a, .mast-footer a {
  color: #1A1A1A !important;
  text-decoration: none !important;
}
footer a:hover, .mast-footer a:hover {
  text-decoration: underline !important;
}
footer .logo img, .mast-footer .logo img {
  width: 30px;
  height: 30px;
}

/* Hide obsolete bootstrap navbar and duplicate dark footer */
.navbar { display: none !important; }
footer.bg-dark { display: none !important; }

/* Auth card styles */
.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  min-height: calc(100vh - 180px);
}
.auth-card {
  background: #FFFFFF;
  border: 1px solid #E5E3DD;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 2px 12px rgba(26, 26, 26, 0.04);
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 16px;
  color: #1A1A1A;
}
.auth-card p {
  color: #555555;
  font-size: 14.5px;
  line-height: 1.6;
}
.auth-subtitle {
  color: #555555;
  font-size: 15px;
  margin-top: 4px;
  margin-bottom: 24px;
  text-align: center;
}
.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid #1A1A1A;
  border-radius: 6px;
  background: #FFFFFF;
  color: #1A1A1A;
  box-sizing: border-box;
}
.form-control:focus {
  outline: 2px solid #1A1A1A;
  outline-offset: 1px;
  border-color: #1A1A1A;
}
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.alert-danger {
  background: #FDF2F2;
  border: 1px solid #F8B4B4;
  color: #9B1C1C;
}
.alert-success {
  background: #F3FAF7;
  border: 1px solid #84E1BC;
  color: #0E9F6E;
}
.w-100 { width: 100%; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
