/* Phase 1 baseline. Deliberately plain — visual design lands in Phase 2 alongside
   the real homepage content. */

:root {
  --ink: #16202a;
  --muted: #5b6b7a;
  --line: #dfe5ea;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --accent: #1f5f8b;
  --accent-ink: #ffffff;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--accent); }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 10;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; text-decoration: none; color: var(--ink); }

.site-nav { display: flex; gap: 1.25rem; align-items: center; }

.inline-form { display: inline; margin: 0; }
.linkish {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; text-decoration: underline;
}

main { max-width: var(--measure); margin: 0 auto; padding: 2rem 1.5rem 4rem; }

.hero { margin-bottom: 2.5rem; }
.hero-image { width: 100%; height: auto; border-radius: 8px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.15; margin: 1rem 0 0.5rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

.stream > * + *, .prose > * + * { margin-top: 1.25rem; }

.block-image figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

.cta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.testimonial {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
}
.testimonial cite { display: block; margin-top: 0.5rem; font-size: 0.9rem; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; }

/* Forms — allauth's sign-in, sign-up and password-reset pages render plain
   Django form markup, so these rules cover them as well as our own forms. */

form p { margin: 0 0 1rem; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  width: 100%;
  max-width: 26rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  background: var(--bg);
  color: var(--ink);
}

input[type="checkbox"] { margin-right: 0.4rem; }

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button[type="submit"],
input[type="submit"] {
  padding: 0.65rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover,
input[type="submit"]:hover { filter: brightness(1.08); }

.helptext, .form-text {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.errorlist {
  list-style: none;
  padding: 0.6rem 0.9rem;
  margin: 0 0 1rem;
  border-radius: 6px;
  border: 1px solid #e0b4b4;
  background: #fdf3f3;
  color: #8a1f1f;
}

.button-small {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.material-kind {
  display: inline-block;
  min-width: 5.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.material-list { list-style: none; padding: 0; }
.material-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.duration { color: var(--muted); font-size: 0.9rem; }

.purchase-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  background: var(--bg-soft);
  margin: 1.5rem 0;
}
.price { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.75rem; }
.tax-note { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.owned { color: var(--accent); font-weight: 600; }

.course-grid { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.course-card { border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; }
.course-card h2 { margin: 0.5rem 0; font-size: 1.15rem; }
.course-card a { text-decoration: none; color: inherit; }

.orders { width: 100%; border-collapse: collapse; }
.orders th, .orders td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
}
.orders th { font-size: 0.85rem; text-transform: uppercase; color: var(--muted); }

.player { width: 100%; border-radius: 8px; background: #000; }

.fineprint { color: var(--muted); font-size: 0.875rem; }

.messages { list-style: none; padding: 0; }
.messages li {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background: var(--bg-soft);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.site-footer p { margin: 0.25rem 0; }
