/* 6-Week Cycles: shared blog / articles styles. Lato + teal. */
:root {
	--teal: #2a8f91;
	--teal-bright: #42bfc2;
	--teal-soft: #e8f6f6;
	--ink: #1f2323;
	--body-ink: #333;
	--muted: #8a8a8a;
}
* { box-sizing: border-box; }
body.blog-body { color: var(--body-ink); font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; top: -100%; left: 0; background: var(--teal-bright); color: #fff; padding: 8px 16px; z-index: 10000; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 0; }
*:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }

/* Reading progress bar (the scrolling color across the top) */
#read-progress { position: fixed; top: 0; left: 0; width: 100%; height: 5px; background: transparent; z-index: 200; pointer-events: none; }
#read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2a8f91, #42bfc2 55%, #8ed6d8); transition: width .08s linear; }

/* Masthead / header, left edge aligns with content */
.blog-bar { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.blog-bar-inner { max-width: 1080px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.blog-bar .brand { display: inline-block; }
.blog-bar .brand img { max-width: 150px; height: auto; display: block; }
.blog-nav a { color: #333; text-decoration: none; font-weight: 700; margin-left: 26px; font-size: 15px; }
.blog-nav a:hover, .blog-nav a:focus { color: var(--teal); }

/* ===== Single article ===== */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; }
.article-badge { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; padding: 6px 13px; border-radius: 999px; }
.article-title { font-size: 3rem; line-height: 1.1; margin: 20px 0 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.article-lead { font-size: 1.5rem; line-height: 1.5; color: #555; font-weight: 300; margin-bottom: 28px; }
.article-meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; padding-bottom: 28px; border-bottom: 1px solid #eee; }
.article-body { font-size: 1.3rem; line-height: 1.75; }
.article-body h2 { font-size: 2rem; margin: 48px 0 16px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.article-body h3 { font-size: 1.5rem; margin: 34px 0 12px; font-weight: 700; color: var(--ink); }
.article-body p { margin: 0 0 22px; }
.article-body ol, .article-body ul { margin: 0 0 24px; padding-left: 24px; }
.article-body li { margin-bottom: 12px; }
.article-body strong { color: #1a1a1a; }
.article-body em { color: var(--teal); font-style: italic; }
.article-body a { color: var(--teal); }
.article-body blockquote { border-left: 4px solid var(--teal-bright); background: #f6fafa; margin: 0 0 24px; padding: 18px 24px; color: #3a3a3a; font-style: italic; font-size: 1.4rem; line-height: 1.5; border-radius: 0 8px 8px 0; }
.article-body blockquote cite { display: block; font-style: normal; font-weight: 700; color: var(--teal); font-size: 1rem; margin-top: 8px; }
.article-body blockquote cite a { color: var(--teal); }
.plan-math { background: #f6fafa; border: 1px solid #e3f0f0; border-radius: 8px; padding: 20px 24px; font-size: 1.2rem; line-height: 1.85; }
.sheet-btn { display: inline-block; background: var(--teal); color: #fff !important; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 6px; margin: 6px 0 8px; font-size: 1.1rem; }
.sheet-btn:hover { background: #237577; color: #fff; }
.article-video { position: relative; padding-bottom: 56.25%; height: 0; margin: 28px 0 8px; border-radius: 12px; overflow: hidden; background: #000; }
.article-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.article-caption { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.article-hero { margin: 0 0 10px; border-radius: 12px; overflow: hidden; }
.article-hero img { display: block; width: 100%; height: auto; }
.article-body figure { margin: 32px 0; }
.article-body figure img { display: block; width: 100%; height: auto; border-radius: 12px; }
.article-body figure figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.article-more { max-width: 760px; margin: 0 auto; padding: 36px 24px 64px; }
.article-more a { color: var(--teal); font-weight: 700; text-decoration: none; }
.article-more a:hover { text-decoration: underline; }

/* ===== Email CTA ===== */
.tips-cta { background: var(--teal); color: #fff; margin: 56px 0 0; }
.tips-cta-inner { max-width: 760px; margin: 0 auto; padding: 52px 24px; }
.tips-cta h2 { color: #fff; font-size: 1.9rem; font-weight: 700; margin: 0 0 12px; }
.tips-cta p { color: #eafafa; font-size: 1.2rem; line-height: 1.6; margin: 0 0 22px; }
.tips-fields { display: flex; gap: 10px; flex-wrap: wrap; max-width: 540px; }
.tips-fields input[type="email"] { flex: 1 1 240px; min-width: 0; border: 0; border-radius: 6px; padding: 15px 16px; font-size: 1.05rem; color: #333; }
.tips-fields button { flex: 0 0 auto; background: #fff; color: var(--teal); border: 2px solid #fff; border-radius: 6px; padding: 14px 26px; font-weight: 700; font-size: 1.05rem; cursor: pointer; }
.tips-fields button:hover { background: #eafafa; }
.tips-fields button:disabled { opacity: .6; cursor: default; }
.tips-fine { color: #cdeeee !important; font-size: .92rem !important; margin: 14px 0 0 !important; }
.tips-thanks { font-size: 1.2rem !important; font-weight: 700; color: #fff !important; margin: 6px 0 0 !important; }
.tips-error { color: #ffe0e0 !important; margin: 12px 0 0 !important; }

/* ===== Magazine listing ===== */
.mag-wrap { max-width: 1080px; margin: 0 auto; padding: 44px 24px 24px; }
.mag-masthead { border-bottom: 3px solid var(--ink); padding-bottom: 18px; margin-bottom: 40px; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.mag-masthead h1 { font-size: 3.4rem; font-weight: 900; letter-spacing: -.02em; margin: 0; color: var(--ink); line-height: 1; }
.mag-masthead p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.mag-featured { display: grid; grid-template-columns: 1.05fr .95fr; border-radius: 16px; overflow: hidden; margin-bottom: 54px; text-decoration: none; box-shadow: 0 26px 60px -30px rgba(42,143,145,.85); }
.mag-featured .feat-img { position: relative; min-height: 360px; background: #17494a; }
.mag-featured .feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mag-featured .feat-panel { background: linear-gradient(135deg, #2a8f91, #42bfc2); color: #fff; padding: 48px 46px; display: flex; flex-direction: column; justify-content: center; }
.mag-featured .feat-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #eafafa; }
.mag-featured h2 { font-size: 2.5rem; line-height: 1.08; font-weight: 800; margin: 14px 0 14px; color: #fff; letter-spacing: -.015em; }
.mag-featured p { font-size: 1.18rem; line-height: 1.55; color: #eafafa; margin: 0 0 22px; }
.mag-featured .feat-read { font-weight: 700; color: #fff; font-size: 1.1rem; }
.mag-featured:hover h2 { text-decoration: underline; }

.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px 34px; padding-bottom: 8px; }
.mag-card { text-decoration: none; color: inherit; display: block; }
.mag-card .card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 16px; background: #eee; }
.mag-card .post-badge { display: inline-block; background: var(--teal-soft); color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px; padding: 5px 11px; border-radius: 999px; }
.mag-card h3 { font-size: 1.5rem; line-height: 1.16; font-weight: 800; margin: 12px 0 9px; color: var(--ink); letter-spacing: -.01em; }
.mag-card:hover h3 { color: var(--teal); }
.mag-card p { font-size: 1.02rem; line-height: 1.5; color: #555; margin: 0 0 10px; }
.mag-card .post-card-meta { color: var(--muted); font-size: 13px; }

/* ===== Footer ===== */
.blog-footer { background: #f5f7f7; border-top: 1px solid #e7ecec; }
.blog-footer-inner { max-width: 1080px; margin: 0 auto; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.blog-footer p { margin: 0; color: #777; font-size: 14px; }
.blog-footer a { color: var(--teal); text-decoration: none; }
.blog-social { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; align-items: center; }
.blog-social a { color: #555; font-weight: 700; font-size: 16px; }
.blog-social a:hover { color: var(--teal); }

@media (max-width: 780px) {
	.article-title { font-size: 2.1rem; }
	.article-lead { font-size: 1.3rem; }
	.article-body { font-size: 1.18rem; }
	.article-body h2 { font-size: 1.7rem; }
	.blog-bar .brand img { max-width: 122px; }
	.blog-nav a { margin-left: 16px; font-size: 14px; }
	.mag-masthead h1 { font-size: 2.4rem; }
	.mag-featured { grid-template-columns: 1fr; }
	.mag-featured .feat-img { min-height: 210px; }
	.mag-featured .feat-panel { padding: 32px 26px; }
	.mag-featured h2 { font-size: 2rem; }
	.mag-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (min-width: 781px) and (max-width: 980px) {
	.mag-grid { grid-template-columns: repeat(2, 1fr); }
}
