/*
 * Readability enhancements (approved 2026-11-09), loaded right AFTER the original site.css on the
 * main website and on client pages. site.css itself stays byte-identical to the original; the
 * owner's Design settings (theme overrides) are loaded after this file and still win.
 *
 * Goals: a slightly brighter, cleaner dark theme; WCAG AA text contrast; readable mobile menu;
 * comfortable touch targets; visible keyboard focus. No layout changes, no new fonts.
 */
:root {
  --bg: #0b0c10; /* was #050505 — a touch lighter, still the original dark brand */
  --muted: #a7a7b0; /* was #8a8a8a — ≈ 8.3:1 on --bg (AA needs 4.5:1) */
  --dim: #6b6b75; /* was #3a3a3a — decorative words (marquee, quote marks) are now visible */
  --line: #ffffff29; /* card and input borders: a little clearer */
  --line-soft: #ffffff17;
  --card: #ffffff0d;
}

/* Comfortable reading */
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Mobile menu: links readable without hover (site.css colours them with --dim and only
   brightens them on :hover, which phones do not have) */
.menu .menu-list a {
  color: #e4e4e7;
  padding-block: 4px;
}
.menu .menu-list a span {
  color: var(--muted);
}
.menu .menu-list a:hover,
.menu .menu-list a:focus-visible {
  color: #fff;
}
.menu .menu-foot a {
  color: #d4d4d8;
}

/* Touch targets: at least 44 × 44 px */
.burger {
  min-width: 44px;
  min-height: 44px;
}

/* Forms (Phase 2): clearly visible fields before focus, a distinct field background, light-gray
   example text that never looks like a typed value */
.contact-form label {
  color: #c4c4cc;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  border: 1px solid #ffffff4d;
  border-radius: 12px;
  background: #ffffff0d;
  min-height: 48px;
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #ffffff80;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fff;
  background: #ffffff14;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8f8f99;
  font-style: italic;
  opacity: 1;
}
.contact-form [aria-invalid="true"] {
  border-color: #ff8a8a;
}

/* Primary (light) button with a little depth: raised edge, lift on hover, pressed on click */
.btn-light {
  box-shadow: inset 0 -2px 0 #0000001f, 0 3px 0 #b8b8c0;
  min-height: 48px;
}
.btn-light:hover {
  box-shadow: inset 0 -2px 0 #0000001f, 0 4px 0 #b8b8c0;
}
.btn-light:active {
  transform: translateY(3px);
  box-shadow: inset 0 2px 3px #00000033;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn[aria-busy="true"],
.contact-form .btn:disabled {
  cursor: progress;
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
