/* Typography Styles for June Calendar */

/* Base Typography */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-gray);
}

/* Fluid Typography System */
:root {
  /* Base sizes */
  --text-xs: 0.75rem;   /* 12px */
  --text-sm: 0.875rem;  /* 14px */
  --text-base: 1rem;    /* 16px */
  --text-md: 1.125rem;  /* 18px */
  --text-lg: 1.25rem;   /* 20px */
  --text-xl: 1.5rem;    /* 24px */
  --text-2xl: 1.875rem; /* 30px */
  --text-3xl: 2.25rem;  /* 36px */
  --text-4xl: 3rem;     /* 48px */
  --text-5xl: 3.75rem;  /* 60px */
  
  /* Fluid typography calculations */
  --fluid-min-width: 320;
  --fluid-max-width: 1200;
  
  --fluid-screen: 100vw;
  --fluid-bp: calc((var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) / (var(--fluid-max-width) - var(--fluid-min-width)));
}

/* Fluid Typography Mixins */
h1, .h1 {
  font-size: clamp(2rem, calc(2rem + 1.5vw), 3.75rem);
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  font-family: var(--font-heading);
}

h2, .h2 {
  font-size: clamp(1.75rem, calc(1.75rem + 0.75vw), 2.5rem);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 700;
  font-family: var(--font-heading);
}

h3, .h3 {
  font-size: clamp(1.5rem, calc(1.5rem + 0.5vw), 2rem);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: var(--font-heading);
}

h4, .h4 {
  font-size: clamp(1.25rem, calc(1.25rem + 0.25vw), 1.5rem);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: var(--font-heading);
}

h5, .h5 {
  font-size: clamp(1.1rem, calc(1.1rem + 0.15vw), 1.25rem);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: var(--font-heading);
}

h6, .h6 {
  font-size: clamp(1rem, calc(1rem + 0.1vw), 1.1rem);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 0.5em;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* Paragraph styles */
p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: clamp(1rem, calc(1rem + 0.1vw), 1.125rem);
}

.lead {
  font-size: clamp(1.125rem, calc(1.125rem + 0.25vw), 1.375rem);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.small {
  font-size: clamp(0.75rem, calc(0.75rem + 0.1vw), 0.875rem);
}

/* Link styles */
a {
  color: var(--summer-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--aqua);
  text-decoration: underline;
}

/* List styles */
ul, ol {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align: justify;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

/* Font weights */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Font families */
.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.font-accent {
  font-family: var(--font-accent);
}

/* Line heights */
.leading-none {
  line-height: 1;
}

.leading-tight {
  line-height: 1.25;
}

.leading-snug {
  line-height: 1.375;
}

.leading-normal {
  line-height: 1.5;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-loose {
  line-height: 2;
}

/* Letter spacing */
.tracking-tighter {
  letter-spacing: -0.05em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-normal {
  letter-spacing: 0;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

/* Special text styles */
.calendar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
}

.day-number {
  font-family: var(--font-heading);
  font-weight: 600;
}

.event-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.featured-day-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.featured-day-date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Accent text */
.accent-text {
  font-family: var(--font-accent);
  font-size: 1.25em;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .calendar-weekdays .weekday {
    font-size: 0.875rem;
  }
  
  .day-number {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .hero-description {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1024px) {
  .hero-description {
    max-width: 70%;
  }
}