/*
Theme Name: SQLSekou Hatch Row
Theme URI: https://sqlsekou.com
Description: Child theme of Astra implementing the Hatch Row design direction for sqlsekou.com.
Author: Sekou Tyler
Template: astra
Version: 0.1.0
Text Domain: sqlsekou-hatch
*/

/* Neutralize inherited defaults at zero specificity so component rules always win. */
:where(.hr h1, .hr h2, .hr h3, .hr h4, .hr p, .hr ul, .hr ol, .hr li, .hr figure, .hr blockquote) {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  list-style: none;
}

.hr {
  overflow-x: clip;
  background: var(--hr-bg);
  color: var(--hr-ink);
  font-family: var(--hr-font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hr *, .hr *::before, .hr *::after { box-sizing: border-box; }

.hr-container {
  width: 100%;
  max-width: var(--hr-container);
  margin-inline: auto;
  padding-inline: var(--hr-gutter);
}

.hr-display {
  font-family: var(--hr-font-display);
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.018em;
}

.hr-label {
  font-family: var(--hr-font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-muted);
}

.hr-rule { border: 0; border-top: 1px solid var(--hr-rule); }

:where(.hr a) { color: var(--hr-accent); text-decoration: none; }
:where(.hr a:hover) { text-decoration: underline; text-underline-offset: 3px; }

.hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: var(--hr-radius);
  font-family: var(--hr-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: transform 120ms ease, background-color 120ms ease;
}
.hr-btn:active { transform: translateY(1px); }
.hr-btn--primary { background: var(--hr-accent); color: #FFFFFF; }
.hr-btn--primary:hover { background: #17318A; color: #FFFFFF; text-decoration: none; }
.hr-btn--ghost { background: transparent; color: var(--hr-ink); border-bottom: 2px solid var(--hr-ink); padding-inline: 0; border-radius: 0; }
.hr-btn--ghost:hover { color: var(--hr-accent); border-bottom-color: var(--hr-accent); text-decoration: none; }

.hr-measure { max-width: 34em; }

/* Reveal degrades to visible when JS never runs. */
.hr-reveal { opacity: 1; transform: none; }
.js-hr .hr-reveal { opacity: 0; transform: translateY(12px); }
.js-hr .hr-reveal.is-in { opacity: 1; transform: none; transition: opacity 520ms ease, transform 520ms ease; }

@media (prefers-reduced-motion: reduce) {
  .js-hr .hr-reveal, .js-hr .hr-reveal.is-in { opacity: 1; transform: none; transition: none; }
  .hr-btn { transition: none; }
}
/* Scope-override Astra header chrome to the Hatch Row shape language. */
.ast-custom-button-link .ast-custom-button,
.ast-header-button-1 .ast-custom-button-link {
  border-radius: 0 !important;
}

/* Header: text wordmark replaces the logo image; nav returns to ink. */
.site-title,
.site-title a {
  font-family: 'Archivo', sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #111620;
  line-height: 1.1;
}
.site-title a:hover { color: #1F3FA8; }

.main-header-menu .menu-link,
.main-header-menu a,
.ast-masthead-custom-menu-items a {
  color: #111620;
  font-family: 'Chivo', sans-serif;
  font-weight: 500;
  font-size: .92rem;
}
.main-header-menu .menu-link:hover,
.main-header-menu .current-menu-item > .menu-link { color: #1F3FA8; }

.site-header,
.ast-main-header-wrap { background-color: #F5F7F9; }
.ast-above-header-wrap, .ast-below-header-wrap { background-color: #F5F7F9; }
/* Wordmark only. Logo image suppressed regardless of cached header markup. */
.custom-logo-link, .custom-logo, .ast-site-identity .custom-logo-link { display: none !important; }
.ast-site-identity { padding-block: 10px; }

/* Custom footer; Astra's own is suppressed. */
.site-primary-footer-wrap,.site-below-footer-wrap,.site-above-footer-wrap{display:none !important;}
.hr-ft{border-top:3px solid var(--hr-ink);padding-block:clamp(34px,4vw,56px) clamp(20px,2.4vw,28px);margin-top:clamp(24px,3vw,40px);}
.hr-ft__grid{display:grid;grid-template-columns:minmax(0,1.3fr) repeat(3,minmax(0,.8fr)) minmax(0,1.25fr);gap:clamp(20px,2.8vw,44px);}
.hr-ft__name{display:block;font-family:var(--hr-font-display);font-stretch:125%;font-weight:700;font-size:clamp(1.1rem,1.5vw,1.35rem);text-transform:uppercase;letter-spacing:.03em;margin-bottom:8px;}
.hr-ft__tag{font-size:.9rem;line-height:1.5;color:var(--hr-muted);margin-bottom:6px;max-width:22em;}
.hr-ft__place{font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--hr-muted);}
.hr-ft__h{font-size:.68rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hr-muted);padding-bottom:8px;border-bottom:1px solid var(--hr-rule);margin-bottom:6px;}
.hr-ft__col ul li{padding-block:6px;}
.hr-ft__col ul li a{font-size:.87rem;color:var(--hr-ink);}
.hr-ft__col ul li a:hover{color:var(--hr-accent);}
.hr-ft__subnote{font-size:.85rem;line-height:1.5;color:var(--hr-muted);margin-block:6px 12px;}
.hr-ft__embed{width:100%;min-height:150px;border:1px solid var(--hr-rule);background:var(--hr-surface);display:block;}
.hr-ft__base{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:clamp(24px,3vw,40px);padding-top:16px;border-top:1px solid var(--hr-rule);font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;color:var(--hr-muted);}
@media(max-width:1040px){.hr-ft__grid{grid-template-columns:repeat(2,minmax(0,1fr));}.hr-ft__brand,.hr-ft__sub{grid-column:1 / -1;}}
@media(max-width:560px){.hr-ft__grid{grid-template-columns:1fr;}}

/* Header: force Hatch Row colours over Astra's dynamic CSS. */
.site-header,.ast-main-header-wrap,.main-header-bar,.ast-primary-header-bar,.ast-above-header-bar,.ast-below-header-bar{background-color:#F5F7F9 !important;}
.site-title,.site-title a,.ast-site-identity .site-title a{color:#111620 !important;}
.site-title a:hover{color:#1F3FA8 !important;}
.main-header-menu .menu-link,.main-header-menu > li > a,.ast-header-navigation-wrap .menu-link,.main-navigation .menu-link{color:#111620 !important;}
.main-header-menu .menu-link:hover,.main-header-menu .current-menu-item > .menu-link,.main-header-menu .current_page_item > .menu-link{color:#1F3FA8 !important;}
.ast-header-button-1,.ast-builder-button-wrap,.ast-custom-button-link{display:none !important;}
.ast-primary-header-bar{border-bottom:1px solid #DDE3E9;}

/* Footer nav columns: centre aligned, and kill the inherited list indent. */
.hr-ft ul{margin:0 !important;padding:0 !important;list-style:none !important;}
.hr-ft ul li{margin:0 !important;list-style:none !important;}
.hr-ft ul li::marker{content:none;}
.hr-ft__col{text-align:center;}
.hr-ft__col .hr-ft__h{text-align:center;}
