/*
 Theme Name:   Georgi's Space Child
 Theme URI:    https://georgisspace.com
 Description:  A warm, minimalist child theme for Georgi's Space based on Twenty Twenty-Four.
 Author:       Michelle Poirier
 Template:     twentytwentyfour
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  georgis-space-child
*/

/* Override core font sizes and subtitle leading */
:root {
  --wp--preset--font-size--normal:    1rem;     /* ≈16px */
  --wp--preset--font-size--small:     0.9375rem;/* ≈15px */
  --stk-subtitle-size:                1rem;     /* ≈16px */
  --stk-subtitle-line-height:         1.4;
}

/* Base font size raised for accessibility */
html {
  font-size: 1rem; /* ≈14px */
}

/* Body text */
body {
  background: #ffffff;
  color: #ae5640;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir,
               segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu,
               roboto, noto, arial, sans-serif !important;
  line-height: 1.6;  
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #f87c5c;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 1em;
}

/* Explicit heading sizes */
h1 { font-size: 2.5rem;  line-height: 1.2; border-bottom: 3px solid #f87c5c; }
h2 { font-size: 2rem;    line-height: 1.3; border-bottom: 3px solid #f87c5c; }
h3 { font-size: 1.75rem; line-height: 1.4; border-bottom: 3px solid #f87c5c; }
h4 { font-size: 1.5rem;  line-height: 1.4; color: #ae5640; font-weight: 400; }
h5 { font-size: 1.25rem; line-height: 1.4; color: #ae5640; font-weight: 400; }
h6 { font-size: 1rem;    line-height: 1.4; color: #ae5640; font-weight: 400; }

/* Alternate sections with pure white (even vs odd will both be white now) */
section:nth-of-type(odd),
.wp-block-group:nth-of-type(odd) {
  background: #ffffff;
}

/* Links */
a {
  color: #ae5640;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #f87c5c;
  text-decoration: underline;
}

/* Buttons */
.wp-block-button__link,
button,
input[type="submit"] {
  background-color: #f87c5c;
  color: #ffffff;
  border: none;
  transition: all 0.3s ease;
}
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background-color: #ae5640;
}

/* Blockquotes & code */
blockquote,
pre,
code {
  background: #ffffff;
  border-left: 4px solid #ae5640;
  color: #ae5640;
}

/* Lists with marker in secondary color */
ul li::marker {
  color: #ae5640;
}

/* Paragraphs */
p,
.stk-block-text_text {
  font-size: 1rem;        /* ≈16px */
  line-height: 1.6;       /* airy but consistent */
  margin-bottom: 1.5rem;
}

/* Small text */
small,
.has-small-font-size {
  font-size: 0.9375rem;   /* ≈15px */
  line-height: 1.5;
  color: #ae5640;
}

/* Utility color fixes */
.has-contrast-background-color {
  background-color: #f87c5c;
  color: #ffffff;
}
.has-base-color.has-text-color {
  color: #ae5640;
}
.has-contrast-3-color.has-text-color {
  color: #ae5640;
}
.has-contrast-background-color p,
.has-contrast-background-color h1,
.has-contrast-background-color h2,
.has-contrast-background-color h3,
.has-contrast-background-color h4,
.has-contrast-background-color h5,
.has-contrast-background-color h6 {
  color: #ffffff;
}

/* Catch both variants of the inline style */
[style*="font-size:12px"],
[style*="font-size: 12px"] {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}
/* Override any Stackable Text block with inline 12px sizing */
.wp-block-stackable-text-text[style*="font-size: 12px"],
.wp-block-stackable-text-text[style*="font-size:12px"],
.wp-block-stackable-text-text[style*="color: rgb(92, 65, 76)"] {
  font-size: 1rem !important;    /* ≈16px */
  line-height: 1.6 !important;
}
/* Also force its inner paragraphs */
.wp-block-stackable-text-text[style*="font-size: 16px"] p,
.wp-block-stackable-text-text[style*="font-size:16px"] p {
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.stk-block-column {
  font-size: 16px;
}

/* Reset all spacing inside the footer */
footer.site-footer * {
  box-sizing: border-box !important;
}

/* Override footer background */
footer.site-footer {
  background-color: #ffffff !important;
}

/* Force footer text color */
footer.site-footer,
footer.site-footer p {
  color: #ae5640 !important;
}

/* Force footer link style */
footer.site-footer a {
  color: #f87c5c !important;
  text-decoration: underline !important;
}
