/*
Theme Name: Shammah
Theme URI: https://shammahomoniyi.com
Author: Shammah Temitayo Omoniyi
Description: C2, the sticker wall. Plus Jakarta Sans with Caveat notes, ink outlines with offset shadows, tilted stickers and polaroids. Tokens live in theme.json; the shared vocabulary lives here and the page compositions in assets/compositions.css.
Version: 0.2.5
Requires at least: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: shammah
*/

/* ===========================================================================
   The vocabulary every page shares. Approved mockups: the "C2" boards on the
   design canvas (Oct 2026). One ink, five fills, one outline weight.

   Colour contract: every fill below carries ink text (#16161d) except blue
   and ink, which carry white. Handwritten notes use the deep note colours,
   which pass 4.5:1 on white and on their own fills.
   =========================================================================== */

:root {
	--c2-ink: #16161d;
	--c2-muted: #55556a;
	--c2-paper: #f7f7f2;
	--c2-yellow: #ffc83d;
	--c2-cream: #fff4d1;
	--c2-blue: #4f5fe8;
	--c2-lilac: #e9ecff;
	--c2-mint: #c9f0dc;
	--c2-coral: #ff8a78;
	--c2-blush: #ffe4df;
	--c2-note-red: #c8402c;
	--c2-note-blue: #3a48c4;
	--c2-note-brown: #a3480a;
	--c2-note-green: #0d6b47;
	--c2-line: 2.5px;
	--c2-outline: 0 0 0 var(--c2-line) var(--c2-ink);
	--c2-raised: 0 0 0 var(--c2-line) var(--c2-ink), 0 8px 0 var(--c2-ink);
	--c2-raised-sm: 0 0 0 var(--c2-line) var(--c2-ink), 0 6px 0 var(--c2-ink);
	--c2-gutter: 24px;
	--c2-max: 1240px;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--c2-ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.wp-site-blocks { padding: 0; overflow-x: clip; } /* stickers mid-animation must never widen the page */
.wp-site-blocks > * + * { margin-block-start: 0; }
.site-main > * + * { margin-block-start: 0; }

img { max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--c2-blue);
	outline-offset: 3px;
}

.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; width: 1px; word-wrap: normal !important;
}

.c2-skip {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--c2-yellow); color: var(--c2-ink); font-weight: 800;
	padding: 12px 16px; border-radius: 12px; box-shadow: var(--c2-outline);
}
.c2-skip:focus { top: 16px; }

/* ---- Layout -------------------------------------------------------------- */
.c2-section { padding: 0 var(--c2-gutter); }
.c2-wrap { max-width: var(--c2-max); margin: 0 auto; }
.c2-stack { display: flex; flex-direction: column; }
.c2-head {
	display: flex; justify-content: space-between; align-items: flex-end;
	gap: 16px; flex-wrap: wrap;
}

/* ---- Type ---------------------------------------------------------------- */
.c2-hand { font-family: "Caveat", cursive; font-weight: 700; line-height: 1.1; margin: 0; }
.c2-hand.is-red { color: var(--c2-note-red); }
.c2-hand.is-blue { color: var(--c2-note-blue); }
.c2-hand.is-brown { color: var(--c2-note-brown); }
.c2-hand.is-green { color: var(--c2-note-green); }
.c2-hand.is-yellow { color: var(--c2-yellow); }
.c2-tilt-l { transform: rotate(-3deg); align-self: flex-start; }
.c2-tilt-r { transform: rotate(2deg); }

.c2-h1 { margin: 0; font-weight: 800; font-size: clamp(3.5rem, 7vw, 6rem); line-height: .92; letter-spacing: -0.05em; }
.c2-h2 { margin: 0; font-weight: 800; font-size: clamp(2.5rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -0.045em; }
.c2-h3 { margin: 0; font-weight: 800; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.02; letter-spacing: -0.035em; }
.c2-lede { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--c2-muted); }
.c2-muted { color: var(--c2-muted); }
.c2-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--c2-muted); text-transform: uppercase; }
.c2-num { font-variant-numeric: tabular-nums; }

/* ---- Buttons --------------------------------------------------------------
   Chunky and pressable: an ink outline with a 5px ink step under it that the
   button sinks into when pressed. */
.c2-btn,
.wp-element-button,
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 56px; padding: 0 26px; border-radius: 16px; border: 0;
	font-family: inherit; font-size: 16px; font-weight: 800; text-decoration: none;
	cursor: pointer;
	background: var(--c2-ink); color: #fff;
	outline: var(--c2-line) solid var(--c2-ink); outline-offset: 0;
	box-shadow: 0 5px 0 var(--c2-ink);
	transition: transform .08s, box-shadow .08s;
}
.c2-btn:hover, .wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--c2-ink); color: #fff; }
.c2-btn:active, .wp-element-button:active, .wp-block-button__link:active { transform: translateY(5px); box-shadow: 0 0 0 var(--c2-ink); }
.c2-btn:focus-visible { outline: 3px solid var(--c2-blue); outline-offset: 4px; }
.c2-btn.is-white { background: #fff; color: var(--c2-ink); }
.c2-btn.is-white:hover { color: var(--c2-ink); }
.c2-btn.is-yellow { background: var(--c2-yellow); color: var(--c2-ink); }
.c2-btn.is-yellow:hover { color: var(--c2-ink); }
.c2-btn.is-sm { min-height: 46px; padding: 0 20px; font-size: 15px; border-radius: 14px; }
.c2-link { font-weight: 800; text-decoration: none; color: var(--c2-ink); }
.c2-link:hover { color: var(--c2-note-blue); }

/* ---- Stickers, tags, tilt ------------------------------------------------- */
.c2-stk { display: inline-block; transform: rotate(var(--r, 0deg)); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.c2-stk:hover { transform: rotate(0deg) scale(1.06); }
.c2-sticker {
	display: inline-block; font-weight: 800; font-size: 16px; line-height: 1.2;
	padding: 12px 16px; border-radius: 14px; white-space: nowrap;
	background: #fff; color: var(--c2-ink); text-decoration: none;
	box-shadow: 0 0 0 var(--c2-line) var(--c2-ink), 0 6px 0 var(--c2-ink);
}
.c2-sticker.is-round { border-radius: 999px; }
.c2-tag {
	display: inline-flex; align-items: center; background: #fff; color: var(--c2-ink);
	padding: 7px 12px; border-radius: 10px; box-shadow: 0 0 0 2px var(--c2-ink);
	font-weight: 700; font-size: 14px; text-decoration: none;
}
.c2-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.c2-dot { color: #12a150; }

.bg-yellow { background: var(--c2-yellow); color: var(--c2-ink); }
.bg-cream { background: var(--c2-cream); color: var(--c2-ink); }
.bg-blue { background: var(--c2-blue); color: #fff; }
.bg-lilac { background: var(--c2-lilac); color: var(--c2-ink); }
.bg-mint { background: var(--c2-mint); color: var(--c2-ink); }
.bg-coral { background: var(--c2-coral); color: var(--c2-ink); }
.bg-blush { background: var(--c2-blush); color: var(--c2-ink); }
.bg-white { background: #fff; color: var(--c2-ink); }
.bg-ink { background: var(--c2-ink); color: #fff; }
.bg-paper { background: var(--c2-paper); color: var(--c2-ink); }

/* ---- Motion ----------------------------------------------------------------
   Content is only hidden once site.js has marked the document, so the page is
   complete without JavaScript. Reduced motion removes travel, keeps state. */
.js-motion .c2-reveal:not([data-seen]) { opacity: 0; transform: translateY(32px); }
.c2-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.c2-slap { transition: opacity .3s ease, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.js-motion .c2-reveal:not([data-seen]) .c2-slap { opacity: 0; transform: rotate(calc(var(--r, 0deg) - 14deg)) scale(1.5); }
.c2-drop { transition: opacity .6s ease, transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.js-motion .c2-reveal:not([data-seen]) .c2-drop { opacity: 0; transform: translateY(-40px) rotate(calc(var(--r, 0deg) * -3)); }
.c2-d1 { transition-delay: .1s; } .c2-d2 { transition-delay: .22s; } .c2-d3 { transition-delay: .34s; }
.c2-d4 { transition-delay: .46s; } .c2-d5 { transition-delay: .58s; } .c2-d6 { transition-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- Header ---------------------------------------------------------------- */
.c2-header { padding: 0 var(--c2-gutter); position: relative; z-index: 20; }
.c2-header-row {
	max-width: var(--c2-max); margin: 0 auto; padding: 26px 0;
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px;
}
.c2-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c2-ink); font-weight: 800; font-size: 19px; }
.c2-logo:hover { color: var(--c2-ink); }
.c2-logo-mark {
	width: 40px; height: 40px; border-radius: 12px; background: var(--c2-yellow);
	box-shadow: var(--c2-outline); display: grid; place-items: center; font-size: 20px;
	--r: -8deg;
}
.c2-nav { display: flex; gap: 24px; font-weight: 600; font-size: 15px; }
.c2-nav a { color: var(--c2-ink); text-decoration: none; padding: 10px 6px; border-radius: 6px; }
.c2-nav a:hover { background: var(--c2-cream); }
.c2-nav a[aria-current="page"] { background: linear-gradient(var(--c2-yellow), var(--c2-yellow)) no-repeat 0 78% / 100% 36%; }
@media (max-width: 900px) {
	.c2-nav { order: 3; width: 100%; gap: 16px; overflow-x: auto; }
}

/* ---- Footer ---------------------------------------------------------------- */
.c2-footer { padding: 0 var(--c2-gutter) 40px; }
.c2-footer-inner {
	max-width: var(--c2-max); margin: 0 auto; border-top: var(--c2-line) solid var(--c2-ink);
	padding-top: 36px; display: flex; flex-direction: column; gap: 28px;
}
.c2-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.c2-footer a { color: var(--c2-ink); text-decoration: none; font-weight: 600; display: inline-block; padding: 4px 0; }
.c2-footer a:hover { color: var(--c2-note-blue); }
.c2-footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.c2-footer-small { margin: 0; font-size: 12px; color: var(--c2-muted); }

/* ---- Reading pages: posts, plain pages, case-study bodies ----------------- */
.c2-prose { max-width: 44rem; }
.c2-prose > * + * { margin-block-start: 1.1em; }
.c2-prose p, .c2-prose li { font-size: 1.1875rem; line-height: 1.65; color: #3d3d4d; }
.c2-prose h2 { font-size: 2.5rem; margin-block-start: 1.6em; }
.c2-prose h3 { font-size: 1.75rem; margin-block-start: 1.4em; }
.c2-page-body { padding: 40px var(--c2-gutter) 100px; }
.c2-page-body > .c2-prose { margin: 0 auto; }

/* ---- Editor-built groups and buttons (block styles from functions.php) ---- */
.is-style-card-yellow, .is-style-card-mint, .is-style-card-lilac { border-radius: 28px; padding: 32px; box-shadow: var(--c2-raised); }
.is-style-card-yellow { background: var(--c2-yellow); }
.is-style-card-mint { background: var(--c2-mint); }
.is-style-card-lilac { background: var(--c2-lilac); }
.is-style-placeholder { border: 3px dashed var(--c2-ink); border-radius: 32px; padding: 36px; }
p.is-style-hand { font-family: "Caveat", cursive; font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--c2-note-red); }
.is-style-white .wp-block-button__link { background: #fff; color: var(--c2-ink); }
.is-style-yellow .wp-block-button__link { background: var(--c2-yellow); color: var(--c2-ink); }
