/* ════════════════════════════════════════════════════════════
   GOSCORED BLOG — Shared Styles
   Used by /blog/index.html and every /blog/<slug>/index.html
   ════════════════════════════════════════════════════════════ */

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

:root {
  --rose:       #F35B04;
  --rose-dark:  #C44A00;
  --rose-light: #FF7A2F;
  --deep:       #0D1B2A;
  --deep2:      #0A1520;
  --deep3:      #112233;
  --ink:        #ffffff;
  --ink-dim:    rgba(255,255,255,0.65);
  --ink-faint:  rgba(255,255,255,0.4);
  --muted:      #9AABBF;
  --border:     rgba(255,255,255,0.08);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --radius:     18px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--deep);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ───── NAV ───── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(10,20,32,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.logo-img-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 34px;
  width: auto;
  display: block;
}
nav ul { display: flex; gap: 2rem; list-style: none; align-items: center; }
nav a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--rose); }
.nav-cta {
  background: var(--rose) !important;
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s, transform 0.1s !important;
}
.nav-cta:hover { background: var(--rose-dark) !important; transform: translateY(-1px); }

/* ───── FOOTER ───── */
footer {
  background: var(--deep);
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--border);
}
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.footer-logo-img {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.92;
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* ════════════════════════════════════════════════════════════
   CATALOGUE PAGE — /blog/index.html
   ════════════════════════════════════════════════════════════ */

.blog-hero {
  padding: 9rem 5vw 4rem;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(243,91,4,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.2rem;
}
.blog-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 14ch;
}
.blog-hero h1 em { font-style: italic; color: var(--rose); }
.blog-hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
  font-weight: 300;
}

.catalogue {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 5vw 8rem;
}

/* Post grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2.5rem;
}

/* Post card — image + title only */
.post-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.post-card:hover { transform: translateY(-4px); }
.post-card:hover .post-card-title { color: var(--rose); }

.post-cover {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--deep2) 0%, var(--deep3) 50%, #1a3450 100%);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border);
}
.post-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(243,91,4,0.18) 0%, transparent 60%);
}
.post-cover-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 7rem;
  color: var(--rose);
  opacity: 0.7;
  position: relative;
  z-index: 1;
}
.post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}

/* ════════════════════════════════════════════════════════════
   POST PAGE — /blog/<slug>/index.html
   ════════════════════════════════════════════════════════════ */

article {
  max-width: 720px;
  margin: 0 auto;
  padding: 9rem 5vw 6rem;
}
.article-meta {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.article-meta .tag { color: var(--rose); }
.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}
.article-title em { font-style: italic; color: var(--rose); }
.article-author {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.cover-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

/* Article body */
.content { font-size: 1.13rem; line-height: 1.85; color: rgba(255,255,255,0.82); }
.content > * + * { margin-top: 1.4em; }
.content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.2em;
}
.content h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2em;
}
.content h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.content p { color: rgba(255,255,255,0.82); }
.content a {
  color: var(--rose-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.content a:hover { color: var(--rose); }
.content strong { font-weight: 600; color: var(--ink); }
.content em { font-style: italic; }
.content blockquote {
  border-left: 3px solid var(--rose);
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 1.5em 0;
}
.content blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.content ul, .content ol { padding-left: 1.5rem; color: rgba(255,255,255,0.82); }
.content li { margin-top: 0.5em; }
.content code {
  background: rgba(255,255,255,0.08);
  padding: 0.15em 0.5em;
  border-radius: 5px;
  font-size: 0.92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--rose-light);
}
.content img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
  margin: 1em 0;
  border: 1px solid var(--border);
}
.content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* End-of-post CTA */
.end-rule {
  text-align: center;
  margin: 4rem 0 2rem;
  color: var(--rose);
  font-family: var(--serif);
  letter-spacing: 0.4em;
  font-size: 1.2rem;
}
.next-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--rose); color: white; }
.btn-primary:hover { transform: translateY(-2px); background: var(--rose-dark); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: var(--rose); color: var(--rose); }

/* ───── MOBILE ───── */
@media (max-width: 768px) {
  nav { padding: 0.8rem 4vw; }
  nav ul { gap: 0.8rem; }
  nav a { font-size: 0.78rem; }
  .nav-cta { padding: 0.45rem 0.9rem !important; font-size: 0.78rem; white-space: nowrap; }
  .nav-logo-img { height: 28px; }
  .blog-hero { padding: 7rem 5vw 2.5rem; }
  .catalogue { padding: 2.5rem 5vw 5rem; }
  .grid { gap: 2.5rem 1.5rem; }
  article { padding: 7rem 5vw 4rem; }
  .content { font-size: 1.05rem; }
  footer { padding: 2rem 5vw; }
  .footer-links { gap: 1.2rem; }
}
@media (max-width: 420px) {
  nav { padding: 0.7rem 3vw; }
  nav ul { gap: 0.6rem; }
  nav a { font-size: 0.72rem; }
  .nav-cta { padding: 0.4rem 0.75rem !important; font-size: 0.72rem; }
}
