/*
	ScheduleME — alternate marketing site ("the private diary").
	Concept: an appointment book. Paper panels on a desk, blue-ink handwriting (Shadows Into Light) for the
	phrases that matter, a quiet sans (Geist) for everything that has to be read. No cards grid, no hero banner,
	no JavaScript. Light = the open page; dark = the desk at night. Every colour is a token below.
*/

/* ---------- Tokens ---------- */
:root {
	--paper: #f7f8fa; /* page ground: cool white, not cream */
	--paper-2: #ffffff; /* raised sheet */
	--ink: #0e1420; /* headings, buttons */
	--graphite: #3b4250; /* body text */
	--fog: #8a93a3; /* captions, times, eyebrows */
	--rule: #d9dee6; /* hairlines */
	--blue: #2f63b9; /* the pen: the logo's own blue */
	--blue-soft: rgba(47, 99, 185, 0.1);
	--shadow: 0 24px 60px rgba(14, 20, 32, 0.08);
	--hand: 'Shadows Into Light', 'Segoe Print', 'Bradley Hand', cursive;
	--sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--paper: #0e1420;
		--paper-2: #151c2a;
		--ink: #eceff4;
		--graphite: #b4bcc9;
		--fog: #6f7a8c;
		--rule: #243047;
		--blue: #6e9be3;
		--blue-soft: rgba(110, 155, 227, 0.14);
		--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
		color-scheme: dark;
	}
}
:root[data-theme='dark'] {
	--paper: #0e1420;
	--paper-2: #151c2a;
	--ink: #eceff4;
	--graphite: #b4bcc9;
	--fog: #6f7a8c;
	--rule: #243047;
	--blue: #6e9be3;
	--blue-soft: rgba(110, 155, 227, 0.14);
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	color-scheme: dark;
}

/* ---------- Fonts ---------- */
@font-face {
	font-family: 'Shadows Into Light';
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/ShadowsIntoLight-Regular.ttf') format('truetype');
}
@font-face {
	font-family: 'Geist';
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	src: url('../fonts/Geist-VariableFont_wght.ttf') format('truetype');
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--graphite);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 17px;
	line-height: 1.7;
}
img,
svg {
	display: block;
	max-width: 100%;
}
h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
}
p {
	margin: 0;
}
p + p {
	margin-top: 1em;
}
a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--rule);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	transition:
		color 150ms,
		text-decoration-color 150ms;
}
a:hover {
	color: var(--blue);
	text-decoration-color: var(--blue);
}
a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}
strong {
	font-weight: 500;
	color: var(--ink);
}

/* Handwriting: only for phrases, never for running text */
.hand {
	font-family: var(--hand);
	font-weight: 400;
	color: var(--blue);
	line-height: 1.15;
	letter-spacing: 0.005em;
	text-wrap: balance;
}
.eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fog);
}
.measure {
	max-width: 58ch;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--ink);
	color: var(--paper);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 15px 26px;
	border: 1px solid var(--ink);
	transition:
		background 150ms,
		color 150ms,
		border-color 150ms;
}
.btn:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #ffffff;
}
.btn.quiet {
	background: transparent;
	color: var(--ink);
}
.btn.quiet:hover {
	background: var(--blue-soft);
	color: var(--ink);
	border-color: var(--ink);
}

/* ---------- Frame ---------- */
.wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 32px;
}

/* ---------- Top bar ---------- */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--rule);
}
.top .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}
.top .brand {
	text-decoration: none;
	display: inline-flex;
}
.top .brand img {
	height: 34px;
	width: auto;
}
.top nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 26px;
}
.top nav a {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--graphite);
	padding: 6px 0;
	border-bottom: 1px solid transparent;
}
.top nav a:hover,
.top nav a[aria-current='page'] {
	color: var(--ink);
	border-bottom-color: var(--blue);
}
.top nav a.signin {
	color: var(--blue);
}

/* ---------- Hero ---------- */
.hero {
	padding-block: 96px 64px;
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: 64px;
	align-items: center;
}
.hero .eyebrow {
	margin-bottom: 28px;
}
.hero h1 {
	font-size: clamp(48px, 7vw, 84px);
	line-height: 1;
}
.hero h1 .line2 {
	display: block;
	font-size: 0.56em;
	color: var(--ink);
	margin-top: 0.3em;
}
.hero .lede {
	margin-top: 36px;
	font-size: 19px;
	line-height: 1.65;
	max-width: 52ch;
}
.hero .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: 40px;
}
.hero .actions .alt {
	font-size: 15px;
}

/* The diary sheet */
.diary {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	box-shadow: var(--shadow);
	padding: 28px 30px 24px;
	position: relative;
	transform: rotate(-0.6deg);
}
.diary::before {
	/* the red margin line of a diary page, in our blue */
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 92px;
	width: 1px;
	background: var(--blue-soft);
}
.diary header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--rule);
}
.diary header .hand {
	font-size: 30px;
}
.diary header .eyebrow {
	letter-spacing: 0.1em;
}
.diary ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.diary li {
	display: grid;
	grid-template-columns: 62px 1fr;
	gap: 18px;
	align-items: baseline;
	padding: 13px 0;
	border-bottom: 1px dashed var(--rule);
}
.diary li:last-child {
	border-bottom: 0;
}
.diary time {
	font-size: 13px;
	color: var(--fog);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}
.diary li .hand {
	font-size: 23px;
	line-height: 1.2;
}
.diary li .hand small {
	display: block;
	font-family: var(--sans);
	font-size: 13px;
	color: var(--fog);
	margin-top: 2px;
	letter-spacing: 0.02em;
}
.diary footer {
	margin-top: 16px;
	font-size: 12px;
	color: var(--fog);
	text-align: right;
}

/* ---------- Sections ---------- */
section.part {
	padding-block: 72px;
	border-top: 1px solid var(--rule);
}
section.part .head {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 40px;
	align-items: end;
	margin-bottom: 48px;
}
section.part .head h2 {
	font-size: clamp(36px, 4.6vw, 54px);
}
section.part .head p {
	font-size: 18px;
}

/* Why: three statements with handwritten margin notes */
.why {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 48px;
}
.why .note {
	font-size: 30px;
	margin-bottom: 14px;
}
.why h3 {
	font-size: 20px;
	font-weight: 500;
	letter-spacing: -0.005em;
}
.why p {
	margin-top: 12px;
}

/* The diary: a ledger, not a grid */
.ledger {
	margin: 0;
	border-top: 1px solid var(--rule);
}
.ledger .row {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 40px;
	padding: 30px 0;
	border-bottom: 1px solid var(--rule);
}
.ledger dt {
	font-size: 34px;
	line-height: 1.1;
}
.ledger dd {
	margin: 0;
	max-width: 62ch;
}
.ledger dd .eyebrow {
	display: block;
	margin-top: 12px;
	font-size: 11px;
}

/* Who: one statement */
.who .statement {
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.12;
	max-width: 18ch;
}
.who .statement em {
	font-style: normal;
	color: var(--ink);
}
.who p {
	margin-top: 32px;
	font-size: 18px;
}

/* Invitation panel */
.invite {
	background: var(--paper-2);
	border: 1px solid var(--rule);
	box-shadow: var(--shadow);
	padding: 56px;
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 48px;
	align-items: center;
}
.invite h2 {
	font-size: clamp(40px, 5vw, 60px);
}
.invite p {
	font-size: 18px;
}
.invite .actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin-top: 32px;
}
.invite .address {
	margin-top: 22px;
	font-size: 15px;
	color: var(--fog);
}
.invite .address a {
	color: var(--graphite);
}

/* ---------- Footer ---------- */
footer.site {
	border-top: 1px solid var(--rule);
	padding-block: 36px 48px;
	font-size: 13px;
	color: var(--fog);
}
footer.site .wrap {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px 40px;
	align-items: start;
}
footer.site ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}
footer.site a {
	color: var(--graphite);
	text-decoration: none;
}
footer.site a:hover {
	color: var(--blue);
}
footer.site .sig {
	font-size: 22px;
	margin-bottom: 10px;
}

/* ---------- Legal pages ---------- */
.legal {
	padding-block: 72px 40px;
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: 48px;
}
.legal .aside {
	position: sticky;
	top: 100px;
}
.legal .aside .hand {
	font-size: 34px;
	margin-top: 18px;
}
.legal .aside .eyebrow + .hand {
	margin-top: 10px;
}
.legal .aside p {
	margin-top: 18px;
	font-size: 15px;
}
.legal h1 {
	font-size: clamp(32px, 4vw, 44px);
	font-family: var(--sans);
	font-weight: 500;
	letter-spacing: -0.01em;
}
.legal .date {
	margin-top: 10px;
	color: var(--fog);
	font-size: 14px;
}
.legal .legal-body {
	margin-top: 36px;
	max-width: 72ch;
	font-size: 16px;
}
.legal .legal-body h2 {
	font-size: 22px;
	font-weight: 500;
	margin-top: 36px;
}
.legal .legal-body p {
	margin-top: 1em;
}
.legal .legal-body ul {
	margin: 0.6em 0;
	padding-left: 1.4em;
}
.legal .legal-body address {
	margin-top: 1.5em;
	font-style: normal;
}
.legal .legal-body ol {
	list-style: none;
	counter-reset: clause;
	margin: 0.6em 0;
	padding-left: 0;
}
.legal .legal-body ol ol {
	padding-left: 2.2em;
}
.legal .legal-body ol > li {
	position: relative;
	counter-increment: clause;
	padding-left: 2.6em;
	margin: 0.5em 0;
}
.legal .legal-body ol > li::before {
	content: counters(clause, '.') '.';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--fog);
	font-variant-numeric: tabular-nums;
}
.legal .legal-body ol ol > li {
	padding-left: 3em;
}
.legal .legal-body ol ol ol > li {
	padding-left: 3.6em;
}
.legal .legal-body li > strong:first-child {
	color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.hero {
		grid-template-columns: 1fr;
		gap: 48px;
		padding-block: 64px 48px;
	}
	.diary {
		max-width: 560px;
		transform: none;
	}
	.why {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	section.part .head,
	.ledger .row,
	.invite,
	.legal {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.legal .aside {
		position: static;
	}
	.invite {
		padding: 40px 32px;
	}
	footer.site .wrap {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 600px) {
	.wrap {
		padding-inline: 16px;
	}
	.top .wrap {
		flex-wrap: wrap;
		padding-block: 12px;
	}
	.top nav ul {
		gap: 4px 16px;
	}
	.top nav a {
		font-size: 11px;
	}
	.hero .lede {
		font-size: 17px;
	}
	.diary {
		padding: 22px 18px 18px;
	}
	.diary::before {
		left: 74px;
	}
	.diary li {
		grid-template-columns: 50px 1fr;
		gap: 12px;
	}
	.diary li .hand {
		font-size: 20px;
	}
	.ledger dt {
		font-size: 30px;
	}
	.invite {
		padding: 32px 20px;
	}
	.legal .legal-body ol > li {
		padding-left: 2.2em;
	}
	.legal .legal-body ol ol {
		padding-left: 0.6em;
	}
}
