@font-face {
    font-family: 'Excalifont';
    src: url('/Excalifont-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
:root {
    --sideways-orange-dark: #b84900;
    --sideways-orange: #f48120;
    --sideways-orange-light: #faad3f;
    --sideways-cream: #ffeacc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    background-color: var(--sideways-orange);
    min-height: 100vh;
}
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--sideways-orange) 0%, var(--sideways-cream) 100%);
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}
.gutter-text {
    position: fixed;
    font-family: 'Excalifont', cursive;
    /* Font reaches 2em (32px) at 768px, scales to 6em (96px) at 1440px */
    /* Slope: (96-32)/(1440-768) = 64/672 = 0.095238 px/px = 9.52px per 1vw */
    /* y-intercept: 32 = 9.52*(768/100) + b → 32 = 73.14 + b → b = -41.14px */
    /* Formula: 9.52vw - 41.14px, convert to rem: 9.52vw - 2.57rem */
    font-size: clamp(2rem, 9.52vw - 2.57rem, 6rem);
    color: var(--sideways-orange);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    white-space: nowrap;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); */
}
.gutter-left {
    /* Offset scales proportionally with font size (from -55px at 768px to -165px at 1440px) */
    /* Slope: (-165-(-55))/(1440-768) = -110/672 = -0.1637 px/px = -16.37px per 1vw */
    /* y-intercept: -55 = -16.37*(768/100) + b → -55 = -125.72 + b → b = 70.72px */
    left: clamp(-165px, -16.37vw + 70.72px, -55px);
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
}
.gutter-right {
    /* Offset scales proportionally with font size (from -55px at 768px to -165px at 1440px) */
    right: clamp(-165px, -16.37vw + 70.72px, -55px);
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}
.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    /* Clean border with hand-drawn irregular corners */
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 3px solid #333;
    border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
    position: relative;
    z-index: 1;
}
h1 {
    color: var(--sideways-orange-dark);
    font-size: 3.5em;
    margin-bottom: 10px;
    display: inline-block;
    font-family: 'Excalifont', cursive;
    padding-right: 10px;
}
h1::before {
    content: '🎴 ';
    display: inline-block;
    transform: rotate(-8deg);
}
.subtitle {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
    transform: rotate(-0.3deg);
    display: inline-block;
}
.info-box {
    margin: 0px 0 60px 0;
    position: relative;
}
.endpoint {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 6px 4px 7px 5px / 4px 7px 5px 6px;
    font-family: monospace;
    margin: 10px 0;
    transform: rotate(0.4deg);
    display: inline-block;
    position: relative;
}
.rough-overlay {
    position: absolute;
    top: -5px;
    left: -5px;
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    pointer-events: none;
}
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.stat-card {
    background: linear-gradient(135deg, var(--sideways-orange) 0%, var(--sideways-orange-light) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 10px 14px 8px / 10px 14px 8px 12px;
    text-align: center;
    border: 2px solid rgba(0,0,0,0.1);
    transform: rotate(-1deg);
}
.stat-card:nth-child(even) {
    transform: rotate(1deg);
}
.stat-number {
    font-size: 2.5em;
    font-weight: bold;
}
.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}
h2 {
    color: var(--sideways-orange-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    transform: rotate(-0.5deg);
    display: block;
    width: fit-content;
}
h2:nth-of-type(even) {
    transform: rotate(0.6deg);
}
ul {
    margin-left: 20px;
    line-height: 1.8;
}
ul li, 
ol li {
    margin-bottom: 12px;
    line-height: normal;
}
a {
    color: var(--sideways-orange-dark);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px 3px 5px 2px / 3px 5px 2px 4px;
    font-family: monospace;
    border: 1px solid #e0e0e0;
}

pre > code {
    background: transparent;
    border: none; 
}
.prompt, 
.config-prompt {
    position: relative;
    background: #f5f5f5;
    font-family: monospace;
    font-style: normal;
    padding: 10px 15px;
    display: inline-block;
    margin: 10px 0;
    border-radius: 6px 4px 7px 5px / 4px 7px 5px 6px;
    transform: rotate(0.4deg);
    max-width: calc(100% - 50px);
}
.prompt strong, 
.config-prompt strong, 
strong.excalifont {
    font-family: 'Excalifont', cursive;
    font-weight: normal;
    font-size: 1.15em;
}
.prompt .rough-highlight, 
.config-prompt .rough-highlight {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    pointer-events: none;
    z-index: -1;
}
details {
    margin: 10px 0;
}
summary {
    cursor: pointer;
    padding: 10px;
    background: #fef9f5;
    border-radius: 5px;
    user-select: none;
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}
summary:hover {
    background: #fef3e6;
}
summary::before {
    content: "▸ ";
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.2s;
    font-size: 40px;
}
details:not([open]) > summary:hover::before {
    transform: rotate(20deg);
}
details[open] > summary::before {
    transform: rotate(90deg);
}
.examples-section details,
.configuration-section details {
    margin: 5px 0;
    margin-left: 15px;
}
.examples-section summary,
.configuration-section summary {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    transition: transform 0.2s ease;
}
.examples-section summary:hover,
.configuration-section summary:hover {
    background: none;
    /* transform: rotate(-1.5deg); */
}
/* .configuration-section .config-prompt {
    position: relative;
    background: #f5f5f5;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 6px 4px 7px 5px / 4px 7px 5px 6px;
    transform: rotate(0.4deg);
}
.configuration-section .config-prompt.featured {
    font-weight: bold;
}
.configuration-section .config-prompt .rough-highlight {
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    pointer-events: none;
    z-index: -1;
} */
.example-response, .config-details {
    margin: 15px 65px 15px 45px;
    padding: 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px 6px 10px 5px / 6px 10px 5px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: rotate(-0.3deg);
}
.copy-button {
    position: absolute;
    top: 2px;
    right: 2px;
    background: transparent;
    color: #333;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
    transition: color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}
.copy-button svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}
pre:hover .copy-button,
code:hover .copy-button {
    opacity: 0.8;
}
.copy-button:hover {
    opacity: 1.0;
}
.copy-button.copied {
    color: #4caf50;
}
pre {
    position: relative;
    line-height: 1.5;
    tab-size: 4;
}
code {
    position: relative;
}
.category-list {
    list-style: none;
}
.category-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
    line-height: normal;
}
.category-list li::before {
    content: '🎴';
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}
.category-list li:nth-child(1)::before { transform: rotate(-25deg); }
.category-list li:nth-child(2)::before { transform: rotate(5deg); }
.category-list li:nth-child(3)::before { transform: rotate(-18deg); }
.category-list li:nth-child(4)::before { transform: rotate(12deg); }
.category-list li:nth-child(5)::before { transform: rotate(-8deg); }
.category-list li:nth-child(6)::before { transform: rotate(20deg); }
.category-list li:nth-child(7)::before { transform: rotate(-15deg); }
.category-list li:nth-child(8)::before { transform: rotate(3deg); }
.category-list li:nth-child(9)::before { transform: rotate(-22deg); }
.category-list li:nth-child(10)::before { transform: rotate(8deg); }
.category-list li:hover::before { transform: rotate(0deg) scale(1.2); }
.category-label {
    position: relative;
    padding: 3px 8px;
    display: inline-block;
    transition: transform 0.2s ease;
    color: #000;
    font-style: normal;
}
.category-label:hover {
    transform: rotate(-3deg);
    cursor: default;
}
.category-label .rough-overlay {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
    z-index: -1;
}
.strategy-card {
    margin: 0 0 10px 0;
    font-weight: bold;
    font-size: 1.5em;
    color: var(--sideways-orange-dark);
    font-family: 'Excalifont', cursive;
}

@keyframes inception {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(0.12) rotate(180deg);
        opacity: 0.2;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.inception-active {
    animation: inception 0.8s ease-in-out;
    transform-origin: center bottom;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    h1 {
        font-size: 3em;
    }
    .subtitle {
        font-size: 1em;
    }
    /* Ensure pre and code blocks don't overflow */
    pre {
        max-width: 100%;
        overflow-x: auto;
        word-wrap: break-word;
        white-space: pre-wrap;
    }
    code {
        word-wrap: break-word;
        word-break: break-word;
        max-width: 100%;
    }
    /* Ensure details content doesn't overflow */
    details > div {
        max-width: 100%;
        overflow-x: auto;
    }
    /* Make prompts more compact on mobile */
    .prompt {
        word-wrap: break-word;
    }
    .config-prompt {
        max-width: 100%;
    }

    .example-response, .config-details {
        margin: 15px 15px 15px 0px;
    }

    /* Make disclosure triangle smaller on mobile to prevent wrapping */
    summary::before {
        font-size: 24px;
    }
    /* Reduce stats grid to single column on mobile */
    .stats {
        grid-template-columns: 1fr;
    }
}
