/* GavelGap blog — shared styles. Brand tokens imported from canonical source. */
@import url("../brand.css");

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Keyboard focus ring (WCAG 2.4.7). */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* Respect reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: #ffae73; text-decoration: underline; }

/* ── nav ── */
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2rem; border-bottom: 1px solid rgba(42,42,50,0.5);
  position: sticky; top: 0; background: rgba(10,10,12,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 100;
}
.brand-mark { display: flex; align-items: center; gap: 0.6rem; }
.brand-mark img { width: 36px; height: 36px; filter: drop-shadow(0 0 6px rgba(230,107,26,0.35)); }
.brand-mark .name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: 0.01em; color: var(--text); }
.brand-mark .name span { color: var(--brand); }
.topnav-links { display: flex; align-items: center; gap: 1.25rem; font-size: 0.8rem; flex-wrap: wrap; }
.topnav-links a { color: var(--text-dim); letter-spacing: 0.04em; white-space: nowrap; transition: color 0.2s; }
.topnav-links a:hover { color: var(--text); text-decoration: none; }
.topnav-links a.brand-link { color: var(--brand); }

/* ── layout ── */
.wrap { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }
.breadcrumb { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-dim); }

article h1, .wrap h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1.1; letter-spacing: -0.02em; color: #fff; margin-bottom: 0.9rem;
}
.post-meta { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2rem; }
.lede { font-size: 1.08rem; color: var(--text); border-left: 3px solid var(--brand); padding-left: 1rem; margin-bottom: 2.2rem; }

article h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin: 2.4rem 0 0.9rem; letter-spacing: -0.01em; }
article h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--text); margin: 1.8rem 0 0.6rem; }
article p { margin-bottom: 1.1rem; }
article ul, article ol { margin: 0 0 1.2rem 1.3rem; }
article li { margin-bottom: 0.5rem; }
article strong { color: #fff; }

table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.85rem; }
th, td { border: 1px solid var(--border); padding: 0.6rem 0.7rem; text-align: left; vertical-align: top; }
th { background: var(--surface2); color: #fff; font-family: var(--font-display); }
td { background: var(--surface); }

.callout {
  background: var(--brand-soft); border: 1px solid rgba(230,107,26,0.25);
  border-radius: 8px; padding: 1rem 1.2rem; margin: 1.8rem 0;
}
.callout strong { color: #ffae73; }

.faq { margin-top: 2.6rem; }
.faq h2 { margin-bottom: 1.2rem; }
.faq-q { font-family: var(--font-display); font-weight: 600; color: #fff; margin: 1.4rem 0 0.4rem; }

.cta-box {
  margin: 2.8rem 0 1rem; padding: 1.6rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; text-align: center;
}
.cta-box .btn {
  display: inline-block; margin-top: 0.8rem; padding: 0.7rem 1.4rem;
  background: var(--brand); color: #0a0a0c; font-weight: 700; border-radius: 6px;
  font-family: var(--font-display);
}
.cta-box .btn:hover { background: #ffae73; text-decoration: none; }

/* ── blog index ── */
.post-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.post-list li { border-top: 1px solid var(--border); padding: 1.5rem 0; }
.post-list h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.post-list h2 a { color: #fff; }
.post-list h2 a:hover { color: var(--brand); }
.post-list .post-date { color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.3rem; }
.post-list .excerpt { color: var(--text-dim); font-size: 0.9rem; }

/* ── footer ── */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; max-width: 760px; margin: 0 auto; color: var(--text-dim); font-size: 0.78rem; }
footer .footer-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer .footer-links a { color: var(--text-dim); }
.disclaimer { font-size: 0.75rem; line-height: 1.6; color: var(--text-dim); }
.disclaimer strong { color: var(--text); }

@media (max-width: 700px) {
  .topnav { flex-direction: column; gap: 0.7rem; padding: 0.75rem 1rem; }
  .topnav-links { justify-content: center; gap: 0.5rem 1rem; }
}
