/* Base Styles */
.transform {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Activity Page Typography */
.prose-xl {
    font-size: 1.25rem;
    line-height: 2;
}

.prose-xl p {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    font-size: 1.25rem;
    line-height: 2;
}

.prose-xl [class~="lead"] {
    font-size: 1.4rem;
    line-height: 1.875;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}

.prose-xl blockquote {
    margin-top: 2em;
    margin-bottom: 2em;
    padding-left: 1.5em;
    border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.prose-xl h1 {
    font-size: 3.6rem;
    margin-top: 0;
    margin-bottom: 0.8em;
    line-height: 1.1;
}

.prose-xl h2 {
    font-size: 2.8rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.prose-xl h3 {
    font-size: 2rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

.prose-xl h4 {
    font-size: 1.5rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.prose-xl ul,
.prose-xl ol {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.prose-xl li {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
    font-size: 1.25rem;
    line-height: 1.75;
}

.prose-xl > ul > li p {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

.prose-xl > ol > li > *:first-child {
    margin-top: 1.2em;
}

.prose-xl > ol > li > *:last-child {
    margin-bottom: 1.2em;
}

/* Inverted Theme Adjustments */
.prose-invert {
    color: rgba(255, 255, 255, 0.9);
}

.prose-invert h1,
.prose-invert h2,
.prose-invert h3,
.prose-invert h4 {
    color: white;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.prose-invert p {
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced List Styling */
.prose-invert ol {
    list-style-type: none;
    counter-reset: item;
    margin-left: 0;
    padding-top: 1em;
}

.prose-invert ol > li {
    counter-increment: item;
    margin-bottom: 2.5em;
    position: relative;
    padding-left: 4em;
    padding-top: 0.25em;
    display: flex;
    align-items: flex-start;
    min-height: 3em;
}

.prose-invert ol > li::before {
    content: counter(item);
    position: absolute;
    left: 0.75em;
    top: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25em;
    height: 2.25em;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-weight: 500;
    font-size: 1.1em;
    color: white;
}

.prose-invert ol > li:last-of-type {
    margin-bottom: 2em;
}

.prose-invert ol > li > p {
    margin: 0;
    line-height: 2;
}

/* List Item Spacing */
.prose-invert ol > li:last-child {
    margin-bottom: 1em;
}

.prose-invert ol > li + li {
    margin-top: 0.5em;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 2em 0;
}

/* Enhanced Readability */
.tracking-tight {
    letter-spacing: -0.02em;
}

/* Button States */
button:focus {
    outline: none;
    ring-color: rgba(99, 102, 241, 0.5);
    ring-offset-width: 2px;
}

/* Calendar Styles */
.calendar-day {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.calendar-day:not(:empty):hover {
    transform: scale(1.05);
}
