/* ============================================================
   Personal page — straw.page-style scrapbook layout, iOS-5-chrome
   accents. Bitmaps still in play (status bar, tab bar, alert
   panel, slider knob, chevron, switch knob) are real assets from
   the Teehan+Lax iOS 5.1 GUI PSD; buttons/panels are hand-built
   CSS since the PSD's colors come from un-rendered layer effects.

   Design read: personal scrapbook / link-in-bio page for a
   Y2K-nostalgic audience — deliberate maximalism (stickers, tilt,
   handwritten notes), not a clean SaaS layout. One locked accent
   (hot pink) against a dark neutral base; shadows tinted to the
   background instead of pure black; one radius scale throughout
   (16px soft everywhere, full-pill for buttons/badges, polaroids
   are the one intentional exception since real polaroids are
   square-cornered prints).
   ============================================================ */

:root {
	--panel-bg: rgba(40, 40, 46, 0.88);
	--panel-border: rgba(210, 210, 218, 0.5);
	--text: #f2f2f2;
	--text-dim: #b8b8bf;
	--accent: #ff5fa2;
	--accent-dim: #c94f83;
	--shadow: rgba(12, 8, 16, 0.55);
	--shadow-soft: rgba(12, 8, 16, 0.35);
	--radius: 16px;
	--blue-top: #5aa6ef;
	--blue-bot: #0d59b8;
	--grey-top: #9a9fa8;
	--grey-bot: #55585f;
	--red-top: #ef6a60;
	--red-bot: #a3241c;

	--font-display: "Bungee", "Arial Black", sans-serif;
	--font-hand: "Kalam", cursive;
	--font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	background: #0c0c0e url('5.1linen.jpg') center top / cover no-repeat fixed;
	font-family: var(--font-body);
	color: var(--text);
	padding-bottom: 100px; /* clear the fixed tab bar */
	position: relative;
}

/* subtle film-grain overlay for scrapbook texture, fixed so it never repaints on scroll */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0.05;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 50;
	background: var(--accent);
	color: #1a0d13;
	padding: 8px 14px;
	font-weight: 700;
	border-radius: 0 0 8px 0;
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

/* ---------- decorative iOS status strip ---------- */

.status-bar {
	position: relative;
	z-index: 2;
	height: 22px;
	background-image: url('assets/statusbar-bg.png');
	background-size: cover;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	font-size: 12px;
	font-family: var(--font-body);
	color: #eee;
	letter-spacing: 0.5px;
}

.status-bar .status-icons { display: flex; align-items: center; gap: 6px; }
.status-bar .status-icons img { height: 14px; display: block; opacity: 0.9; }

/* ---------- page shell ---------- */

.page {
	position: relative;
	z-index: 2;
	max-width: 560px;
	margin: 0 auto;
	padding: 0 18px;
}

header.page { padding-top: 30px; padding-bottom: 4px; }

/* big blocky outlined title, straw.page style */
.site-title {
	text-align: center;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 42px;
	letter-spacing: 2px;
	margin: 6px 0 22px;
	color: #eee;
	-webkit-text-stroke: 1.5px #000;
	text-shadow:
		2px 2px 0 #000,
		-1px -1px 0 rgba(255, 255, 255, 0.25);
}

/* ---------- profile row: polaroid + speech bubble ---------- */

.profile-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	justify-content: center;
	align-items: flex-start;
	margin-bottom: 28px;
}

.polaroid {
	background: #efefef;
	padding: 10px 10px 14px;
	border-radius: 3px; /* intentional exception to the radius scale — real polaroids have square corners */
	box-shadow: 0 6px 14px var(--shadow);
	transform: rotate(-3deg);
	width: 170px;
	flex-shrink: 0;
}

.polaroid .photo {
	width: 100%;
	height: 170px;
	border-radius: 2px;
	background: linear-gradient(135deg, #6a7fd6, #c15fd0 60%, #ff9a5a);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 56px;
}

.polaroid .caption {
	color: #222;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	margin-top: 10px;
	font-family: "Courier New", monospace;
}

.speech-bubble {
	position: relative;
	background: var(--panel-bg);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	padding: 16px 18px;
	max-width: 300px;
	margin: 0;
	font-family: var(--font-hand);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 4px 10px var(--shadow-soft);
}

.speech-bubble::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 30px;
	border: 10px solid transparent;
	border-right-color: var(--panel-border);
}

.speech-bubble::after {
	content: "";
	position: absolute;
	left: -11px;
	top: 30px;
	border: 9px solid transparent;
	border-right-color: var(--panel-bg);
}

/* ---------- scattered stickers ---------- */

.stickers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
	margin: 6px 0 30px;
}

.sticker {
	width: 62px;
	height: 62px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 4px 8px var(--shadow-soft);
}

/* rotate the accent through the sticker row instead of one flat grey repeated 5x */
.sticker-a { transform: rotate(-8deg); background: linear-gradient(to bottom, #4a2436, var(--accent-dim)); }
.sticker-b { transform: rotate(5deg) translateY(6px); background: linear-gradient(to bottom, #3a3a3e, #202023); }
.sticker-c { transform: rotate(-4deg); background: linear-gradient(to bottom, #234a3f, #16302a); }
.sticker-d { transform: rotate(9deg) translateY(4px); background: linear-gradient(to bottom, #4a2436, var(--accent-dim)); }
.sticker-e { transform: rotate(-11deg); background: linear-gradient(to bottom, #3a3a3e, #202023); }

/* ---------- generic dark text panel ---------- */

.panel {
	background: var(--panel-bg);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-dim);
	box-shadow: 0 4px 10px var(--shadow-soft);
	margin-bottom: 28px;
}

.panel strong { color: var(--text); }

/* ---------- section callout labels ---------- */

.callout {
	display: block;
	width: fit-content;
	margin: 0 auto 14px;
	padding: 8px 20px;
	background: #111;
	border: 2px solid var(--accent-dim);
	border-radius: 999px;
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.3px;
	text-align: center;
	box-shadow: 0 3px 6px var(--shadow-soft);
}

.callout a { color: inherit; }

/* ---------- link button list ---------- */

.link-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 30px;
}

.link-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 18px;
	border-radius: var(--radius);
	background: linear-gradient(to bottom, #3c3c40, #232326);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 6px var(--shadow-soft);
	font-weight: 600;
	font-size: 14px;
	transition: transform 0.08s ease, border-color 0.15s ease, filter 0.15s ease;
}

.link-btn:hover { filter: brightness(1.15); border-color: var(--accent-dim); }
.link-btn:active { transform: translateY(1px); }
.link-btn .emoji { font-size: 17px; width: 22px; text-align: center; }

/* ---------- ask-me-anonymously box ---------- */

.ask-box {
	background: var(--panel-bg);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 30px;
	box-shadow: 0 4px 10px var(--shadow-soft);
}

.ask-box textarea {
	width: 100%;
	min-height: 60px;
	resize: vertical;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #17171a;
	color: #fff;
	font-family: var(--font-body);
	font-size: 13px;
	padding: 10px;
	margin-bottom: 10px;
}

.ask-box textarea::placeholder { color: var(--text-dim); }

/* ---------- doodle pad ---------- */

.doodle-wrap {
	background: var(--panel-bg);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	padding: 12px;
	margin-bottom: 30px;
	box-shadow: 0 4px 10px var(--shadow-soft);
}

#doodle {
	width: 100%;
	height: 220px;
	display: block;
	background: #fff;
	border-radius: 10px;
	touch-action: none;
	cursor: crosshair;
}

.doodle-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.swatch {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	cursor: pointer;
	padding: 0;
}

.swatch.selected { outline: 2px solid #fff; }

.brush-size {
	width: 60px;
	accent-color: var(--accent);
}

/* ---------- glossy pill buttons (small utility actions) ---------- */

.btn {
	display: inline-block;
	padding: 8px 18px;
	border-radius: 999px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 2px 4px var(--shadow-soft);
	cursor: pointer;
	transition: transform 0.08s ease, filter 0.15s ease;
}

.btn:active { transform: translateY(1px); filter: brightness(0.92); }

.btn-blue { background-image: linear-gradient(to bottom, var(--blue-top), var(--blue-bot)); }
.btn-grey { background-image: linear-gradient(to bottom, var(--grey-top), var(--grey-bot)); }
.btn-red  { background-image: linear-gradient(to bottom, var(--red-top),  var(--red-bot)); }

/* ---------- category filter (blog section) ---------- */

.segmented {
	display: flex;
	max-width: 420px;
	margin: 0 auto 4px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.4);
	box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.15), 0 2px 4px var(--shadow-soft);
}

.segmented button {
	flex: 1;
	padding: 10px 8px;
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	border: none;
	border-right: 1px solid rgba(0, 0, 0, 0.35);
	background: linear-gradient(to bottom, #4a4a4a, #2a2a2a);
	color: #ddd;
	cursor: pointer;
}

.segmented button:last-child { border-right: none; }

.segmented button.active {
	background: linear-gradient(to bottom, var(--accent), var(--accent-dim));
	color: #1a0d13;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* ---------- blog post bubbles ---------- */

.post {
	margin-top: 18px;
	background-color: var(--panel-bg);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	box-shadow: 0 4px 10px var(--shadow);
	overflow: hidden;
}

.post-inner { padding: 16px 20px 18px; }

.post-date {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-dim);
}

.post h3 {
	margin: 4px 0 8px;
	font-family: var(--font-body);
	font-size: 19px;
	font-weight: 700;
}

.post p { margin: 0 0 10px; line-height: 1.5; }

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	font-size: 14px;
	color: var(--accent);
}

.read-more img { height: 14px; opacity: 0.9; }

.post::before {
	content: "";
	display: block;
	height: 16px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
}

footer.credit {
	text-align: center;
	font-size: 11px;
	color: var(--text-dim);
	padding: 20px 0 10px;
}

/* ---------- footer glossy tab bar ---------- */

.tab-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 74px;
	z-index: 3;
	background-image: url('assets/tabbar-bg.png');
	background-size: 100% 100%;
	border-top: 1px solid #343434;
	display: flex;
	box-shadow: 0 -2px 6px var(--shadow);
}

.tab-bar a {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-family: var(--font-body);
	font-size: 11px;
	color: #9a9a9a;
}

.tab-bar a .dot {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: linear-gradient(to bottom, #555, #2a2a2a);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ---------- about alert dialog (modal) ---------- */

.overlay {
	position: fixed;
	inset: 0;
	background: rgba(8, 6, 10, 0.6);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 20;
}

.overlay.shown { display: flex; }

.alert-dialog {
	position: relative;
	width: 300px;
	padding: 22px 20px 18px;
	border-radius: 24px;
	background-image: url('assets/alert-bg.png');
	background-size: cover;
	color: #fff;
	font-family: var(--font-body);
	text-align: center;
	box-shadow: 0 10px 30px var(--shadow);
}

.alert-dialog::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	right: 3px;
	height: 22%;
	border-radius: 21px 21px 0 0;
	background-image: url('assets/alert-gloss.png');
	background-size: cover;
	opacity: 0.9;
	pointer-events: none;
}

.alert-dialog h3 { margin: 0 0 8px; font-size: 17px; }
.alert-dialog p { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: #dbe6ff; }
