/* A few shared tools, on a page of the Coffee & Fun notebook. */
.cf-source-page {
	--os-ink: #292832;
	--os-muted: #55515c;
	background: #fffaf5;
	color: var(--os-ink);
}
.cf-source-page .cf-header,
.os-hero {
	background: #fef5ec;
}
.os-wrap {
	width: min(1240px, calc(100% - 80px));
	margin-inline: auto;
}
.os-intro {
	position: relative;
	padding: 75px 0 55px;
	text-align: center;
}
.os-intro h1 {
	position: relative;
	font:
		400 clamp(3.4rem, 6vw, 5.2rem)/1.4 'Pacifico',
		cursive;
	letter-spacing: -0.025em;
	color: #984f41;
	text-shadow: 3px 4px #ffb7a9;
	margin: 0 0 21px;
}
.os-intro > p {
	position: relative;
	font-size: clamp(1.05rem, 1.55vw, 1.25rem);
	line-height: 1.7;
	color: var(--os-muted);
}
.os-margin-doodles {
	position: absolute;
	inset: 0;
	pointer-events: none;
	color: #ba8e7c;
}
.os-margin-doodles > span {
	position: absolute;
	display: block;
}
.os-margin-doodles svg {
	width: 100%;
	height: auto;
}
.os-doodle-code {
	width: 140px;
	left: 7%;
	top: 76px;
	transform: rotate(-13deg);
}
.os-doodle-branch {
	width: 108px;
	right: 8%;
	top: 125px;
	color: #839065;
	transform: rotate(9deg);
}
.os-doodle-puzzle {
	width: 49px;
	left: 22%;
	bottom: 37px;
	transform: rotate(13deg);
}
.os-margin-note {
	right: 5%;
	top: 39px;
	font:
		500 1.5rem/1.4 'Caveat',
		cursive;
	color: #704b40;
	transform: rotate(-6deg);
}
.os-hero-links {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 25px;
	flex-wrap: wrap;
	margin-top: 29px;
}
.os-button {
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 25px;
	border-radius: 14px;
	border: 1.5px solid #754533;
	background: #754533;
	color: #fffaf5;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}
.os-button:hover {
	background: #55372b;
}
.os-text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 5px;
}
.os-text-link:hover {
	text-decoration-thickness: 2px;
}
.os-projects {
	padding-block: 28px 65px;
	scroll-margin-top: 30px;
}
.os-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 29px;
}
.os-section-heading h2 {
	font-size: clamp(1.5rem, 2.2vw, 1.85rem);
	font-weight: 720;
	line-height: 1.35;
	letter-spacing: -0.035em;
	margin-bottom: 8px;
}
.os-section-heading p {
	font-size: 0.9375rem;
	color: var(--os-muted);
	line-height: 1.7;
}
.os-section-heading > span {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #754637;
	font:
		500 1.5rem/1.4 'Caveat',
		cursive;
	transform: rotate(-4deg);
}
.os-section-heading > span svg {
	width: 70px;
	height: 42px;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.os-bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 26px;
	align-items: stretch;
}
.os-project {
	display: flex;
	flex-direction: column;
	min-width: 0;
	grid-column: span 5;
	padding: 15px;
	border: 1px solid #b99c7b26;
	border-radius: 27px;
	background: #fff;
	text-decoration: none;
	color: var(--os-ink);
	transition:
		transform 0.2s,
		box-shadow 0.2s;
}
.os-project-1 {
	grid-column: span 7;
}
.os-project-art {
	position: relative;
	aspect-ratio: 800 / 420;
	border-radius: 17px;
	overflow: hidden;
	flex-shrink: 0;
}
.os-project-art img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}
.os-project-art > svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
.os-project-1 .os-project-art {
	color: #8d452d;
	background: #ff9147;
}
.os-project-2 .os-project-art {
	color: #936333;
	background: #ffbe59;
}
.os-project-3 .os-project-art {
	color: #ceaddf;
	background: #271b51;
}
.os-project-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
	padding: 24px 15px 15px;
}
.os-category {
	background: #f7e2cf;
	color: #634834;
	border-radius: 30px;
	font-size: 0.75rem;
	line-height: 1.5;
	padding: 4px 11px;
	font-weight: 650;
	margin-bottom: 12px;
}
.os-project-2 .os-category {
	background: #fff0c9;
	color: #594b25;
}
.os-project-3 .os-category {
	background: #eadef2;
	color: #553c6b;
}
.os-project h3 {
	font-size: clamp(1.4rem, 2vw, 1.85rem);
	font-weight: 720;
	line-height: 1.3;
	letter-spacing: -0.025em;
	margin: 0 0 11px;
}
.os-project p {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--os-muted);
	max-width: 48ch;
	margin: 0 0 20px;
}
.os-project-link {
	display: inline-flex;
	align-items: center;
	margin-top: auto;
	min-height: 44px;
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 5px;
}
.os-project:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px #553c3912;
}
.os-project:hover h3 {
	text-decoration: underline;
	text-underline-offset: 5px;
}
.os-note-card {
	position: relative;
	min-width: 0;
	grid-column: span 7;
	padding: 34px 44px;
	background: #e8e9d4;
	border-radius: 27px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}
.os-note-label {
	position: absolute;
	left: 32px;
	top: 26px;
	color: #515b3e;
	font:
		500 1.35rem/1.4 'Caveat',
		cursive;
	transform: rotate(-6deg);
}
.os-note-art {
	align-self: flex-end;
	width: min(255px, 65%);
	margin: -5px -5px -1px 0;
	color: #7a835d;
	transform: rotate(6deg);
}
.os-note-art svg {
	width: 100%;
	height: auto;
}
.os-note-card h3 {
	font:
		600 clamp(2.3rem, 3.3vw, 3.3rem)/1.1 'Caveat',
		cursive;
	color: #414832;
	letter-spacing: -0.015em;
	margin: 0 0 18px;
}
.os-note-card p {
	font-size: 1rem;
	line-height: 1.7;
	color: #44483d;
	max-width: 43ch;
	margin-bottom: 15px;
}
.os-note-card .os-text-link {
	color: #353c2a;
}
.os-sharing {
	background: #eef0df;
	padding-block: 32px 50px;
}
.os-sharing-intro {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-bottom: 35px;
}
.os-sharing-intro > span {
	width: 100px;
	color: #838c64;
	transform: rotate(-6deg);
}
.os-sharing-intro svg {
	width: 100%;
	height: auto;
}
.os-sharing-intro h2 {
	font:
		600 clamp(2.4rem, 4vw, 3.3rem)/1.3 'Caveat',
		cursive;
	color: #414832;
	margin-bottom: 9px;
}
.os-sharing-intro p {
	font-size: 1rem;
	color: #484c41;
	line-height: 1.7;
}
.os-help-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 23px;
}
.os-help-card {
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 29px;
	background: #fffaf5;
	border: 1px solid #b99c7b26;
	border-radius: 24px;
}
.os-help-card:nth-child(2) {
	background: #f8e6db;
}
.os-help-community {
	background: #e9e0f0;
}
.os-help-drawing {
	display: block;
	width: 74px;
	height: 66px;
	margin-bottom: 18px;
	color: #96755d;
	transform: rotate(-7deg);
}
.os-help-drawing svg {
	width: 100%;
	height: 100%;
}
.os-help-community .os-help-drawing {
	color: #8b719d;
	transform: rotate(6deg);
}
.os-help-card h3 {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	margin-bottom: 12px;
}
.os-help-card p {
	font-size: 0.9375rem;
	color: #4e4954;
	line-height: 1.75;
}
.os-help-card .os-text-link {
	margin-top: 17px;
	font-size: 0.875rem;
}
.cf-source-page main :is(a, button):focus-visible {
	outline: 3px solid #754533;
	outline-offset: 5px;
}
.os-projects:focus {
	outline: none;
}
@media (max-width: 1050px) {
	.os-doodle-code {
		left: 3%;
		width: 110px;
	}
	.os-doodle-branch {
		right: 3%;
		width: 90px;
	}
	.os-doodle-puzzle {
		left: 12%;
	}
	.os-margin-note {
		right: 3%;
		font-size: 1.35rem;
	}
	.os-bento {
		gap: 21px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.os-project,
	.os-note-card {
		grid-column: auto;
	}
	.os-project-copy {
		padding: 20px 10px 10px;
	}
	.os-note-card {
		padding: 28px;
	}
	.os-note-label {
		left: 25px;
		top: 19px;
	}
	.os-note-art {
		width: 195px;
		margin-top: 25px;
	}
	.os-help-grid {
		gap: 17px;
	}
	.os-help-card {
		padding: 24px;
	}
}
@media (max-width: 760px) {
	.os-wrap {
		width: calc(100% - 36px);
	}
	.os-intro {
		padding: 91px 0 37px;
	}
	.os-intro h1 {
		font-size: clamp(2.9rem, 9vw, 4rem);
		text-shadow: 2px 3px #ffb7a9;
		margin-bottom: 19px;
	}
	.os-intro > p {
		font-size: 1rem;
	}
	.os-doodle-code {
		width: 76px;
		top: 23px;
		left: 4%;
	}
	.os-doodle-branch {
		width: 68px;
		top: 18px;
		right: 3%;
	}
	.os-doodle-puzzle {
		display: none;
	}
	.os-margin-note {
		top: 34px;
		left: 30%;
		right: auto;
		font-size: 1.15rem;
	}
	.os-hero-links {
		gap: 8px 20px;
		margin-top: 24px;
	}
	.os-button {
		min-height: 49px;
		font-size: 0.875rem;
		padding-inline: 20px;
	}
	.os-hero-links .os-text-link {
		font-size: 0.875rem;
	}
	.os-projects {
		padding-block: 20px 44px;
	}
	.os-section-heading {
		margin-bottom: 23px;
	}
	.os-section-heading h2 {
		font-size: 1.4rem;
	}
	.os-section-heading p {
		font-size: 0.875rem;
	}
	.os-section-heading > span {
		display: none;
	}
	.os-project {
		padding: 11px;
		border-radius: 23px;
	}
	.os-project-art {
		border-radius: 14px;
	}
	.os-project h3 {
		font-size: 1.35rem;
	}
	.os-project p {
		font-size: 0.9375rem;
	}
	.os-note-card {
		padding: 24px;
		border-radius: 23px;
	}
	.os-note-card h3 {
		font-size: 2.5rem;
	}
	.os-note-card p {
		font-size: 0.9375rem;
	}
	.os-note-art {
		width: 175px;
	}
	.os-note-label {
		font-size: 1.2rem;
	}
	.os-help-grid {
		grid-template-columns: 1fr;
	}
	.os-help-card {
		display: grid;
		grid-template-columns: 1fr 65px;
		column-gap: 18px;
		padding: 25px;
	}
	.os-help-drawing {
		grid-column: 2;
		grid-row: 1 / span 3;
		width: 65px;
		margin: 0;
		align-self: center;
	}
	.os-help-card h3,
	.os-help-card p,
	.os-help-card .os-text-link {
		grid-column: 1;
	}
	.os-sharing {
		padding-block: 20px 35px;
	}
	.os-sharing-intro {
		gap: 15px;
		margin-bottom: 24px;
	}
	.os-sharing-intro > span {
		width: 72px;
		flex-shrink: 0;
	}
	.os-sharing-intro h2 {
		font-size: 2.6rem;
		margin-bottom: 5px;
	}
	.os-sharing-intro p {
		font-size: 0.875rem;
	}
}
@media (max-width: 580px) {
	.os-bento {
		grid-template-columns: 1fr;
		gap: 21px;
	}
	.os-project-copy {
		padding: 21px 13px 12px;
	}
	.os-project h3 {
		font-size: 1.5rem;
	}
	.os-project p {
		margin-bottom: 12px;
	}
	.os-note-card {
		padding: 30px;
	}
	.os-note-art {
		width: 215px;
		margin-top: 20px;
	}
	.os-note-card h3 {
		font-size: 2.9rem;
	}
}
@media (max-width: 370px) {
	.os-help-card {
		display: flex;
		padding: 23px;
	}
	.os-help-drawing {
		align-self: flex-start;
		height: 55px;
		margin-bottom: 14px;
	}
	.os-sharing-intro {
		gap: 5px;
	}
	.os-sharing-intro > span {
		width: 56px;
	}
	.os-sharing-intro h2 {
		font-size: 2.3rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.os-project {
		transition: none;
	}
	.os-project:hover {
		transform: none;
	}
}
@media (forced-colors: active) {
	.os-project,
	.os-note-card,
	.os-help-card,
	.os-button {
		border: 1px solid CanvasText;
	}
	.os-intro h1 {
		text-shadow: none;
	}
	.os-margin-doodles {
		display: none;
	}
}
