/* Magzify — magazine theme. Vanilla CSS, no frameworks. */
:root {
  --green: #0d7a64;
  --green-dark: #095c4c;
  --ink: #1d2b33;
  --text: #33424a;
  --muted: #68787f;
  --line: #e9e4d8;
  --bg: #ffffff;
  --bg-alt: #fafaf6;
  --yellow: #ffc907;
  --orange: #e8932c;
  --footer: #10262e;
  --footer-text: #9db4ac;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, .serif { font-family: var(--serif); color: var(--ink); line-height: 1.25; }

/* ---------- Top utility bar ---------- */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a:hover { color: var(--green); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner { display: flex; align-items: center; gap: 34px; height: 72px; }
.logo { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--green); letter-spacing: -0.01em; white-space: nowrap; }
.logo .dot { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: 8px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--green); }
.main-nav .caret { font-size: 10px; margin-left: 2px; }
.header-search { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-btn:hover { border-color: var(--green); color: var(--green); }
.search-field { display: none; align-items: center; }
.search-field.open { display: flex; }
.search-field input {
  font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; width: 220px; outline: none; color: var(--text);
}
.search-field input:focus { border-color: var(--green); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--text); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13.5px; color: var(--muted); padding: 22px 0 6px; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { margin: 0 8px; color: #b9c2c6; }

/* ---------- Image with overlaid title ---------- */
.thumb { position: relative; overflow: hidden; background: #dfe5e7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .thumb img, .thumb.hoverable:hover img { transform: scale(1.04); }
.thumb-title {
  position: absolute; left: 14px; bottom: 34px; right: 14px;
  font-weight: 900; font-size: 19px; line-height: 1.35; letter-spacing: 0.01em;
  color: #fff; text-transform: uppercase; font-family: var(--sans);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
}
.thumb-title .w { display: inline; }
.thumb-title .y {
  background: var(--yellow); color: #12242c; padding: 1px 8px; margin: 2px 0;
  display: inline-block; text-shadow: none; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.thumb-title.lg { font-size: 44px; left: 26px; bottom: 64px; right: 60px; line-height: 1.3; }
.watermark {
  position: absolute; left: 14px; bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-weight: 800; font-size: 13.5px; text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.watermark.lg { left: 26px; bottom: 20px; font-size: 17px; }
.wm-m {
  width: 26px; height: 26px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 900; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; text-shadow: none; flex-shrink: 0;
}
.watermark.lg .wm-m { width: 32px; height: 32px; font-size: 17px; }

/* ---------- Category badge ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; color: #3f4750;
  padding: 5px 12px; border-radius: 7px; line-height: 1.3; white-space: nowrap;
}
.badge.lifestyle { background: #e9e5f7; }
.badge.beauty    { background: #f9e3ea; }
.badge.pets      { background: #f6e7d2; }
.badge.food      { background: #f8e9d3; }
.badge.home      { background: #dfebd8; }
.badge.travel    { background: #dde9f6; }

/* ---------- Article cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(20,40,50,.10); transform: translateY(-3px); }
.card .thumb { aspect-ratio: 16 / 10; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-body h3 { font-size: 18.5px; font-weight: 700; }
.card-body h3 a:hover { color: var(--green); }
.card-body .excerpt { font-size: 14px; color: var(--muted); line-height: 1.55; }
.meta { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.meta .dot { margin: 0 6px; color: #c3cdd2; }

/* ---------- Homepage hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1.95fr 1fr; gap: 26px; padding: 26px 0 8px; align-items: start; }
.hero-feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero-feature .thumb { aspect-ratio: 16 / 8.2; }
.hero-feature .card-body { padding: 20px 24px 22px; }
.hero-feature h2 { font-size: 25px; }
.hero-side { display: flex; flex-direction: column; gap: 18px; }
.side-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.side-card .thumb { width: 128px; flex-shrink: 0; aspect-ratio: 1 / 1; }
.side-card .thumb-title { font-size: 11px; left: 8px; right: 8px; bottom: 8px; line-height: 1.3; }
.side-card .thumb-title .y { padding: 0 4px; }
.side-card .watermark { display: none; }
.side-body { padding: 12px 14px 12px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.side-body h3 { font-size: 16.5px; line-height: 1.35; }
.side-body h3 a:hover { color: var(--green); }
.side-body .meta { padding-top: 0; }

/* ---------- Sections ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: 27px; font-weight: 700; }
.view-all { font-size: 14px; font-weight: 700; color: var(--green); white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---------- Category page ---------- */
.cat-title { font-size: 42px; font-weight: 700; margin: 2px 0 10px; }
.amp {
  display: inline-block; border: 2.5px solid var(--ink); border-radius: 50%;
  width: 44px; height: 44px; line-height: 40px; text-align: center; font-size: 30px;
  vertical-align: baseline; margin: 0 2px;
}
h2 .amp { width: 30px; height: 30px; line-height: 26px; font-size: 20px; border-width: 2px; }
.cat-lede { font-size: 17px; color: var(--text); max-width: 720px; margin-bottom: 26px; }
.feature-split {
  display: grid; grid-template-columns: 1.55fr 1fr; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
}
.feature-split .thumb { aspect-ratio: auto; min-height: 320px; }
.feature-split .thumb-title { font-size: 30px; left: 22px; bottom: 58px; right: 40px; }
.feature-split .watermark { left: 22px; }
.feature-body { padding: 34px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.feature-body h2 { font-size: 31px; }
.feature-body h2 a:hover { color: var(--green); }
.feature-body .excerpt { font-size: 16px; color: var(--text); }
.feature-body .meta { margin-top: auto; padding-top: 18px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; justify-content: center; margin: 34px 0 8px; }
.pagination a, .pagination span {
  min-width: 46px; height: 46px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  font-weight: 700; font-size: 15px; color: var(--text);
}
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Popular numbered list ---------- */
.popular-block { padding: 40px 0 54px; }
.popular-block h2 { font-size: 27px; margin-bottom: 8px; }
.pop-list { list-style: none; }
.pop-list li { display: flex; align-items: baseline; gap: 26px; padding: 17px 4px; border-bottom: 1px solid var(--line); }
.pop-list li:last-child { border-bottom: 0; }
.pop-num { font-size: 22px; font-weight: 900; color: var(--green); font-family: var(--serif); min-width: 24px; }
.pop-list a { font-size: 17px; font-weight: 600; color: var(--ink); }
.pop-list a:hover { color: var(--green); }

/* ---------- Article page ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 250px; gap: 44px; align-items: start; padding-bottom: 10px; }
.article-main { min-width: 0; }
.article-hero { border-radius: var(--radius); margin: 20px 0 26px; }
.article-hero .thumb { aspect-ratio: 16 / 8.4; border-radius: var(--radius); }
/* Hero matches the article text-column width on desktop: compact, never dominates the fold */
@media (min-width: 1025px) {
  .article-hero { max-width: calc(100% - 250px - 44px); }
}
.article-hero .thumb-title { font-size: 40px; left: 26px; bottom: 66px; right: 80px; }
.article-title { font-size: 40px; font-weight: 700; margin: 12px 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.byline .wm-m { width: 40px; height: 40px; font-size: 19px; }
.byline strong { display: block; font-size: 14.5px; color: var(--ink); }
.byline span { font-size: 13px; color: var(--muted); }
.article-lede { font-size: 17.5px; color: var(--text); margin: 18px 0 22px; }
.key-takeaways {
  background: #fdf6e4; border: 1px solid #f0e2bd; border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 30px;
}
.key-takeaways h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.key-takeaways ul { margin-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 15px; }
.article-body h2 { font-size: 25px; margin: 34px 0 12px; }
.article-body p { margin-bottom: 16px; font-size: 16.5px; }
.article-body ul.bullets { margin: 0 0 18px 22px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.article-body ul.bullets strong { color: var(--ink); }
.step h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; color: var(--ink); margin: 24px 0 8px; }
.faq-block h2 { font-size: 25px; margin: 36px 0 6px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.faq-item p { font-size: 15.5px; color: var(--text); }
.toc {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  position: sticky; top: 24px; background: #fff;
}
.toc h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.09em; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; font-size: 14px; color: var(--text); padding: 5px 0; border-left: 2px solid transparent; }
.toc a:hover, .toc a.active { color: var(--green); }
.author-box {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: flex; gap: 16px; align-items: flex-start; margin: 34px 0; background: #fff;
}
.author-box .wm-m { width: 52px; height: 52px; font-size: 24px; flex-shrink: 0; }
.author-box strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 4px; }
.author-box p { font-size: 14.5px; color: var(--muted); }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 44px; }
.pn-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; background: #fff; }
.pn-card:hover { border-color: var(--green); }
.pn-card .kicker { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted); display: block; margin-bottom: 6px; }
.pn-card.next { text-align: right; }
.pn-card strong { font-family: var(--serif); font-size: 17px; color: var(--ink); font-weight: 700; }

/* ---------- Quick answers ---------- */
.quick-answers { padding: 40px 0 50px; }
.quick-answers h2 { font-size: 24px; margin-bottom: 4px; }
.quick-answers .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.qa-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-pills a {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--text);
}
.qa-pills a:hover { border-color: var(--green); color: var(--green); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--green); color: #fff; padding: 44px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.newsletter h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.newsletter p { color: #d7e9e2; font-size: 14.5px; }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  flex: 1; font: inherit; font-size: 15px; border: 0; border-radius: 10px; padding: 14px 18px; outline: none; min-width: 0;
}
.newsletter-form button {
  font: inherit; font-weight: 800; font-size: 15px; color: #fff; background: var(--orange);
  border: 0; border-radius: 10px; padding: 14px 30px; cursor: pointer; white-space: nowrap;
}
.newsletter-form button:hover { filter: brightness(1.07); }
.newsletter-msg { font-size: 14px; color: #fff; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 52px 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-brand .logo { color: #fff; font-size: 28px; }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14.5px; font-weight: 800; margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: grid; grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split .thumb { min-height: 260px; aspect-ratio: 16/9; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .thumb-title.lg { font-size: 34px; }
}
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 111px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; z-index: 60;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(15,35,45,.10);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 24px; border-top: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
  .header-inner { gap: 14px; }
  .header-search { margin-left: auto; }
  .search-field input { width: 150px; }
  .hero-side { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .topbar-inner nav { display: none; }
  .cat-title { font-size: 33px; }
  .article-title { font-size: 30px; }
  .thumb-title.lg { font-size: 26px; left: 16px; right: 16px; bottom: 52px; }
  .article-hero .thumb-title { font-size: 26px; left: 16px; right: 16px; bottom: 52px; }
  .feature-split .thumb-title { font-size: 22px; left: 16px; right: 16px; bottom: 46px; }
  .prev-next { grid-template-columns: 1fr; }
  .pn-card.next { text-align: left; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; }
  .side-card .thumb { width: 104px; }
}

/* SEO: screen-reader-only H1 on homepage */
.visually-hidden{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
