/* Ösqa blog. Same tokens and components as the home page. */
:root {
  --navy: #0b1829;
  --navy-2: #13243a;
  --navy-line: #24364f;
  --cream: #f2ede4;
  --cream-2: #e8e1d5;
  --white: #ffffff;
  --ink: #0b1829;
  --ink-soft: #4a5566;
  --on-navy: #ffffff;
  --on-navy-soft: #a3afc0;
  --sky: #7aabf0;
  --electric: #0055ff;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--electric); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 300; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 20px; border-radius: 8px; font: 500 15px/1 var(--body); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--electric); color: #fff; }
.btn-primary:hover { background: #0047d6; }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(140,155,178,.55); }
.btn-ghost:hover { border-color: currentColor; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.link { font-size: 14px; font-weight: 500; color: var(--electric); text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); border-bottom: 1px solid var(--navy-line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; line-height: 0; }
.logo img { height: 26px; width: auto; }
.top nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.top nav a { color: var(--on-navy-soft); text-decoration: none; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--on-navy); }
.top .btn { height: 40px; }
.top .btn-ghost { color: var(--on-navy); }

/* Blog index */
.blog-head { padding-block: 72px 40px; background: var(--navy); color: var(--on-navy); }
.blog-head .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); }
.blog-head h1 { margin-top: 14px; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; }
.blog-head p { margin-top: 16px; max-width: 56ch; color: var(--on-navy-soft); font-size: 17px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 32px 8px; }
.filters button { font: 500 14px/1 var(--body); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--cream-2); background: var(--white); color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.posts { display: grid; gap: 20px; padding-block: 24px 112px; }
.card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px; border-radius: 20px; background: #f6f3ee; text-decoration: none; transition: background .2s; }
.card:hover { background: var(--cream); }
.card[hidden] { display: none; }
.card .copy { display: grid; gap: 16px; justify-items: start; }
.card h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; }
.card p { color: var(--ink-soft); font-size: 15px; max-width: 52ch; }
.card .link { margin-top: 4px; }
.cat { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--ink-soft); border: 1px solid var(--cream-2); text-decoration: none; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.byline b { display: block; color: var(--ink); font-weight: 600; }
.av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--sky); font-size: 13px; font-weight: 600; }
.empty { padding: 40px; border-radius: 20px; background: #f6f3ee; color: var(--ink-soft); }

/* Card visuals (mini UI, same family as the home page) */
.visual { border-radius: 14px; background: var(--navy); padding: 28px; min-height: 260px; display: grid; align-content: center; }
.mini { background: var(--white); border-radius: 12px; padding: 18px; display: grid; gap: 10px; font-size: 13px; color: var(--ink); box-shadow: 0 24px 50px -24px rgba(0,0,0,.6); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; background: #faf8f4; }
.mini-row b { font-weight: 600; }
.mini-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.chip.blue { background: #e6eeff; color: #0040c0; }
.chip.green { background: #e3f3ea; color: #1b6b47; }
.chip.grey { background: var(--cream); color: var(--ink-soft); }
.chip.red { background: #fbe9e7; color: #a3321f; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.path span { padding: 8px 10px; border-radius: 8px; background: #faf8f4; font-weight: 500; }
.path span.on { background: var(--electric); color: #fff; }
.path i { font-style: normal; color: var(--ink-soft); }

/* Cover image from Contentful fills the card visual */
.visual.photo { padding: 0; overflow: hidden; background: var(--cream); }
.visual.photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }

/* Post */
.post-head { background: var(--navy); color: var(--on-navy); padding-block: 56px 64px; }
.post-head .wrap { max-width: 820px; display: grid; gap: 20px; justify-items: start; }
.back { font-size: 14px; color: var(--on-navy-soft); text-decoration: none; }
.back:hover { color: var(--on-navy); }
.post-head .cat { background: var(--navy-2); border-color: var(--navy-line); color: var(--sky); }
.post-head h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; }
.post-head .dek { color: var(--on-navy-soft); font-size: 18px; max-width: 60ch; }
.post-head .byline { color: var(--on-navy-soft); }
.post-head .byline b { color: var(--on-navy); }
.post-head .av { background: var(--sky); color: var(--navy); }
article.body { max-width: 820px; margin-inline: auto; padding: 64px 24px 24px; }
article.body > * + * { margin-top: 20px; }
article.body h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-top: 48px; }
article.body p, article.body li { font-size: 17px; line-height: 1.7; color: #26303f; }
article.body ul, article.body ol { padding-left: 22px; display: grid; gap: 8px; }
article.body strong { color: var(--ink); }
article.body h3 { font-size: 22px; line-height: 1.25; margin-top: 36px; }
article.body h4 { font: 600 17px/1.4 var(--body); margin-top: 28px; }
article.body a { color: var(--electric); text-underline-offset: 3px; }
article.body figure { margin: 32px 0; }
article.body figure img { width: 100%; height: auto; border-radius: 14px; display: block; }
article.body hr { border: 0; border-top: 1px solid var(--cream-2); margin-block: 40px; }
article.body .table { overflow-x: auto; }
article.body table { width: 100%; border-collapse: collapse; font-size: 15px; }
article.body th, article.body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cream-2); vertical-align: top; }
article.body th { font-weight: 600; background: #f6f3ee; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-block: 32px; }
.stats div { padding: 20px; border-radius: 14px; background: #f6f3ee; display: grid; gap: 4px; }
.stats b { font: 300 34px/1 var(--display); letter-spacing: -.02em; }
.stats span { font-size: 13px; color: var(--ink-soft); }
.callout { padding: 24px 28px; border-radius: 14px; background: var(--cream); border-left: 3px solid var(--electric); }
.callout p { font-size: 17px; }
.post-cta { max-width: 820px; margin: 56px auto 112px; padding: 40px; border-radius: 20px; background: var(--navy); color: var(--on-navy); display: grid; gap: 16px; }
.post-cta h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.post-cta p { color: var(--on-navy-soft); max-width: 56ch; }
.post-cta .ctas { margin-top: 8px; }
.wrap-narrow { padding-inline: 24px; }

/* Footer */
footer { background: var(--navy); color: var(--on-navy-soft); border-top: 1px solid var(--navy-line); padding-block: 36px; font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer .logo img { height: 22px; }

.menu-btn, .nav-extra { display: none; }
@media (max-width: 960px) {
  .top nav { display: none; }
  /* Phone and tablet menu, same as the home page */
  .top .wrap { position: relative; }
  .menu-btn { display: inline-grid; place-content: center; gap: 6px; width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1px solid var(--navy-line); background: transparent; cursor: pointer; }
  .menu-btn i { display: block; width: 18px; height: 1.5px; background: var(--on-navy); transition: transform .2s; }
  .top.open .menu-btn i:first-child { transform: translateY(3.75px) rotate(45deg); }
  .top.open .menu-btn i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .top.open nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); border-bottom: 1px solid var(--navy-line); padding: 8px 24px 20px; }
  .top.open nav ul { flex-direction: column; gap: 0; }
  .top.open nav a { display: block; padding: 14px 0; font-size: 18px; color: var(--on-navy); border-bottom: 1px solid var(--navy-line); }
  .top.open .nav-extra { display: block; }
  .top.open .nav-extra a { color: var(--sky); }
  .top.open .nav-cta a { display: flex; margin-top: 16px; padding: 0; height: 50px; font-size: 16px; color: #fff; border: 0; }
  .card { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
@media (max-width: 720px) {
  .top .wrap { height: 60px; }
  .top .ctas { flex-wrap: nowrap; }
  .top .ctas > .btn { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 24px; }
  .blog-head { padding-block: 48px 32px; text-align: center; }
  .blog-head p { font-size: 15px; max-width: 34ch; margin-inline: auto; }
  .filters { justify-content: center; }
  .card h2 { font-size: 26px; }
  .post-head { padding-block: 40px 48px; }
  .post-head h1 { font-size: 34px; }
  .post-head .dek { font-size: 16px; }
  article.body p, article.body li { font-size: 16px; }
  .post-cta { text-align: center; }
  .post-cta .ctas .btn { flex: 1 1 100%; height: 50px; }
  .card { padding: 22px; }
  .visual { padding: 18px; min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .post-cta { margin-inline: 24px; padding: 28px; }
  article.body { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
