/*--------------------------------------+
 | Site: Werner's Nomenclature of Color |
 +--------------------------------------*/

/* Imports
=====================================================================*/
@import url(/styles/reset.css);
@import url("https://fonts.googleapis.com/css?family=Crimson+Text:400,400i,600,600i");


/* Fonts
=====================================================================*/
body { font-family: "Crimson Text", "Times New Roman", Times, serif; }
.formula-color:after { font-family: "Times New Roman", Times, serif; }


/* Basics
=====================================================================*/
* { box-sizing: border-box; }
::selection { background: rgba(0, 0, 0, 0.3); }
::-moz-selection { background: rgba(0, 0, 0, 0.3); }

a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease-in-out;
}

a:hover { text-decoration-color: transparent; }
blockquote { font-size: 0.8rem; padding-left: 2em; }

body {
    background: #ebe4cf;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 1.33;
    padding: 67px 0 50px;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
}

cite, em { font-style: italic; line-height: 1; }
h1, h2, h3 { letter-spacing: 0.2em; text-align: center; text-transform: uppercase; }
h2 { font-size: 1.66rem; margin-bottom: 1em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5em; }
hr { background: none; border: 1px solid #000; border-width: 1px 0 3px; height: 6px; margin: 2rem auto; max-width: 240px; }
html { font-size: 1.3vw; }
img { max-width: 100%; }
li { margin-bottom: 0.5em; }
p, ul { margin-bottom: 1em; }
strong { font-weight: 600; }
ul { list-style: disc; margin-left: 1.5em; }


/* Layout
=====================================================================*/
.content { margin: 0 auto; }
.content-text { max-width: 720px; }
section { border-bottom: 1px solid #000; padding: 4vw 10%; }
section:last-child { border: 0; padding-bottom: 0; }


/* Content
=====================================================================*/

/* Buttons */
.btn { border: 1px solid #000; display: inline-block; font-size: 1rem; padding: 0.5em 2em; text-decoration: none; }
.btn:hover { opacity: 0.5; }

/* Centered */
.c { text-align: center; }

/* Changed colors */
#changes { width: 100%; }
#changes td { padding-right: 1em; width: 50%; }
#changes td:last-child { padding-left: 1em; }
#changes th { font-style: italic; text-align: center; }

/* Colors */
.color { border-bottom: 1px solid rgba(0, 0, 0, 0.3); margin: 0; }
.colors { list-style: none; margin: 0; }
.white { border: 1px solid #000; }
.unknown { border: 1px dashed #000; }

    /* Combos */
    .color-combo { list-style: none; margin: 0; white-space: nowrap; z-index: 1; }
    .color-combo .color-part { margin: 0; }
    .color-combo li { display: inline-block; margin: 0 -15px 0 0; position: relative; }
    .color-combo li:last-child { margin: 0; }
    .color-combo li:nth-child(1) { z-index: 9; }
    .color-combo li:nth-child(2) { z-index: 8; }
    .color-combo li:nth-child(3) { z-index: 7; }
    .color-combo li:nth-child(4) { z-index: 6; }
    .color-combo li:nth-child(5) { z-index: 5; }
    
    /* Description */
    .color-description {
        background: rgba(255, 255, 255, 0.3);
        border-top: 1px solid rgba(0, 0, 0, 0.3);
        display: none;
        font-size: 1rem;
        padding: 50px 50px 20px;
    }
    
    .color-description a { white-space: nowrap; }
    
    /* Headings */
    .color-heads { border: 1px solid rgba(0, 0, 0, 0.3); border-width: 1px 0; display: flex; padding: 0.5em 0 0.4em; }
    .color-heads * { font-style: normal; font-weight: 600; }
    
    /* Images */
    .color-images { display: flex; flex-wrap: wrap; justify-content: space-between; list-style: none; margin: 2rem 0 0; }
    .color-images .color-image-title { font-size: 0.833rem; font-style: italic; margin: 0; }
    .color-images img { display: block; margin-bottom: 10px; width: 100%; }
    .color-images li { width: 48%; }
    
    /* Parts */
    .color-part { border-radius: 100px; margin: 0 0.2em 0 0.1em; vertical-align: -8px; width: 34px; }
    
    /* Suite nav */
    #suite-nav { display: flex; font-style: italic; justify-content: space-between; list-style: none; margin: 2em 0; text-align: center; }
    #suite-nav a { display: block; text-decoration: none; }
    #suite-nav a:hover { opacity: 0.5; }
    #suite-nav img { display: block; width: 100%; }
    #suite-nav li { width: 9%; }
    
    /* Suites */
    .suite { margin: 3rem 0; }
    .suite h3:after { content: "."; }
    
    /* Summary */
    .color-labels { align-items: center; display: flex; flex: 0 0 auto; font-style: italic; width: 78%; }
    .color-labels div { flex: 0 0 auto; padding-right: 1em; width: 25%; }
    .color-name { text-decoration: underline; text-decoration-color: rgba(0, 0, 0, 0.3); }
    .color-parts { flex: 0 0 auto; font-style: italic; width: 13%; }
    
    .color-summary {
        align-items: center;
        border-width: 1px 0;
        cursor: pointer;
        display: flex;
        padding: 10px 0;
        transition: all 0.1s ease-in-out;
    }
    
    .color-summary:hover, .open .color-summary { background: rgba(255, 255, 255, 0.3); cursor: pointer; }
    .color-summary:hover .color-name { text-decoration: none; }
    .color-swatch { flex: 0 0 auto; padding: 0 15px; width: 9%; }
    .color-swatch img { display: block; width: 100%; }

/* Footer */
footer { margin-top: 100px; padding: 0 40px; }
footer .content { border-top: 1px solid #000; font-size: 0.58rem; padding-top: 1em; }

/* Footnotes */
.footnotes { list-style: none; margin-left: 0; }
.footnotes li { margin-bottom: 0.5em; }

/* Formulae */
.formula { flex: 0 0 auto; margin-bottom: 1em; width: 48%; }
.formula h3 { font-size: 1rem; letter-spacing: normal; margin: 0; text-align: center; text-transform: none; }
.formula li { margin: 0; white-space: nowrap; }
.formula ul { display: flex; flex: 0 0 auto; flex-direction: column; justify-content: space-between; list-style: none; margin: 0; width: 65%; }
.formula-color { align-items: center; display: flex; flex: 0 0 auto; justify-content: flex-end; text-align: center; width: 30%; }
.formula-color:after { content: "}"; display: block; font-size: 3.6rem; line-height: 1; margin-top: -0.2em; }
.formula-combo { align-items: stretch; display: flex; justify-content: space-between; }
.formula-repeated { visibility: hidden; }
.formulae { display: flex; flex-wrap: wrap; font-size: 0.8rem; justify-content: space-between; margin: 0 -2em 1.5em; }

/* Intro */
#intro {
    align-items: center;
    background: url("/images/werner/swatches.jpg") no-repeat 50% 50%;
    background-size: cover;
    border: 0;
    display: flex;
    font-size: 1.2rem;
    line-height: 1.2;
    min-height: 100vh;
    padding-top: calc(4vw - 67px);
}

#intro .content { background: #ebe4cf; border: 6px double #000; max-width: 800px; padding: 70px 40px; text-align: center; }
#intro p:last-child { margin: 0; }
#intro strong { display: block; font-size: 2.5rem; line-height: 1; }

/* Mask */
#mask {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    left: 0;
    opacity: 0;
    position: fixed;
    transition: filter 0.25s, opacity 0.25s;
    top: 0;
    visibility: hidden;
    width: 100%;
    z-index: 10;
}

.menu-open #mask { opacity: 1; visibility: visible; }

/* Muted text */
.mute { font-size: 0.7rem; opacity: 0.5; }

/* Navigation */
nav {
    background: #ebe4cf;
    border-bottom: 1px solid #000;
    font-size: 0.833rem;
    left: 0;
    letter-spacing: 0.1em;
    padding: 1em 20px;
    position: fixed;
    text-align: center;
    text-transform: uppercase;
    top: 0;
    width: 100%;
    z-index: 20;
}

nav a { text-decoration: none; }
nav li { display: inline-block; margin: 0 0.5em; }
nav ul { list-style: none; margin: 0; transform: translateY(0); transition: all 0.1s ease-in-out; }

    /* Menu */
    #menu-btn { display: none; }

/* Posters */
.poster { border: 20px solid #444; }
.poster img { display: block; width: 100%; }
.poster-closeups { display: flex; justify-content: space-between; }
.poster-closeups img { width: 100%; }
.poster-closeups p { display: block; width: 48.18%; }

/* Preface */
#preface .content { display: flex; justify-content: space-between; }
#preface h3 { font-size: 1rem; font-weight: 600; margin: 0; text-align: left; }
#preface img { display: block; margin-bottom: 15px; width: 100%; }
#preface p { margin: 0; }
#preface .panel { width: 30.9%; }

/* Sale */
.sale { border: 1px solid #000; margin-bottom: 1em; padding: 20px; }
.sale p { margin: 0; }

/* Sharing */
#share { text-align: center; }
#share a { display: inline-block; float: none; }


/* Widths
=====================================================================*/

@media screen and (max-width: 1100px) {
    html { font-size: 18px; }
    section { padding: 7vh 5%; }
}

@media screen and (max-width: 800px) {
    /* Basics */
    body { line-height: 1.5; padding-top: 0; }
    
    /* Content */
        /* Colors */
            /* Description */
            .color-description { padding: 20px; }
            
            /* Headings */
            .color-heads { display: none; }
            
            /* Images */
            .color-images { display: block; }
            .color-images li { width: auto; }
            
            /* Summary */
            .color-labels { display: block; width: 62%; }
            .color-labels div { width: auto; }
            .color-name { font-weight: 600; }
            .color-parts { width: 16%; }
            .color-summary { line-height: 1.333; }
            .color-swatch { width: 22%; }
        
        /* Navigation */
        #menu-btn { border: 0; display: block; padding: 1em 20px; }
        nav { padding: 0; }
        nav a { border-bottom: 1px solid #000; display: block; padding: 1em; }
        nav li { display: block; margin: 0; }
        
        nav ul {
            background: #ebe4cf;
            left: 0;
            position: absolute;
            transform: translateY(-200%);
            top: 52px;
            width: 100%;
            z-index: 100;
        }
        
        .menu-open { overflow: hidden; }
        .menu-open #menu-btn { background: #000; color: #ebe4cf; }
        .menu-open ul { transform: translateY(0); }
        
        /* Posters */
        .poster { border-width: 10px; }
        .poster-closeups { display: block; }
        .poster-closeups p { width: auto; }
}

@media screen and (max-width: 550px) {
    /* Basics */
    body { line-height: 1.33; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.15rem; }
    html { font-size: 18px; }
    
    /* Layout */
    section { padding: 6vw 15px; }
    
    /* Content */
        /* Colors */
            /* Parts */
            .color-part { vertical-align: -4px; width: 22px; }
            
            /* Suite nav */
            #suite-nav { flex-wrap: wrap; }
            #suite-nav li { width: 19%; }
            
            /* Summary */
            .color-summary { align-items: flex-start; }
        
        /* Footer */
        footer { margin-top: 50px; padding: 0 15px; }
        
        /* Formulae */
        .formula { width: auto; }
        .formulae { display: block; margin: 0 0 1.5em; }
        
        /* Intro */
        #intro { font-size: 1rem; }
        #intro .content { padding: 40px; }
        #intro strong { font-size: 1.5rem; }
        
        /* Preface */
        #preface .content { display: block; }
        #preface .panel { margin-bottom: 1em; width: auto; }
}