/* ============================================================
   WHATSOCK-ALIGNED ACCESSIBLE DOCUMENT STYLES
   DeafBlind-first | Screen Reader Safe | Keyboard Safe
   ============================================================ */

/* Root defaults */
html {
  scroll-behavior: smooth;
  font-size: 18px; /* Larger base for low-vision + braille displays */
}

/* Body */
body {
  font-family: system-ui, sans-serif;
  line-height: 1.7;
  max-width: 900px;
  margin: auto;
  padding: 2rem 1rem;
  background: #0f172a;
  color: #f8fafc;
}

/* Headings */
h1, h2, h3, h4 {
  color: #facc15;
  margin-top: 2rem;
  line-height: 1.3;
}

/* Ensure heading hierarchy is visually clear */
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

/* Links */
a {
  color: #60a5fa;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Focus states — Whatsock standard */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #facc15;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Buttons (semantic + ARIA role) */
button,
[role="button"] {
  cursor: pointer;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 2px solid #facc15;
  background: #1e293b;
  color: #f8fafc;
}

button:hover,
[role="button"]:hover {
  background: #334155;
}

/* Code blocks */
code {
  background: #1e293b;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid #334155;
  border-radius: 6px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 2px solid #1e293b; /* tactile boundary for low vision */
}

/* Profile photo — smaller, controlled size */
.profile-photo {
  max-width: 140px;   /* adjust to taste */
  height: auto;
  border-radius: 6px;
  border: 2px solid #1e293b; /* preserve tactile boundary */
  display: block;
  margin: 0 auto; /* center the image */
}

/* Figures */
figure {
  margin: 1.5rem 0;
}

figcaption {
  font-size: 0.9rem;
  color: #cbd5f5;
  margin-top: 0.5rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #facc15;
  color: black;
  padding: 0.5rem 1rem;
  z-index: 1000;
  font-weight: bold;
}

.skip-link:focus {
  top: 10px;
}

/* Lists — ensure readable spacing */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.4rem;
}

/* Landmarks — reinforce tactile boundaries */
header, nav, main, footer {
  display: block;
  margin-bottom: 2rem;
}

/* Tables — Whatsock-compliant */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th, td {
  border: 1px solid #334155;
  padding: 0.75rem;
}

th {
  background: #1e293b;
  color: #facc15;
  text-align: left;
}

/* Touch targets */
a, button, [role="button"] {
  min-height: 44px;
  min-width: 44px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

