/* blog.css — light magazine section for solitaire-online.com
   Self-contained: blog pages load this instead of site.css. */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #16181d;
  --ink-2: #4a4f58;
  --ink-3: #7d838d;
  --rule: #e3e1dc;
  --rule-soft: #efede8;
  --paper: #ffffff;
  --paper-2: #faf9f6;
  --felt: #0e5c3f;
  --felt-deep: #052b1c;
  --gold: #b3902a;
  --sans: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --wrap: 1360px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.blog {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------------- header ---------------- */

.mag-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.mag-bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.mag-nav { display: flex; gap: 26px; }
.mag-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mag-nav a:hover { color: var(--felt); border-bottom-color: var(--felt); }
.mag-nav a.active { border-bottom-color: var(--felt); color: var(--felt); }

.mag-brand {
  display: flex;
  align-items: center;
  justify-self: center;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ink);
  white-space: nowrap;
}
.mag-brand img { width: 40px; height: 41px; flex: none; margin-right: 10px; }
.mag-brand .accent { color: var(--felt); }

.mag-tools { display: flex; align-items: center; gap: 12px; justify-self: end; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }

.play-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--felt);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.play-btn:hover { background: #0b4a33; }

/* ---------------- masthead ---------------- */

.masthead { padding: 46px 0 30px; text-align: center; border-bottom: 1px solid var(--rule); }
.masthead h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.08;
}
.masthead p {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--felt);
  margin-bottom: 12px;
}

/* ---------------- magazine grid ---------------- */

.mag-grid {
  display: grid;
  grid-template-columns: 1fr 1.75fr 1fr;
  gap: 0;
  padding: 34px 0 10px;
}
.mag-col { padding: 0 30px; min-width: 0; }
.mag-col.rail { display: flex; flex-direction: column; }
.mag-col.lead { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }

/* lead story */
.lead-story { text-decoration: none; display: block; }
.lead-story img { width: 100%; border-radius: 3px; }
.lead-story h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 22px 0 14px;
}
.lead-story:hover h2 { color: var(--felt); }
.lead-story p {
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* rail stories */
.rail-story {
  text-decoration: none;
  display: block;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
}
.rail-story:last-child { border-bottom: 0; margin-bottom: 0; }
.rail-story img { width: 100%; border-radius: 3px; margin-bottom: 14px; }
.rail-story h3 {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.3px;
}
.rail-story:hover h3 { color: var(--felt); }

.byline {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-top: 10px;
}
.byline span { white-space: nowrap; }
.byline .sep { margin: 0 2px; opacity: .55; }
.byline .cat {
  color: var(--felt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  font-size: 0.72rem;
}

/* ---------------- more stories ---------------- */

.more { padding: 46px 0 20px; border-top: 1px solid var(--rule); margin-top: 30px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.section-head a { font-size: 0.88rem; color: var(--felt); font-weight: 700; text-decoration: none; }
.section-head a:hover { text-decoration: underline; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 34px 30px;
}
.story-card { text-decoration: none; display: block; min-width: 0; }
.story-card img { width: 100%; border-radius: 3px; margin-bottom: 14px; }
.story-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.story-card:hover h3 { color: var(--felt); }
.story-card p { font-size: 0.94rem; color: var(--ink-2); line-height: 1.5; }

/* ---------------- topic strip ---------------- */

.topics { padding: 44px 0; border-top: 1px solid var(--rule); margin-top: 40px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.topic {
  display: block;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px;
  transition: border-color .15s, transform .15s;
}
.topic:hover { border-color: var(--felt); transform: translateY(-2px); }
.topic h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.topic p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.5; }
.topic .count { font-size: 0.74rem; color: var(--ink-3); margin-top: 10px; display: block; }

/* ---------------- article ---------------- */

.crumbs {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 0.8rem;
  color: var(--ink-3);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--felt); text-decoration: underline; }
.crumbs span { margin: 0 7px; opacity: .55; }

.post { max-width: 760px; margin: 0 auto; padding: 10px 24px 20px; }

.post-head { padding: 16px 0 22px; }
.post-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--felt);
  text-decoration: none;
  margin-bottom: 16px;
}
.post-cat:hover { text-decoration: underline; }
.post h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.3px;
  margin-bottom: 18px;
}
.post-dek {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.post-meta {
  font-size: 0.85rem;
  color: var(--ink-3);
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.post-hero { margin: 26px 0 34px; }
.post-hero img { width: 100%; border-radius: 4px; }
.post-hero figcaption { font-size: 0.82rem; color: var(--ink-3); margin-top: 10px; }

/* article typography */
.post-body { font-family: var(--serif); font-size: 1.13rem; line-height: 1.72; color: #24272e; }
.post-body p { margin-bottom: 22px; }
.post-body h2 {
  font-family: var(--sans);
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.2;
  color: var(--ink);
  margin: 44px 0 16px;
}
.post-body h3 {
  font-family: var(--sans);
  font-size: 1.16rem;
  font-weight: 800;
  margin: 30px 0 10px;
}
.post-body a { color: var(--felt); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: #0b4a33; }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body em { font-style: italic; }

.pull-quote {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -0.4px;
  color: var(--felt);
  border-left: 4px solid var(--gold);
  padding: 6px 0 6px 24px;
  margin: 34px 0;
}

.table-wrap { overflow-x: auto; margin: 28px 0; }
.post-body table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.95rem;
  min-width: 460px;
}
.post-body th, .post-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.post-body th {
  background: var(--paper-2);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ink-2);
  border-bottom: 2px solid var(--rule);
}
.post-body tbody tr:hover { background: var(--paper-2); }

.card-figure { margin: 32px 0; }
.card-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.card-row img {
  width: 92px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(11, 31, 22, .16);
}
.card-figure figcaption {
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--ink-3);
  text-align: center;
  margin-top: 14px;
}

/* on-this-page */
.toc {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 0 0 34px;
  background: var(--paper-2);
  font-family: var(--sans);
}
.toc h2 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--ink-3);
  font-weight: 800;
  margin-bottom: 12px;
}
.toc ol { list-style: none; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: 7px; font-size: 0.95rem; }
.toc li::before { content: counter(t) '. '; color: var(--ink-3); }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--felt); text-decoration: underline; }

/* play CTA */
.play-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--rule);
  border-left: 5px solid var(--felt);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 40px 0;
  background: var(--paper-2);
  font-family: var(--sans);
}
.play-cta img { width: 62px; border-radius: 5px; box-shadow: 0 5px 14px rgba(11,31,22,.18); flex: none; }
.play-cta-text { flex: 1; min-width: 0; }
.play-cta-text strong { display: block; font-size: 1.06rem; margin-bottom: 3px; }
.play-cta-text span { font-size: 0.9rem; color: var(--ink-2); }

.guide-note { margin: -14px 0 40px; font-family: var(--sans); font-size: 0.95rem; color: var(--ink-2); }
.guide-note a { color: var(--felt); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* FAQ */
.faq-block { margin: 44px 0 0; font-family: var(--sans); }
.faq-block > h2 {
  font-size: 1.62rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.faq-item { border-top: 1px solid var(--rule); padding: 18px 0; }
.faq-item h3 { font-size: 1.04rem; font-weight: 800; margin-bottom: 7px; }
.faq-item p { font-size: 0.98rem; color: var(--ink-2); line-height: 1.6; }

/* related */
.related { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--rule); }
.related h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px; }

/* ---------------- search overlay ---------------- */

.search-overlay {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 200;
  display: none;
  padding: 8vh 24px 24px;
  overflow-y: auto;
}
.search-overlay.open { display: block; }
.search-inner { max-width: 680px; margin: 0 auto; }
.search-inner input {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: none;
  color: var(--ink);
  outline: none;
}
.search-hint { font-size: 0.84rem; color: var(--ink-3); margin-top: 12px; }
.search-results { margin-top: 28px; list-style: none; }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: block; padding: 14px 0; text-decoration: none; }
.search-results h4 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.search-results a:hover h4 { color: var(--felt); }
.search-results p { font-size: 0.88rem; color: var(--ink-2); }
.search-close {
  position: absolute;
  top: 22px; right: 26px;
  background: none; border: 0; cursor: pointer;
  font-size: 1.8rem; line-height: 1; color: var(--ink);
}

/* ---------------- footer (site felt) ---------------- */

.mag-footer {
  background:
    radial-gradient(1000px 420px at 50% 0, rgba(212,175,55,.10), transparent 62%),
    linear-gradient(180deg, var(--felt) 0%, var(--felt-deep) 88%);
  color: #f5f0e6;
  margin-top: 64px;
  padding: 52px 24px 38px;
  text-align: center;
}
.footer-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 26px;
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: left;
}
.footer-col h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #d4af37;
  margin-bottom: 10px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #f5f0e6; text-decoration: none; font-size: 0.86rem; opacity: .8; }
.footer-col a:hover { opacity: 1; color: #d4af37; text-decoration: underline; }
.footer-brand { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.mag-footer p { font-size: 0.88rem; opacity: .82; }
.copyright { margin-top: 14px; opacity: .58; }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .mag-grid { grid-template-columns: 1fr 1fr; }
  .mag-col.lead { grid-column: 1 / -1; order: -1; border-left: 0; border-right: 0; padding: 0 30px 32px; }
  .mag-col.rail { border-top: 1px solid var(--rule); padding-top: 28px; }
}

@media (max-width: 900px) {
  .mag-bar { grid-template-columns: auto 1fr; row-gap: 14px; }
  .mag-brand { grid-row: 1; grid-column: 1; justify-self: start; }
  .mag-tools { grid-row: 1; grid-column: 2; }
  .mag-nav {
    grid-row: 2; grid-column: 1 / -1;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 2px;
    -ms-overflow-style: none; scrollbar-width: none;
  }
  .mag-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 700px) {
  .mag-grid { grid-template-columns: 1fr; padding-top: 24px; }
  .mag-col { padding: 0; }
  .mag-col.lead { padding: 0 0 28px; }
  .mag-col.rail { border-top: 0; padding-top: 0; }
  .masthead { padding: 32px 0 24px; }
  .play-btn { display: none; }
  .post-body { font-size: 1.06rem; }
  .play-cta { flex-wrap: wrap; }
  .card-row img { width: 68px; }
}

/* ---------- footer share row ---------- */
/* Plain links to each network's share endpoint, no widget scripts. Felt
   colours are hard-coded rather than read from --gold: the blog defines its
   own lighter --gold for article text, but this row always sits on dark felt. */
.footer-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 26px auto 4px;
}
.share-label {
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.65;
}
.share-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #f5f0e6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.28);
  text-decoration: none;
  transition: color 0.18s, background 0.18s, border-color 0.18s, transform 0.18s;
}
.share-btn:hover, .share-btn:focus-visible {
  color: #0e5c3f;
  background: #d4af37;
  border-color: #d4af37;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .share-btn { transition: none; }
  .share-btn:hover, .share-btn:focus-visible { transform: none; }
}

/* ---------- footer trust badges (Product Hunt, SaaSHub) ---------- */
.footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px auto 4px;
}
.footer-badges img {
  display: block;
  height: 54px;
  width: auto;
  border-radius: 4px;
}
