/*
Theme Name:   CS4art Child
Theme URI:    https://cs4.art
Description:  CS4art Child Theme – inherits Twenty Twenty-Four, applies CS4art brand styles
Author:       CS4art
Template:     twentytwentyfour
Version:      1.0.0
*/

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CS4art CSS Variables ── */
:root {
  --navy:      #0D2B5E;
  --steel:     #1F5FAD;
  --accent:    #51cbee;
  --gold:      #A07800;
  --white:     #ffffff;
  --grey-light: #f5f5f5;
  --grey-mid:  #4A4A4A;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
}

/* ── Reset base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans) !important;
  color: var(--grey-mid) !important;
  background: #fff !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  -webkit-font-smoothing: antialiased;
}

/* ── Hide default WP header / site title ── */
.wp-site-blocks > header,
header.wp-block-template-part,
.site-header,
.wp-block-site-title,
.wp-block-site-tagline,
.wp-block-navigation {
  display: none !important;
}

/* ── CS4art Blog Header ── */
#cs4art-blog-header {
  background: var(--navy);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

#cs4art-blog-header .cs4art-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

#cs4art-blog-header .cs4art-logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;

}

#cs4art-blog-header .cs4art-logo span {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

#cs4art-blog-header .cs4art-back {
  color: var(--accent);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .2s;
}

#cs4art-blog-header .cs4art-back:hover { color: #fff; }

#cs4art-blog-header .cs4art-back::before {
  content: '←';
  font-size: 1rem;
}

/* ── Blog index / archive wrapper ── */
.wp-site-blocks,
.is-layout-flow {
  padding: 0 !important;
  max-width: 100% !important;
}

/* ── Main content area ── */
.wp-block-group,
main,
.site-content,
.entry-content,
article {
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 1.5rem !important;
}

/* ── Post title ── */
h1.wp-block-post-title,
h1.entry-title,
.entry-header h1,
.wp-block-post-title a {
  font-family: var(--font-serif) !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  line-height: 1.15 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  text-decoration: none !important;
}

.wp-block-post-title a:hover {
  color: var(--steel) !important;
}

/* ── Headings within post ── */
.entry-content h2,
.wp-block-post-content h2 {
  font-family: var(--font-serif) !important;
  font-size: 1.75rem !important;
  color: var(--navy) !important;
  margin-top: 2.5rem !important;
  margin-bottom: .75rem !important;
}

.entry-content h3,
.wp-block-post-content h3 {
  font-family: var(--font-sans) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--steel) !important;
  margin-top: 2rem !important;
}

/* ── Post meta (date, author, category) ── */
.wp-block-post-date,
.wp-block-post-author,
.wp-block-post-terms,
.entry-meta,
.posted-on,
.byline {
  font-size: .8rem !important;
  color: rgba(0,0,0,.4) !important;
  font-family: var(--font-sans) !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  margin-bottom: 2rem !important;
}

.wp-block-post-date a,
.entry-meta a {
  color: rgba(0,0,0,.4) !important;
  text-decoration: none !important;
}

/* ── Body text ── */
.entry-content p,
.wp-block-post-content p {
  font-size: 1.05rem !important;
  line-height: 1.75 !important;
  color: #444 !important;
  margin-bottom: 1.25rem !important;
}

/* ── Links in content ── */
.entry-content a,
.wp-block-post-content a {
  color: var(--steel) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(31,95,173,.3) !important;
  transition: color .2s !important;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
  color: var(--navy) !important;
}

/* ── Featured image ── */
.wp-block-post-featured-image,
.post-thumbnail {
  max-width: 860px !important;
  margin: 2rem auto !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.wp-block-post-featured-image img,
.post-thumbnail img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

/* ── Category tag above title ── */
.wp-block-post-terms a {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .2rem .65rem !important;
  border-radius: 4px !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
}

/* ── Separator / divider ── */
.wp-block-separator,
hr {
  border: none !important;
  border-top: 1px solid #e5e7eb !important;
  margin: 3rem auto !important;
  max-width: 860px !important;
}

/* ── Post navigation (prev/next) ── */
.wp-block-post-navigation-link,
.post-navigation,
.nav-links {
  max-width: 860px !important;
  margin: 3rem auto !important;
  padding: 0 1.5rem 2rem !important;
  display: flex !important;
  justify-content: space-between !important;
  font-size: .85rem !important;
  color: var(--steel) !important;
}

.wp-block-post-navigation-link a,
.nav-links a {
  color: var(--steel) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.wp-block-post-navigation-link a:hover,
.nav-links a:hover {
  color: var(--navy) !important;
}

/* ── Comments ── */
#comments {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 2rem 1.5rem !important;
  border-top: 1px solid #e5e7eb !important;
}

#comments h2 {
  font-family: var(--font-serif) !important;
  color: var(--navy) !important;
  font-size: 1.5rem !important;
}

.comment-form label {
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: var(--navy) !important;
  font-family: var(--font-sans) !important;
}

.comment-form input,
.comment-form textarea {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: .6rem .9rem !important;
  font-family: var(--font-sans) !important;
  font-size: .95rem !important;
  width: 100% !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none !important;
  border-color: var(--steel) !important;
  box-shadow: 0 0 0 3px rgba(31,95,173,.1) !important;
}

.comment-form input[type="submit"],
.submit {
  background: var(--navy) !important;
  color: #fff !important;
  border: none !important;
  padding: .75rem 2rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  font-size: .9rem !important;
  cursor: pointer !important;
  transition: background .2s !important;
  width: auto !important;
}

.comment-form input[type="submit"]:hover,
.submit:hover {
  background: var(--steel) !important;
}

/* ── Blog index: post list ── */
.wp-block-query {
  max-width: 900px !important;
  margin: 3rem auto !important;
  padding: 0 1.5rem !important;
}

.wp-block-post-template {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  gap: 2.5rem !important;
}

.wp-block-post-template li {
  border-bottom: 1px solid #f0f0f0 !important;
  padding-bottom: 2.5rem !important;
}

/* ── Footer ── */
.wp-block-template-part[data-slug="footer"],
footer.wp-block-template-part,
.site-footer {
  display: none !important;
}

#cs4art-blog-footer {
  background: var(--navy);
  text-align: center;
  padding: 1.5rem 2rem;
  margin-top: 4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
}

#cs4art-blog-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

#cs4art-blog-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 640px) {
  #cs4art-blog-header { padding: 0 1rem; }
  #cs4art-blog-header .cs4art-logo span { display: none; }
}
