/*
Theme Name: Sawyer Blocks
Description: Block-based child theme for Ben D. Sawyer — no Divi dependency
Template: twentytwentyfive
Version: 1.9
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Cormorant+Display:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ── Typography ── */
body {
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #111;
}

h2 {
  font-family: 'Cormorant', Georgia, serif;
  color: #4c5048;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
h3 {
  font-family: 'Cormorant', Georgia, serif;
  color: #111;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* ── Main content top spacing ── */
main.wp-block-group {
  padding-top: 3rem;
}

/* ── Header and footer: break out of the 5vw root padding so they span full width ── */
/* BLACKBOOK: With useRootPaddingAwareAlignments: false, template parts sit inside the
   5vw-padded .wp-site-blocks. Negative margin + matching padding restores full-width
   while keeping inner content at the correct horizontal position. */
header.wp-block-template-part,
footer.wp-block-template-part {
  margin-left: -5vw;
  margin-right: -5vw;
  padding-left: 5vw;
  padding-right: 5vw;
}

/* ── Header ── */
header.wp-block-template-part,
header .wp-block-group { background: #fff; }

/* ── Site wordmark — Cormorant Display, typed name + blinking cursor ── */
.site-wordmark {
  font-family: 'Cormorant Display', Georgia, serif;
  font-size: 56px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.site-wordmark:hover { color: #111; text-decoration: none; }

/* cursor is a flex child — align-self, not vertical-align */
.site-cursor {
  display: block;
  width: 1.5px;
  height: 1.1em;
  background: #111;
  margin-left: 5px;
  align-self: center;
  flex-shrink: 0;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Navigation ── */
.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item a {
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: #4c5048 !important;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wp-block-navigation a:hover { text-decoration: underline; }

/* Hamburger button color */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: #4c5048 !important;
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  fill: #4c5048;
  stroke: #4c5048;
}

/* ── Buttons ── */
.wp-block-button__link,
.wp-block-button a,
a.wp-block-button__link,
.wp-element-button {
  background: transparent !important;
  background-color: transparent !important;
  color: #000 !important;
  border: 1.5px solid #000 !important;
  border-radius: 0 !important;
  padding: 0.5em 1.75em !important;
  font-family: 'Hanken Grotesk', Helvetica, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  display: inline-block !important;
}
.wp-block-button__link:hover,
a.wp-block-button__link:hover { background: #000 !important; color: #fff !important; }

/* ── Footer ── */
footer.wp-block-template-part,
.site-footer,
footer .wp-block-group.site-footer {
  background: #2b2b2b !important;
  color: #aaa;
}
.site-footer { padding-top: 5vw !important; }
.site-footer a { color: #bbb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .wp-block-list { list-style: none; padding: 0; margin: 0; }
.site-footer .wp-block-list li { padding: 0.25rem 0; }
.site-footer h3 { color: #fff !important; font-family: 'Hanken Grotesk', sans-serif !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: 0.1em !important; text-transform: uppercase !important; }

/* ── Sidebar gone ── */
.wp-block-template-part + aside,
#secondary { display: none !important; }

/* ── Wordmark scale at intermediate viewports ── */
@media (max-width: 960px) and (min-width: 782px) {
  .site-wordmark { font-size: 38px; }
}

/* ── Responsive columns ── */
@media (max-width: 781px) {
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-direction: column !important;
  }
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
    min-width: 100% !important;
  }
  .site-wordmark { font-size: 30px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }
}
