/*
Theme Name: Sterling Grey Studio
Template: twentytwentyfive
Version: 1.1
Description: Clean, elegant child theme for sterlinggrey.tech
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --paper: #FFFFFF;
  --bone:  #FAF6EF;
  --sand:  #C2A87C;
  --bronze:#8C6E45;
  --ink:   #211C16;
  --stone: #6E655A;
  --line:  #E8DFCE;
  --sg-banner: #E6DCC6;   /* the tan top bar. change this ONE value to taste, or set to #FFFFFF to go white */
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
}

h1, h2, h3, .wp-block-heading {
  font-family: 'Playfair Display', serif;
}

/* keep page/post titles hidden site-wide (your existing behavior) */
.entry-title, .page-title, .wp-block-post-title {
  display: none !important;
}

/* =========================================================
   THE MOBILE FIX (works on any header markup, old or new)
   ========================================================= */

/* 1. Stop "Sterling Grey Studio" wrapping to three lines on a phone.
      Scoped to <header> so it never touches the footer site name. */
@media (max-width: 600px) {
  header .wp-block-site-title {
    font-size: 20px !important;
    line-height: 1.15 !important;
  }
}

/* 2. Stop the signature logo's top getting clipped under the banner. */
img[src*="signature-ink"] {
  margin-top: 0 !important;
}
:is(figure, .wp-block-image):has(img[src*="signature-ink"]) {
  margin-top: 0 !important;
  overflow: visible !important;
}

/* =========================================================
   SITE HEADER (the clean part below)
   ========================================================= */
.sg-site-header {
  background: var(--sg-banner);
}
.sg-site-header .wp-block-group.alignwide {
  padding-top: 18px;
  padding-bottom: 18px;
}
.sg-site-header .wp-block-site-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(20px, 4vw, 30px);
}

/* =========================================================
   SITE FOOTER (dark panel, your real footer)
   ========================================================= */
.sg-site-footer {
  background: var(--ink);
  color: #CFC6B6;
  text-align: center;
}
.sg-site-footer .sg-foot-title {
  color: #FFFFFF !important;
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}
.sg-site-footer a {
  color: var(--sand);
  text-decoration: none;
}
.sg-site-footer a:hover {
  text-decoration: underline;
}
.sg-site-footer .sg-eyebrow {
  letter-spacing: 0.22em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--sand);
  margin-top: 0;
}
.sg-site-footer .sg-copy {
  color: #8A7F6E;
  font-size: 13px;
}
