/*
Theme Name: Famously Curious
Theme URI: https://famouslycurious.com
Author: Famously Curious
Author URI: https://famouslycurious.com
Description: A modern editorial block theme for media publications. Bold sans-serif typography, coral accent on white, magazine-style layouts. Inspired by The Bottom Line by Square. Full Site Editing ready — palette, fonts, and templates editable from the WordPress Site Editor.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: famously-curious
Tags: blog, news, editorial, full-site-editing, block-patterns, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, two-columns, three-columns, wide-blocks, accessibility-ready
*/

/* =====================================================
   Famously Curious — Custom CSS Layer
   Most styling is driven by theme.json. This file only
   handles things that theme.json cannot do natively:
   - Wordmark hover and accent dot
   - Category pill styling
   - Card hover transitions
   - Top accent rule
   ===================================================== */

/* Top accent rule on every page */
body {
  border-top: 4px solid var(--wp--preset--color--accent);
}

/* ---------- Text wordmark in header ---------- */
.fc-wordmark a,
.wp-block-site-title a {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  text-transform: lowercase;
  transition: color 0.2s ease;
}
.fc-wordmark a:hover,
.wp-block-site-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* ---------- Category pills ---------- */
.wp-block-post-terms,
.wp-block-post-terms a {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.wp-block-post-terms a {
  display: inline-block;
  padding: 0.35em 0.75em;
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--background) !important;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
  margin-right: 0.25em;
}
.wp-block-post-terms a:hover {
  background: var(--wp--preset--color--accent);
}

/* ---------- Topic chips (custom button-style cat links) ---------- */
.fc-topic-chip a,
.fc-topics .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--ink) !important;
  border: 1.5px solid var(--wp--preset--color--ink);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  transition: all 0.2s ease;
}
.fc-topic-chip a:hover,
.fc-topics .wp-block-button__link:hover {
  background: var(--wp--preset--color--accent) !important;
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--background) !important;
}

/* ---------- Post title hover ---------- */
.wp-block-post-title a {
  text-decoration: none;
  transition: color 0.2s ease;
  color: inherit;
}
.wp-block-post-title a:hover {
  color: var(--wp--preset--color--accent);
}

/* ---------- Featured image hover ---------- */
.wp-block-post-featured-image {
  overflow: hidden;
}
.wp-block-post-featured-image img {
  transition: opacity 0.25s ease, transform 0.5s ease;
}
.wp-block-post-featured-image a:hover img {
  opacity: 0.92;
  transform: scale(1.02);
}

/* ---------- Eyebrow / kicker text utility ---------- */
.fc-eyebrow {
  font-family: 'Inter Tight', system-ui, sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted) !important;
  margin-bottom: 0.75rem !important;
}

/* ---------- Section hairline divider ---------- */
.fc-hairline {
  border-bottom: 1px solid var(--wp--preset--color--border) !important;
}

/* ---------- Navigation ---------- */
.wp-block-navigation .wp-block-navigation-item__content {
  font-family: 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--wp--preset--color--ink);
  transition: color 0.2s ease;
}
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--accent);
}

/* ---------- Footer ---------- */
.wp-block-template-part footer {
  border-top: 2px solid var(--wp--preset--color--accent);
}

/* ---------- Mobile responsive nudges ---------- */
@media (max-width: 781px) {
  .wp-block-columns.fc-stack-on-mobile {
    flex-wrap: wrap !important;
  }
  .wp-block-columns.fc-stack-on-mobile > .wp-block-column {
    flex-basis: 100% !important;
  }
}

/* ---------- Reset some defaults ---------- */
.wp-block-post-excerpt__excerpt {
  margin-top: 0.5rem;
}
.wp-block-post-date,
.wp-block-post-author-name {
  font-size: 0.8rem;
  color: var(--wp--preset--color--muted);
}
.wp-block-post-author-name a {
  color: inherit;
  text-decoration: none;
}
.wp-block-post-author-name a:hover {
  color: var(--wp--preset--color--accent);
}

/* ---------- Single post body ---------- */
.entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.entry-content p {
  font-size: 1.1rem;
  line-height: 1.65;
}

/* ---------- Print hides ---------- */
@media print {
  header, footer, nav, .wp-block-post-comments-form {
    display: none !important;
  }
}
