:root {
  --text: #222222;
  --heading: #ff0000;
  --box: #f3f3f3;
  --bg: #ffffff;
  --muted: #666666;
  --content-width: 760px;

  --image-width: 220px;
  --image-gap: 2rem;
  --image-right-pad: 0.75rem;
  --image-max-height: 220px;

  --sequence-thumb-size: 110px;
  --sequence-gap: 1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Roboto Mono",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ---------- TOP BUTTONS ---------- */

#theme-toggle,
#menu-toggle {
  position: fixed;
  top: 1rem;
  z-index: 1000;
  border: none;
  background: var(--box);
  color: var(--text);
  padding: 0.7rem 1rem;
  cursor: pointer;
}

#menu-toggle {
  left: 1rem;
  background: var(--heading);
  color: var(--bg);
}

#theme-toggle {
  right: 1rem;
}

/* ---------- LAYOUT ---------- */

#content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5.5rem 4.5rem 4rem;
}

/* ---------- SEQUENCE (UPDATED) ---------- */

#sequence-section {
  margin-bottom: 2.5rem;
}

.sequence-dropdown {
  background: var(--heading);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

/* dropdown title */
.sequence-dropdown summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--bg);
}

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

.sequence-dropdown summary::before {
  content: "▸";
  margin-right: 0.5rem;
}

.sequence-dropdown[open] summary::before {
  transform: rotate(90deg);
}

/* rows */
.sequence-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.sequence-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sequence-gap);
}

/* pose buttons */
.sequence-pose {
  width: var(--sequence-thumb-size);
  height: var(--sequence-thumb-size);
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* REMOVE white boxes */
.sequence-pose-media {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG now sits directly on red background */
.sequence-pose-media svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  color: var(--bg); /* 👈 white lines */
}

/* ensure paths use white */
.sequence-pose-media svg path {
  fill: currentColor;
}

/* hide labels completely */
.sequence-pose-label {
  display: none;
}

/* missing = big white X */
.sequence-missing {
  color: var(--bg);
  font-size: 2.5rem;
  font-weight: 700;
}

/* hover subtle lift */
.sequence-pose:hover {
  transform: translateY(-2px);
}

/* ---------- TYPOGRAPHY ---------- */

h1,
h2,
h3,
h4,
h5,
h6,
summary {
  color: var(--heading);
}

h1 {
  font-size: 2rem;
  margin: 1.8rem 0 0.8rem;
}

h2 {
  font-size: 1.5rem;
  margin: 1.8rem 0 0.8rem;
}

h3 {
  font-size: 0.8rem;
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

p {
  margin: 0 0 1rem;
}

/* ---------- ASANA ---------- */

.h2-dropdown {
  background: var(--box);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

.h2-dropdown summary {
  font-weight: 700;
}

.h2-body {
  display: flex;
  align-items: center;
  gap: var(--image-gap);
}

.h2-text {
  flex: 1;
}

.h2-media {
  flex: 0 0 var(--image-width);
  display: flex;
  justify-content: center;
}

/* image fix */
.h2-media img,
.h2-media svg {
  width: 100%;
  max-height: var(--image-max-height);
  object-fit: contain;
}

/* svg color */
.h2-media svg {
  color: var(--heading);
}

.h2-media svg path:not([class]) {
  fill: currentColor;
}

/* ---------- DARK MODE ---------- */

body.dark {
  --text: #e8e8e8;
  --heading: #49a6ff;
  --box: #23262b;
  --bg: #111318;
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {
  #content {
    padding: 5rem 1rem 4rem;
  }

  .h2-body {
    flex-direction: row;
    gap: 1rem;
  }

  .h2-media {
    width: clamp(90px, 28vw, 120px);
  }

  .h2-media img,
  .h2-media svg {
    max-height: 140px;
  }

  .sequence-pose {
    width: 90px;
    height: 90px;
  }
}