@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-600semibold.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 400; font-display: swap; src: url('/fonts/nunito-400regular.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('/fonts/nunito-700bold.woff') format('woff'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('/fonts/nunito-800extrabold.woff') format('woff'); }

:root {
	--paper: #231a14;
	--paper2: #2d2119;
	--card: #2f231b;
	--parchment: #3a2a1b;
	--rose: #35211e;
	--ink: #f1e6d4;
	--ink-soft: #cdb8a0;
	--ink-faint: #93806d;
	--line: #4a3a2e;
	--accent: #e2794a;
	--accent-ink: #2a160c;
	--accent-soft: #4c2d1f;
	--display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(226, 121, 74, 0.16), transparent 70%), var(--paper);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.12; margin: 0 0 14px; }
h2 { font-size: clamp(24px, 3.4vw, 30px); line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 20px; line-height: 1.25; margin: 26px 0 6px; }
p { margin: 0 0 14px; }
p, li { color: var(--ink-soft); }
strong { color: var(--ink); }

.eyebrow { font-weight: 800; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 8px; }
.lead { font-size: 20px; color: var(--ink-soft); }

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.1;
	text-decoration: none;
}
.button-primary { background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { filter: brightness(1.08); }
.button-secondary { border-color: var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--paper2); }
.button-small { padding: 7px 15px; font-size: 15px; }

header.top { padding: 16px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 22px; }
.brand img { width: 40px; height: 40px; }

.crumbs { font-size: 14px; color: var(--ink-faint); margin: 8px 0 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { color: var(--ink-faint); margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* A card drawn as a book's page: a shaded spine edge down the left. */
.page {
	background: var(--tone, var(--card));
	background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.3) 2%, transparent 10%, transparent 95%, rgba(0, 0, 0, 0.18) 100%);
	border: 1px solid var(--line);
	border-radius: 3px 18px 18px 3px;
	padding: 36px 32px 28px 40px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6), 3px 3px 0 -1px #2a1f18, 6px 6px 0 -2px #261c16;
}
.tone-parchment { --tone: var(--parchment); }
.tone-rose { --tone: var(--rose); }

article ul, article ol { margin: 0 0 14px; padding-left: 24px; }
article li { margin-bottom: 8px; }
article h2:first-of-type { margin-top: 32px; }

.tip { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 20px 0; }
.tip p { color: var(--ink); margin: 0; }

.cta { margin: 32px 0 0; text-align: center; }
.cta .page { padding: 32px 24px; }
.cta h2 { margin-top: 0; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

.guide-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.guide-list li { margin: 0; }
.guide-list a { display: block; height: 100%; text-decoration: none; padding: 22px 22px 18px 28px; }
.guide-list a:hover { filter: brightness(1.08); }
.guide-list h2, .guide-list h3 { font-size: 20px; line-height: 1.25; margin: 0 0 6px; color: var(--ink); }
.guide-list p { margin: 0; }

.more { margin-top: 48px; }
.more h2 { margin-top: 0; }

footer { padding: 40px 0 48px; color: var(--ink-faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
	.page { padding: 28px 20px 20px 26px; }
	.guide-list { grid-template-columns: 1fr; }
	.lead { font-size: 18px; }
}
