@import "tailwindcss";

/* ===== GLOBAL STYLES ===== */

/* Typography scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0px;
  color: #0a0a0a;
  line-height: 1.2;
}

p {
  margin-bottom: 0.6rem;
  line-height: 1.2;
  font-size: 0.9rem;
}

li {
  font-size: 0.9rem;
  line-height: 1.2;
}

/* Links */
a {
  color: #2400ff;
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

/* Code */
code {
  font-family: Consolas, monospace;
  background-color: #e6e6e6;
  padding: 0.1rem 0.2rem;
  border-radius: 2px;
  font-size: 0.45rem;
  line-height: 1.2;
}

/* Blockquotes */
blockquote {
  border-left: 2px solid #2400ff;
  padding-left: 0.6rem;
  margin: 0.4rem 0;
  font-style: italic;
  color: #444;
  font-size: 0.45rem;
  line-height: 1.2;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* ===== LAYOUT UTILITIES ===== */

/* Responsive containers */
.resizable-container {
  @media (min-width: 1000px) {
    max-width: 700px;
  }
  @media (min-width: 800px) and (max-width: 999px) {
    max-width: 700px;
  }
  @media (min-width: 600px) and (max-width: 799px) {
    max-width: 500px;
  }
  @media (min-width: 500px) and (max-width: 599px) {
    max-width: 450px;
  }
  @media (min-width: 401px) and (max-width: 499px) {
    max-width: 320px;
  }
  @media (min-width: 200px) and (max-width: 400px) {
    max-width: 275px;
  }
}

.resizable-video {
  @media (min-width: 1000px) {
    max-width: 640px;
  }
  @media (min-width: 800px) and (max-width: 999px) {
    max-width: 560px;
  }
  @media (min-width: 600px) and (max-width: 799px) {
    max-width: 480px;
  }
  @media (min-width: 401px) and (max-width: 599px) {
    max-width: 360px;
  }
  @media (min-width: 200px) and (max-width: 400px) {
    max-width: 240px;
  }
}

.resizable-container-large {
  @media (min-width: 1200px) {
    max-width: 1000px;
  }
  @media (min-width: 1000px) and (max-width: 1199px) {
    max-width: 800px;
  }
  @media (min-width: 800px) and (max-width: 999px) {
    max-width: 700px;
  }
  @media (min-width: 600px) and (max-width: 799px) {
    max-width: 550px;
  }
  @media (min-width: 401px) and (max-width: 599px) {
    max-width: 350px;
  }
  @media (min-width: 200px) and (max-width: 400px) {
    max-width: 175px;
  }
}

/* ===== COMMON COMPONENTS ===== */

/* Image displays */
.image-display,
.image-display-with-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.image-display img,
.image-display-with-caption img {
  max-width: 75%;
  height: auto;
  object-fit: contain;
}

.image-display-with-caption {
  flex-direction: column;
}

.image-caption {
  text-align: center;
  font-style: italic;
  margin-top: 0;
  color: #666;
  font-size: 0.55em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .image-display img,
  .image-display-with-caption img {
    max-width: none;
    width: 75%;
  }
}

/* Blockquote with image */
.blockquote-with-image {
  display: flex;
  align-items: flex-start;
  margin: 0.75rem 0;
}

.blockquote-with-image img {
  width: 80px;
  height: auto;
  margin-right: 1rem;
  object-fit: cover;
}

.blockquote-with-image blockquote {
  font-style: normal;
  flex: 1;
  margin: 0;
  padding: 0.5rem 0;
  border-left: 2px solid #888;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.2;
}

.blockquote-with-image p {
  margin: 0;
  line-height: 1.2;
}

.blockquote-with-image p:first-of-type {
  font-style: italic;
}
.blockquote-with-image p:not(:first-of-type) {
  font-style: normal;
}
