/* ============================================================
   SUPERMAN WEBSITE - style.css
   Gustavo Henrique de Mello Voltolini - Assessment 1.1.6
   ------------------------------------------------------------
   Layout method : CSS Flexbox only (one dimensional row and
                   column containers, no two dimensional grid)
   NOT used      : CSS Grid, flexbox frameworks, libraries,
                   JavaScript, CSS custom properties, rem units
   Units used    : px, %, vh
   Design note   : This build uses a completely new visual
                   identity from the 1.1.5 site. Newsroom
                   treatment - dark ink ground, condensed
                   display type, serif reading text, monospace
                   labels, square corners and hairline rules
                   instead of light rounded cards.
   ============================================================ */

/* ---------- 1. RESET AND BASE ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0B0F1A;
    background-image: radial-gradient(#161F33 1px, rgba(0, 0, 0, 0) 1px);
    background-size: 4px 4px;
    color: #E4E8F2;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.7;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a { color: #FFC61E; }

h1, h2, h3 {
    font-family: Impact, Haettenschweiler, "Franklin Gothic Heavy",
                 "Arial Black", sans-serif;
    font-weight: normal;
    line-height: 1.02;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
}

h1 { font-size: 74px; }
h2 { font-size: 40px; }
h3 { font-size: 23px; letter-spacing: 1px; }

p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }

em { color: #FFE9A8; }

.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Monospace utility label. Used for section numbers, year tags
   and format notes so data always reads differently to prose.  */

.label {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FFC61E;
    margin-bottom: 14px;
}

.label-red { color: #FF5A68; }

.rule {
    height: 1px;
    background-color: #26314B;
    border: 0;
}

/* ---------- 2. HEADER AND NAVIGATION ---------- */
/* Flex row: wordmark on the left, navigation pushed right by
   margin-left auto. Sticks to the top of the viewport.         */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: #070A12;
    border-bottom: 1px solid #FFC61E;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 76px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand img {
    width: 44px;
    margin-right: 14px;
}

.brand-name {
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1;
}

.brand-name span {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    letter-spacing: 3px;
    color: #7E8AA8;
    padding-top: 4px;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

.site-nav li { margin-left: 8px; }

.site-nav a {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C6CEE2;
    text-decoration: none;
    padding: 9px 14px;
    border-bottom: 3px solid rgba(0, 0, 0, 0);
    transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #FFFFFF;
    border-bottom-color: #D81E2E;
}

.site-nav a.current {
    color: #FFC61E;
    border-bottom-color: #FFC61E;
}

/* ---------- 3. HERO AND PAGE BANNERS ---------- */
/* Flex row that reverses to a column on narrow screens.        */

.hero {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #26314B;
}

.hero-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 60px 70px 0;
}

.hero-text h1 {
    margin-bottom: 22px;
}

.hero-text h1 b {
    display: block;
    font-weight: normal;
    color: #D81E2E;
}

.hero-lead {
    font-size: 19px;
    color: #C2CADD;
    max-width: 560px;
}

.hero-media {
    flex: 1 1 50%;
    position: relative;
    min-height: 460px;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    object-position: center 35%;
}

.credit {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 1px;
    color: #7E8AA8;
    padding-top: 10px;
}

.hero-media .credit {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(7, 10, 18, 0.85);
    color: #99A3BC;
    padding: 9px 16px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    background-color: #D81E2E;
    color: #FFFFFF;
    padding: 15px 26px;
    margin-right: 12px;
    margin-bottom: 10px;
    transition: background-color 0.15s, color 0.15s;
}

.btn:hover,
.btn:focus { background-color: #FFC61E; color: #0B0F1A; }

.btn-ghost {
    background-color: rgba(0, 0, 0, 0);
    color: #FFFFFF;
    box-shadow: inset 0 0 0 1px #3A4767;
}

.btn-ghost:hover,
.btn-ghost:focus { background-color: #2B6BE4; color: #FFFFFF; }

/* Page banner used on the three interior pages. */

.banner {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #26314B;
}

.banner-text {
    flex: 1 1 54%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px 56px 58px 0;
}

.banner-text h1 { font-size: 60px; margin-bottom: 20px; }

.banner-text p { color: #C2CADD; max-width: 560px; }

.banner-media {
    flex: 1 1 46%;
    min-height: 380px;
    overflow: hidden;
}

.banner-media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    object-position: center 28%;
}

/* ---------- 4. SECTION SHELL ---------- */

.band { padding: 66px 0; border-bottom: 1px solid #1A2235; }

.band-dark { background-color: #070A12; }

.band h2 { margin-bottom: 26px; }

/* Overview: reading column beside a fact rail. */

.overview-flex {
    display: flex;
    align-items: flex-start;
}

.overview-copy {
    flex: 1 1 62%;
    padding-right: 56px;
    max-width: 720px;
}

.overview-rail {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    border-top: 3px solid #FFC61E;
    background-color: #111827;
    padding: 8px 26px 22px 26px;
}

.rail-item { padding: 18px 0; border-bottom: 1px solid #26314B; }
.rail-item:last-child { border-bottom: 0; }

.rail-item strong {
    display: block;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 1px;
    color: #FFC61E;
    line-height: 1.05;
}

.rail-item span { font-size: 15px; color: #A9B3CB; }

/* ---------- 5. FEATURE CARDS (index) ---------- */

.cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 24px;
}

.card {
    flex: 1 1 calc(33.333% - 16px);
    display: flex;
    flex-direction: column;
    background-color: #111827;
    border-top: 3px solid #D81E2E;
}

.card-media { height: 200px; overflow: hidden; }

.card-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: saturate(0.85);
    transition: filter 0.25s, transform 0.35s;
}

.card:hover .card-media img { filter: saturate(1.15); transform: scale(1.04); }

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 28px 24px;
}

.card-body h3 { color: #FFC61E; margin-bottom: 12px; }

.card-body p { font-size: 16px; color: #B4BDD4; flex: 1 1 auto; }

.card-body .btn { align-self: flex-start; margin: 20px 0 0 0; }

/* ---------- 6. LORE AND BIOGRAPHY ---------- */

.split { display: flex; align-items: flex-start; }

.bio { flex: 1 1 64%; padding-right: 56px; max-width: 760px; }

.bio h3 {
    color: #FFFFFF;
    margin: 38px 0 14px 0;
    padding-left: 16px;
    border-left: 4px solid #D81E2E;
}

.bio h3:first-of-type { margin-top: 0; }

.figure {
    display: flex;
    align-items: flex-start;
    background-color: #111827;
    border-left: 3px solid #2B6BE4;
    padding: 20px;
    margin: 28px 0;
}

.figure img { width: 230px; margin-right: 22px; }

.figure figcaption { flex: 1 1 auto; font-size: 15px; color: #A9B3CB; }

.figure figcaption strong {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFC61E;
    margin-bottom: 8px;
}

.quote {
    border-left: 4px solid #FFC61E;
    padding: 6px 0 6px 24px;
    margin: 30px 0;
    font-size: 22px;
    line-height: 1.45;
    color: #FFFFFF;
}

.quote cite {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-style: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7E8AA8;
    padding-top: 12px;
}

/* Fact panel */

.facts {
    flex: 1 1 32%;
    display: flex;
    flex-direction: column;
    background-color: #070A12;
    border-top: 3px solid #FFC61E;
    padding: 26px;
}

.facts img { margin-bottom: 20px; }

.facts h2 { font-size: 26px; margin-bottom: 6px; }

.fact-row {
    display: flex;
    flex-direction: column;
    padding: 13px 0;
    border-bottom: 1px solid #1E2740;
}

.fact-row:last-child { border-bottom: 0; }

.fact-row dt {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6F7C9C;
    margin-bottom: 3px;
}

.fact-row dd { font-size: 15px; line-height: 1.5; color: #DDE3F0; }

/* ---------- 7. COMIC AGES ---------- */

.eras { display: flex; flex-wrap: wrap; align-items: stretch; gap: 20px; }

.era {
    flex: 1 1 calc(25% - 15px);
    display: flex;
    flex-direction: column;
    background-color: #111827;
    border-top: 3px solid #C9A227;
}

.era-silver { border-top-color: #8E9AB4; }
.era-modern { border-top-color: #2B6BE4; }
.era-today { border-top-color: #D81E2E; }

.era-media { height: 160px; overflow: hidden; }

.era-media img { width: 100%; height: 160px; object-fit: cover; }

.era-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 24px 20px;
}

.era-body h3 { font-size: 21px; margin-bottom: 4px; }

.era-years {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #FFC61E;
    margin-bottom: 14px;
}

.era-body p { font-size: 15px; color: #B4BDD4; }

.era-points { list-style: none; margin-top: 14px; }

.era-points li {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 1px;
    color: #939FBC;
    padding: 8px 0 8px 16px;
    border-top: 1px solid #26314B;
    position: relative;
}

.era-points li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    background-color: #D81E2E;
}

/* Emblem strip */

.emblems { display: flex; flex-wrap: wrap; align-items: flex-end; margin-top: 26px; }

.emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background-color: #070A12;
    border-bottom: 3px solid #26314B;
    padding: 16px 10px 12px 10px;
    margin-right: 14px;
    margin-bottom: 14px;
    min-width: 118px;
}

.emblem img { max-height: 62px; width: auto; margin-bottom: 10px; }

.emblem figcaption {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    letter-spacing: 2px;
    color: #FFC61E;
}

/* Timeline: a vertical flex column of horizontal flex rows. */

.timeline { display: flex; flex-direction: column; }

.tl-row {
    display: flex;
    align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid #26314B;
}

.tl-year {
    flex: 0 0 130px;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: 30px;
    letter-spacing: 1px;
    color: #D81E2E;
    line-height: 1.1;
}

.tl-body { flex: 1 1 auto; }

.tl-body h3 { font-size: 18px; margin-bottom: 4px; }

.tl-body p { font-size: 16px; color: #B4BDD4; }

/* ---------- 8. MOVIES AND ANIMATIONS ---------- */

.cols { display: flex; align-items: flex-start; }

.col-live { flex: 1 1 58%; padding-right: 54px; }

.col-anim { flex: 1 1 38%; }

.entry {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-top: 1px solid #26314B;
}

.entry-media { flex: 0 0 132px; margin-right: 22px; }

.entry-media img { width: 132px; }

.entry-body { flex: 1 1 auto; }

.entry-head { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }

.year {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    background-color: #2B6BE4;
    color: #FFFFFF;
    padding: 4px 10px;
    margin-right: 12px;
}

.year-red { background-color: #D81E2E; }
.year-gold { background-color: #FFC61E; color: #0B0F1A; }

.entry-body p { font-size: 16px; color: #B4BDD4; }

.format {
    display: block;
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6F7C9C;
    padding-top: 8px;
}

.col-anim .entry-media { flex: 0 0 104px; }
.col-anim .entry-media img { width: 104px; }

/* ---------- 9. FOOTER ---------- */

.site-footer { background-color: #070A12; border-top: 3px solid #D81E2E; padding: 52px 0 34px 0; }

.footer-flex { display: flex; flex-wrap: wrap; align-items: flex-start; }

.footer-col { flex: 1 1 260px; padding-right: 40px; margin-bottom: 26px; }

.footer-col:last-child { padding-right: 0; }

.footer-col h2 { font-size: 20px; margin-bottom: 14px; color: #FFC61E; }

.footer-col p { font-size: 15px; color: #A9B3CB; }

.footer-col ul { list-style: none; }

.footer-col li { padding: 5px 0; }

.footer-col a {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    letter-spacing: 1px;
    color: #DDE3F0;
    text-decoration: none;
    border-bottom: 1px solid #D81E2E;
}

.footer-col a:hover,
.footer-col a:focus { color: #FFC61E; border-bottom-color: #FFC61E; }

.footer-note {
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #6F7C9C;
    padding-top: 14px;
}

/* ---------- 10. RESPONSIVE BEHAVIOUR ---------- */
/* Every flex row becomes a flex column. Nothing else moves.    */

@media screen and (max-width: 980px) {

    h1 { font-size: 52px; }
    h2 { font-size: 32px; }

    /* The wordmark and the navigation stop fitting on one line
       here, so the header becomes a flex column.                */
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .site-nav { margin-left: 0; width: 100%; padding-top: 8px; }

    .site-nav ul { flex-wrap: wrap; }

    .site-nav li { margin: 0 6px 4px 0; }

    .hero, .banner { flex-direction: column; }

    .hero-text, .banner-text { padding: 44px 0 34px 0; }

    .hero-media, .banner-media { min-height: 320px; }
    .hero-media img, .banner-media img { min-height: 320px; }

    .overview-flex, .split, .cols { flex-direction: column; }

    .overview-copy, .bio, .col-live {
        padding-right: 0;
        margin-bottom: 34px;
        max-width: 100%;
    }

    .overview-rail, .facts, .col-anim { width: 100%; }

    .card { flex-basis: 100%; }

    .era { flex-basis: calc(50% - 10px); }
}

@media screen and (max-width: 620px) {

    body { font-size: 16px; }

    h1 { font-size: 38px; }
    h2 { font-size: 26px; }
    h3 { font-size: 19px; }

    .banner-text h1 { font-size: 38px; }

    .wrap { padding: 0 18px; }

    .band { padding: 40px 0; }

    .figure, .entry { flex-direction: column; }

    .figure img, .entry-media, .col-anim .entry-media {
        width: 100%;
        margin: 0 0 16px 0;
    }

    .figure img, .entry-media img, .col-anim .entry-media img { width: 100%; }

    .tl-row { flex-direction: column; }

    .tl-year { margin-bottom: 6px; }

    .era { flex-basis: 100%; }
}
