/* FuelTrack Journal ---------------------------------------------------------
   Clean health-media look: white, confident blue, category colour coding,
   Plus Jakarta Sans display + Inter text.
   ------------------------------------------------------------------------- */
:root {
	--bg: #ffffff;
	--tint: #f3f7fd;
	--ink: #0d1b2e;
	--ink-2: #3c4a5e;
	--muted: #6b7789;
	--line: #e3e9f2;
	--blue: #0a5cd5;
	--blue-2: #0847a8;
	--green: #12a15a;
	--radius: 16px;
	--display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--text: "Inter", system-ui, -apple-system, sans-serif;
	--container: 1240px;
	--gutter: clamp(18px, 4vw, 36px);
	--section: clamp(56px, 7vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; }
h2 { font-size: clamp(26px, 3vw, 36px); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-top: 32px; }
.section--tint { background: var(--tint); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.label { font: 700 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.label--light { color: #a9c6f5; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #cfe0fb, #e6f7ee); color: var(--blue-2); font: 800 16px/40px var(--display); text-align: center; flex-shrink: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 999px; font: 700 15px/1 var(--display); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-2); border-color: var(--blue-2); }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--white { background: #fff; color: var(--blue-2); border-color: #fff; }
.btn--white:hover { background: #e9f1fe; border-color: #e9f1fe; }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--display); color: var(--blue); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Category colours */
.card__cat { display: inline-block; font: 700 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--blue); }
.cat--fitness { color: #e0531f; }
.cat--recipes { color: var(--green); }
.cat--weight-loss { color: #8a4dff; }
.cat--healthy-habits { color: #c7366e; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font: 800 21px/1 var(--display); letter-spacing: -0.03em; }
.brand__tag { font: 600 12px/1 var(--text); color: var(--blue); background: #e8f0fd; padding: 5px 8px; border-radius: 6px; }
.primary-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.primary-nav a:hover, .primary-nav .current-menu-item a { color: var(--blue); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--tint); border-radius: 999px; color: var(--muted); }
.header-search input { border: 0; background: none; font: inherit; font-size: 14px; width: 150px; outline: none; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; }

/* Lead */
.lead { padding-block: 36px 48px; }
.lead__grid { display: grid; grid-template-columns: 1.75fr 1fr; gap: 40px; }
.lead-story__media { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; }
.lead-story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.lead-story:hover img { transform: scale(1.03); }
.lead-story__body { padding-top: 22px; max-width: 760px; }
.lead-story h1 { font-size: clamp(32px, 4.2vw, 52px); margin: 12px 0 14px; }
.lead-story h1 a { text-decoration: none; }
.lead-story h1 a:hover { color: var(--blue); }
.lead-story p { font-size: 18px; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 12px; margin: 0; }
.byline strong { display: block; font-size: 14px; }
.byline small { color: var(--muted); font-size: 13px; }
.picks { border-left: 1px solid var(--line); padding-left: 32px; }
.picks .card { padding-block: 18px; border-bottom: 1px solid var(--line); }
.picks .card:last-child { border-bottom: 0; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 14px; }
.card__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--tint); position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 20px; line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--blue); }
.card__excerpt { color: var(--ink-2); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 0; }
.card__meta span + span::before { content: "·"; margin-right: 14px; }
.card--row { flex-direction: row; align-items: center; gap: 16px; }
.card--row .card__media { width: 120px; flex-shrink: 0; aspect-ratio: 1; border-radius: 12px; }
.card--row .card__title { font-size: 16px; }
.card--row .card__meta span:first-child { display: none; }
.card--row .card__meta span + span::before { display: none; }
.card--recipe .card__media { aspect-ratio: 4 / 5; }
.card__badge { position: absolute; left: 12px; bottom: 12px; background: #fff; color: var(--ink); font: 700 12px var(--text); padding: 6px 10px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* Topics */
.topics { border-block: 1px solid var(--line); }
.topics__row { display: flex; align-items: center; gap: 10px; padding-block: 16px; overflow-x: auto; scrollbar-width: none; }
.topics .label { margin: 0 8px 0 0; flex-shrink: 0; }
.topic { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--tint); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background .2s; }
.topic:hover { background: #e2ecfb; }
.topic small { color: var(--muted); font-weight: 500; }

/* App promo */
.promo { background: radial-gradient(circle at 85% 20%, #2f7cf0 0, transparent 45%), linear-gradient(135deg, #0847a8, #0a5cd5); color: #fff; padding-block: clamp(56px, 7vw, 88px); overflow: hidden; }
.promo__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.promo h2 { font-size: clamp(36px, 4.6vw, 58px); letter-spacing: -0.035em; }
.promo__copy > p { font-size: 18px; color: #d7e5fb; max-width: 520px; }
.promo__stats { display: flex; gap: 36px; margin: 32px 0; flex-wrap: wrap; }
.promo__stats strong { display: block; font: 800 32px/1 var(--display); }
.promo__stats span { font-size: 14px; color: #b8cff4; }
.phone { justify-self: center; width: 300px; padding: 12px; background: #0b1424; border-radius: 44px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); transform: rotate(4deg); }
.phone__screen { background: #f6f9fe; color: var(--ink); border-radius: 34px; padding: 26px 20px 20px; }
.phone__top { display: flex; justify-content: space-between; font: 700 15px var(--display); margin-bottom: 18px; }
.phone__top span + span { color: var(--muted); font: 500 12px var(--text); }
.ring { --p: 70; width: 150px; aspect-ratio: 1; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e1e9f6 0); }
.ring > div { width: 120px; aspect-ratio: 1; border-radius: 50%; background: #f6f9fe; display: grid; place-content: center; text-align: center; }
.ring strong { font: 800 26px/1 var(--display); }
.ring small { font-size: 11px; color: var(--muted); }
.macros { display: grid; gap: 9px; margin-bottom: 16px; }
.macros div { display: grid; grid-template-columns: 52px 1fr 36px; align-items: center; gap: 8px; font-size: 11px; }
.macros b { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c) var(--w), #e1e9f6 0); }
.macros em { font-style: normal; font-weight: 700; text-align: right; }
.meals { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.meals li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.meals em { margin-left: auto; font-style: normal; color: var(--muted); font-weight: 500; }
.meals .add { background: none; border: 1.5px dashed #c6d4ea; color: var(--blue); }

/* Popular + newsletter */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.popular ol { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular li { counter-increment: pop; border-bottom: 1px solid #d7e1ef; }
.popular li a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px; padding-block: 18px; text-decoration: none; }
.popular li a::before { content: counter(pop); grid-row: span 2; font: 800 40px/1 var(--display); color: #bcd0ee; }
.popular strong { font: 700 19px/1.3 var(--display); letter-spacing: -0.015em; }
.popular li a:hover strong { color: var(--blue); }
.newsletter { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: 0 20px 40px -30px rgba(13, 27, 46, .3); }
.newsletter__icon { font-size: 30px; display: block; margin-bottom: 12px; }
.newsletter h2 { font-size: 26px; }
.newsletter p { color: var(--ink-2); }
.newsletter form { display: grid; gap: 10px; margin: 18px 0 10px; }
.newsletter input { height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; }
.newsletter input:focus { border-color: var(--blue); outline: none; }
.newsletter small { color: var(--muted); }
.thanks { color: var(--green); font-weight: 700; }

/* Experts */
.experts { border-top: 1px solid var(--line); }
.experts__row { display: flex; align-items: center; gap: 40px; padding-block: 36px; flex-wrap: wrap; }
.experts__row p { max-width: 340px; margin: 0; color: var(--ink-2); font-size: 15px; }
.experts__row strong { color: var(--ink); }
.experts ul { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; margin: 0; padding: 0; }
.experts li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.experts li small { display: block; color: var(--muted); font-size: 12px; }

/* Archive + article */
.archive-head { background: var(--tint); padding-block: 56px 48px; }
.archive-head h1 { font-size: clamp(38px, 5vw, 60px); margin: 0; }
.archive-head__desc { color: var(--ink-2); max-width: 640px; margin-top: 12px; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.article__head { max-width: 860px; padding-top: 40px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; color: var(--blue); font-weight: 600; }
.article__head h1 { font-size: clamp(34px, 4.8vw, 56px); letter-spacing: -0.035em; }
.article__dek { font-size: 20px; color: var(--ink-2); }
.article__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; border-block: 1px solid var(--line); margin-top: 24px; flex-wrap: wrap; }
.reviewed { font-size: 13px; font-weight: 700; color: var(--green); background: #e7f7ee; padding: 6px 12px; border-radius: 999px; }
.article__media { margin-block: 32px; max-width: 1100px; }
.article__media img { border-radius: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__layout { display: grid; grid-template-columns: 60px minmax(0, 680px) 280px; gap: 48px; justify-content: center; padding-bottom: var(--section); }
.article__share { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; justify-items: center; font-size: 12px; color: var(--muted); }
.article__share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; font-weight: 700; color: var(--ink); }
.article__share a:hover { border-color: var(--blue); color: var(--blue); }
.article__aside { position: sticky; top: 100px; align-self: start; }
.newsletter--small { padding: 24px; }
.newsletter--small h2 { font-size: 20px; }
.prose { font-size: 18px; line-height: 1.75; color: #1d2a3d; }
.prose h2 { font-size: 28px; margin: 1.6em 0 .5em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--blue); font: 600 22px/1.45 var(--display); color: var(--ink); }
.prose .lead { font-size: 22px; color: var(--ink); }
.page-content { padding-block: clamp(48px, 7vw, 88px); }
.page-content h1 { font-size: clamp(38px, 5vw, 60px); }

/* Footer */
.site-footer { background: var(--ink); color: #b6c2d3; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid #22344d; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { background: #1b3557; color: #9cc1f7; }
.footer-brand p { margin-top: 16px; max-width: 340px; font-size: 14px; }
.site-footer h3 { font: 700 13px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { text-decoration: none; font-size: 15px; }
.site-footer ul a:hover { color: #fff; }
.footer-app p { font-size: 14px; }
.store-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.store-badges span { border: 1px solid #3a4d67; border-radius: 10px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: #7c8aa0; }

/* Responsive */
@media (max-width: 1100px) {
	.header-search { display: none; }
	.article__layout { grid-template-columns: minmax(0, 680px); }
	.article__share, .article__aside { display: none; }
}
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
	.primary-nav a { display: block; padding: 12px 0; font-size: 17px; }
	.lead__grid, .promo__grid, .split { grid-template-columns: 1fr; }
	.picks { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.phone { transform: none; }
}
@media (max-width: 600px) {
	.grid-3 { grid-template-columns: 1fr; }
	.grid-4 { gap: 18px 12px; }
	.card--recipe .card__title { font-size: 16px; }
	.btn--sm { display: none; }
	.footer-grid { grid-template-columns: 1fr; }
	.section-head { flex-direction: column; align-items: start; }
}
