<!doctype html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:o="urn:schemas-microsoft-com:office:office">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="x-apple-disable-message-reformatting">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<!--[if mso]>
			<noscript>
				<xml>
					<o:OfficeDocumentSettings>
						<o:PixelsPerInch>96</o:PixelsPerInch>
					</o:OfficeDocumentSettings>
				</xml>
			</noscript>
			<![endif]-->
		<title>{{ site_name }}</title>
		<style type="text/css">
			body, table, td, p, a, li, blockquote {
				-webkit-text-size-adjust: 100%;
				-ms-text-size-adjust: 100%;
			}
			table, td { mso-table-lspace: 0pt; mso-table-rspace: 0pt; }
			img { -ms-interpolation-mode: bicubic; border: 0; height: auto; line-height: 100%; outline: none; text-decoration: none; }
			body { margin: 0 !important; padding: 0 !important; width: 100% !important; }
			a[x-apple-data-detectors] { color: inherit !important; text-decoration: none !important; }
			@media only screen and (max-width: 620px) {
				.email-container { width: 100% !important; max-width: 100% !important; }
				.content-padding { padding-left: 24px !important; padding-right: 24px !important; }
			}
		</style>
	</head>
	<body style="background-color: {{ colors.background|default:"#f4f1ea" }}; margin: 0; padding: 0; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;">
		{% if preview_text %}<div style="display: none; max-height: 0; overflow: hidden; mso-hide: all;">{{ preview_text }}</div>{% endif %}
		<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
				<td align="center" style="padding: 40px 10px; background-color: {{ colors.background|default:"#f4f1ea" }};">
					<table role="presentation" class="email-container" width="600" cellspacing="0" cellpadding="0" border="0" style="max-width: 600px; background-color: {{ colors.card|default:"#ffffff" }}; border: 2px solid {{ colors.foreground|default:"#111111" }};">
						<!-- Masthead wordmark -->
						<tr>
							<td align="left" style="padding: 28px 40px 20px 40px; border-bottom: 2px solid {{ colors.foreground|default:"#111111" }};">
								{% if logo_url %}<img src="{{ logo_url }}" alt="{{ site_name }}" style="max-height: 40px; width: auto; display: block;">{% elif site_name %}<h1 style="margin: 0; font-family: 'Archivo Black', 'Arial Black', sans-serif; text-transform: uppercase; font-size: 30px; line-height: 1; color: {{ colors.foreground|default:"#111111" }}; letter-spacing: -0.02em;">{{ site_name }}</h1>{% endif %}
							</td>
						</tr>
						<!-- Body -->
						<tr>
							<td class="content-padding" style="padding: 32px 44px 36px 44px; color: {{ colors.foreground|default:"#111111" }}; font-size: 16px; line-height: 1.6; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;">{{ body|safe }}</td>
						</tr>
						<!-- Footer -->
						<tr>
							<td style="padding: 20px 44px 32px 44px; border-top: 2px solid {{ colors.foreground|default:"#111111" }};">
								<table role="presentation" width="100%" cellspacing="0" cellpadding="0" border="0">
									<tr>
										<td align="left" style="font-family: 'IBM Plex Mono', 'Courier New', monospace; font-size: 12px; color: {{ colors.mutedForeground|default:"#6b6b6b" }}; text-transform: uppercase; letter-spacing: 0.1em;">
											<p style="margin: 0 0 8px;">{{ site_name }}</p>
											{% if site_url %}<p style="margin: 0 0 8px;"><a href="{{ site_url }}" style="color: {{ colors.accent|default:"#ec0f6e" }}; text-decoration: none; border-bottom: 2px solid {{ colors.accent|default:"#ec0f6e" }};">{{ site_url }}</a></p>{% endif %}
											{% if unsubscribe_url %}<p style="margin: 12px 0 0; font-size: 11px;"><a href="{{ unsubscribe_url }}" style="color: {{ colors.mutedForeground|default:"#6b6b6b" }}; text-decoration: underline;">Unsubscribe</a></p>{% endif %}
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>
