/*
Theme Name: Mr. Sasse's Classroom
Theme URI: https://mrsasse.com
Author: Mr. Sasse
Description: A bright, hand-made classroom theme for an elementary school teacher's blog. Posts are pinned to a bulletin board as index cards and sticky notes, pages are spiral notebook paper, the menu sits on a wooden ruler, and the site title is underlined in red pen. Fully responsive, accessible, and print-friendly for parents.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mrsasse
Tags: blog, education, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, sticky-post, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ==========================================================================
   1. Fonts (self-hosted, SIL Open Font License)
   ========================================================================== */

@font-face {
	font-family: "Fredoka";
	font-style: normal;
	font-display: swap;
	font-weight: 300 700;
	src: url("assets/fonts/fredoka-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fredoka";
	font-style: normal;
	font-display: swap;
	font-weight: 300 700;
	src: url("assets/fonts/fredoka-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Lexend";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/lexend-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Lexend";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/lexend-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Patrick Hand";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("assets/fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Patrick Hand";
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url("assets/fonts/patrick-hand-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fraunces";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
	/* Bulletin board (overridden from the Customizer) */
	--board: #d5e6ed;

	/* Ink & pens */
	--ink: #2b3945;
	--ink-soft: #55636f;
	--ink-faint: #7d8a95;
	--red-pen: #c8372d;
	--blue-pen: #1b5ea5;
	--green-pen: #2c8650;

	/* Paper */
	--paper: #fffefa;
	--rule: #c3d8ee;
	--margin-line: #f0a3a3;
	--sticky-yellow: #fff2a3;
	--sticky-pink: #ffd7e0;
	--sticky-green: #d7f2cb;
	--sticky-blue: #d4e8fc;
	--sticky-orange: #ffe2bf;
	--manila: #f5e5b8;
	--kraft: #e7d4ad;
	--wood: #f3d68f;
	--wood-dark: #d9b25c;

	/* Crayon box */
	--crayon-red: #e0473c;
	--crayon-orange: #ee8a22;
	--crayon-yellow: #e5ad0c;
	--crayon-green: #3a9e57;
	--crayon-blue: #2f7ccc;
	--crayon-purple: #8a5bc6;

	/* Type */
	--font-display: "Fredoka", "Trebuchet MS", "Segoe UI", sans-serif;
	--font-body: "Lexend", "Segoe UI", system-ui, -apple-system, sans-serif;
	--font-hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
	--font-title: "Fraunces", Georgia, "Times New Roman", serif;

	/* Rhythm */
	--lh: 1.75rem;
	--gutter: 1rem;
	--container: 1180px;
	--radius: 3px;

	/* Shadows: paper sitting on a board */
	--lift: 0 1px 1px rgba(40, 50, 60, 0.08), 0 6px 14px -6px rgba(40, 50, 60, 0.28);
	--lift-high: 0 2px 2px rgba(40, 50, 60, 0.08), 0 16px 26px -10px rgba(40, 50, 60, 0.32);

	/* Textures */
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.22 0 0 0 0 0.25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--scribble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C14 2.5 24 8.5 38 5s30-3 44 0 14 1.5 16 .5' fill='none' stroke='%23c8372d' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (min-width: 720px) {
	:root {
		--gutter: 1.5rem;
	}
}

/* ==========================================================================
   3. Base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background-color: var(--board);
	background-image: var(--noise);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	font-weight: 350;
	line-height: 1.65;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
}

p {
	margin: 0 0 1.1em;
}

a {
	color: var(--blue-pen);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--red-pen);
}

:focus-visible {
	outline: 3px dashed var(--blue-pen);
	outline-offset: 3px;
}

::selection {
	background: rgba(255, 230, 80, 0.7);
	color: var(--ink);
}

hr {
	border: 0;
	height: 2px;
	margin: 2rem 0;
	background: var(--rule);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Accessibility helpers */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	z-index: 100000;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--sticky-yellow);
	color: var(--ink);
	font-weight: 600;
	box-shadow: var(--lift);
	text-decoration: none;
}

/* ==========================================================================
   4. Reusable classroom bits: tape, pins, clips, paper
   ========================================================================== */

/* -- Masking tape ---------------------------------------------------------- */
.tape,
.has-tape::before {
	content: "";
	position: absolute;
	z-index: 3;
	width: 108px;
	height: 28px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
		rgba(241, 233, 205, 0.82);
	clip-path: polygon(2% 0, 98% 0, 100% 16%, 97% 32%, 100% 48%, 97% 64%, 100% 80%, 98% 100%, 2% 100%, 0 84%, 3% 68%, 0 52%, 3% 36%, 0 20%);
	pointer-events: none;
}

.has-tape::before {
	top: -13px;
	left: 50%;
	transform: translateX(-50%) rotate(-2.5deg);
}

/* Washi tape variants */
.tape--stripe,
.has-tape--stripe::before {
	background: repeating-linear-gradient(-45deg, rgba(240, 120, 140, 0.62) 0 7px, rgba(255, 250, 240, 0.7) 7px 14px);
}

.tape--dots,
.has-tape--dots::before {
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 2.5px, transparent 3px) 0 0 / 12px 12px,
		rgba(120, 196, 170, 0.7);
}

.tape--check,
.has-tape--check::before {
	background:
		linear-gradient(90deg, rgba(90, 150, 220, 0.35) 50%, transparent 50%) 0 0 / 14px 14px,
		linear-gradient(rgba(90, 150, 220, 0.35) 50%, transparent 50%) 0 0 / 14px 14px,
		rgba(255, 255, 255, 0.6);
}

/* -- Push pin -------------------------------------------------------------- */
.has-pin::before {
	content: "";
	position: absolute;
	z-index: 3;
	top: -8px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
		radial-gradient(circle at 40% 38%, var(--pin, #ef5b4c), var(--pin-dark, #b02f22) 72%);
	box-shadow: 2px 5px 4px -1px rgba(30, 40, 50, 0.35);
}

/* -- Paper clip ------------------------------------------------------------ */
.has-clip::before {
	content: "";
	position: absolute;
	z-index: 3;
	top: -20px;
	left: -9px;
	width: 22px;
	height: 62px;
	background: url("assets/img/paperclip.svg") no-repeat center / contain;
	transform: rotate(-8deg);
	filter: drop-shadow(1px 2px 1px rgba(30, 40, 50, 0.25));
}

/* -- Paper types ----------------------------------------------------------- */
.paper-index {
	background-color: #fffefb;
}

.paper-sticky-yellow { background-color: var(--sticky-yellow); }
.paper-sticky-pink   { background-color: var(--sticky-pink); }
.paper-sticky-green  { background-color: var(--sticky-green); }
.paper-sticky-blue   { background-color: var(--sticky-blue); }
.paper-sticky-orange { background-color: var(--sticky-orange); }

[class*="paper-sticky"] {
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0, rgba(0, 0, 0, 0) 2.2rem);
}

.paper-graph {
	background-color: #fbfdff;
	background-image:
		linear-gradient(rgba(110, 160, 215, 0.22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(110, 160, 215, 0.22) 1px, transparent 1px);
	background-size: 18px 18px;
	background-position: -1px -1px;
}

.paper-lined {
	background-color: var(--paper);
	background-image: repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px) var(--lh));
}

/* ==========================================================================
   6. Header
   ========================================================================== */

.site-header {
	position: relative;
}

.site-header__inner {
	position: relative;
	padding-top: clamp(1.75rem, 4vw, 3rem);
	padding-bottom: clamp(1.25rem, 3vw, 2rem);
	text-align: center;
}

.site-branding {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
}

.custom-logo-link {
	display: inline-block;
	padding: 6px;
	background: #fff;
	box-shadow: var(--lift);
	transform: rotate(-2deg);
}

.custom-logo {
	display: block;
	max-height: 110px;
	width: auto;
}

.site-title {
	margin: 0;
	font-family: var(--font-title);
	font-weight: 650;
	font-size: clamp(2.3rem, 7.5vw, 4.6rem);
	line-height: 1.08;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 144;
}

.site-title a {
	position: relative;
	display: inline-block;
	padding-bottom: 0.18em;
	color: var(--ink);
	text-decoration: none;
	text-shadow: 0 2px 0 rgba(255, 255, 255, 0.55);
}

/* A teacher's red-pen double underline */
.site-title a::after {
	content: "";
	position: absolute;
	left: 6%;
	right: 4%;
	bottom: 0;
	height: 0.2em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cpath d='M3 7c60-4 150-6 294-2' fill='none' stroke='%23c8372d' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M18 14c70-4 160-5 268-3' fill='none' stroke='%23c8372d' stroke-width='2.4' stroke-linecap='round' opacity='.85'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transform: rotate(-0.6deg);
	clip-path: inset(0 0 0 0);
	transition: clip-path 0.45s ease;
}

.site-title a:hover {
	color: var(--ink);
}

.site-title a:hover::after {
	animation: mrsasse-redraw 0.6s ease;
}

@keyframes mrsasse-redraw {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

/* Tagline on a sentence strip */
.site-description {
	margin: 0;
}

.sentence-strip {
	position: relative;
	display: inline-block;
	padding: 0.35rem 2.25rem 0.2rem;
	font-family: var(--font-hand);
	font-size: clamp(1.25rem, 3.4vw, 1.65rem);
	line-height: 1.5;
	color: var(--ink);
	background-color: #fffaf0;
	background-image:
		linear-gradient(#7aa7d8, #7aa7d8),
		repeating-linear-gradient(90deg, #9cbde0 0 8px, transparent 8px 14px),
		linear-gradient(#e46b62, #e46b62);
	background-size: 100% 2px, 100% 1.5px, 100% 2px;
	background-position: 0 0.42rem, 0 50%, 0 calc(100% - 0.55rem);
	background-repeat: no-repeat;
	box-shadow: var(--lift);
	transform: rotate(-1deg);
}

.sentence-strip::before,
.sentence-strip::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 54px;
	height: 22px;
	background: rgba(241, 233, 205, 0.85);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
}

.sentence-strip::before {
	left: -30px;
	transform: translateY(-50%) rotate(-38deg);
}

.sentence-strip::after {
	right: -30px;
	transform: translateY(-50%) rotate(-38deg);
}

/* Desk doodles around the title */
.doodles {
	display: none;
}

@media (min-width: 1000px) {
	.doodles {
		display: block;
		position: absolute;
		inset: 0;
		pointer-events: none;
		z-index: 1;
	}

	.doodle {
		position: absolute;
		background-repeat: no-repeat;
		background-size: contain;
		filter: drop-shadow(2px 4px 2px rgba(30, 45, 60, 0.18));
	}

	.doodle--pencil {
		left: -1%;
		top: 66%;
		width: 210px;
		height: 31px;
		background-image: url("assets/img/pencil.svg");
		transform: rotate(-14deg);
	}

	.doodle--apple {
		right: 6%;
		top: 46%;
		width: 64px;
		height: 64px;
		background-image: url("assets/img/apple.svg");
		transform: rotate(8deg);
	}

	.doodle--plane {
		right: 1%;
		top: 4%;
		width: 210px;
		height: 86px;
		background-image: url("assets/img/airplane.svg");
		filter: none;
		opacity: 0.9;
	}

	.doodle--star {
		left: 14%;
		top: 10%;
		width: 46px;
		height: 46px;
		background-image: url("assets/img/star.svg");
		transform: rotate(-12deg);
	}
}

/* ==========================================================================
   7. Ruler navigation
   ========================================================================== */

.ruler {
	position: relative;
	z-index: 20;
	min-height: 64px;
	margin-bottom: 2.25rem;
	border-radius: 4px;
	background-color: var(--wood);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Cpath d='M.5 0v18M48.5 0v13M24.5 0v9M72.5 0v9M12.5 0v6M36.5 0v6M60.5 0v6M84.5 0v6M6.5 0v3.5M18.5 0v3.5M30.5 0v3.5M42.5 0v3.5M54.5 0v3.5M66.5 0v3.5M78.5 0v3.5M90.5 0v3.5' stroke='%236b5426' stroke-width='1' opacity='.75'/%3E%3C/svg%3E"),
		repeating-linear-gradient(90deg, rgba(160, 110, 30, 0.07) 0 3px, transparent 3px 11px, rgba(160, 110, 30, 0.05) 11px 13px, transparent 13px 29px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 40%, rgba(120, 80, 20, 0.08));
	background-repeat: repeat-x, repeat, no-repeat;
	background-position: 14px 0, 0 0, 0 0;
	box-shadow:
		inset 0 -3px 0 rgba(150, 105, 35, 0.25),
		0 1px 1px rgba(40, 30, 10, 0.12),
		0 8px 16px -8px rgba(40, 30, 10, 0.4);
}

.ruler__numbers {
	position: absolute;
	top: 0;
	left: 14px;
	right: 0;
	height: 34px;
	overflow: hidden;
	pointer-events: none;
}

.ruler__numbers span {
	position: absolute;
	top: 18px;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-size: 0.68rem;
	font-weight: 600;
	color: rgba(90, 65, 20, 0.7);
	line-height: 1;
}

.ruler__bar {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	min-height: 64px;
	padding: 0 0.75rem 0.4rem;
}

.ruler__label {
	font-family: var(--font-hand);
	font-size: 1.05rem;
	color: rgba(90, 65, 20, 0.75);
	padding-bottom: 0.3rem;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	padding: 0.4rem 0.75rem;
	font: 600 1rem/1 var(--font-display);
	color: var(--ink);
	background: #fffaf0;
	border: 2px solid rgba(90, 65, 20, 0.35);
	border-radius: var(--radius);
	cursor: pointer;
	box-shadow: 2px 2px 0 rgba(90, 65, 20, 0.25);
}

.menu-toggle__icon {
	display: inline-block;
	width: 20px;
	height: 16px;
	background:
		linear-gradient(var(--margin-line), var(--margin-line)) 4px 0 / 1.5px 100% no-repeat,
		repeating-linear-gradient(transparent 0 4px, var(--blue-pen) 4px 6px);
	background-color: #fff;
	border: 1px solid rgba(43, 57, 69, 0.3);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	background: none;
	border: 0;
	position: relative;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before,
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	top: 7px;
	height: 2.5px;
	background: var(--red-pen);
	border-radius: 2px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	transform: rotate(-45deg);
}

/* Menu: mobile first (lined-paper drop-down) */
.primary-menu-wrap {
	display: none;
}

.ruler.is-open .primary-menu-wrap {
	display: block;
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	right: 0;
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	background-color: var(--paper);
	background-image:
		linear-gradient(90deg, transparent 2rem, var(--margin-line) 2rem, var(--margin-line) calc(2rem + 1.5px), transparent calc(2rem + 1.5px)),
		repeating-linear-gradient(transparent 0 calc(2.9rem - 1px), var(--rule) calc(2.9rem - 1px) 2.9rem);
	background-position: 0 0, 0 0.75rem;
	box-shadow: var(--lift-high);
}

.primary-menu,
.primary-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	display: block;
	padding: 0 0.25rem;
	line-height: 2.9rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.15rem;
	color: var(--ink);
	text-decoration: none;
}

.primary-menu ul a {
	padding-left: 1.25rem;
	font-size: 1.05rem;
	font-weight: 400;
}

.primary-menu ul a::before {
	content: "\21B3\00a0";
	color: var(--ink-faint);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu a:hover {
	color: var(--red-pen);
}

@media (min-width: 860px) {
	.ruler__label,
	.menu-toggle {
		display: none;
	}

	.ruler__bar {
		justify-content: center;
		padding-bottom: 0;
	}

	.primary-menu-wrap,
	.ruler.is-open .primary-menu-wrap {
		display: block;
		position: static;
		padding: 0;
		background: none;
		box-shadow: none;
	}

	.primary-menu {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0 0.4rem;
	}

	.primary-menu > li {
		position: relative;
	}

	.primary-menu > li > a {
		position: relative;
		padding: 0.15rem 0.85rem 0.55rem;
		line-height: 1.4;
		font-size: 1.1rem;
	}

	.primary-menu > li > a::after {
		content: "";
		position: absolute;
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.2rem;
		height: 8px;
		background: var(--scribble) no-repeat 0 0 / 100% 100%;
		clip-path: inset(0 100% 0 0);
		transition: clip-path 0.3s ease;
	}

	.primary-menu > li > a:hover::after,
	.primary-menu > li > a:focus-visible::after,
	.primary-menu > .current-menu-item > a::after,
	.primary-menu > .current_page_item > a::after,
	.primary-menu > .current-menu-ancestor > a::after,
	.primary-menu > .current_page_ancestor > a::after {
		clip-path: inset(0 0 0 0);
	}

	.primary-menu > li > a:hover,
	.primary-menu > .current-menu-item > a,
	.primary-menu > .current_page_item > a {
		color: var(--ink);
	}

	/* Drop-down: an index card hanging from the ruler */
	.primary-menu ul {
		position: absolute;
		top: calc(100% + 6px);
		left: 50%;
		z-index: 30;
		min-width: 230px;
		padding: 1.35rem 0 0.4rem;
		background-color: #fffefb;
		background-image:
			linear-gradient(transparent 1rem, #ec9a9a 1rem, #ec9a9a calc(1rem + 2px), transparent calc(1rem + 2px)),
			repeating-linear-gradient(transparent 0 calc(2.4rem - 1px), var(--rule) calc(2.4rem - 1px) 2.4rem);
		background-position: 0 0, 0 1.35rem;
		background-repeat: no-repeat, no-repeat;
		background-size: 100% 100%, 100% 100%;
		box-shadow: var(--lift-high);
		transform: translateX(-50%) rotate(-1deg);
		text-align: left;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.15s ease, visibility 0.15s;
	}

	.primary-menu ul::before {
		content: "";
		position: absolute;
		top: -8px;
		left: 50%;
		width: 18px;
		height: 18px;
		margin-left: -9px;
		border-radius: 50%;
		background:
			radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
			radial-gradient(circle at 40% 38%, #5aa9e6, #2b6fae 72%);
		box-shadow: 2px 5px 4px -1px rgba(30, 40, 50, 0.35);
	}

	.primary-menu li:hover > ul,
	.primary-menu li:focus-within > ul {
		visibility: visible;
		opacity: 1;
	}

	.primary-menu ul a {
		padding: 0 1rem;
		line-height: 2.4rem;
		white-space: nowrap;
	}

	.primary-menu ul a::before {
		content: none;
	}

	.primary-menu ul ul {
		position: static;
		min-width: 0;
		padding: 0 0 0 0.75rem;
		background: none;
		box-shadow: none;
		transform: none;
		visibility: inherit;
		opacity: inherit;
	}

	.primary-menu ul ul::before {
		content: none;
	}
}

/* ==========================================================================
   8. Layout
   ========================================================================== */

.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 3rem;
	padding-bottom: 4rem;
}

@media (min-width: 1000px) {
	.has-sidebar .site-content {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 3.5rem;
	}
}

.site-main {
	min-width: 0;
}

.no-sidebar .site-main {
	width: 100%;
	max-width: 860px;
	margin-inline: auto;
}

/* ==========================================================================
   9. Notebook sheet (single posts & pages)
   ========================================================================== */

.sheet {
	--pad-t: 3.25rem;
	--pad-r: 1.25rem;
	--pad-l: 2.75rem;
	--margin-x: 2rem;
	position: relative;
	padding: var(--pad-t) var(--pad-r) 2.5rem var(--pad-l);
	background-color: var(--paper);
	background-image:
		linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), var(--margin-line) calc(var(--margin-x) - 1px), var(--margin-line) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
		repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px) var(--lh));
	background-position: 0 0, 0 calc(var(--pad-t) - 0.35rem);
	background-size: 100% 100%, 100% 100%;
	background-repeat: no-repeat;
	box-shadow: var(--lift-high);
}

/* Spiral binding across the top */
.sheet::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 1rem;
	right: 1rem;
	height: 40px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='40'%3E%3Cellipse cx='13' cy='29' rx='4.5' ry='4' fill='%23384652' fill-opacity='.28'/%3E%3Cpath d='M10 30C7.5 18 8.5 5 14 4s4.5 12 2.5 25' fill='none' stroke='%23879099' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M10.6 28C8.6 17 9.8 6.5 13.6 5.6' fill='none' stroke='%23e3e7ea' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x 0 0 / 26px 40px;
	pointer-events: none;
}

@media (min-width: 720px) {
	.sheet {
		--pad-t: 4rem;
		--pad-r: 3rem;
		--pad-l: 5.5rem;
		--margin-x: 4.25rem;
	}
}

.entry-header {
	position: relative;
	margin-bottom: var(--lh);
}

.sheet .entry-title {
	margin: 0;
	font-size: clamp(1.85rem, 4.5vw, 2.6rem);
	font-weight: 600;
	/* Two ruled lines per title line, so the meta row below stays on the grid. */
	line-height: calc(var(--lh) * 2);
	/* Nudge the big letters down so they sit on a line. */
	position: relative;
	top: 0.25rem;
}

.has-calendar .entry-title {
	padding-right: 4.75rem;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 1.1rem;
	font-family: var(--font-hand);
	font-size: 1.15rem;
	line-height: var(--lh);
	color: var(--ink-soft);
	position: relative;
	top: 0.3rem;
}

.entry-meta a {
	color: inherit;
}

.entry-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.meta-icon {
	width: 1.05em;
	height: 1.05em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Breadcrumb for child pages: a folder path */
.breadcrumbs {
	margin: 0;
	line-height: var(--lh);
	font-family: var(--font-hand);
	font-size: 1.1rem;
	color: var(--ink-faint);
}

.breadcrumbs a {
	color: var(--ink-soft);
}

.breadcrumbs .sep {
	margin: 0 0.35rem;
}

/* Tear-off calendar date */
.calendar {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	width: 3.9rem;
	text-align: center;
	background: #fff;
	box-shadow: var(--lift);
	line-height: 1;
	font-family: var(--font-display);
	text-decoration: none;
	color: var(--ink);
}

.calendar__month {
	display: block;
	padding: 0.32rem 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--crayon-red);
	background-image: radial-gradient(circle at 25% 0.25rem, rgba(0, 0, 0, 0.3) 0 2px, transparent 2.5px), radial-gradient(circle at 75% 0.25rem, rgba(0, 0, 0, 0.3) 0 2px, transparent 2.5px);
}

.calendar__day {
	display: block;
	padding: 0.25rem 0 0.05rem;
	font-size: 1.65rem;
	font-weight: 600;
}

.calendar__year {
	display: block;
	padding-bottom: 0.3rem;
	font-size: 0.66rem;
	color: var(--ink-faint);
	letter-spacing: 0.05em;
}

.sheet .calendar {
	position: absolute;
	top: -0.75rem;
	right: 0;
	transform: rotate(4deg);
}

/* Featured image as a taped photo */
.taped-photo {
	position: relative;
	display: block;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto var(--lh);
	padding: 0.6rem 0.6rem 0.6rem;
	background: #fff;
	box-shadow: var(--lift);
	transform: rotate(-1.2deg);
}

.taped-photo img {
	display: block;
	width: 100%;
	height: auto;
}

.taped-photo::before {
	content: "";
	position: absolute;
	top: -12px;
	left: -22px;
	width: 96px;
	height: 26px;
	background: rgba(241, 233, 205, 0.85);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
	transform: rotate(-32deg);
	z-index: 2;
}

.taped-photo::after {
	content: "";
	position: absolute;
	bottom: -10px;
	right: -22px;
	width: 96px;
	height: 26px;
	background: rgba(241, 233, 205, 0.85);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
	transform: rotate(-32deg);
}

/* Entry footer */
.entry-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: var(--lh);
	padding-top: 1rem;
}

.edit-link a {
	font-family: var(--font-hand);
	font-size: 1.15rem;
	color: var(--red-pen);
	text-decoration: none;
}

.edit-link a::before {
	content: "\270E\00a0";
}

/* ==========================================================================
   10. Entry content (the stuff Mr. Sasse writes)
   ========================================================================== */

.entry-content {
	line-height: var(--lh);
	overflow-wrap: break-word;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: var(--lh);
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

/*
 * Everything in the content is a whole number of ruled lines tall,
 * so the writing sits on the lines all the way down the page.
 */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	position: relative;
	margin-top: var(--lh);
	margin-bottom: 0;
	line-height: var(--lh);
}

.entry-content > h2:first-child,
.entry-content > h3:first-child {
	margin-top: 0;
}

.entry-content h2 {
	top: -0.2rem; /* larger letters sit lower; lift them back onto the line */
	margin-top: calc(var(--lh) * 2);
	font-size: 1.6rem;
}

/* Highlighter swipe behind section headings */
.entry-content h2:not(.has-background) {
	width: fit-content;
	max-width: 100%;
	padding: 0 0.2em;
	margin-left: -0.2em;
	background-image: repeating-linear-gradient(180deg, transparent 0 48%, rgba(255, 228, 77, 0.62) 48% 92%, transparent 92% 100%);
	background-size: 100% var(--lh);
}

.entry-content h3 {
	font-size: 1.3rem;
}

.entry-content h4 {
	font-size: 1.1rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.6rem;
}

.entry-content li {
	margin-bottom: 0;
}

.entry-content li::marker {
	color: var(--red-pen);
	font-family: var(--font-display);
	font-weight: 600;
}

.entry-content strong,
.entry-content b {
	font-weight: 600;
}

.entry-content a:hover {
	background: rgba(255, 228, 77, 0.55);
	color: var(--ink);
}

/* Quotes: a sticky note stuck onto the page */
.entry-content blockquote,
.entry-content .wp-block-quote {
	position: relative;
	margin: calc(var(--lh) * 1.25) auto calc(var(--lh) * 1.25);
	max-width: 92%;
	padding: 1.75rem 1.5rem 1.25rem 3.25rem;
	background: var(--sticky-yellow);
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 2rem);
	border: 0;
	box-shadow: var(--lift);
	transform: rotate(-0.8deg);
	font-style: normal;
	line-height: 1.7;
}

.entry-content blockquote::before,
.entry-content .wp-block-quote::before {
	content: "\201C";
	position: absolute;
	left: 0.75rem;
	top: 0.6rem;
	font-family: Georgia, serif;
	font-size: 4rem;
	line-height: 1;
	color: var(--red-pen);
	opacity: 0.85;
}

.entry-content blockquote::after,
.entry-content .wp-block-quote::after {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 100px;
	height: 26px;
	transform: translateX(-50%) rotate(2deg);
	background: rgba(241, 233, 205, 0.8);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
}

.entry-content blockquote p {
	margin-bottom: 0.75rem;
}

.entry-content blockquote p:last-of-type {
	margin-bottom: 0;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
	display: block;
	margin-top: 0.6rem;
	font-family: var(--font-hand);
	font-size: 1.15rem;
	font-style: normal;
	color: var(--ink-soft);
}

.entry-content blockquote cite::before {
	content: "\2014\00a0";
}

@media (max-width: 600px) {
	.entry-content blockquote,
	.entry-content .wp-block-quote {
		max-width: none;
		margin-inline: -0.25rem;
		padding: 2.75rem 1.1rem 1.1rem;
	}

	.entry-content blockquote::before,
	.entry-content .wp-block-quote::before {
		top: 0.35rem;
		font-size: 3.2rem;
	}
}

/* Pull quote: big handwriting on an index card */
.entry-content .wp-block-pullquote {
	padding: 1.5rem;
	border: 0;
	background: #fff;
	box-shadow: var(--lift);
	text-align: center;
}

.entry-content .wp-block-pullquote blockquote {
	max-width: none;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	transform: none;
	font-family: var(--font-hand);
	font-size: 1.6rem;
	line-height: 1.35;
}

.entry-content .wp-block-pullquote blockquote::before,
.entry-content .wp-block-pullquote blockquote::after {
	content: none;
}

/* Images */
.entry-content img {
	border-radius: 2px;
}

.wp-block-image figcaption,
.wp-element-caption,
.wp-caption-text {
	margin-top: 0.4rem;
	font-family: var(--font-hand);
	font-size: 1.1rem;
	line-height: 1.4;
	color: var(--ink-soft);
	text-align: center;
}

.wp-caption {
	max-width: 100%;
}

.alignleft {
	float: left;
	margin: 0.3rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.3rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignwide,
.entry-content > .alignfull {
	margin-left: calc(var(--pad-l, 0px) * -1 + var(--margin-x, 0px) + 0.5rem);
	margin-right: calc(var(--pad-r, 0px) * -1);
	max-width: none;
	width: auto;
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

/* Tables on graph paper */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	background-color: #fbfdff;
	background-image:
		linear-gradient(rgba(110, 160, 215, 0.18) 1px, transparent 1px),
		linear-gradient(90deg, rgba(110, 160, 215, 0.18) 1px, transparent 1px);
	background-size: 14px 14px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.entry-content th,
.entry-content td {
	padding: 0.5rem 0.75rem;
	border: 1.5px solid #9fbddc;
	text-align: left;
}

.entry-content th,
.entry-content thead td {
	font-family: var(--font-display);
	font-weight: 600;
	background: rgba(212, 232, 252, 0.7);
}

.wp-block-table {
	overflow-x: auto;
}

/* Code */
.entry-content code,
.entry-content kbd {
	padding: 0.1em 0.35em;
	font-size: 0.9em;
	background: rgba(255, 242, 163, 0.7);
	border-radius: 2px;
}

.entry-content pre {
	padding: 1rem 1.25rem;
	overflow-x: auto;
	background: #f6f8fa;
	border-left: 4px solid var(--rule);
	line-height: 1.5;
}

.entry-content pre code {
	padding: 0;
	background: none;
}

/* Separators */
.entry-content hr,
.wp-block-separator {
	border: 0;
	height: 10px;
	margin: calc(var(--lh) * 1.5) auto;
	background: var(--scribble) no-repeat center / 100% 100%;
	opacity: 0.8;
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots):not(.is-style-pencil):not(.is-style-ruler) {
	max-width: 160px;
}

.wp-block-separator.is-style-dots {
	height: auto;
	background: none;
}

/* Buttons: cut-paper labels, never pills */
.wp-block-button__link,
.wp-element-button,
.button,
button[type="submit"],
input[type="submit"] {
	display: inline-block;
	padding: 0.7rem 1.3rem 0.65rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ink);
	text-decoration: none;
	background-color: #f7cd4a;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	box-shadow: 3px 3px 0 var(--ink);
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	color: var(--ink);
	background-color: #fad967;
	transform: translate(-1px, -1px);
	box-shadow: 4px 4px 0 var(--ink);
}

.wp-block-button__link:active,
button[type="submit"]:active,
input[type="submit"]:active {
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button__link.is-style-outline {
	background: #fff;
	color: var(--ink);
	border: 2px solid var(--ink);
}

.wp-block-buttons {
	gap: 1rem;
}

/* File download block */
.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: var(--manila);
	box-shadow: var(--lift);
}

.wp-block-file .wp-block-file__button {
	margin-left: auto;
	padding: 0.45rem 0.9rem;
	font-size: 0.95rem;
}

/* Embeds */
.wp-block-embed__wrapper iframe {
	display: block;
	width: 100%;
}

/* ==========================================================================
   11. Block styles (pick these in the editor's "Styles" panel)
   ========================================================================== */

.is-style-sticky-note,
.is-style-index-card,
.is-style-graph-paper {
	position: relative;
	padding: 1.75rem 1.5rem 1.5rem !important;
	box-shadow: var(--lift);
	line-height: 1.7;
}

.is-style-sticky-note {
	background-color: var(--sticky-yellow);
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 2rem);
	transform: rotate(-1deg);
}

.is-style-sticky-note::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
		radial-gradient(circle at 40% 38%, #ef5b4c, #b02f22 72%);
	box-shadow: 2px 5px 4px -1px rgba(30, 40, 50, 0.35);
}

.is-style-sticky-note.has-background {
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 2rem);
}

.is-style-index-card {
	background-color: #fffefb;
	background-image:
		linear-gradient(transparent 1.25rem, #ec9a9a 1.25rem, #ec9a9a calc(1.25rem + 2px), transparent calc(1.25rem + 2px)),
		repeating-linear-gradient(transparent 0 calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px) var(--lh));
	background-position: 0 0, 0 calc(1.25rem + 2px);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	padding-top: 2.25rem !important;
	line-height: var(--lh);
}

.is-style-index-card > :first-child {
	margin-top: 0;
}

.is-style-graph-paper {
	background-color: #fbfdff;
	background-image:
		linear-gradient(rgba(110, 160, 215, 0.22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(110, 160, 215, 0.22) 1px, transparent 1px);
	background-size: 18px 18px;
}

.is-style-sticky-note > :last-child,
.is-style-index-card > :last-child,
.is-style-graph-paper > :last-child {
	margin-bottom: 0;
}

/* Taped / Polaroid photos */
.wp-block-image.is-style-taped,
.wp-block-image.is-style-polaroid {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0.6rem;
	background: #fff;
	box-shadow: var(--lift);
	transform: rotate(-1.5deg);
}

.wp-block-image.is-style-polaroid {
	padding-bottom: 0.4rem;
	transform: rotate(1.5deg);
}

.wp-block-image.is-style-polaroid figcaption {
	margin: 0.5rem 0 0.1rem;
	font-size: 1.3rem;
	color: var(--ink);
}

.wp-block-image.is-style-taped::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -13px;
	left: 50%;
	width: 110px;
	height: 28px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(241, 233, 205, 0.82);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
}

.wp-block-image.is-style-taped img,
.wp-block-image.is-style-polaroid img {
	display: block;
	border-radius: 0;
}

/* Checklist */
.wp-block-list.is-style-checklist,
ul.is-style-checklist {
	list-style: none;
	padding-left: 0.25rem;
}

.is-style-checklist li {
	position: relative;
	padding-left: 2.1rem;
}

.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3rem;
	width: 1.15rem;
	height: 1.15rem;
	border: 2px solid var(--ink-soft);
	border-radius: 2px;
	background: #fff;
}

.is-style-checklist li::after {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: -0.05rem;
	width: 1.4rem;
	height: 1.2rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M2 11.5l6 6L22 2' fill='none' stroke='%232c8650' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Pencil & ruler separators */
.wp-block-separator.is-style-pencil {
	max-width: 280px;
	height: 38px;
	background: url("assets/img/pencil.svg") no-repeat center / contain;
	opacity: 1;
}

.wp-block-separator.is-style-ruler {
	max-width: none;
	height: 26px;
	border-radius: 3px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='20'%3E%3Cpath d='M.5 0v14M48.5 0v10M24.5 0v7M72.5 0v7M12.5 0v4M36.5 0v4M60.5 0v4M84.5 0v4' stroke='%236b5426' stroke-width='1' opacity='.75'/%3E%3C/svg%3E") repeat-x 8px 0,
		var(--wood);
	box-shadow: var(--lift);
	opacity: 1;
}

/* Handwriting text (paragraph style) */
.is-style-handwriting {
	font-family: var(--font-hand);
	font-size: 1.35em;
	line-height: var(--lh);
}

/* ==========================================================================
   12. Bulletin board of posts (blog, archives, search)
   ========================================================================== */

.board-header {
	margin-bottom: 2.5rem;
	text-align: center;
}

/* Folder tab label for archive / search titles */
.folder-label {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 0.85rem 1.75rem 0.75rem;
	background: var(--manila);
	box-shadow: var(--lift);
	font-size: clamp(1.4rem, 3.5vw, 1.9rem);
	transform: rotate(-1deg);
}

.folder-label::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 1rem;
	width: 40%;
	height: 16px;
	background: var(--manila);
	clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.folder-label__kicker {
	display: block;
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 1.05rem;
	color: var(--ink-soft);
}

.archive-description {
	max-width: 620px;
	margin: 1.25rem auto 0;
	color: var(--ink-soft);
}

.board-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.75rem 2.25rem;
	align-items: start;
	padding-top: 0.75rem;
}

@media (min-width: 720px) {
	.board-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.board-grid > .note--featured {
		grid-column: 1 / -1;
	}
}

.note {
	--rot: 0deg;
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: var(--lift);
	transform: rotate(var(--rot));
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.note:hover,
.note:focus-within {
	transform: rotate(0deg) translateY(-4px);
	box-shadow: var(--lift-high);
}

.board-grid > .note:nth-child(6n + 1) { --rot: -1.2deg; }
.board-grid > .note:nth-child(6n + 2) { --rot: 0.9deg; }
.board-grid > .note:nth-child(6n + 3) { --rot: 0.6deg; }
.board-grid > .note:nth-child(6n + 4) { --rot: -0.9deg; }
.board-grid > .note:nth-child(6n + 5) { --rot: 1.1deg; }
.board-grid > .note:nth-child(6n + 6) { --rot: -0.5deg; }
.board-grid > .note:nth-child(even) { margin-top: 0.75rem; }

/* pin colors cycle */
.board-grid > .note:nth-child(3n + 1) { --pin: #ef5b4c; --pin-dark: #b02f22; }
.board-grid > .note:nth-child(3n + 2) { --pin: #5aa9e6; --pin-dark: #2b6fae; }
.board-grid > .note:nth-child(3n + 3) { --pin: #6cc08b; --pin-dark: #2f8a52; }

/* Index card head: title above the red line */
.note--index .note__head {
	margin: -1.5rem -1.5rem 0.9rem;
	padding: 1.5rem 1.5rem 0.55rem;
	border-bottom: 2px solid #ec9a9a;
}

.note--index {
	background-color: #fffefb;
	background-image: repeating-linear-gradient(transparent 0 calc(1.7rem - 1px), var(--rule) calc(1.7rem - 1px) 1.7rem);
	background-position: 0 0.35rem;
}

.note--index .note__head {
	background: #fffefb;
}

.note--index .note__photo + .note__head {
	margin-top: 0;
	padding-top: 0.5rem;
	margin-inline: -1.5rem;
}

.note__photo {
	display: block;
	margin: 0 0 1rem;
	padding: 0.45rem 0.45rem 1.25rem;
	background: #fff;
	box-shadow: 0 1px 3px rgba(40, 50, 60, 0.2);
	transform: rotate(1.5deg);
}

.note:nth-child(even) .note__photo {
	transform: rotate(-1.5deg);
}

.note__photo img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.note__head {
	padding-right: 4.25rem;
}

.note__title {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.25;
}

.note--featured .note__title {
	font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.note__title a {
	color: var(--ink);
	text-decoration: none;
	background-image: linear-gradient(rgba(255, 228, 77, 0.65), rgba(255, 228, 77, 0.65));
	background-size: 0 0.45em;
	background-position: 0 88%;
	background-repeat: no-repeat;
	transition: background-size 0.3s ease;
}

.note__title a:hover,
.note__title a:focus-visible {
	background-size: 100% 0.45em;
}

/* Make the whole card clickable via the title link */
.note__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.note .calendar {
	position: absolute;
	top: -0.35rem;
	right: -0.35rem;
	width: 3.4rem;
	transform: rotate(5deg);
	z-index: 2;
}

.note .calendar__day {
	font-size: 1.4rem;
}

.note__meta {
	margin-top: 0.35rem;
	font-family: var(--font-hand);
	font-size: 1.05rem;
	color: var(--ink-soft);
}

.note__excerpt {
	flex: 1;
	font-size: 0.98rem;
	line-height: 1.7rem;
	color: var(--ink);
}

.note__excerpt p {
	margin: 0 0 0.75rem;
}

.note__footer {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-top: 0.5rem;
}

.read-more {
	font-family: var(--font-hand);
	font-size: 1.25rem;
	color: var(--blue-pen);
	text-decoration: none;
	white-space: nowrap;
}

.read-more:hover {
	color: var(--red-pen);
}

.read-more span {
	display: inline-block;
	transition: transform 0.2s ease;
}

.read-more:hover span {
	transform: translateX(4px);
}

/* Gold star sticker for featured (sticky) posts */
.gold-star {
	position: absolute;
	z-index: 4;
	top: -18px;
	left: -16px;
	width: 58px;
	height: 58px;
	background: url("assets/img/star.svg") no-repeat center / contain;
	transform: rotate(-14deg);
	filter: drop-shadow(1px 2px 1px rgba(30, 40, 50, 0.25));
}

.note--featured .note__head {
	padding-left: 1.75rem;
}

/* Category & tag labels: rectangular tags with a punched hole, never pills */
.labels {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.label {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 0.15rem 0.6rem 0.15rem 1.15rem;
	font-family: var(--font-display);
	font-size: 0.82rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ink);
	text-decoration: none;
	background-color: var(--manila);
	clip-path: polygon(0.55rem 0, 100% 0, 100% 100%, 0.55rem 100%, 0 50%);
}

.label::before {
	content: "";
	position: absolute;
	left: 0.5rem;
	top: 50%;
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 50%;
	background: rgba(43, 57, 69, 0.45);
}

a.label:hover {
	color: var(--ink);
	background-color: #f7cd4a;
}

.label--tag {
	background-color: var(--sticky-blue);
}

.label--tag:not(:empty)::after {
	content: none;
}

/* Pagination: worksheet answer boxes */
.pagination,
.comments-pagination,
.post-navigation {
	margin-top: 3rem;
}

.pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 0.5rem;
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
	text-decoration: none;
	background: #fff;
	border: 2px solid rgba(43, 57, 69, 0.25);
	border-radius: 2px;
}

a.page-numbers:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.page-numbers.current {
	position: relative;
	border-color: transparent;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 50' preserveAspectRatio='none'%3E%3Cpath d='M33 5C48 4 57 14 55 26S40 46 26 45 3 35 5 23 18 5 36 7' fill='none' stroke='%23c8372d' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	color: var(--red-pen);
}

.page-numbers.dots {
	background: none;
	border: 0;
}

.page-numbers.prev,
.page-numbers.next {
	padding: 0 1rem;
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 1.2rem;
	background: var(--sticky-yellow);
	border: 0;
	box-shadow: var(--lift);
}

/* Previous / next post: two sticky notes */
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.post-navigation .nav-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.post-navigation .nav-next {
		grid-column: 2;
		text-align: right;
	}
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 1rem 1.25rem;
	color: var(--ink);
	text-decoration: none;
	background: var(--sticky-blue);
	box-shadow: var(--lift);
	transform: rotate(-1deg);
	transition: transform 0.2s ease;
}

.post-navigation .nav-next a {
	background: var(--sticky-pink);
	transform: rotate(1deg);
}

.post-navigation a:hover {
	transform: rotate(0) translateY(-3px);
}

.post-navigation .nav-kicker {
	display: block;
	font-family: var(--font-hand);
	font-size: 1.1rem;
	color: var(--ink-soft);
}

.post-navigation .nav-title {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
	line-height: 1.3;
}

/* "HELLO my name is" author tag */
.name-tag {
	position: relative;
	max-width: 520px;
	margin: 3rem auto 0;
	overflow: hidden;
	background: #fff;
	border-radius: 6px;
	box-shadow: var(--lift);
	transform: rotate(-1deg);
}

.name-tag__band {
	padding: 0.6rem 1rem 0.5rem;
	text-align: center;
	color: #fff;
	background: var(--crayon-red);
	line-height: 1.05;
}

.name-tag__hello {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.9rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.name-tag__sub {
	display: block;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.05em;
}

.name-tag__body {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	padding: 1.1rem 1.4rem 1.2rem;
	border-bottom: 14px solid var(--crayon-red);
}

.name-tag__avatar {
	flex: none;
	border-radius: 4px;
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(40, 50, 60, 0.25);
	transform: rotate(-3deg);
}

.name-tag__text {
	min-width: 0;
}

.name-tag__name {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 2.1rem;
	line-height: 1.1;
	color: var(--blue-pen);
}

.name-tag__bio {
	margin: 0.3rem 0 0.4rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.name-tag__link {
	font-family: var(--font-hand);
	font-size: 1.15rem;
	text-decoration: none;
}

.pencil-divider {
	width: min(340px, 80%);
	height: 46px;
	margin: 2.5rem auto 0;
	background: url("assets/img/pencil.svg") no-repeat center / contain;
	filter: drop-shadow(2px 4px 2px rgba(30, 45, 60, 0.18));
	transform: rotate(-2deg);
}

/* ==========================================================================
   13. Resource Board page template (child pages as folders)
   ========================================================================== */

.folder-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 2.25rem 1.75rem;
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.folder {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 150px;
	margin-top: 14px;
	padding: 1.15rem 1.25rem 1.1rem;
	color: var(--ink);
	text-decoration: none;
	background: var(--manila);
	box-shadow: var(--lift);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.folder::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 0;
	width: 45%;
	height: 15px;
	background: var(--manila);
	clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.folder:hover {
	color: var(--ink);
	transform: translateY(-4px) rotate(-0.6deg);
	box-shadow: var(--lift-high);
}

.folder__title {
	margin: 0 0 0.35rem;
	font-size: 1.2rem;
}

.folder__excerpt {
	flex: 1;
	margin: 0 0 0.6rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--ink-soft);
}

.folder__open {
	font-family: var(--font-hand);
	font-size: 1.15rem;
	color: var(--blue-pen);
}

.folder-grid li:nth-child(4n + 2) .folder,
.folder-grid li:nth-child(4n + 2) .folder::before { background: #f3d7a6; }
.folder-grid li:nth-child(4n + 3) .folder,
.folder-grid li:nth-child(4n + 3) .folder::before { background: #d9e8c4; }
.folder-grid li:nth-child(4n + 4) .folder,
.folder-grid li:nth-child(4n + 4) .folder::before { background: #d7e3f4; }

/* ==========================================================================
   14. Sidebar: sticky notes
   ========================================================================== */

.widget-area {
	min-width: 0;
}

.sidebar .widget {
	position: relative;
	margin: 0 0 2.25rem;
	padding: 1.75rem 1.5rem 1.4rem;
	font-size: 0.97rem;
	box-shadow: var(--lift);
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035) 0, rgba(0, 0, 0, 0) 2.2rem);
}

.sidebar .widget:empty {
	display: none;
}

.sidebar .widget:nth-child(4n + 1) { background-color: var(--sticky-yellow); transform: rotate(1deg); }
.sidebar .widget:nth-child(4n + 2) { background-color: var(--sticky-pink); transform: rotate(-1.2deg); }
.sidebar .widget:nth-child(4n + 3) { background-color: var(--sticky-green); transform: rotate(0.7deg); }
.sidebar .widget:nth-child(4n + 4) { background-color: var(--sticky-blue); transform: rotate(-0.6deg); }

/* attachments cycle: tape, pin, tape, washi */
.sidebar .widget::before {
	content: "";
	position: absolute;
	z-index: 3;
	pointer-events: none;
}

.sidebar .widget:nth-child(4n + 1)::before,
.sidebar .widget:nth-child(4n + 3)::before {
	top: -12px;
	left: 50%;
	width: 104px;
	height: 26px;
	transform: translateX(-50%) rotate(-3deg);
	background: rgba(241, 233, 205, 0.82);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
}

.sidebar .widget:nth-child(4n + 3)::before {
	background: repeating-linear-gradient(-45deg, rgba(240, 120, 140, 0.62) 0 7px, rgba(255, 250, 240, 0.7) 7px 14px);
	transform: translateX(-50%) rotate(2deg);
}

.sidebar .widget:nth-child(4n + 2)::before,
.sidebar .widget:nth-child(4n + 4)::before {
	top: -8px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
		radial-gradient(circle at 40% 38%, #5aa9e6, #2b6fae 72%);
	box-shadow: 2px 5px 4px -1px rgba(30, 40, 50, 0.35);
}

.sidebar .widget:nth-child(4n + 4)::before {
	background:
		radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
		radial-gradient(circle at 40% 38%, #ef5b4c, #b02f22 72%);
}

.widget-title,
.widget h2,
.widget .wp-block-heading {
	margin: 0 0 0.75rem;
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 1.65rem;
	line-height: 1.2;
	color: var(--ink);
}

.widget ul,
.widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	padding: 0.4rem 0;
	border-bottom: 1.5px dashed rgba(43, 57, 69, 0.18);
	line-height: 1.45;
}

.widget li:last-child {
	border-bottom: 0;
}

.widget li ul {
	margin-top: 0.4rem;
	padding-left: 1rem;
	border-top: 1.5px dashed rgba(43, 57, 69, 0.18);
}

.widget li li:last-child {
	padding-bottom: 0;
}

.widget a {
	color: var(--ink);
	text-decoration: none;
}

.widget a:hover {
	color: var(--red-pen);
	text-decoration: underline;
}

.widget select {
	max-width: 100%;
}

.widget p:last-child {
	margin-bottom: 0;
}

.widget .post-date {
	display: block;
	font-family: var(--font-hand);
	font-size: 1rem;
	color: var(--ink-soft);
}

/* Calendar widget */
.wp-calendar-table {
	width: 100%;
	border-collapse: collapse;
	text-align: center;
	font-size: 0.9rem;
}

.wp-calendar-table caption {
	font-family: var(--font-display);
	font-weight: 600;
	padding-bottom: 0.4rem;
}

.wp-calendar-table th,
.wp-calendar-table td {
	padding: 0.25rem;
}

.wp-calendar-table #today {
	color: var(--red-pen);
	font-weight: 700;
}

/* ==========================================================================
   15. Forms & search
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
	width: 100%;
	padding: 0.6rem 0.75rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	border: 2px solid rgba(43, 57, 69, 0.28);
	border-radius: var(--radius);
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--blue-pen);
	outline: none;
	box-shadow: 0 0 0 3px rgba(27, 94, 165, 0.2);
}

textarea {
	min-height: 9rem;
	line-height: 1.75rem;
	background-color: var(--paper);
	background-image: repeating-linear-gradient(transparent 0 calc(1.75rem - 1px), var(--rule) calc(1.75rem - 1px) 1.75rem);
	background-attachment: local;
	background-position: 0 0.55rem;
}

label {
	display: inline-block;
	margin-bottom: 0.3rem;
	font-family: var(--font-display);
	font-weight: 500;
}

.search-form {
	display: flex;
	align-items: stretch;
}

.search-form label {
	flex: 1;
	margin: 0;
}

.search-form .search-field {
	height: 100%;
	border-right: 0;
	border-radius: var(--radius) 0 0 var(--radius);
}

.search-form .search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.85rem;
	border-radius: 0 var(--radius) var(--radius) 0;
	box-shadow: none;
}

.search-form .search-submit:hover {
	transform: none;
	box-shadow: none;
}

.search-form .search-submit svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* Block search widget */
.wp-block-search__inside-wrapper {
	display: flex;
}

.wp-block-search__label {
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 1.5rem;
}

.wp-block-search__button {
	margin-left: 0;
	border-radius: 0 var(--radius) var(--radius) 0;
	box-shadow: none;
	padding: 0.5rem 0.9rem;
}

/* ==========================================================================
   16. Comments: notes passed in class
   ========================================================================== */

.comments-area {
	margin-top: 3.5rem;
}

.comments-title,
.comment-reply-title {
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 2rem;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: clamp(1rem, 5vw, 3rem);
}

.comment-body {
	position: relative;
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.25rem 1rem;
	background-color: #fffefb;
	background-image: repeating-linear-gradient(transparent 0 calc(1.7rem - 1px), var(--rule) calc(1.7rem - 1px) 1.7rem);
	background-position: 0 3.4rem;
	box-shadow: var(--lift);
}

.comment-list > li:nth-child(even) > .comment-body {
	background-color: var(--sticky-yellow);
	background-image: none;
}

.bypostauthor > .comment-body {
	background-color: var(--sticky-green);
	background-image: none;
}

.bypostauthor > .comment-body::after {
	content: "Teacher";
	position: absolute;
	top: -0.75rem;
	right: 1rem;
	padding: 0.1rem 0.6rem;
	font-family: var(--font-hand);
	font-size: 1rem;
	color: #fff;
	background: var(--green-pen);
	transform: rotate(3deg);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin-bottom: 0.65rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #ec9a9a;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-display);
	font-weight: 600;
}

.comment-author .avatar {
	border-radius: 2px;
	border: 3px solid #fff;
	box-shadow: 0 1px 3px rgba(40, 50, 60, 0.25);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	font-family: var(--font-hand);
	font-size: 1rem;
}

.comment-metadata a {
	color: var(--ink-faint);
	text-decoration: none;
}

.comment-content {
	line-height: 1.7rem;
}

.reply a {
	font-family: var(--font-hand);
	font-size: 1.1rem;
	text-decoration: none;
}

/* Comment form: an airmail envelope with a stamp and postmark */
.comment-respond {
	position: relative;
	margin-top: 2.5rem;
	padding: 2rem clamp(1.1rem, 4vw, 2.25rem) 1.75rem;
	background: #fffaf0;
	border: 12px solid transparent;
	border-image: repeating-linear-gradient(-45deg, #d9574f 0 14px, transparent 14px 24px, #3f7cc4 24px 38px, transparent 38px 48px) 12;
	box-shadow: var(--lift-high);
}

.comment-respond::before {
	content: "";
	position: absolute;
	top: 1.4rem;
	right: calc(1rem + 74px);
	width: 120px;
	height: 56px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='56'%3E%3Cg fill='none' stroke='%2355636f' stroke-width='1.6' opacity='.45'%3E%3Ccircle cx='96' cy='28' r='22'/%3E%3Ccircle cx='96' cy='28' r='17'/%3E%3Cpath d='M0 14c10-5 18 5 28 0s18 5 28 0 18 5 28 0M0 24c10-5 18 5 28 0s18 5 28 0 18 5 28 0M0 34c10-5 18 5 28 0s18 5 28 0 18 5 28 0M0 44c10-5 18 5 28 0s18 5 28 0 18 5 28 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
	pointer-events: none;
}

.comment-respond::after {
	content: "";
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 66px;
	height: 78px;
	background: url("assets/img/apple.svg") no-repeat center 42% / 38px, #fde3c4;
	border: 5px dotted #fffaf0;
	outline: 3px solid #fff;
	outline-offset: -8px;
	box-shadow: 0 1px 3px rgba(40, 50, 60, 0.3);
	transform: rotate(4deg);
	pointer-events: none;
}

.comment-reply-title {
	margin-top: 0;
	padding-right: 9rem;
}

.comment-reply-title small {
	display: block;
	font-family: var(--font-body);
	font-size: 0.9rem;
}

.logged-in-as,
.comment-notes {
	font-size: 0.9rem;
	color: var(--ink-soft);
	padding-right: 4.5rem;
}

@media (max-width: 560px) {
	.comment-respond::before {
		display: none;
	}

	.comment-reply-title {
		padding-right: 4.5rem;
	}
}

.comment-form p {
	margin-bottom: 1rem;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-size: 0.9rem;
}

.comment-form-cookies-consent label {
	font-family: var(--font-body);
	font-weight: 350;
}

.no-comments {
	font-family: var(--font-hand);
	font-size: 1.2rem;
	color: var(--ink-soft);
}

/* ==========================================================================
   17. Empty states, search & 404 hall pass
   ========================================================================== */

.empty-note {
	position: relative;
	max-width: 520px;
	margin: 1rem auto 0;
	padding: 2.25rem 2rem 2rem;
	text-align: center;
	background-color: var(--sticky-yellow);
	background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.035), rgba(0, 0, 0, 0) 2.2rem);
	box-shadow: var(--lift-high);
	transform: rotate(-1.2deg);
}

.empty-note__title {
	margin-bottom: 0.5rem;
	font-family: var(--font-hand);
	font-weight: 400;
	font-size: 2.1rem;
}

.empty-note .search-form {
	margin-top: 1.25rem;
	text-align: left;
}

.empty-note__sig {
	display: block;
	margin-top: 1rem;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	color: var(--ink-soft);
}

.hall-pass {
	position: relative;
	max-width: 560px;
	margin: 0.5rem auto 0;
	background: #fff;
	box-shadow: var(--lift-high);
	transform: rotate(-1.5deg);
}

.hall-pass::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 50%;
	width: 120px;
	height: 28px;
	transform: translateX(-50%) rotate(2deg);
	background: rgba(241, 233, 205, 0.85);
	clip-path: polygon(2% 0, 98% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 98% 100%, 2% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%);
}

.hall-pass__top {
	padding: 1.25rem 1.5rem 1rem;
	text-align: center;
	color: #fff;
	background: var(--crayon-red);
	background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px 20px);
}

.hall-pass__top h1 {
	margin: 0;
	font-size: clamp(2.2rem, 7vw, 3.2rem);
	font-weight: 700;
	letter-spacing: 0.12em;
	color: #fff;
}

.hall-pass__top p {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 1.25rem;
}

.hall-pass__body {
	padding: 1.5rem 1.75rem 1.75rem;
}

.hall-pass__field {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
	margin: 0 0 0.9rem;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ink-soft);
}

.hall-pass__field span {
	flex: 1;
	padding: 0 0.25rem;
	border-bottom: 2px solid var(--rule);
	font-family: var(--font-hand);
	font-size: 1.45rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--blue-pen);
}

.hall-pass__stamp {
	position: absolute;
	right: -0.75rem;
	bottom: -1rem;
	background: #fff;
	padding: 0.25rem 0.6rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.1em;
	color: var(--red-pen);
	border: 3px solid var(--red-pen);
	border-radius: 3px;
	opacity: 0.75;
	transform: rotate(-12deg);
	pointer-events: none;
}

.hall-pass__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	margin-top: 1.5rem;
}

.hall-pass__actions .search-form {
	flex: 1 1 220px;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */

.site-footer {
	position: relative;
	margin-top: 2rem;
	background-color: var(--kraft);
	background-image: var(--noise);
}

/* Torn kraft paper edge along the top of the footer */
.site-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -11px;
	height: 12px;
	background: var(--kraft);
	clip-path: polygon(0 60%, 3% 20%, 6% 70%, 9% 35%, 12% 80%, 15% 30%, 18% 65%, 21% 15%, 24% 55%, 27% 35%, 30% 75%, 33% 25%, 36% 60%, 39% 10%, 42% 50%, 45% 30%, 48% 70%, 51% 20%, 54% 55%, 57% 35%, 60% 80%, 63% 25%, 66% 65%, 69% 15%, 72% 55%, 75% 30%, 78% 70%, 81% 20%, 84% 60%, 87% 35%, 90% 75%, 93% 25%, 96% 55%, 100% 30%, 100% 100%, 0 100%);
}

.footer-widgets {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem 2rem;
	padding-top: 4rem;
	padding-bottom: 1rem;
}

@media (min-width: 720px) {
	.footer-widgets {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.footer-widgets .widget {
	position: relative;
	margin: 0 0 1.5rem;
	padding: 1.75rem 1.5rem 1.4rem;
	font-size: 0.95rem;
	background-color: #fffefb;
	background-image: repeating-linear-gradient(transparent 0 calc(1.85rem - 1px), var(--rule) calc(1.85rem - 1px) 1.85rem);
	background-position: 0 1.2rem;
	box-shadow: var(--lift);
}

.footer-widgets .widget::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 32%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3.5px),
		radial-gradient(circle at 40% 38%, #6cc08b, #2f8a52 72%);
	box-shadow: 2px 5px 4px -1px rgba(30, 40, 50, 0.35);
}

.footer-widgets .footer-col:nth-child(2) .widget { transform: rotate(0.8deg); }
.footer-widgets .footer-col:nth-child(1) .widget { transform: rotate(-0.8deg); }
.footer-widgets .footer-col:nth-child(3) .widget { transform: rotate(0.4deg); }

.footer-widgets .widget li {
	border-bottom: 0;
	padding: 0.2rem 0;
	line-height: 1.85rem;
}

.site-info {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: 2.5rem;
	padding-bottom: 2.25rem;
	font-size: 0.92rem;
	color: #5b4a2c;
}

.footer-widgets + .site-info {
	padding-top: 1rem;
}

.site-info a {
	color: #5b4a2c;
}

.site-info__credit {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 1.2rem;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	font-family: var(--font-display);
	font-weight: 500;
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline;
}

.back-to-top {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-hand);
	font-size: 1.2rem;
	text-decoration: none;
	white-space: nowrap;
}

.back-to-top img {
	width: 46px;
	height: auto;
	transform: rotate(-30deg);
	transition: transform 0.3s ease;
}

.back-to-top:hover img {
	transform: rotate(-38deg) translate(4px, -6px);
}

/* Crayons poking up out of the footer */
.crayons {
	position: absolute;
	right: var(--gutter);
	top: -64px;
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 64px;
	overflow: hidden;
	pointer-events: none;
}

.crayons svg {
	width: 16px;
	height: 72px;
	flex: none;
}

.crayons svg:nth-child(1) { transform: translateY(14px) rotate(-6deg); }
.crayons svg:nth-child(2) { transform: translateY(4px); }
.crayons svg:nth-child(3) { transform: translateY(18px) rotate(4deg); }
.crayons svg:nth-child(4) { transform: translateY(8px) rotate(-2deg); }
.crayons svg:nth-child(5) { transform: translateY(0) rotate(3deg); }
.crayons svg:nth-child(6) { transform: translateY(12px) rotate(-4deg); }
.crayons svg:nth-child(7) { transform: translateY(6px) rotate(2deg); }
.crayons svg:nth-child(8) { transform: translateY(16px); }

@media (max-width: 719px) {
	.crayons {
		display: none;
	}
}

/* ==========================================================================
   19. Motion & print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	body {
		background: #fff;
		font-size: 12pt;
	}

	.ruler,
	.doodles,
	.widget-area,
	.site-footer,
	.comments-area,
	.post-navigation,
	.edit-link,
	.skip-link {
		display: none !important;
	}

	.site-header__inner {
		padding: 0 0 1rem;
	}

	.site-title a {
		text-shadow: none;
	}

	.sentence-strip {
		box-shadow: none;
		transform: none;
	}

	.site-content {
		display: block;
	}

	.sheet,
	.note,
	.entry-content blockquote {
		box-shadow: none;
		transform: none;
		background-image: none;
		padding: 0;
	}

	.sheet::before {
		display: none;
	}

	.entry-content a::after {
		content: " (" attr(href) ")";
		font-size: 0.8em;
		color: #555;
		word-break: break-all;
	}
}
