/*
Theme Name: MFIN 1
Theme URI: https://example.com
Description: MFIN 1 — Genesis child theme ported from the agency-ssg mfin1 static template. Tailwind-utility based, Classic Editor.
Author: Agency
Author URI: https://agency.com
Version: 1.0.0
Template: genesis
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mfin1
Tags: genesis, financial, classic-editor
*/

/* NOTE: screenshot.png is intentionally absent — out of scope for this pass.
   Drop a 1200x900 PNG at the theme root when the design is finalised. */

/* --------------------------------------------------------------------------
   1. Design tokens
   Ported from templates/mfin1/css/styles.css :root, plus the two tokens the
   static template was missing (--color-text, --color-accent) sourced from
   templates/mfin1/config.example.json branding.colors.text / .accent.
   The *-rgb triplets back the Tailwind `brand.*` colours so utilities such as
   `bg-brand-primary/60` can still apply an alpha channel.
   Theme Options print an inline :root block after this file that overrides
   every value below.
   -------------------------------------------------------------------------- */
:root {
  --color-primary: #0B1F3A;
  --color-secondary: #C19A5B;
  --color-text: #0F172A;
  --color-accent: #C19A5B;

  --color-primary-rgb: 11 31 58;
  --color-secondary-rgb: 193 154 91;
  --color-text-rgb: 15 23 42;
  --color-accent-rgb: 193 154 91;
}

/* --------------------------------------------------------------------------
   2. Genesis wrapper reset
   Genesis' own container chrome fights the full-bleed sections this design is
   built from. Zero it out so sections can run edge to edge.
   -------------------------------------------------------------------------- */
.site-container,
.site-inner,
.content-sidebar-wrap,
main.content,
.content,
.entry {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  float: none;
  clear: both;
}

.site-inner::before,
.site-inner::after,
.content-sidebar-wrap::before,
.content-sidebar-wrap::after {
  content: none;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
}

.font-serif,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Cormorant Garamond', ui-serif, Georgia, serif;
}

/* Fixed header offset for anchor jumps. */
:target {
  scroll-margin-top: 6rem;
}

/* Skip link (Genesis html5 support). */
.genesis-skip-link .skip-link-hidden {
  display: block;
  position: absolute;
  left: -9999px;
}

.genesis-skip-link li a {
  position: absolute;
  left: -9999px;
  z-index: 100;
}

.genesis-skip-link li a:focus {
  left: 0;
  top: 0;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Editor content (the_content) — Classic Editor output has no utility
   classes, so give it a readable, centred measure that matches the design.
   -------------------------------------------------------------------------- */
.entry-content {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 1.25rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-top: 2.5rem;
}

.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  list-style: revert;
}

.entry-content li + li {
  margin-top: 0.5rem;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-secondary);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--color-primary);
}

.entry-content img {
  max-width: 100%;
  height: auto;
}
