/* Atlas Acuity — site styles */
:root {
  --blue: #3366cc;
  --blue-dark: #2a55ab;
  --green: #66cc33;
  --ink: #23272f;
  --muted: #5b6472;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --dark: #16181d;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

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

.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */
.site-header {
  background: #fafafa; /* matches the logo PNG's baked-in background */
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.site-header .logo {
  display: block;
  line-height: 0;
}

.site-header .logo img {
  width: 17rem;
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.25rem 2.25rem;
}

.site-nav a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.25rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--green);
}

/* ---------- Page title band (subpages) ---------- */
.page-title {
  text-align: center;
  padding: 3.5rem 1.25rem 1rem;
}

.page-title h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.rule {
  border: none;
  height: 2px;
  background: var(--green);
  width: 6rem;
  margin: 1.25rem auto;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    linear-gradient(rgba(15, 18, 28, 0.72), rgba(15, 18, 28, 0.72)),
    url("../images/hero_about_wide.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 6.5rem 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.06em;
}

.hero .rule {
  background: rgba(255, 255, 255, 0.6);
  width: 5rem;
}

.hero p {
  max-width: 38rem;
  margin: 0 auto 1.25rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.hero p:last-child {
  margin-bottom: 0;
}

/* ---------- Courses (home) ---------- */
.courses {
  background: var(--bg-alt);
  padding: 4.5rem 1.25rem;
}

.courses h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 2.5rem;
}

.courses ol {
  list-style: none;
  max-width: 34rem;
  margin: 0 auto;
  counter-reset: course;
}

.courses li {
  counter-increment: course;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  font-weight: 600;
}

.courses li::before {
  content: counter(course);
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Connect (home) ---------- */
.connect {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 5rem 1.25rem;
}

.connect h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 2rem;
  letter-spacing: 0.05em;
}

.connect .lead {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.75rem 0 2rem;
}

.connect form {
  max-width: 30rem;
  margin: 0 auto;
}

.connect input[type="email"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--sans);
}

.connect button {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border: none;
  border-radius: 2rem;
  background: var(--blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
}

.connect button:hover {
  background: var(--blue-dark);
}

.connect .thanks {
  display: none;
  font-size: 1.1rem;
  color: var(--green);
  margin-top: 1rem;
}

/* ---------- Course cards (elearning) ---------- */
.cards {
  list-style: none;
  max-width: 40rem;
  margin: 2rem auto 5rem;
  padding: 0 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(35, 39, 47, 0.06);
  padding: 1.5rem 1.75rem;
}

.card .icon {
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .icon img {
  width: 2.6rem;
  height: 2.6rem;
}

.card h2 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.card h2 a:hover {
  color: var(--blue);
}

.card .sub {
  color: var(--blue);
  font-size: 0.95rem;
  margin-top: 0.35rem;
}

.card.soon {
  opacity: 0.75;
}

.card.soon .sub {
  color: var(--muted);
  font-style: italic;
}

/* ---------- Video lesson (ocrc) ---------- */
.lesson {
  background: var(--dark);
  color: #fff;
  padding: 3rem 1.25rem 4rem;
}

.lesson-head {
  max-width: 64rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.lesson-head h1 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
}

.lesson-head .count {
  color: rgba(255, 255, 255, 0.6);
}

.lesson-intro {
  max-width: 64rem;
  margin: -0.5rem auto 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.lesson-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 20rem;
  gap: 1.25rem;
  align-items: start;
}

.lesson video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  display: block;
}

.playlist {
  list-style: none;
  max-height: 28rem;
  overflow-y: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.playlist button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--sans);
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
}

.playlist li:last-child button {
  border-bottom: none;
}

.playlist button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.playlist .num {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.playlist .dur {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.playlist li.active button {
  background: rgba(51, 102, 204, 0.35);
  color: #fff;
}

.playlist li.active .num {
  background: var(--blue);
}

/* ---------- Reference accordion (ocrc) ---------- */
.references {
  background: var(--bg-alt);
  padding: 4rem 1.25rem 5rem;
}

.references h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 2rem;
}

.accordion {
  max-width: 40rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 8px;
  overflow: hidden;
}

.accordion details {
  border-bottom: 1px solid #e6e8ec;
}

.accordion details:last-child {
  border-bottom: none;
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--muted);
}

.accordion details[open] summary::after {
  content: "\2212";
}

.accordion .body {
  padding: 0 1.5rem 1.25rem;
}

.accordion .body h3 {
  font-size: 1rem;
  margin-top: 0.75rem;
}

.accordion .body p {
  color: var(--muted);
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

/* ---------- Team ---------- */
.team-member {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 2.5rem;
  align-items: start;
}

.team-member + .team-member {
  border-top: 1px solid #e6e8ec;
}

.team-member .photo img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.team-member h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
}

.team-member .role {
  color: var(--blue);
  font-weight: 600;
  margin: 0.25rem 0 1.25rem;
}

.team-member p {
  margin-bottom: 1rem;
  color: var(--ink);
}

.team-member ul {
  padding-left: 1.25rem;
}

.team-member li {
  margin-bottom: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 2.5rem 1.25rem;
  font-size: 0.85rem;
}

.site-footer .footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  margin-bottom: 1.25rem;
}

.site-footer .footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-footer .footer-nav a:hover {
  color: #fff;
  border-bottom: 2px solid var(--green);
}

.site-footer .footer-rule {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  max-width: 40rem;
  margin: 0 auto 1.25rem;
}

.site-footer .copyright {
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 46rem) {
  .site-header,
  .site-nav ul {
    justify-content: center;
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .playlist {
    max-height: 18rem;
  }

  .team-member {
    grid-template-columns: 1fr;
  }

  .team-member .photo {
    max-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
