:root {
  --bg: #f5f1e8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --ink: #17252f;
  --muted: #586b73;
  --line: rgba(23, 37, 47, 0.12);
  --navy: #0d2a40;
  --teal: #1a6f78;
  --gold: #b78341;
  --sand: #efe5d2;
  --shadow: 0 18px 40px rgba(13, 42, 64, 0.12);
  --radius: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(183, 131, 65, 0.16), transparent 24rem),
    linear-gradient(180deg, #f8f4eb 0%, #f1ece2 100%);
}

img,
iframe,
object {
  max-width: 100%;
}

a {
  color: inherit;
}

code {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(13, 42, 64, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.skip-link,
.sr-only {
  position: absolute;
}

.skip-link {
  left: -999px;
  top: 1rem;
  z-index: 20;
  background: var(--navy);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
}

.sr-only {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  position: relative;
  padding: 1.4rem clamp(1rem, 3vw, 2.25rem) 2rem;
  background:
    linear-gradient(135deg, rgba(13, 42, 64, 0.98), rgba(16, 62, 72, 0.9)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05));
  color: #f9faf8;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.topbar,
.hero,
.highlights,
.site-footer,
.section-block {
  position: relative;
  z-index: 1;
}

.topbar {
  max-width: 1240px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: "Cambria", "Georgia", serif;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  color: rgba(249, 250, 248, 0.76);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.nav-links a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(249, 250, 248, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  align-items: stretch;
}

.hero-copy,
.hero-card {
  border-radius: 30px;
  padding: clamp(1.4rem, 3vw, 2.3rem);
  box-shadow: var(--shadow);
}

.hero-copy {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card {
  background: linear-gradient(180deg, rgba(245, 241, 232, 0.96), rgba(239, 229, 210, 0.92));
  color: var(--ink);
}

.eyebrow,
.section-kicker,
.media-tag,
.tp-tag,
.highlight-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.highlight-label {
  color: #f7d8a8;
}

.hero-card .eyebrow {
  color: var(--teal);
}

.hero h1,
.section-heading h2,
.highlight-card h2,
.media-card h3,
.tool-card h3,
.hardware-card h3,
.tp-card h3,
.info-card h3,
.viewer-fallback h3,
.resource-card h3 {
  margin: 0;
  font-family: "Cambria", "Georgia", serif;
  line-height: 1.08;
}

.hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.hero-text,
.section-heading p,
.highlight-card p,
.media-card p,
.tool-card p,
.hardware-card p,
.tp-card p,
.info-card p,
.helper-text,
.viewer-fallback p,
.resource-card p {
  color: rgba(249, 250, 248, 0.84);
  line-height: 1.7;
}

.hero-card p,
.info-card p,
.section-heading p,
.tool-card p,
.hardware-card p,
.tp-card p,
.resource-card p,
.viewer-fallback p,
.detail-list,
.status-box {
  color: var(--muted);
}

.hero-actions,
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #e9c98f, #c98c42);
  color: #1f1e1a;
  box-shadow: 0 10px 20px rgba(201, 140, 66, 0.28);
}

.button-secondary {
  background: var(--surface-strong);
  color: var(--navy);
  border-color: rgba(13, 42, 64, 0.1);
}

.button-ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(13, 42, 64, 0.18);
}

.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.highlights {
  max-width: 1240px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.highlight-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.highlight-label {
  color: #f2c27e;
}

main {
  padding: 2rem clamp(1rem, 3vw, 2.25rem) 3.5rem;
}

.section-block {
  max-width: 1240px;
  margin: 0 auto 1.6rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 32px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(239, 229, 210, 0.8), rgba(255, 255, 255, 0.76));
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.section-kicker,
.media-tag,
.tp-tag {
  color: var(--teal);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.course-tabs {
  display: grid;
  gap: 1.2rem;
}

.course-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 26px;
  background: rgba(13, 42, 64, 0.06);
  border: 1px solid rgba(13, 42, 64, 0.08);
}

.course-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--navy);
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.course-tab:hover {
  transform: translateY(-1px);
  background: rgba(13, 42, 64, 0.08);
}

.course-tab:focus-visible {
  outline: 2px solid rgba(13, 42, 64, 0.3);
  outline-offset: 2px;
}

.course-tab.is-active,
.course-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #e9c98f, #c98c42);
  color: #1f1e1a;
  box-shadow: 0 10px 20px rgba(201, 140, 66, 0.2);
}

.course-panel {
  display: grid;
  gap: 1rem;
}

.course-panel-shell {
  gap: 1.5rem;
}

.course-panel-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
}

.course-panel-description {
  margin: 0;
}

.course-support-note {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.course-grid,
.tp-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.3rem;
}

.session-video-block {
  display: grid;
  gap: 1rem;
}

.course-video-heading {
  margin-bottom: 0;
}

.course-video-heading h3 {
  margin: 0;
  font-family: "Cambria", "Georgia", serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.session-media-grid {
  margin-top: 0;
}

.info-card,
.viewer-panel,
.tool-card,
.hardware-card,
.tp-card,
.resource-card,
.media-card,
.continuum-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(23, 37, 47, 0.08);
}

.info-card,
.viewer-panel,
.tool-card,
.hardware-card,
.tp-card,
.resource-card {
  padding: 1.35rem;
}

.detail-list,
.tag-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.75;
}

.status-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(26, 111, 120, 0.08);
  border: 1px solid rgba(26, 111, 120, 0.16);
  line-height: 1.6;
}

.viewer-frame {
  min-height: 620px;
  padding: 0.5rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(13, 42, 64, 0.08), rgba(13, 42, 64, 0.02));
}

#course-viewer {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 620px;
  margin: 0 auto;
  border: none;
  border-radius: 20px;
  background: #ffffff;
}

.viewer-fallback {
  min-height: 580px;
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.continuum-grid,
.tool-grid,
.hardware-grid,
.tp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.continuum-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hardware-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.continuum-card {
  padding: 1.3rem;
}

.continuum-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Cambria", "Georgia", serif;
  font-size: 1.3rem;
}

.continuum-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.media-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.media-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  overflow: hidden;
}

.media-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 1.35rem;
  background: linear-gradient(160deg, rgba(13, 42, 64, 0.96), rgba(26, 111, 120, 0.9));
}

.media-copy h3 {
  color: #f7f2e7;
}

.media-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.media-description {
  margin: 0;
  line-height: 1.75;
}

.embed-placeholder {
  border-left: 1px solid var(--line);
}

.video-panel {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.9);
}

.video-panel strong {
  color: var(--navy);
  font-family: "Cambria", "Georgia", serif;
  font-size: 1.35rem;
}

.video-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.embed-shell {
  min-height: 320px;
  background: #06131b;
}

.embed-shell iframe {
  width: 100%;
  height: 100%;
  border: none;
  aspect-ratio: 16 / 9;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
}

.tag-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(13, 42, 64, 0.07);
  border: 1px solid rgba(13, 42, 64, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.hardware-photo-card {
  padding: 0;
  overflow: hidden;
}

.hardware-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #dfe7ea;
}

.hardware-copy {
  display: grid;
  gap: 0.8rem;
  padding: 1.35rem;
}

.hardware-copy p,
.placeholder-card p {
  margin: 0;
}

.hardware-source {
  width: fit-content;
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.hardware-source:hover {
  text-decoration: underline;
}

.tp-tag {
  margin-bottom: 0.8rem;
}

.placeholder-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  min-height: 210px;
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border-style: dashed;
}

.tp-file-card {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  min-height: 210px;
}

.tp-file-link {
  width: fit-content;
}

.placeholder-card .tp-tag {
  margin-bottom: 0;
}

.site-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.25rem) 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--muted);
}

.footer-title {
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-family: "Cambria", "Georgia", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero,
  .course-grid,
  .tp-layout,
  .media-card {
    grid-template-columns: 1fr;
  }

  .highlights,
  .continuum-grid,
  .tool-grid,
  .hardware-grid,
  .tp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-frame {
    min-height: auto;
  }

  .continuum-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    margin-bottom: 2rem;
  }

  .nav-links,
  .hero-actions,
  .action-stack,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .highlights,
  .continuum-grid,
  .tool-grid,
  .hardware-grid,
  .tp-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .course-tab-list {
    flex-direction: column;
  }

  .course-tab {
    width: 100%;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-copy span {
    max-width: 24ch;
  }

  #course-viewer {
    min-height: 460px;
    height: 62vh;
  }

  .viewer-fallback {
    min-height: 480px;
    height: 480px;
  }

  .hardware-photo {
    height: 220px;
  }
}
