/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   GLOBAL
   ========================================================= */

body {
    margin: 0;
    background: var(--hp-bg);
    color: var(--hp-text);
    font-family: var(--hp-font-family);
    font-size: 15px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--hp-transition);
}

a:hover {
    color: var(--hp-blue);
}

button,
input,
select,
textarea {
    font: inherit;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.hp-container {
    width: min(calc(100% - 40px), var(--hp-container));
    margin-inline: auto;
}

.hp-main {
    padding: var(--hp-space-lg) 0 var(--hp-space-3xl);
}

.hp-section {
    margin-top: 28px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.hp-kicker {
    color: var(--hp-blue);
    font-weight: 850;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hp-meta {
    font-size: .76rem;
    color: var(--hp-muted);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.hp-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--hp-line);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.hp-section-heading h2,
.hp-section-heading h3 {
    margin: 0;
}

.hp-section-heading h2 {
    font-size: 1.6rem;
}

.hp-section-heading h3 {
    font-size: 1rem;
}

.hp-section-heading h2::after,
.hp-section-heading h3::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    background: var(--hp-blue);
    margin-top: 9px;
}

.hp-section-heading a {
    color: var(--hp-blue);
    font-size: .75rem;
    font-weight: 800;
}

/* =========================================================
   GLOBAL COMPONENT HELPERS
   ========================================================= */

body a {
    color: inherit;
}

.hp-card-title a,
.hp-news-row,
.hp-feature a,
.hp-spotlight a {
    color: var(--hp-text) !important;
}

.hp-ad-slot {
    margin: 18px 0;
}

.hp-widget {
    margin-bottom: 16px;
}

/* =========================================================
   ARCHIVE PAGES
   (Move to archive.css in a future cleanup)
   ========================================================= */

.hp-archive-header {
    max-width: 760px;
    margin: 18px 0 30px;
}

.hp-archive-header h1 {
    margin: 6px 0 10px;
    color: var(--hp-text) !important;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.03;
    letter-spacing: -.04em;
}

.hp-archive-description {
    color: var(--hp-muted);
    font-size: 16px;
}

.hp-archive-description p {
    margin: 0;
}

.hp-archive-grid {
    align-items: stretch;
}

.hp-pagination {
    margin-top: 28px;
}

/* =========================================================
   MAILERLITE OVERRIDES
   (Move to newsletter.css or contact.css later)
   ========================================================= */

.hp-mailerlite-form,
.hp-mailerlite-form .ml-form-embedContainer,
.hp-mailerlite-form .ml-form-embedWrapper,
.hp-mailerlite-form .ml-form-embedBody {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.hp-mailerlite-form .ml-form-embedContent,
.hp-mailerlite-form h3,
.hp-mailerlite-form h4,
.hp-mailerlite-form p:first-child {
    display: none !important;
}
