/* Descent page — ported styles from original WP mh-theme for 1:1 parity */

/* Override site-wide overflow:hidden so descent can scroll */
html, body { height: auto; overflow: auto; overflow-x: hidden; }

body, .pure-g [class*=pure-u] {
    font-family: "mb", "Space Mono", monospace;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-weight: 400;
}

/* Spacing utilities (mobile defaults; desktop overrides in media query) */
.p80  { padding: 40px; }
.pt80 { padding-top: 40px; }
.pb80 { padding-bottom: 40px; }
.pr80 { padding-right: 0; }
.pl80 { padding-left: 40px; }
.pt120 { padding-top: 120px; }
.pb120 { padding-bottom: 120px; }
.pl120 { padding-left: 120px; }
.pr120 { padding-right: 120px; }
.pt160 { padding-top: 80px; }
.pb160 { padding-bottom: 80px; }
.pl160 { padding-left: 80px; }
.pr160 { padding-right: 80px; }

/* Section container */
.block {
    float: left;
    width: 100%;
    background: #808080;
}

.block-inner {
    max-width: 2000px;
    margin: 0 auto;
    position: relative;
}

/* Hero */
.home_hero {
    height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    line-height: 100vh;
    text-align: center;
    z-index: 0;
    position: relative;
}

.home_hero:after {
    content: "";
    background: rgba(0,0,0,0.2);
    top: 0;
    position: fixed;
    height: 100vh;
    width: 100%;
    left: 0;
    display: block;
}

h1.site-description {
    color: #fff;
    z-index: 1;
    display: block;
    position: absolute;
    text-align: left;
    width: 100%;
    margin: 0;
    padding: 0 6%;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    line-height: 1.1;
}

h1.site-description p {
    display: block;
    line-height: 24px;
    font-size: 18px;
    margin-bottom: 24px;
}

/* Portfolio tiles */
.pf_img {
    position: relative;
}

.pf_img img,
.pf_img picture,
.pf_img picture img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 3;
}

.pf_color_overlay {
    background: #000;
    mix-blend-mode: multiply;
    opacity: 0;
    z-index: 5;
    transition: 0.5s;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.pf_img:hover .pf_color_overlay {
    opacity: 0.6;
}

.pf_img .caption {
    margin: 0 auto;
    display: block;
    position: absolute;
    text-align: left;
    color: #fff;
    width: 80%;
    z-index: 6;
    top: 8%;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    transition: 0.45s;
    line-height: 1.1;
    pointer-events: none;
}

.pf_img:hover .caption {
    opacity: 1;
}

.pf_img:hover .caption {
    pointer-events: auto;
}

.caption p {
    font-size: 12px;
    line-height: 21px;
    margin-bottom: 21px;
}

.caption a {
    color: #fff;
    text-decoration: none;
}
.caption a:hover {
    border-bottom: 1px solid;
}

/* Truncated contract address on mobile */
.addr-full { display: none; }
.addr-short { display: inline; }
@media screen and (min-width: 40em) {
    .addr-full { display: inline; }
    .addr-short { display: none; }
}

/* Desktop (≥64em / 1024px) */
@media screen and (min-width: 64em) {
    .p80   { padding: 80px; }
    .pt80  { padding-top: 80px; }
    .pb80  { padding-bottom: 80px; }
    .pr80  { padding-right: 80px; }
    .pl80  { padding-left: 80px; }
    .pt160 { padding-top: 160px; }
    .pb160 { padding-bottom: 160px; }
    .pl160 { padding-left: 160px; }
    .pr160 { padding-right: 160px; }

    h1.site-description {
        padding: 0 25%;
    }
    h1.site-description p {
        font-size: 18px;
        line-height: 24px;
    }

    .pf_img .caption {
        top: 20%;
        transform: translate(-50%, -30%);
    }
    .caption p {
        font-size: 16px;
        line-height: 21px;
        margin-bottom: 21px;
    }
}

/* Large (≥1600px) */
@media screen and (min-width: 1600px) {
    h1.site-description p {
        font-size: 24px;
        line-height: 30px;
    }
    .caption p {
        font-size: 21px;
        line-height: 24px;
        margin-bottom: 24px;
    }
}
