@charset "UTF-8";
/* Guardwise — static blog template (structure mirrors reference layout, brand colors) */

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source-sans-pro-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --gw--color--accent: #0b6fd6;
  --gw--color--accent-dark: #084e97;
  --gw--color--navy: #0b1f3a;
  --gw--color--highlight: #eef5fd;
  --gw--color--base: #ffffff;
  --gw--color--text: #1d2733;
  --gw--color--muted: #5c6b7c;
  --gw--color--line: #dbe4ee;
  --gw--size--container: 1240px;
  --gw--space--site: 20px;
  --gw--radius: 12px;
  --gw--shadow: 0 1px 3px rgba(11, 31, 58, 0.08), 0 4px 14px rgba(11, 31, 58, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--gw--color--text);
  background: var(--gw--color--base);
}
img { max-width: 100%; height: auto; }
a { color: var(--gw--color--accent); text-decoration: none; }
a:hover { color: var(--gw--color--accent-dark); text-decoration: underline; }

.container {
  margin-inline: auto;
  max-width: calc(var(--gw--size--container) + var(--gw--space--site) * 2);
  padding-inline: var(--gw--space--site);
}
.section { margin-block: 0; }
.section-title {
  font-size: 1.45rem; font-weight: 700; color: var(--gw--color--navy);
  margin: 0 0 22px;
}

/* ---------- header ---------- */
.site-header { position: relative; background: var(--gw--color--base); border-bottom: 1px solid var(--gw--color--line); }
.site-header__bg { display: none; }
.site-header__container { display: flex; align-items: center; gap: 14px; padding-block: 12px; }
.site-header__hamburger {
  display: none; appearance: none; background: none; border: 1px solid var(--gw--color--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer; position: relative; flex: 0 0 auto;
}
.site-header__hamburger span, .site-header__hamburger span::before, .site-header__hamburger span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gw--color--navy);
}
.site-header__hamburger span { top: 50%; margin-top: -1px; }
.site-header__hamburger span::before { top: -6px; }
.site-header__hamburger span::after { top: 6px; }
.site-header__logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.site-header__logo img { height: 52px; width: auto; display: block; }
.site-header__brand {
  font-size: 1.5rem; font-weight: 700; color: var(--gw--color--navy); letter-spacing: -0.02em;
}
.site-header__nav { display: block; padding-block: 0 6px; border-top: 0; }
.nav-secondary__menu {
  list-style: none; margin: 0; padding: 8px 0 4px;
  display: flex; flex-wrap: wrap; gap: 2px 22px;
}
.nav-secondary__menu-link {
  display: block; padding: 6px 0; font-weight: 600; font-size: 0.95rem;
  text-transform: capitalize; color: var(--gw--color--muted);
}
.nav-secondary__menu-link:hover { color: var(--gw--color--accent); text-decoration: none; }

/* ---------- hero / archive headers ---------- */
.hero, .archive-header, .article-header[data-theme="highlight"] { background: var(--gw--color--highlight); }
.hero__container { padding-block: 44px 40px; }
.hero__kicker {
  display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 999px;
  background: var(--gw--color--accent); color: #fff; font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero__title { margin: 0 0 10px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.2; color: var(--gw--color--navy); }
.hero__desc { margin: 0; color: var(--gw--color--muted); font-size: 1.05rem; max-width: 62ch; }
.archive-header { padding-block: 34px; }
.archive-header__title { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gw--color--navy); }

/* ---------- post grid / cards ---------- */
.home-posts, .archive-posts { padding-block: 30px 44px; }
.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; background: var(--gw--color--base);
  border: 1px solid var(--gw--color--line); border-radius: var(--gw--radius);
  overflow: hidden; box-shadow: var(--gw--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(11, 31, 58, 0.12); }
.post-card__media { display: block; }
.post-card__figure { margin: 0; overflow: hidden; background: var(--gw--color--highlight); }
.post-card__image { display: block; width: 100%; aspect-ratio: 474 / 274; object-fit: cover; }
.post-card__content { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 14px; }
.post-card__content-link { color: inherit; }
.post-card__title {
  margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; line-height: 1.35; color: var(--gw--color--navy);
}
.post-card:hover .post-card__title { color: var(--gw--color--accent); }
.post-card__excerpt {
  margin: 0 0 14px; color: var(--gw--color--muted); font-size: 0.92rem; line-height: 1.55; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-top: 10px; border-top: 1px solid var(--gw--color--line); font-size: 0.84rem;
}
.post-card__meta { color: var(--gw--color--muted); }
.post-card__meta-tag-primary {
  color: var(--gw--color--accent); font-weight: 600; text-transform: capitalize;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-card[data-layout="horizontal"] { flex-direction: row; align-items: stretch; }
.post-card[data-layout="horizontal"] .post-card__figure { flex: 0 0 44%; }
.post-card[data-layout="horizontal"] .post-card__image { height: 100%; aspect-ratio: auto; }

/* ---------- related posts ---------- */
.related-posts { padding-block: 8px 48px; }
.related-posts__grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

/* ---------- article ---------- */
.ad-slot { text-align: center; margin: 18px auto; max-width: 100%; overflow-x: auto; }
.ad-slot--leaderboard { min-height: 74px; padding-block: 6px; }
.ad-slot--rectangle { min-height: 264px; padding-block: 6px; }
.ad-slot center, .ad-slot iframe { display: block; margin-inline: auto; }

.article { max-width: 900px; margin-inline: auto; }
.article-header { padding: 30px 0 26px; }
.article-header__figure { margin: 0 0 20px; }
.article-header__figure img {
  display: block; margin-inline: auto; width: 100%; max-width: 860px; aspect-ratio: 474 / 274;
  object-fit: cover; border-radius: var(--gw--radius); box-shadow: var(--gw--shadow);
}
.article-header__content { max-width: 820px; margin-inline: auto; padding-inline: var(--gw--space--site); }
.article-header__title {
  margin: 0 0 12px; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.22;
  color: var(--gw--color--navy); letter-spacing: -0.01em;
}
.article-header__excerpt { margin: 0 0 12px; color: var(--gw--color--muted); font-size: 1.02rem; }
.article-header__meta { color: var(--gw--color--muted); font-size: 0.9rem; }
.article-main { padding-block: 8px 34px; }
.article-content { max-width: 780px; margin-inline: auto; padding-inline: var(--gw--space--site); }
.article-content > p:first-of-type { font-size: 1.06rem; }
.article-content h2 {
  margin: 34px 0 12px; font-size: 1.42rem; font-weight: 700; color: var(--gw--color--navy);
  line-height: 1.3; padding-bottom: 6px; border-bottom: 2px solid var(--gw--color--highlight);
}
.article-content h3 { margin: 22px 0 8px; font-size: 1.13rem; font-weight: 700; color: var(--gw--color--navy); }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { margin: 0 0 18px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content table {
  width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 0.95rem;
  border: 1px solid var(--gw--color--line); border-radius: 8px; overflow: hidden;
}
.article-content th, .article-content td { padding: 10px 12px; border: 1px solid var(--gw--color--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--gw--color--highlight); color: var(--gw--color--navy); font-weight: 700; }
.article-content tbody tr:nth-child(even) { background: #fafcfe; }
.article-content a { font-weight: 600; }
.static-content { padding-block: 10px 40px; max-width: 780px; margin-inline: auto; }
.static-content h2 { margin: 30px 0 12px; font-size: 1.32rem; color: var(--gw--color--navy); }

/* ---------- footer ---------- */
.site-footer { background: var(--gw--color--highlight); border-top: 1px solid var(--gw--color--line); }
.site-footer__content { padding-block: 30px; }
.site-footer__brand { margin: 0 0 6px; font-size: 1.2rem; font-weight: 700; color: var(--gw--color--navy); }
.site-footer__copy { margin: 14px 0 0; color: var(--gw--color--muted); font-size: 0.88rem; }
.site-footer .nav-secondary__menu-link { color: var(--gw--color--muted); }
.site-footer .nav-secondary__menu-link:hover { color: var(--gw--color--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .site-header__hamburger { display: block; }
  .site-header__nav { display: none; border-top: 1px solid var(--gw--color--line); }
  .site-header__nav.is-open { display: block; }
  .nav-secondary__menu { flex-direction: column; gap: 0; padding-bottom: 10px; }
  .post-card[data-layout="horizontal"] { flex-direction: column; }
  .post-card[data-layout="horizontal"] .post-card__image { aspect-ratio: 474 / 274; height: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__container { padding-block: 32px 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .article-content h2 { font-size: 1.25rem; }
}
