/* cookies.bruk.org, same look as bruk.org's bruk-modern.css */

:root
{
	--bg: #000000;
	--accent: #de9d38;
	--accent-soft: rgba(222, 157, 56, 0.12);
	--text: #f2f2f2;
	--muted: #8a8a8a;
	--card: rgba(255, 255, 255, 0.035);
	--line: rgba(255, 255, 255, 0.08);
	--radius: 14px;
	--sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Consolas, Menlo, monospace;
}

*,
*::before,
*::after
{
	box-sizing: border-box;
}

body
{
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: var(--sans);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	background:
		radial-gradient(800px 500px at 10% -10%, rgba(222, 157, 56, 0.16), transparent 70%),
		radial-gradient(700px 500px at 100% 0%, rgba(190, 110, 60, 0.10), transparent 70%),
		var(--bg);
	background-attachment: fixed;
}

/* faint dot grid over everything */
body::before
{
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(to bottom, black, transparent 80%);
	-webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
	pointer-events: none;
}

::selection
{
	background: var(--accent);
	color: var(--bg);
}

a
{
	color: var(--accent);
	text-underline-offset: 3px;
}

.wrap
{
	max-width: 960px;
	margin: 0 auto;
	padding: 64px 24px 120px;
}

/* breadcrumb */

.crumb
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 28px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 13px;
	text-decoration: none;
	transition: color 0.2s;
}

.crumb:hover,
.crumb:focus-visible
{
	color: var(--accent);
	outline: none;
}

/* header */

.masthead
{
	padding-bottom: 28px;
	margin-bottom: 36px;
	border-bottom: 1px dashed rgba(222, 157, 56, 0.6);
}

.title
{
	margin: 0;
	font-size: clamp(38px, 8vw, 68px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1;
	/* room for descenders (g, p, y), which the clipped gradient would otherwise cut off */
	padding-bottom: 0.14em;
	background: linear-gradient(180deg, #f3bd63 0%, var(--accent) 55%, #b9761c 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 0 28px rgba(222, 157, 56, 0.25));
}

.tagline
{
	margin: 14px 0 0;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 14px;
}

.cursor
{
	display: inline-block;
	width: 8px;
	height: 1.1em;
	margin-left: 4px;
	vertical-align: -0.2em;
	background: var(--accent);
	animation: blink 1.1s steps(1) infinite;
}

@keyframes blink
{
	50% { opacity: 0; }
}

/* section headings with the trailing dashed rule */

.label
{
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 48px 0 16px;
	color: var(--accent);
	font-family: var(--mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.label::after
{
	content: "";
	flex: 1;
	border-bottom: 1px dashed rgba(222, 157, 56, 0.35);
}

/* prose blocks */

.prose
{
	max-width: 68ch;
	color: #d6d6d6;
	font-size: 17px;
}

.prose p
{
	margin: 0 0 14px;
}

.stamp
{
	display: inline-block;
	margin-right: 8px;
	padding: 1px 8px;
	border-radius: 6px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--mono);
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

/* photo log: a grid of captioned photos, read left to right */

.log
{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 14px;
	counter-reset: shot;
}

.log > li
{
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
}

.log .pic
{
	counter-increment: shot;
	position: relative;
	display: grid;
	place-items: center;
	padding: 12px;
	background: #0b0b0b;
	border-bottom: 1px solid var(--line);
}

/* photo number in the corner */
.log .pic::after
{
	content: counter(shot, decimal-leading-zero);
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 0 6px;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.7);
	color: var(--accent);
	font-family: var(--mono);
	font-size: 11px;
}

.log img
{
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.log p
{
	margin: 0;
	padding: 12px 14px 14px;
	color: #d6d6d6;
	font-size: 15px;
}

.log p + .pic
{
	border-top: 1px solid var(--line);
}

.log .stamp
{
	margin-bottom: 4px;
}

/* a log card that spans the full row: text-only moments, or wide photos */
.log > li.wide
{
	grid-column: 1 / -1;
}

.log > li.note
{
	border-style: dashed;
	border-color: rgba(222, 157, 56, 0.35);
	background: rgba(222, 157, 56, 0.04);
}

/* big photos shown on their own */

.hero
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.prose + .hero,
.hero + .prose
{
	margin-top: 24px;
}

.hero li
{
	display: grid;
	place-items: center;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #0b0b0b;
}

.hero img
{
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* index: the bakery cards */

.bakes
{
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
	gap: 14px;
}

.bakes a
{
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--card);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bakes .cover
{
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #0b0b0b;
}

.bakes .cover img
{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.bakes .info
{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
}

.bakes .info span
{
	flex: 1;
	font-weight: 500;
	line-height: 1.3;
}

.bakes .info small
{
	display: block;
	margin-bottom: 2px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.bakes .go
{
	color: var(--accent);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.2s, transform 0.2s;
}

.bakes a:hover,
.bakes a:focus-visible
{
	border-color: rgba(222, 157, 56, 0.7);
	background: rgba(222, 157, 56, 0.06);
	box-shadow: 0 8px 30px -12px rgba(222, 157, 56, 0.45);
	transform: translateY(-2px);
	outline: none;
}

.bakes a:hover .cover img
{
	transform: scale(1.04);
}

.bakes a:hover .go,
.bakes a:focus-visible .go
{
	opacity: 1;
	transform: none;
}

/* sign-off at the bottom of each page */

.outro
{
	margin-top: 56px;
	padding-top: 24px;
	border-top: 1px dashed rgba(222, 157, 56, 0.35);
	color: var(--muted);
}

.outro p
{
	margin: 0 0 8px;
}

@media (max-width: 600px)
{
	.wrap
	{
		padding: 44px 16px 100px;
	}

	.log
	{
		grid-template-columns: 1fr;
	}

	.bakes .go
	{
		opacity: 0.6;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce)
{
	.cursor { animation: none; }
	.bakes a,
	.bakes .cover img,
	.bakes .go { transition: none; }
}
