/* ==========================================================================
   Jasmine Ayu Lanka — design tokens
   Palette and type pairing carried over from the Phase 1 brand artifact:
   deep forest green + gold/brass on warm cream, serif headings, sans body.
   ========================================================================== */

:root {
	--jal-green-deep: #1c2415;
	--jal-green: #2f3b26;
	--jal-green-soft: #4a5b3a;
	--jal-gold: #a3812f;
	--jal-gold-soft: #d8c48a;
	--jal-cream: #f2ecda;
	--jal-cream-alt: #e8e0c6;
	--jal-card: #faf7ec;
	--jal-ink: #2b2a22;
	--jal-ink-soft: #635f4d;
	--jal-rule: rgba(43, 42, 34, 0.14);

	--jal-font-display: Iowan, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	--jal-font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--jal-container-width: 1120px;
	--jal-radius: 3px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--jal-cream);
	color: var(--jal-ink);
	font-family: var(--jal-font-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--jal-font-display);
	font-weight: 600;
	line-height: 1.2;
	text-wrap: balance;
	color: var(--jal-ink);
	margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--jal-green); text-decoration-color: var(--jal-gold-soft); }
a:hover { color: var(--jal-gold); }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.jal-skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	background: var(--jal-green-deep);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--jal-radius);
	z-index: 1000;
}

:focus-visible {
	outline: 2px solid var(--jal-gold);
	outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.jal-container {
	max-width: var(--jal-container-width);
	margin: 0 auto;
	padding: 48px 24px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.jal-site-header {
	background: var(--jal-green-deep);
	border-bottom: 3px solid var(--jal-gold);
}

.jal-header-inner {
	max-width: var(--jal-container-width);
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.jal-branding { margin-right: auto; }

.jal-site-title {
	font-family: var(--jal-font-display);
	font-size: 22px;
	font-weight: 700;
	color: #f6f2e0;
	text-decoration: none;
	letter-spacing: 0.02em;
}

.jal-branding img { max-height: 56px; width: auto; }

.jal-nav-menu {
	list-style: none;
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.jal-nav-menu a {
	color: #d9d3b6;
	text-decoration: none;
	font-size: 15px;
}

.jal-nav-menu a:hover,
.jal-nav-menu .current-menu-item > a {
	color: var(--jal-gold-soft);
}

/* ==========================================================================
   CTA button (WhatsApp) — the one action every page routes to
   ========================================================================== */

.jal-cta {
	display: inline-block;
	background: var(--jal-gold);
	color: var(--jal-green-deep);
	font-weight: 700;
	font-size: 14.5px;
	padding: 10px 20px;
	border-radius: 30px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}

.jal-cta:hover {
	background: var(--jal-gold-soft);
	color: var(--jal-green-deep);
}

.jal-cta-footer { margin: 24px 0; }

/* ==========================================================================
   Main content
   ========================================================================== */

.jal-site-main { min-height: 40vh; }

.jal-entry-title { font-size: clamp(28px, 4vw, 40px); }

.jal-entry-meta {
	color: var(--jal-ink-soft);
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.jal-entry-thumbnail { margin: 24px 0; border-radius: var(--jal-radius); overflow: hidden; }

.jal-entry-content { max-width: 68ch; }

/* ==========================================================================
   Blog archive
   ========================================================================== */

.jal-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 28px;
	margin-top: 32px;
}

.jal-archive-card {
	background: var(--jal-card);
	border: 1px solid var(--jal-rule);
	border-radius: var(--jal-radius);
	overflow: hidden;
}

.jal-archive-card-link { text-decoration: none; color: inherit; display: block; }

.jal-archive-card-thumb { aspect-ratio: 16 / 10; overflow: hidden; }
.jal-archive-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.jal-archive-card-title { font-size: 19px; margin: 16px 20px 8px; }

.jal-archive-card-excerpt {
	font-size: 14px;
	color: var(--jal-ink-soft);
	margin: 0 20px 20px;
}

.jal-archive-pagination { margin-top: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.jal-site-footer {
	background: var(--jal-cream-alt);
	border-top: 1px solid var(--jal-rule);
	margin-top: 64px;
}

.jal-footer-inner {
	max-width: var(--jal-container-width);
	margin: 0 auto;
	padding: 48px 24px 32px;
}

.jal-footer-name {
	font-family: var(--jal-font-display);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 6px;
}

.jal-footer-credential,
.jal-footer-location {
	font-size: 13.5px;
	color: var(--jal-ink-soft);
	margin-bottom: 4px;
}

.jal-footer-nav { margin: 20px 0; }
.jal-footer-nav .jal-nav-menu a { color: var(--jal-green); }
.jal-footer-nav .jal-nav-menu a:hover { color: var(--jal-gold); }

.jal-footer-copyright {
	font-size: 12.5px;
	color: var(--jal-ink-soft);
	margin: 24px 0 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
	.jal-header-inner { flex-direction: column; align-items: flex-start; }
	.jal-cta-header { align-self: stretch; text-align: center; }
	.jal-container { padding: 32px 20px; }
}
