@font-face {
	font-family: "Excalifont";
	src: url("/Excalifont-Regular.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
: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);
	height: 100vh;
	max-height: 100vh;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	line-height: 1.3;
}

/* Force scrollbar to always be visible */
html::-webkit-scrollbar {
	-webkit-appearance: none;
	height: 12px;
}

html::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

html::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.4);
	border-radius: 10px;
	border: 2px solid transparent;
	background-clip: content-box;
}

html::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.6);
	background-clip: content-box;
}
body {
	font-family: system-ui, -apple-system, sans-serif;
	background: transparent;
	height: 100vh;
	max-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	position: relative;
	width: fit-content;
}

body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4800px;
	height: 100vh;
	background: linear-gradient(
		90deg,
		var(--sideways-orange) 0%,
		var(--sideways-cream) 100%
	);
	z-index: -1;
}

body::after {
	content: '';
	position: absolute;
	top: 88px;
	left: 0;
	width: 4800px;
	height: 3px;
	background: #333;
	transform: translateY(-50%);
	z-index: 0;
}

nav {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 10;
}

main {
	display: flex;
	align-items: center;
	width: fit-content;
}

.title {
	position: absolute;
	font-size: 10px;
    top: 0.8rem;
    left: 0px;
	min-width: 600px;
	max-width: 600px;
	width: 600px;
	text-align: center;
}

.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 {
	/* Bottom gutter for horizontal scroll */
	left: 10px;
	bottom: 2.5rem;
	top: auto;
	transform: translateY(50%);
	/* transform-origin: center; */
}
.gutter-right {
	/* Bottom gutter for horizontal scroll */
	left: 50%;
	bottom: clamp(-165px, -16.37vw + 70.72px, -55px);
	top: auto;
	transform: translateX(-50%);
	transform-origin: center;
}
.section {
	min-width: 600px;
	max-width: 600px;
	width: 600px;
	height: 100vh;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	scroll-snap-align: start;
	padding: 60px 40px;
	box-sizing: border-box;
	flex-shrink: 0;
}

.section-content {
	background: rgba(255,255,255,0.95);
	border-radius: 20px;
	padding: 40px 40px;
	width: 100%;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	overflow-x: hidden;
	/* Clean border with hand-drawn irregular corners */
	box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
	border: 3px solid #333;
	border-radius: 22px 18px 24px 16px / 18px 24px 16px 22px;
	position: relative;
	z-index: 2;
}

/* Scroll indicator */
.scroll-indicator {
	position: fixed;
	right: 30px;
	top: 10px;
	font-size: 2em;
	color: rgba(0,0,0, 0.6);
	animation: scroll-hint 2s ease-in-out infinite;
	cursor: pointer;
	z-index: 10;
	transition: color 0.2s ease;
}

.scroll-indicator-mobile {
	display: none;
}

.swipe-reminder {
	display: none;
}


@keyframes scroll-hint {
	0%, 100% {
		transform: translateX(0);
		opacity: 0.6;
	}
	50% {
		transform: translateX(10px);
		opacity: 1;
	}
}

@keyframes swipe-wiggle {
	0%, 100% {
		transform: translateX(0);
		opacity: 0.5;
	}
	25% {
		transform: translateX(-8px);
		opacity: 0.7;
	}
	75% {
		transform: translateX(8px);
		opacity: 0.7;
	}
}
h1 {
	color: var(--sideways-orange-dark);
	font-size: 3.5em;
	margin-bottom: 10px;
	display: inline-block;
	font-family: "Excalifont", cursive;
	padding-right: 10px;
    font-weight: normal;
}
.logo-prefix::before {
	content: url('/img/sideways_logo.svg');
	width: 1.2em;
	display: inline-block;
	vertical-align: middle;
	margin-right: 0em;
}
.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: 0px;
	margin-bottom: 35px;
	transform: rotate(-0.5deg);
	display: block;
	width: fit-content;
	font-family: "Excalifont", cursive;	
	font-size: 1.5rem;
}
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;
}

.config-prompt {
	margin: 0px !important;
}
.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: 35px;
	line-height: 1;
}
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 25px 15px 25px;
	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;
}
.copy-button.copied {
	color: #4caf50;
}
pre {
	position: relative;
	line-height: 1.5;
	tab-size: 4;
}
code {
	position: relative;
}
.category-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
}
.category-list li {
	line-height: normal;
}
.credits-list {
	list-style: none;
}
.credits-list li {
	padding-left: 30px;
	position: relative;
	margin-bottom: 12px;
	line-height: normal;
}
.credits-list li::before {
	content: "🎴";
	position: absolute;
	left: 0;
	transition: transform 0.3s ease;
}
.credits-list li:nth-child(1)::before {
	transform: rotate(-25deg);
}
.credits-list li:nth-child(2)::before {
	transform: rotate(5deg);
}
.credits-list li:nth-child(3)::before {
	transform: rotate(-18deg);
}
.credits-list li:nth-child(4)::before {
	transform: rotate(12deg);
}
.credits-list li:nth-child(5)::before {
	transform: rotate(-8deg);
}
.credits-list li:nth-child(6)::before {
	transform: rotate(20deg);
}
.credits-list li:nth-child(7)::before {
	transform: rotate(-15deg);
}
.credits-list li:nth-child(8)::before {
	transform: rotate(3deg);
}
.credits-list li:nth-child(9)::before {
	transform: rotate(-22deg);
}
.credits-list li:nth-child(10)::before {
	transform: rotate(8deg);
}
.credits-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:active {
	transform: rotate(-3deg);
}
.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; */
}

.hidden-example {
	display: none;
}

.show-more-button {
	display: block;
	margin: 15px 0 15px 15px;
	padding: 0;
	background: none;
	color: var(--sideways-orange-dark);
	border: none;
	font-size: 0.95em;
	/* font-weight: bold; */
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	text-align: left;
}

.show-more-button:hover {
	text-decoration: underline;
	color: var(--sideways-orange);
}

@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) {
	html {
		overflow-y: hidden !important;
		height: 100vh !important;
		height: 100dvh !important; /* Dynamic viewport height for iOS */
		max-height: 100vh !important;
		max-height: 100dvh !important;
		width: 100vw;
	}

	body {
		padding: 75px 0 0 0;
		min-height: 100vh !important;
		min-height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		height: 100vh !important;
		height: 100dvh !important;
		overflow-y: hidden !important;
		width: fit-content;
	}

	body::before {
		width: 800vw; /* 8 sections × 100vw per section */
	}

	body::after {
		width: 800vw; /* 8 sections × 100vw per section */
	}

	main {
		width: fit-content;
	}

	.examples-section details {
		margin-left: 0px;
	}
	.examples-section details .prompt {
		max-width: calc(100% - 25px);
	}

	.title {
		min-width: 100vw;
        max-width: 100vw;
        width: 100vw;
	}

	.section {
		min-width: 100vw;
		max-width: 100vw;
		width: 100vw;
		height: 100vh !important;
		height: 100dvh !important;
		max-height: 100vh !important;
		max-height: 100dvh !important;
		padding: 20px 15px;
	}

	.section-content {
		padding: 20px 30px;
		max-height: calc(100vh - 80px);
		max-height: calc(100dvh - 80px); /* Dynamic viewport height for iOS */
	}

	h1 {
		font-size: 2.5em;
	}
	h2 {
		padding-top: 25px;
	}
	.subtitle {
		font-size: 1em;
	}

	.scroll-indicator {
		right: 15px;
		top: unset;
		bottom: 10px;
		font-size: 2.5em;
	}

	.scroll-indicator-mobile {
		display: block;
		position: relative;
		margin: 30px auto 0;
		text-align: center;
		font-size: 2.5em;
	}

	.swipe-reminder {
		display: block;
		position: relative;
		margin: 30px auto 0;
		text-align: center;
		font-size: 1em;
		color: rgba(0, 0, 0, 0.5);
		/* font-style: italic; */
	}

	.swipe-arrow {
		display: inline-block;
		animation: swipe-wiggle 2s ease-in-out infinite;
	}
	/* 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;
		margin: 5px 0 0 0;
	}
	.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;
	}

}
