/* Cadence — plain CSS, no external fonts or CDNs.
   Palette matches the intro card / demo video so the page and the
   video read as one surface rather than a light page with a dark hole. */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell,
    "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #e6eaf2;
  background: #0e1120;
}

a {
  color: #4ad4d4;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #7fe6e6;
}

a:focus-visible {
  outline: 2px solid #4ad4d4;
  outline-offset: 2px;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header.site-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #232a40;
  text-align: center;
}

header.site-header img.logo {
  width: 160px;
  height: auto;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

header.site-header h1 {
  margin: 0 0 0.9rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

header.site-header .tagline {
  margin: 0 auto;
  line-height: 1.7;
  max-width: 34rem;
  color: #96a0b6;
  font-size: 0.95rem;
}

nav.site-nav {
  margin-top: 0.85rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.95rem;
}

nav.site-nav a {
  text-decoration: none;
  font-weight: 500;
}

nav.site-nav a:hover {
  text-decoration: underline;
}

main h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

main p,
main li {
  color: #ccd3e0;
}

main p {
  margin: 0 0 0.85rem;
}

main ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

main li {
  margin-bottom: 0.4rem;
}

.lead {
  font-size: 1.05rem;
  color: #dde3ee;
}

.card {
  background: #151a2c;
  border: 1px solid #232a40;
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.card h2 {
  margin-top: 0;
}

code,
.mono {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas,
    monospace;
  font-size: 0.88em;
  background: #1c2236;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  word-break: break-word;
}

footer.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid #232a40;
  font-size: 0.88rem;
  color: #8b95ab;
  text-align: center;
}

footer.site-footer p {
  margin: 0 0 0.4rem;
  color: inherit;
}

footer.site-footer a {
  color: #4ad4d4;
}

@media (max-width: 480px) {
  .wrap {
    padding: 1.15rem 1rem 2.5rem;
  }

  header.site-header h1 {
    font-size: 1.4rem;
  }
}

/* Secondary/aside text: "Last updated" lines and closing caveats. */
.meta {
  color: #8b95ab;
  font-size: 0.92em;
}

/* Demo video: matches the text column width and centres with it.
   No width/height attributes on the element — they would override this. */
/* The video is wider than the 42rem text column. Its wrapper spans the full
   viewport width so the video centres on the page rather than the column,
   while max-width keeps the page from ever scrolling sideways. */
.demo-wrap {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.6rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: center;
}

.demo {
  display: block;
  /* Width comes from .demo-frame, which also anchors the unmute button. */
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #232a40;
  border-radius: 8px;
  background: #0b0f18;
}

/* Positioning context for the unmute button, sized to the video. */
.demo-frame {
  position: relative;
  width: 52rem;
  max-width: 100%;
  margin-bottom: 1.9rem;
}

.demo-frame .demo {
  width: 100%;
}

/* Floats over the top-right of the video until the sound is on. */
.demo-unmute {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #0e1120;
  background: #4ad4d4;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.demo-unmute:hover {
  background: #7fe6e6;
}

.demo-unmute:focus-visible {
  outline: 2px solid #e6eaf2;
  outline-offset: 2px;
}

.demo-unmute[hidden] {
  display: none;
}
