/**
 * Site styles: layout, header wrapper, page heading and PHP templates.
 * Loaded on the front end only. The header and footer template parts are
 * styled in parts.css, which the editor loads too.
 *
 * Contents
 *   1. Layout
 *   2. Header wrapper
 *   3. Page heading
 *   4. Templates
 */


/* ------------------------------------------------------------------
 * 1. Layout
 * ------------------------------------------------------------------ */

.hc-container {
    width: 100%;
    max-width: calc(var(--wp--style--global--wide-size) + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    margin-right: auto;
    margin-left: auto;
}

/* Keep the footer at the bottom on short pages. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hc-main {
    display: block;
    flex: 1 0 auto;
}

/* The page content wrapper already uses the global padding, so its first and
   last full-width blocks sit flush against the header and footer. */
.hc-main > article > .entry-content > :first-child {
    margin-block-start: 0;
}

/* Pages with the page heading band get breathing room above and below
   their content. Pages that start with their own section don't. */
.hc-page-heading + article > .entry-content {
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--60);
}


/* ------------------------------------------------------------------
 * 2. Header wrapper
 * The header and footer themselves are styled in parts.css.
 * The live site's header scrolls away with the page, so it is not sticky.
 * ------------------------------------------------------------------ */

.hc-site-header {
    position: relative;
    z-index: 100;
}


/* ------------------------------------------------------------------
 * 3. Page heading
 * Band with the title and breadcrumbs, for archives, search, the blog and
 * pages that don't start with a full-width section.
 * ------------------------------------------------------------------ */

.hc-page-heading {
    color: var(--wp--custom--page-heading--text);
    background-color: var(--wp--custom--page-heading--background);
}

.hc-page-heading__inner {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30);
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--60);
}

.hc-page-heading__eyebrow {
    margin: 0;
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 700;
    color: var(--wp--custom--page-heading--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hc-page-heading__title {
    max-width: 860px;
    margin: 0;
    color: inherit;
}

.hc-page-heading__lead {
    max-width: 720px;
    margin: 0;
    font-size: var(--wp--preset--font-size--large);
    color: var(--wp--custom--page-heading--muted);
}

.hc-page-heading__lead p {
    margin: 0;
}

.hc-breadcrumbs {
    font-size: var(--wp--preset--font-size--x-small);
    color: var(--wp--custom--page-heading--muted);
}

.hc-breadcrumbs a {
    color: inherit;
}

.hc-breadcrumbs a:hover {
    color: var(--wp--custom--page-heading--text);
}


/* ------------------------------------------------------------------
 * 4. Templates (archive, search, single post, 404)
 * ------------------------------------------------------------------ */

.hc-template {
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--60);
}

.hc-template__header {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30);
    max-width: var(--wp--style--global--content-size);
    margin-bottom: var(--wp--preset--spacing--50);
}

.hc-template__title {
    margin: 0;
}

.hc-template__description {
    margin: 0;
    color: var(--wp--preset--color--contrast-alt);
}

.hc-template__description p {
    margin: 0;
}

.hc-single__header {
    padding-top: var(--wp--preset--spacing--60);
    padding-bottom: var(--wp--preset--spacing--40);
}

.hc-single__meta {
    margin: 0 0 var(--wp--preset--spacing--20);
    font-size: var(--wp--preset--font-size--x-small);
    font-weight: 600;
    color: var(--wp--preset--color--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hc-single__title {
    margin: 0;
}

.hc-single__media {
    margin: 0 0 var(--wp--preset--spacing--50);
}

.hc-single__media img {
    display: block;
    width: 100%;
    border-radius: var(--wp--custom--radius--medium);
}

.hc-single .entry-content {
    padding-bottom: var(--wp--preset--spacing--60);
}
