/* A plain academic look: white paper, one deep accent, serif headings, sans body, hairline rules, square corners. */
:root {
	--paper: #ffffff;
	--card: #f6f4ef;
	--ink: #1f1f1f;
	--muted: #595959;
	--accent: #7a1f2b;
	--on-accent: #ffffff;
	--display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
	--display-weight: 700;
	--body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
	--measure: 760px;
	--wide: 1120px;
	--gutter: 24px;
	--line: #d9d6cf;
}
* { box-sizing: border-box; }
/* Keep the scrollbar's space even when the page is short, so a collapsing recipe does not shove the column sideways as the bar comes and goes. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
	margin: 0;
	color: var(--ink);
	background: var(--paper);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }

/* The site bar: the name at the left edge, the login at the right, a rule beneath. */
.site-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px 22px;
	padding: 18px clamp(var(--gutter), 4vw, 56px);
	border-bottom: 1px solid var(--line);
}
.site-head .brand {
	grid-column: 1;
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	text-decoration: none;
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: 1.15rem;
}
.site-head .gather-logo { display: block; height: 36px; width: auto; max-width: 220px; }
.site-head gather-nav,
.site-head .gather-nav { grid-column: 2; justify-self: center; display: flex; gap: 1.4em; font-size: 15px; font-weight: 600; }
.site-head .gather-nav a { color: var(--muted); text-decoration: none; }
.site-head .gather-nav a:hover,
.site-head .gather-nav a[aria-current="page"] { color: var(--ink); }
.site-head gather-account,
.site-head .gather-account { grid-column: 3; justify-self: end; position: static; display: block; font-size: 15px; }
.site-head .gather-account-login { font-weight: 600; color: var(--ink); border-color: var(--ink); border-radius: 0; padding: 5px 14px; }
.site-head .gather-account-login:hover { color: var(--accent); border-color: var(--accent); }
.site-head .gather-account summary { font-weight: 600; border-color: var(--line); border-radius: 0; }
@media (max-width: 600px) {
	.site-head { grid-template-columns: auto auto; }
	.site-head gather-nav,
	.site-head .gather-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* The column. */
/* width: 100% matters: Gather serves the body as a flex column, where an auto-margin item would otherwise shrink to fit its content and the column would change width as a recipe opens. */
.hero-inner,
main {
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The top of the page: the banner full width, the eyebrow, the wordmark and the subtitle over its lower left, in white. */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(340px, 36vw, 470px);
	color: #ffffff;
}
.hero-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 40%;
}
/* A shade from the left and the bottom, where the words sit; the right stays as the picture is. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(0 0 0 / 0.70) 0%, rgb(0 0 0 / 0.40) 45%, rgb(0 0 0 / 0.00) 75%),
		linear-gradient(0deg, rgb(0 0 0 / 0.55) 0%, rgb(0 0 0 / 0.00) 55%);
}
.hero-inner { width: 100%; padding-block: clamp(32px, 5vh, 56px) clamp(28px, 4vh, 44px); }
.hero .eyebrow { color: rgb(255 255 255 / 0.85); margin-bottom: 16px; }
.eyebrow {
	margin: 0 0 14px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}
/* The wordmark, as the logo is drawn: "AI" boxed, then "Defined", here in white. */
.wordmark {
	display: flex;
	align-items: center;
	gap: 0.14em;
	margin: 0 0 18px;
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 1;
	letter-spacing: -0.01em;
	color: #ffffff;
}
.wordmark .mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.36em;
	height: 1.36em;
	border: 0.07em solid #ffffff;
	font-size: 0.76em;
	letter-spacing: -0.04em;
}
.subtitle {
	font-family: var(--display);
	font-style: italic;
	font-size: clamp(1.05rem, 1.9vw, 1.35rem);
	line-height: 1.4;
	color: rgb(255 255 255 / 0.92);
	margin: 0;
	max-width: 44ch;
}

/* The speaker, first: the photograph beside the name and the credentials. */
.presenter {
	margin-top: clamp(28px, 4vh, 40px);
	display: flex;
	gap: 28px;
	align-items: flex-end;
	padding-bottom: 0;
}
.presenter .portrait { flex: none; width: 160px; height: auto; }
.byline {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: 1.35rem;
	margin: 0 0 10px;
}
.credentials {
	list-style: none;
	margin: 0;
	padding: 0 0 0 14px;
	border-left: 3px solid var(--accent);
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.5;
}
.credentials li { margin: 0 0 2px; }
.credentials a, .speaker a { color: var(--accent); }
cite { font-style: italic; }
@media (max-width: 520px) { .presenter { flex-direction: column; gap: 16px; } }

/* The page. */
main { padding-block: 0 64px; }
section { margin-top: clamp(40px, 6vh, 56px); }
h2 {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: 1.55rem;
	line-height: 1.25;
	margin: 0 0 16px;
	padding-top: 18px;
	border-top: 2px solid var(--ink);
}
h3 {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: 1.1rem;
	line-height: 1.3;
	margin: 0 0 6px;
}
p { margin: 0 0 12px; }

/* The opening statement, large, serif, unadorned. */
.opening { margin-top: clamp(28px, 4vh, 40px); }
.opening .lead {
	font-family: var(--display);
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.55;
	color: var(--ink);
	max-width: 60ch;
	margin: 0;
}
.why p { max-width: 62ch; }

/* The takeaways: a numbered list, plain. */
.takeaway-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: takeaway;
}
.takeaway-list li {
	counter-increment: takeaway;
	display: grid;
	grid-template-columns: 36px 1fr;
	column-gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}
.takeaway-list li::before {
	content: counter(takeaway) ".";
	grid-row: 1 / span 2;
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: 1.1rem;
	line-height: 1.3;
	color: var(--accent);
}
.takeaway-list p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Two facts side by side: plain columns with a rule between, no boxes. */
.cards { display: grid; gap: 24px 40px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.cards { grid-template-columns: 1fr 1fr; }
	.cards .card + .card { border-left: 1px solid var(--line); padding-left: 40px; }
}
.card { padding-block: 4px; }
.card p { color: var(--muted); margin: 0; max-width: 40ch; }

/* The speaker: the photograph beside the note. */
.speaker-row { display: flex; gap: 24px; align-items: flex-start; }
.speaker-row p { margin: 0; max-width: 56ch; }
@media (max-width: 520px) { .speaker-row { flex-direction: column; } }

/* The one thing a visitor can do: a flat panel in the paper's second tone. */
.interested {
	background: var(--card);
	border: 1px solid var(--line);
	padding: clamp(22px, 4vw, 32px);
}
.interested h2 { border-top: 0; padding-top: 0; }
.interested p { color: var(--muted); max-width: 56ch; }
.interested .gather-widget { margin-top: 8px; border-radius: 0; }
.pill {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--line);
	font-size: 14px;
	color: var(--muted);
}

/* What people said, when the Social Proof Scroller is on the page. */
.gather-social-proof blockquote {
	margin: 24px 0 0;
	padding-left: 14px;
	border-left: 3px solid var(--accent);
	font-family: var(--display);
	font-size: 1.1rem;
}
.gather-social-proof figcaption { color: var(--muted); }

/* Hand-placed navigation in the site bar: Gather's own <gather-nav> only lists Home, Blog, Events, Forum and Members, so the Recipes link is written by hand, in the same place and style. */
.site-head .site-nav { grid-column: 2; justify-self: center; display: flex; gap: 1.4em; font-size: 15px; font-weight: 600; }
.site-head .site-nav a { color: var(--muted); text-decoration: none; }
.site-head .site-nav a:hover,
.site-head .site-nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) {
	.site-head .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}

/* The recipes page: a title instead of a banner, then one recipe per section with the prompt set in a plain block to copy from. */
.recipes .page-title {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: clamp(1.9rem, 4.5vw, 2.8rem);
	line-height: 1.15;
	margin: 0 0 18px;
	max-width: 22ch;
}
.recipes .opening { margin-top: clamp(36px, 6vh, 56px); }
.recipes .opening .lead { max-width: 62ch; }
.recipe > p { max-width: 62ch; }
.recipe .when { color: var(--muted); }
.recipe .num {
	display: inline-block;
	margin-right: 0.4em;
	color: var(--accent);
}
.prompt {
	margin: 18px 0 14px;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 15px;
	line-height: 1.55;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	color: var(--ink);
}
.recipe .result { color: var(--muted); }
/* A recipe's inner headings, lists, code and the definitions table. */
.recipe h4 { font-family: var(--body); font-weight: 600; font-size: 1rem; margin: 20px 0 6px; }
.recipe h3 { margin-top: 28px; }
.recipe ol, .recipe ul { padding-left: 1.3em; margin: 0 0 12px; }
.recipe li { margin: 0 0 6px; }
.recipe code {
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--card);
	border: 1px solid var(--line);
	padding: 1px 5px;
}
.defs { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.defs th, .defs td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.defs th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.defs td:first-child { white-space: nowrap; padding-right: 18px; }
.recipe code { overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.defs { table-layout: fixed; }
	.defs td:first-child, .defs th:first-child { white-space: normal; width: 32%; padding-right: 10px; }
}
/* The copy row under a recipe's title: a link to the plain-text twin, and the hint. */
.copy-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: -4px 0 18px; font-size: 15px; }
.copy-link {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}
.copy-link:hover { background: var(--accent); color: var(--on-accent); }
.copy-hint { color: var(--muted); }
/* A code sample inside a recipe. */
.recipe .code {
	margin: 10px 0 14px;
	padding: 14px 16px;
	background: var(--card);
	border: 1px solid var(--line);
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
.recipe h4 code { font-size: 0.95em; }
/* The plain-text twin page: the recipe in one block, nothing else. */
main.plain { padding-top: 24px; }
.plain-text {
	margin: 12px 0 0;
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--line);
	font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}
/* A collapsed recipe: the title is the handle, with a marker that turns when it is open. */
details.recipe { margin-top: clamp(28px, 4vh, 40px); }
details.recipe summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; border-top: 2px solid var(--ink); padding-top: 18px; }
details.recipe summary::-webkit-details-marker { display: none; }
details.recipe summary::before { content: "\25B8"; color: var(--accent); font-size: 1.1rem; flex: none; }
details.recipe[open] summary::before { content: "\25BE"; }
details.recipe summary h2 { flex: 1; margin: 0; border-top: 0; padding-top: 0; }
details.recipe summary:hover h2 { color: var(--accent); }
details.recipe .copy-row { margin-top: 14px; }
/* The line after the last recipe. */
.more { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-style: italic; }
