/* GiantCheck.me — shared blog stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #18181b;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --paper: #fafafa;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1e1b4b;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Top nav ─────────────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  max-width: 1040px; margin: 0 auto; padding: 0 1.25rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; background: var(--ink); border-radius: 2px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.brand .mark span { width: 12px; height: 12px; border: 2px solid #fff; transform: rotate(45deg); }
.brand .dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.cta {
  background: var(--accent); color: #fff; padding: 0.6rem 1.1rem; border-radius: 3px;
  box-shadow: 3px 3px 0 var(--accent-dark);
}
.site-nav a.cta:hover { text-decoration: none; opacity: 0.95; }

/* ── Breadcrumbs ─────────────────────────────────────────────────── */
.crumbs {
  max-width: 720px; margin: 1.5rem auto 0; padding: 0 1.25rem;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 0.4rem; }

/* ── Article shell ───────────────────────────────────────────────── */
.article {
  max-width: 720px; margin: 0 auto; padding: 1.5rem 1.25rem 5rem;
}
.article .kicker {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 0.75rem; display: block;
}
.article h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.15; margin-bottom: 1rem;
}
.article .dek {
  font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.5rem; line-height: 1.6;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
  padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line);
}

.hero-img { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 0.6rem; box-shadow: 0 12px 32px -18px rgba(0,0,0,0.25); }
figure { margin: 2rem 0; }
figcaption {
  font-size: 0.75rem; color: var(--muted); margin-top: 0.6rem; text-align: center; font-style: italic;
}

.article h2 {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -0.01em; color: var(--ink);
  margin: 2.5rem 0 1rem;
}
.article h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--ink); margin: 1.75rem 0 0.75rem;
}
.article p { margin-bottom: 1.1rem; }
.article ul, .article ol { margin: 0 0 1.1rem 1.3rem; }
.article li { margin-bottom: 0.5rem; }
.article strong { color: var(--ink); font-weight: 700; }
.article blockquote {
  border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; color: var(--ink);
  font-style: italic;
}

/* ── Tables ──────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 480px; }
th, td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #f4f4f5; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 800; }
tr:last-child td { border-bottom: none; }
td strong { color: var(--accent); }

/* ── Callouts / CTA boxes ────────────────────────────────────────── */
.callout {
  background: var(--white); border: 2px solid var(--ink); border-radius: 8px;
  padding: 1.5rem; margin: 2rem 0; box-shadow: 5px 5px 0 var(--line);
}
.callout h3 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.cta-box {
  background: var(--ink); color: #e4e4e7; border-radius: 10px; padding: 2rem;
  margin: 2.5rem 0; text-align: center;
}
.cta-box h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; }
.cta-box p { color: #a1a1aa; margin-bottom: 1.25rem; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff;
  font-weight: 800; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.9rem 1.6rem; border-radius: 4px; box-shadow: 4px 4px 0 #1e40af;
}
.cta-btn:hover { text-decoration: none; transform: translate(1px, 1px); box-shadow: 3px 3px 0 #1e40af; }
.cta-note { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #71717a; margin-top: 1rem; }

/* ── FAQ (pure CSS <details>) ────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.75rem; background: var(--white);
}
.faq-item summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); font-size: 0.94rem; }

/* ── Related posts grid ──────────────────────────────────────────── */
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.related-card {
  border: 1px solid var(--line); border-radius: 6px; padding: 1rem; background: var(--white);
  font-size: 0.85rem;
}
.related-card a { color: var(--ink); font-weight: 700; }
.related-card p { color: var(--muted); font-size: 0.8rem; margin: 0.4rem 0 0; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 2rem; padding: 2.5rem 1.25rem;
}
.site-footer .wrap {
  max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ── Blog index ──────────────────────────────────────────────────── */
.index-hero { max-width: 1040px; margin: 0 auto; padding: 3rem 1.25rem 1rem; text-align: center; }
.index-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 0.75rem; }
.index-hero p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.post-grid {
  max-width: 1040px; margin: 2rem auto 4rem; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
}
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover { box-shadow: 6px 6px 0 var(--ink); transform: translate(-2px, -2px); }
.post-card img { aspect-ratio: 16/10; object-fit: cover; border-bottom: 1px solid var(--line); }
.post-card .body { padding: 1.1rem 1.2rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.post-card .cat { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.4rem; }
.post-card h2 { font-size: 1.02rem; font-weight: 800; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.post-card a.stretched { color: var(--ink); }
.post-card a.stretched:hover { text-decoration: none; }
.post-card p { font-size: 0.85rem; color: var(--muted); flex: 1; }

@media (max-width: 640px) {
  .site-nav { gap: 0.85rem; }
  .site-nav a:not(.cta) { display: none; }
}
