/* Ta Mère — main stylesheet
 *
 * Visual direction belongs to Benoit / Rachel. The rules below are an
 * intentionally minimal starting point: a layout skeleton and a small set of
 * design tokens that get overwritten as soon as the design language lands.
 */

:root {
	/* Tokens — placeholders. Will be replaced once Rachel hands over the palette. */
	--color-bg: #fbf8f3;
	--color-ink: #1a1a1a;
	--color-accent: #c4392f;
	--color-muted: #6b6b6b;

	--font-display: Georgia, "Times New Roman", serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--measure: 65ch;
	--gutter: clamp(1rem, 2vw, 2rem);
}

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

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.55;
}

a { color: var(--color-accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

.site-header,
.site-footer,
.site-main { padding: var(--gutter); }

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gutter);
	border-bottom: 1px solid var(--color-ink);
}

.site-header__brand {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--color-ink);
	text-decoration: none;
}

.site-header__nav ul,
.site-footer__nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }

.hero {
	padding: clamp(3rem, 8vw, 6rem) 0;
	max-width: var(--measure);
}

.hero__title { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4rem); margin: 0 0 0.5rem; }
.hero__tagline { color: var(--color-muted); margin: 0; }

.books-grid__title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin: 2rem 0 1rem;
}

.books-grid__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--gutter);
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.book-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.book-card__cover {
	aspect-ratio: 288 / 362;
	object-fit: cover;
	background: #ddd;
}

.book-card__title {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0.5rem 0 0;
}

.site-footer {
	margin-top: 4rem;
	border-top: 1px solid var(--color-ink);
	display: flex;
	flex-wrap: wrap;
	gap: var(--gutter);
	justify-content: space-between;
	color: var(--color-muted);
	font-size: 0.875rem;
}
