/* Cambridge Figure Drawing — WonderCMS theme
   Matches the original Carrd page: white, minimal, light grey type,
   two-column bands (text left, image right) with thin rules between.
   Content styles are scoped to .sheet so the WonderCMS admin panel
   is never affected. */

:root {
	--bg: #ffffff;
	--heading: #2b2b2b;
	--text: #5a5a5a;
	--muted: #b4b4b4;
	--rule: #e6e6e6;
	--link: #2b2b2b;
	--button-border: #dedede;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--band-pad: 72px;
	--gutter: 64px;
}

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.85;
}

/* ---------- Section menu (built from the Heading 2s) ---------- */

.section-nav {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	border-bottom: 1px solid var(--rule);
}
.section-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 28px;
	list-style: none;
	margin: 0 auto;
	padding: 12px var(--gutter);
	max-width: 1280px;
	box-sizing: border-box;
}
.section-nav a {
	color: var(--text);
	text-decoration: none;
	font-size: .8rem;
	font-weight: 400;
	letter-spacing: .02em;
	white-space: nowrap;
}
.section-nav a:hover { color: var(--heading); }

.sheet h2[id] { scroll-margin-top: 72px; }

/* ---------- Bands ---------- */

.sheet { max-width: 1280px; margin: 0 auto; }

.band {
	padding: var(--band-pad) var(--gutter);
	border-bottom: 1px solid var(--rule);
}
.band:last-child { border-bottom: 0; }

.band.has-media {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--gutter);
	align-items: center;
	padding-right: 0;
}
.band-text { max-width: 620px; }
.band-media img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

/* While logged in: one plain column, with the band lines visible */
.sheet.editing { max-width: 760px; padding: 48px 24px; }
.sheet.editing hr {
	border: 0;
	border-top: 2px dashed #c9c9c9;
	margin: 48px 0;
}

/* ---------- Type ---------- */

.sheet h1,
.sheet h2,
.sheet h3 {
	font-family: var(--sans);
	font-weight: 400;
	color: var(--heading);
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.sheet h1 { font-size: 1.75rem; margin: 0 0 28px; }
.sheet h2 { font-size: 1.85rem; margin: 48px 0 18px; }
.sheet h3 { font-size: 1.05rem; font-weight: 500; margin: 24px 0 6px; }

.band-text > :first-child,
.sheet.editing .editText > :first-child { margin-top: 0; }
.band-text > :last-child { margin-bottom: 0; }

/* Small spaced-out line above the title, e.g. "WELCOME TO" */
.sheet .kicker {
	text-transform: uppercase;
	letter-spacing: .3em;
	font-size: .68rem;
	color: var(--muted);
	margin: 0 0 18px;
}

.sheet p { margin: 0 0 1em; }
.sheet strong, .sheet b { font-weight: 500; color: #444; }

.sheet a { color: var(--link); text-underline-offset: 3px; }

/* ---------- Lists ---------- */

.sheet ul { list-style: none; padding: 0; margin: 0 0 1em; }
.sheet ul li { position: relative; padding-left: 1em; }
.sheet ul li::before { content: "•"; position: absolute; left: 0; }
.sheet ol { padding-left: 1.3em; margin: 0 0 1em; }

/* ---------- Images inside the text ---------- */

.band-text img,
.sheet.editing img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 0 28px;
}
.sheet img.logo { width: 190px; }

/* ---------- Buttons ----------
   Any link with class="button" becomes a small outlined button with an icon.
   Instagram links get the Instagram icon automatically; add class "home"
   for the house icon; everything else gets a link icon.
   Wrap buttons in <p class="buttons"> to stack them neatly. */

.sheet a.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px;
	border: 1px solid var(--button-border);
	border-radius: 4px;
	color: var(--text);
	font-size: .8rem;
	font-weight: 400;
	text-decoration: none;
	line-height: 1.4;
	transition: border-color .15s ease, color .15s ease;
}
.sheet a.button:hover { border-color: #b8b8b8; color: var(--heading); }

.sheet a.button::before {
	content: "";
	width: 14px;
	height: 14px;
	flex: none;
	background: currentColor;
	opacity: .75;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.5.5l3-3a5 5 0 0 0-7-7l-1.7 1.7'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.5-.5l-3 3a5 5 0 0 0 7 7l1.7-1.7'/%3E%3C/svg%3E");
}
.sheet a.button.home::before {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 11.5h3V21h5.5v-6h3v6H19v-9.5h3z'/%3E%3C/svg%3E");
}
.sheet a.button[href*="instagram.com"]::before {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='black' stroke='none'/%3E%3C/svg%3E");
}

.sheet .buttons {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
	margin: 28px 0;
}

/* ---------- Contact / info lines ---------- */

.sheet .note { margin: 0 0 1em; }
.sheet .note p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
	text-align: center;
	color: var(--muted);
	font-size: .72rem;
	padding: 24px 16px 40px;
}
.site-footer a { color: var(--muted); }

/* ---------- Tablets and phones ---------- */

@media (max-width: 900px) {
	:root { --band-pad: 48px; --gutter: 24px; }
	.band.has-media {
		grid-template-columns: 1fr;
		gap: 36px;
		padding-right: var(--gutter);
	}
	.band-text { max-width: none; }
	.section-nav ul {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.section-nav ul::-webkit-scrollbar { display: none; }
}
