/* Root Variables */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --link-color: #07c107;
    --font-title: "Jura", sans-serif;
    --font-body: "Open Sans", sans-serif;
    --heavy-title: 700;
    --heavy-body: 600;
    --outline-color: #808080;
    --hilite-color: #07c107;
}

/* Global and Element Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 19px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav a:hover {
    text-decoration: none;
}

.nav-link {
    color: var(--link-color);
}

.hidden {
    display: none;
}

code {
    background-color: var(--hilite-color);
    color: black;
    padding: 2px 4px;
    font-size: 0.95rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: var(--heavy-title);
}

h1 em, h2 em, h3 em, h4 em, h5 em, h6 em {
    text-decoration: underline;
    font-style: normal;
}

strong {
    font-weight: var(--heavy-body);
}

blockquote {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--hilite-color);
}

/* Component Styles */
#hero-area {
    text-align: left;
    position: relative;
    width: 100%;
    height: 96vh;
    overflow: hidden;
    border-bottom: 1px solid #5a5a5a;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#hero-area h1 {
    font-size: 5rem;
    font-weight: 300;
}

#process-chart {
    position: relative;
}

.tagline div {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: lowercase;
    font-family: var(--font-title);
}

.tagline abbr {
    text-transform: uppercase;
    font-size: 1.33rem;
}

div.tagline div.emphasis {
    color: var(--hilite-color);
    font-size: 1.66rem;
    font-weight: var(--heavy-body);
}

div.tagline div.emphasis abbr {
    font-size: 1.5rem;
}

sup.tm::after {
    content: "™";
    font-size: 1.33rem;
}

.hmco {
    font-family: var(--font-title);
    font-weight: var(--heavy-title);
    font-size: 1.15rem;
    white-space: nowrap;
}

.footer {
    margin-top: 160px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.8rem;
}

.navbar {
    background-color: var(--bg-color);
    font-family: var(--font-title);
    text-transform: lowercase;
    border-bottom: 1px solid #5a5a5a;
    padding-bottom: 0;
}

.navbar .nav-item {
    margin-right: 8px;
}

.navbar-brand {
    font-weight: var(--heavy-title);
    display: block;
    background-image: url('/assets/icons/favicon-128.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 32px;
    height: 32px;
    text-indent: -9999px;
}

.navigable {
    /* deals with issue where going to an anchor over-scrolls due to navbar */
    padding-top: 56px;
}

.p5Canvas {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/assets/images/mike-yukhtenko-wfh8dDlNFOk-unsplash.jpg") center center / cover no-repeat;
    z-index: 1;
    pointer-events: none;
    opacity: 0.23;
}

.hero-title {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 20px;
}

.hero-title * {
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.hero-button {
    display: inline-block;
    position: absolute;
    margin-top: 16vh;
    padding: 10px 20px;
    font-family: var(--font-title);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    text-align: left;
}

.hero-button .chevron {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.hero-button:hover,
.hero-button:focus {
    background: rgba(0, 0, 0, 0.7);
}

h2 sup.stylish {
    top: -0.2em;
    font-size: 0.8em;
    text-decoration: underline;
}

#robot {
    margin-top: 2rem;
}

#robot .card-body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    height: 10vh;
    transition: height 0.3s ease-in-out;
    padding-top: 0;
    min-height: 8rem;
    overflow-y: scroll;
}

#robot.expanded .card-body {
    height: 60vh;
    min-height: 312px;
}

#robot .card-header {
    /* card header might be empty; some of these are legacy styles */
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-title);
    text-align: center;
    font-weight: var(--heavy-title);
    font-size: 3rem;
    padding: 8px 20px 0 20px;
    line-height: 1.1rem;
    filter: grayscale(100%);
    border-bottom: none;
}

#chat-input {
    height: auto;
    max-height: 84px;
    overflow-y: hidden;
    resize: none;
}

#robot .text-muted {
    color: #ababab !important;
}

#robot .card-footer {
    background-color: var(--bg-color);
}

#robot .caveat {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-color);
}

.chat-System {
    font-size: 0.9rem;
    background-color: #900000de;
    width: 100%;
    padding: 2px;
}

.chat-hmBot {
    width: 90%;
}

.chat-hmBot strong {
    color: var(--hilite-color);
}

.chat-You {
    margin-left: 20%;
    padding: 6px 8px;
    width: 80%;
    background-color: #414141;
}

.actor-label {
    font-family: var(--font-title);
}

#robot .btn-primary {
    background-color: silver;
    border-color: silver;
    font-weight: var(--heavy-body);
    color: black;
}

#robot .btn-primary:hover {
    background-color: var(--hilite-color);
    color: white;
}

#robot .form-control {
    border-color: silver;
}

.text-section {
    padding: 2rem 0;
}

.million-dollar-question {
    font-weight: var(--heavy-body);
    font-style: italic;
}

.sticky-header {
    position: -webkit-sticky;
    position: sticky;
    top: 47.5px;  /* has to match navbar height */
    background-color: var(--bg-color);
    padding: 4rem 0 0.2rem;
    margin-bottom: 1rem;
    z-index: 10;
    border-bottom: 1px solid var(--hilite-color);
}

.services-cell {
    padding-bottom: 1rem;
    max-width: 800px;
}

.in-your-face {
    font-size: 3.5rem;
}

#bex .bex_surtitle {
    font-size: 3rem;
    color: var(--hilite-color)
}

#bex h2 {
    margin-left: -2rem;
    margin-top: -5rem;
    color: var(--hilite-color);
    font-size: clamp(10rem, 50vw, 20rem);
    width: 100%;
    white-space: nowrap; /* Keep "Bex" on one line */
}

#bex sup.tm {
    top: -.7em
}

#bex .bex_blurb {
    margin-top: -3rem;
    margin-left: .5rem;
    font-size: 1.5rem;
    font-weight: var(--heavy-body);
    max-width: 712px;
    padding-bottom: 3rem;
}

.griddle-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.griddle-card {
    /* background: rgba(255, 255, 255, 0.05);  */
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2)); */
    /* background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);  */
    border-radius: 10px;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.4), /* Shadow below */
        0 0 20px rgba(7, 193, 7, 0.5), /* Outer glow */
        inset 0 0 10px rgba(255, 255, 255, 0.05); /* Inner glow */
    padding: 1.5rem;
    transition: box-shadow 0.3s ease; /* Only has an effect if a hover class is added */
}

.griddle-card h3 {
    margin-bottom: 1rem;
    /* border-bottom: 1px solid var(--hilite-color); */
}

.highlight-hmco .hmco, .hmco.highlight-hmco {
    color: var(--hilite-color);
}

.highlight-hmco .hmco.in-your-face {
    font-size: 3.71875rem;
}

#contact {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    margin: 2rem 0 0;
}

#contact h2 {
    text-decoration-color: var(--hilite-color);
}

#contact>.container {
    border: 1px solid var(--hilite-color);
    border-radius: 10px;
    background-color: #323232;
    background: url("/assets/images/mike-yukhtenko-wfh8dDlNFOk-unsplash.jpg") center center / cover no-repeat;
    opacity: .9;
    width: 90%;
    padding-top: 1rem;
    max-width: 1294px;
}

#contact .email {
    font-size: 5vw;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
}

#contact .email a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-title);
    font-weight: var(--heavy-title);
}

#contact .email a:hover {
    text-decoration: underline;
}

.big-bq {
    font-size: 3.33rem;
    border: none;
    margin-left: 0;
    padding-left: 0;
}

.big-bq .citation {
    font-size: 2rem;
    font-style: italic;
}

.big-bq .hmco {
    font-size: 3.33rem;
}

#hero-area.RESOURCES {
    height: 22vh;
    margin-bottom: 36px;
}

#hero-area.RESOURCES .hero-image {
    transform: scaleX(-1);
}

/* Article Styles */
#articles .d-flex {
    gap: 1rem;
}

.card-surtitle, .card-subtitle, .card-title {
    text-transform: capitalize;
}

.article-card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    flex-basis: 28%;
    min-width: 28%;
}

.article-card:hover {
    transform: scale(1.02);
}

.card.article-card {
    background-color: #f9fff9;
}

.card.article-card.highlighted-article {
    background-color: transparent;
}

.article-card .card-body {
    padding: 1rem;
}

.article-card .card-title {
    font-size: 2rem;
    margin: 0;
}

.article-card .card-subtitle {
    margin-top: 2px;
}

.highlighted-article .card-title {
    font-size: 2.66rem;
}

.highlighted-article .card-surtitle, .highlighted-article .card-subtitle  {
    font-weight: var(--heavy-body);
}

.article-card .card-text {
    margin-top: 1rem;
    font-size: 1rem;
}

.article-card .card-img-top {
    object-fit: cover;
    aspect-ratio: 16/9;
}

.stretched-link {
    position: relative;
    z-index: 1;
}

.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.highlighted-article {
    position: relative;
    color: #fff;
    background-color: transparent;
    flex-basis: 66%;
    min-width: 66%;
}

.highlighted-article .card-img-overlay {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(210, 210, 210, 0.86);
}

.highlighted-article img {
    object-fit: cover;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.highlighted-article .card-text {
    font-size: 1.25rem;
}

.duplicate-non-highlighted-article {
    display: none;
}

#hero-area.ARTICLE {
    height: 70vh;
}

#hero-area .surtitle, #hero-area .subtitle {
    font-family: var(--font-title);
    font-size: 1.75rem;
}

#hero-area.ARTICLE h1, #hero-area.ARTICLE div.subtitle, #hero-area.ARTICLE div.surtitle {
    text-transform: capitalize;
}

#hero-area.ARTICLE .hero-button {
    margin-top: 4vh;
}

section#article {
    margin: 20px 48px;
}

section#article h2 {
    margin-bottom: .75rem;
    font-size: 2.5rem;
}

section#article h3, h4, h5, h6 {
    margin-top: 2.25rem;
    margin-bottom: .5rem;
    padding-top: 0 !important; /* overrides .navigable */
}

section#article div, section#article p, section#article ul, section#article ol, section#article blockquote {
    max-width: 800px;
}

section#article .hmco {
    font-size: 1.15rem;
}

section#article .abstract {
    background-color: #222222;
    border: 1px solid var(--outline-color);
    padding: 1.15rem;
}

section#article .abstract::before {
    content: "EXECUTIVE SUMMARY\00A0";
    font-size: 1.25rem;
    padding: 4px;
    margin-left: -19.5px;
    background-color: var(--bg-color);
}

section#article .abstract p:first-of-type {
    margin-top: 16px;
}

section#article blockquote {
    margin-top: 1.25rem;
}

section#article span.did-you-know {
    font-style: italic;
    margin-top: 1.25rem;
    border: 1px solid var(--outline-color);
    padding: 2px 8px;
    margin-left: 2rem;
}

section#article .icon.idea {
    font-size: 2.25rem;
    font-style: normal !important;
}

.process-chart {
    max-width: 426px;
    width: 100%;
    height: auto;
}

/* media queries ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** ***** */
@media (min-width: 576px) {
    #contact .email {
        font-size: 6vw;
    }
}

@media (min-width: 1400px) {
    #contact .email {
        font-size: 88px;
    }
}

@media (max-width: 576px) {
    #hero-area .hero-title h1.resizing {
        font-size: 2.666rem;
    }
    #robot.expanded .card-body {
        height: 68vh;
    }
    #hero-area .hero-title h1.resizing {
        font-size: 2.5rem;
    }
    #hero-area > div.hero-title > div.tagline.resizing > div {
        font-size: 1.25rem !important;
    }
    .highlighted-article {
        display: none;
    }
    .duplicate-non-highlighted-article {
        display: flex !important;
    }
    #bex h2 {
        font-size: clamp(8rem, 50vw, 12rem);
        margin-left: -1rem;
        margin-top: -3rem;
    }
    #bex .bex_blurb {
        margin-top: -2rem;
        margin-left: .55rem;
        font-size: clamp(1rem, 1.1rem, 1.2rem);
        font-weight: var(--heavy-body);
        max-width: 458px;
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    canvas {
        display: none !important;
    }
    #cheeky-draw-hint {
        display: none !important;
    }
    .hmco {
        white-space: normal;
    }
    .big-bq {
        font-size: 2rem !important;
    }
    .big-bq .hmco {
        font-size: 2rem !important;
    }
    .tagline div {
        font-size: 1.2rem;
    }
    #robot .caveat {
        font-size: 0.9rem;
    }
    #hero-area .hero-title h1.resizing {
        font-size: 3.5rem;
    }
    .highlighted-article, .article-card {
        flex-basis: 96% !important;
        min-width: 96% !important;
    }
    .griddle-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    #hero-area h1.resizing {
        font-size: 1.75rem !important;
    }
    #robot div, #robot p {
        font-size: 1rem;
    }
    #robot .card-header {
        font-size: 1.75rem;
    }
    .in-your-face {
        font-size: 1.75rem;
    }
    .highlight-hmco .hmco.in-your-face {
        font-size: 1.75rem;
    }
    .article-card {
        flex-basis: 46%; /* Two cards per row */
        min-width: 46%;
    }
    .highlighted-article {
        flex-basis: 98% !important;
        min-width: 98% !important;
    }
}

@media (max-height: 430px) {
    #robot.expanded .card-body {
        min-height: 200px;
    }
    .hero-button {
        margin-top: 1rem;
        padding: 10px 20px;
    }
}