/* ============================================================
   Braille Press - Global Stylesheet
   Design goals: clean, modern, high contrast, no JavaScript.
   Color palette: warm off-white background, deep navy text,
   one teal accent reused everywhere for links and buttons.
   All color pairs chosen to meet WCAG AA contrast.
   ============================================================ */

/* ---------- Root variables - change branding in one place ---------- */
:root {
  --bg: #fafaf7;            /* Warm off-white page background */
  --surface: #ffffff;       /* White cards and header surfaces */
  --ink: #1f2933;           /* Near-black body text, deep navy */
  --ink-soft: #52606d;      /* Secondary gray text for captions */
  --accent: #0f766e;        /* Teal accent for links and actions */
  --accent-dark: #115e59;   /* Darker teal for hover states */
  --border: #e4e4e0;        /* Hairline borders for subtle structure */
  --max-width: 62rem;       /* Caps reading width around 70 chars */
}

/* ---------- Reset - sensible defaults first ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* System font stack = fast, no downloads, feels native */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;      /* 18px base, kind to low vision visitors */
  line-height: 1.7;         /* Airy line spacing aids reading ease */
  color: var(--ink);
  background-color: var(--bg);
}

/* ---------- Layout wrapper ---------- */
main, header .inner, footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;           /* Centers content column */
  padding: 0 1.5rem;        /* Side breathing room on phones */
}

/* ---------- Header ---------- */
header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

/* Tier navigation rendered as a horizontal pill row */
nav ul {
  list-style: none;         /* Removes bullets from nav list */
  display: flex;
  flex-wrap: wrap;          /* Wraps gracefully on narrow screens */
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0 0;
}

nav li a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;     /* Pill shape = modern affordance */
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s ease;
}

nav li a:hover {
  background-color: var(--border);
}

/* Current page shown as the filled pill */
nav li a[aria-current="page"] {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* ---------- Typography ---------- */
h1 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 2.5rem 0 0.5rem;
  color: #0A99F2;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;        /* Big gaps between sections = whitespace */
  color: #0A99F2;
}

/* ---------- Content lists ---------- */

/* unvisited link */
a:link {
  color: CornflowerBlue;
}

/* visited link */
a:visited {
  color: DarkBlue;
}

/* mouse over link */
a:hover {
  color: DodgerBlue;
}

/* selected link */
a:active {
  color: blue;
}




/* ---------- Content lists ---------- */
ul:not(nav ul) {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* ---------- Ordered specs stand apart with a card surface ---------- */
/* Applied manually in HTML with class="card" on the About section */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

/* ---------- Price emphasis ---------- */
.price {
  font-size: 1.75rem;
  font-weight: 700;
}

/* ---------- Images ---------- */
img {
  max-width: 100%;          /* Never overflows its container */
  height: auto;
  border-radius: 0.5rem;
}

/* ---------- Footer ---------- */
footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Accessibility furniture ---------- */
/* Visible keyboard focus = essential for screen reader + keyboard users */
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Skip link hidden visually until focused, then displayed */
.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: static;
}