/* Front-page styles. Fonts are declared in cinedex/static/css/fonts.css. */

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
}

body{
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    /* Body is the default 16px (BS5 root). Front-page elements size up from here. */
}

.body-front-page {
    /*background-image: url("/static/img/1080_optical_paper_background.1f9da31a56b8.png");*/
    background-color: rgb(228, 229, 218);
    padding-bottom: 0;   /* the footer carries its own --space-separate inset */
}

p {
    font-weight: 400;
}

a {
    color: rgb(135, 20, 12);
    text-decoration: underline;
}

a:hover {
    color: rgb(191, 39, 29);
}


/* Navbar */

.navbar-inverse {
    font-family: "Montserrat", sans-serif;
}

.navbar-inverse a.navbar-brand {
    font-weight: 600;
    color: rgb(254, 255, 242);
}

.navbar-inverse .navbar-nav>li>a {
    font-weight: 400;
    color: rgb(254, 255, 242);
}


.navbar-brand img {
    height: 2em;
}

.navbar-optical {
    border-radius: 0;
    margin-bottom: 0;
}

.navbar-optical a {
    text-decoration: none;
    color: rgb(254, 255, 242);
}

.navbar-optical .container-fluid {
    background-color: rgb(0, 38, 76);
}

.navbar-inverse .navbar-toggle .icon-bar {
    background-color: rgb(254, 255, 242);
}

.navbar-optical .search-field {
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
}

/* Welcome & Mission Statement */

#welcome {
    /* add background subscribe ticket image */
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
}

#welcome p {
    margin: 0;
}

.optical-logo-font {
    font-family: "Montserrat", sans-serif;
    font-size: 90%;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}

.mission-statement {
    font-size: 1.75rem;
    padding-top: var(--space-separate);
    padding-bottom: var(--space-separate);
}

.vertical-center {
    display: flex;
    align-items: center;
}

.btn-optical-subscribe-hero {
    background-color: rgb(48, 119, 191);
    text-shadow: none;
    color: rgb(254, 255, 242);
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    font-size: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-top: var(--space-related);   /* the intro's call to action */
}

.btn-optical-subscribe-hero:hover {
    color: rgb(254, 255, 242);
    background-color: rgb(0, 77, 153);
}

/* Latest Podcast */

#latest-title {
    background-color: rgb(135, 20, 12);
    color: rgb(254, 255, 242);
    height: 3rem;
    display: flex;
    align-items: center;
}

#latest-title .container {
    width: 100%;
}

#latest-title h3 {
    margin: 0;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
}

#latest {
    background-color: rgb(191, 39, 29);
    height: auto;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    font-size: 120%;
    padding: var(--space-separate) 0;
}

/* Red-tint the latest-episode banner on the FRONT PAGE ONLY, at display time.
   The banner lives on this ::before layer so it can be forced to grayscale
   BEFORE the blend (`filter` is applied before `mix-blend-mode`) and only then
   multiplied with the brand red beneath. That guarantees a red duotone — the
   image's luminosity recoloured red, like the old baked red_tint — from ANY
   source: a colour photo is desaturated first, so its own hue never leaks
   through. The stored image stays untinted everywhere else (episode/OG/social).
   Banner URL comes from the inline `--latest-banner` custom property. #25 */
#latest::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--latest-banner);
    background-position: 50% 0;
    background-size: cover;
    background-repeat: no-repeat;
    filter: grayscale(1);
    mix-blend-mode: multiply;
}

#latest > * {
    position: relative;
    z-index: 1;
}

.latest-podcast-header {
    display: flex;
    justify-content: space-between;
}

#latest h2 {
    color: rgb(254, 255, 242);
}

#latest p {
    background-color: rgba(135, 20, 12, 0.66);
    border-radius: 0.1875rem;
    padding: .25em .55em;   /* the text's own highlight, sized to its type */
}

.latest-logo {
    font-size: 112%;
    margin-right:0.11em;
    position: relative;
    top: 0.13em;
}

.latest-podcast-number {
    font-family: "Sax Mono", monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 3rem;
    margin: 0 0 var(--space-together);
    order: 2;
    flex-basis: content;
}

.latest-podcast-number a {
	color: rgb(254, 255, 242);
    text-decoration: none;
}

.latest-podcast-title {
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    margin: .625em .25em var(--space-together) 0;   /* top: baseline-aligned with the 026 number */
}

.latest-podcast-title > a {
	color: rgb(254, 255, 242);
    text-decoration: none;
}

.latest-podcast-description p {
    /*text-shadow: 0 0 2px #000,*/
                 /*2px 2px 2px #000;*/
    color: rgb(254, 255, 242);
    margin-bottom: var(--space-related);
}

.btn-optical-latest {
    background-color: rgb(217, 64, 54);
    text-shadow: none;
    color: rgb(254, 255, 242);
    text-decoration: none;
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-top: var(--space-related);
}

.btn-optical-latest:hover {
    color: rgb(254, 255, 242);
    background-color: rgb(191, 39, 29);
}

/* Quotes Section */

.pull-left {
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: var(--space-together);   /* the quote and its attribution are one statement */
}

/* Decorative opening quote: ink left flush with the body text, ink bottom
   resting on the first line's baseline. Offsets are in em of the 2em glyph. */
.pull-left .bi-quote {
    color: rgb(135, 20, 12);
    position: relative;
    top: 0.15em;
    margin-left: -0.175em;
    margin-right: 0.1em;
}

/* The mark is twice the text size; zero line height keeps it from opening up the
   first line, so every line of the quote has the same leading. */
.pull-left .bi-quote,
.pull-left .bi-quote::before {
    line-height: 0;
}

p.cite {
    clear: left;
    text-align:right;
}


/* Cards: the #social row as three parallel white panels on the paper ground */

.front-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bs-gutter-x);
    align-items: stretch;
    /* separate from the red band above; #subscribe's own top margin separates it below */
    padding: var(--space-separate) 0 0;
}

.front-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.front-card > h3 {
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: .04em;
    color: #333;
    margin: 0 0 var(--space-together);
}

.front-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 3px;
    padding: var(--space-related);
}

/* the quote's last paragraph drops its margin so the panel's bottom padding matches the others */
.front-card-quotes .front-panel > :last-child {
    margin-bottom: 0;
}

/* the picture bleeds to the panel's edges, 2:1 like every news image */
.front-pic {
    display: block;
    margin: calc(-1 * var(--space-related)) calc(-1 * var(--space-related)) var(--space-related);
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
    background: #d3d4c6;
}

.front-pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* a portrait poster sits centred in the same frame rather than being cropped */
.front-pic-frame {
    display: flex;
    justify-content: center;
}

.front-pic-frame img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.front-kicker {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: .8rem;
    line-height: 1;
    letter-spacing: .09em;
    text-transform: uppercase;
    font-variant-numeric: lining-nums;
    margin: 0 0 var(--space-together);
}

.front-kicker-issue { color: rgb(135, 20, 12); }
.front-kicker-tidbit { color: var(--optical-green); }
.front-kicker-cinedex { color: rgb(0, 77, 153); }

.front-kicker a {
    color: inherit;
    text-decoration: none;
}

.front-kicker a:hover {
    color: inherit;
    text-decoration: underline;
}

.front-sep {
    margin: 0 .35em;
    opacity: .5;
}

.front-panel h4 {
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    text-transform: none;
    color: #333;
    margin: 0 0 var(--space-together);
}

.front-panel h4 a {
    color: inherit;
    text-decoration: none;
}

.front-panel h4 a:hover {
    color: rgb(135, 20, 12);
}

.front-date {
    font-style: italic;
    color: #5f5f62;
    font-size: .9375rem;
    margin: 0 0 var(--space-related);
}

.front-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin: 0 0 var(--space-related);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.front-panel .front-more {
    margin: auto 0 0;
    padding-top: var(--space-together);
    border-top: 1px solid #d3d4c6;
}

.front-more a {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .02em;
    text-decoration: none;
}

.front-more a:hover {
    text-decoration: underline;
}

.front-more .bi {
    margin-left: .2em;
}

@media (max-width: 767.98px) {
    .front-cards { grid-template-columns: 1fr; gap: var(--space-separate); }
    .front-card-news { order: 1; }
    .front-card-feature { order: 2; }
    .front-card-quotes { order: 3; }
}


/* Subscription Section */

#subscribe {
    background-color: rgb(0, 38, 76);
    height: auto;
    margin: 0 auto;
    width: 100%;
    position: relative;
    margin-top: var(--space-separate);
    padding: var(--space-separate) 0;
    color: rgb(254, 255, 242);
    font-size: 150%;
}

#subscribe h2 {
    margin: 0 0 var(--space-together);
}

.fa-li-optical {
    position: relative;
    left: -0.1em;
}

.no-bullet {
    list-style-type: none;
    list-style-position: inside;
}

.no-bullet li {
    position: relative;
}

a.btn-optical-subscribe-link {
    background-color: rgb(48, 119, 191);
    text-shadow: none;
    color: rgb(254, 255, 242) !important;
    text-decoration: none !important;
    font-family: "IBM Plex Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 100%;
    white-space: normal;
    word-wrap: break-word;
    margin-top: var(--space-together);
}

a.btn-optical-subscribe-link:hover {
    background-color: rgb(0, 77, 153) !important;
}

/* forms */

.indicates-required {
    text-align: right;
}  

.asterisk {
    color: rgb(191, 39, 29);
}

.form-control {
    font-size:120%;
}

.iphone-submit {
    /* 
    Hiding the modal-body submit input item
    This allows Return and iPhone "Go" buttons to work,
    without displaying the button in the body.
    (We have a button in the modal-footer)
    */
    visibility: hidden;
    position: absolute;
}

/* Footer */

footer {
    text-align: center;
    padding: 0 var(--space-related) var(--space-separate);
}

footer p {
    margin: 0;
}

#optical-logo {
    display: block;
    color: rgb(3, 14, 25);
    font-size: 1500%;
    line-height: 1;
    /* the glyph carries .07em of empty space above its ink and .0875em below it; these
       margins put the ink --space-separate below the band and --space-related above the text */
    margin: calc(var(--space-separate) - .07em) 0 calc(var(--space-related) - .0875em);
}
