/* intro */

#intro{
    position: relative;
    overflow-x: scroll;
    height: 80vh;
    padding: 5vh;
    /* border: 1px solid black; */
}

#intro img{
    position: absolute;
    top: 5vh;
    z-index: 0;
    left: 30%;
    height: 90%;
    width: auto;
}

#flex-slant{
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    width: 33%;
    padding: 4vh 0;
}

#degular-slant{
    display: flex;
    flex-direction: column;
    z-index: 1;
    text-align: right;
}

#degular-slant h1{
    font-size: 11vh;
    line-height: 10vh;
}

#flex-slant p{
    padding-right: 33%;
    text-align: right;
}

#degular-slant .display-bold{
    padding-right: 5%;
}

#degular-slant .display-semibold{
    padding-right: 9%;
}

#degular-slant .display-medium{
    padding-right: 13%;
}

#degular-slant .display-regular{
    padding-right: 17%;
}

#degular-slant .display-light{
    padding-right: 21%;
}

#degular-slant .display-thin{
    padding-right: 25%;
}

@media (max-width: 420px){
    #intro{
        height: 75vh;
        overflow: hidden;
    }

    #degular-slant h1{
        font-size: 8vh;
        line-height: 7vh;
    }
}


/* interactive */

#interactive{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#interactive p{
    text-align: center;
}

/* Load the variable font */
@font-face {
  font-family: "degular-var", sans-serif;
  src:url("https://use.typekit.net/af/494550/0000000000000000774b907b/30/l?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff2"),url("https://use.typekit.net/af/494550/0000000000000000774b907b/30/d?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("woff"),url("https://use.typekit.net/af/494550/0000000000000000774b907b/30/a?primer=7cdcb44be4a7db8877ffa5c0007b8dd865b3bbc383831fe2ea177f62257a9191&fvd=n4&v=3") format("opentype");
  font-display:auto;
  font-style:normal;
  font-weight:500;
  
}
  
:root {
	--text-weight: 700;
    --text-width: 14;
    --text-slant: 0;
  }

  
*, *:before, *:after {
    box-sizing: inherit;
  }
  
body {
    margin: 0;
  }

#interactive{
    font-family: "degular-var", sans-serif;
    text-align: center;
}
  
  .demo-text {
    font-size: 8vw;
    line-height: 7.5vw;
    font-variation-settings: "opsz" var(--text-width), "wght" var(--text-weight), "ital" var(--text-slant);
    margin: 3%;
  }

.demo-text span{
    color: var(--Blue)
}
  
.controls {
    margin: 3vh 0 0 0;
    display: flex;
    justify-content: space-between;
  }


  .slider-container{
    width: 20vw;
    margin: 2vw;
    min-width: 150px;
  }
  
  .slider-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    
  }
  
  .slider-label {
    font-size: 1.1rem;
    font-style: normal;
    font-variation-settings: "slnt" var(--text-slant);
    font-weight: 650;
    padding-right: 1rem;
  }
  
  .output {
    font-style: normal;
    font-weight: 400;
  }
  
  .slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: black;
    outline: none;
  }
  
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: white;
    border: 1px solid black;
    cursor: pointer;
  }
  
  .slider::-moz-range-thumb {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: white;
    border: 1px solid black;
    cursor: pointer;
  }
  
  .slider::-webkit-slider-thumb:active {
    cursor: -webkit-grabbing;
  }
  
  .slider::-moz-range-thumb:active {
    cursor: -moz-grabbing;
  }
  
  .button {
    background: var(--White);
    border: 1px solid black;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
    padding: .25rem .75rem;
    transition: background ease-in .2s;
  }
  
  .button:hover,
  .button:focus {
    background: var(--Blue);
    color: var(--Black);
  }

  @media (max-width: 500px){
    .controls{
        flex-direction: column;
        margin: 3vh 0 0 0;
    }

    .slider-container{
        width: 80vw;
        margin: 4vw;
        /* min-width: 150px; */
      }

    .demo-text{
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
}

/* character set */
#character-set{
    background-color: var(--Blue);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-row{
    display: flex;
    /* width: 80vw; */
    margin: 0 auto;
    justify-content: center;
    white-space: nowrap;
    /* border: 1px solid black; */
}

.character-row .alphabet{
    font-size: 13vw;
    line-height: 11vw;
    /* width: 100%; */
    /* text-align: right; */

    /* text-justify: inter-character; */
    /* border: 1px solid black; */
}


.character-row .alphabet:first-child{
    text-align: right;
    color:black;
}
.character-row .alphabet:nth-child(2){
    text-align: right;
    color:white;
}

.character-row .number{
    font-size: 17vw;
    line-height: 15vw;
    /* width: 100%; */
    /* text-align: right; */
    /* text-justify: inter-character; */
    /* border: 1px solid black; */
}

.character-row .number:first-child{
    text-align: left;
    color:white;
}
.character-row .number:nth-child(2){
    text-align: justify;
    color:black;
}

.character-row .sym-1{
    font-size: 7.5vw;
    line-height: 5vw;
    /* width: 100%; */
    /* text-align: right; */
    /* text-justify: inter-character; */
    /* border: 1px solid black; */
}

.character-row .sym-1:first-child{
    text-align: right;
    color:black;
}
.character-row .sym-1:nth-child(2){
    text-align: right;
    color:white;
}

.marquee{
    /* --gap: 1rem; */
    border: 1px solid black;
    /* height: 10vh; */
    /* white-space: nowrap; */
    padding: 10px;
    /* overflow-x: hidden; */
    position: relative;
    display: flex;
    overflow: hidden;
    /* user-select: none; */
    /* gap: var(--gap); */
}

/* .marquee div{
    display: flex;
    align-items: center;
    justify-content: center;
} */

.marquee:nth-child(2n+1){
    background-color: black;
}

.marquee img{
    /* border: 1px solid black; */
    height: 8vh;
    /* width: auto; */
    margin: 0 0.5rem;
}

@keyframes scroll {
    from {
        transform: translateX(0);
      }
    to {
        transform: translateX(-100%);}
    /* 0% {
        transform: translateX(0);
      }
    
    100% {
        transform: translateX(calc(-100%));
    } */
  }
  
.scroll {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    min-width: 100%;
    animation: scroll 15s linear infinite;
  }
  
.reverse {
    animation-direction: reverse;
  }

.pause-hover:hover .scroll{
    animation-play-state: paused;
}
  
  
/* .marquee, .marquee-reverse {
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    font-size: 5vw;
    padding: 15px;
    border: 1px solid black;
  } */

/* .marquee-reverse{
    background-color: black;
    color: white;
}

.marquee span{
    font-family: degular-variable, sans-serif;
} */

@media (max-width: 420px){
    .character-row .sym-1{
        font-size: 7vw;
        line-height: 5vw;
        white-space: nowrap;
    }
}

/* characteristics */
#characteristics{
    position: relative;
    /* min-height: 100vh; */
    /* height: 90vw; */
    overflow-x: hidden;
    overflow-y: hidden;
}

#characteristics #char-intro{
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-gap: 32px;
}

#characteristics #char-intro h1{
    text-transform: uppercase;
    color: var(--Blue);
    font-size: 4vw;
    padding-bottom: 10px;
}

#characteristics #grid-lines{
    background-color: var(--Blue);
    background-image: url("../images/type-measurements.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
    min-height: 20vw;
    min-width: 50vw;
}

#chars{
    position: relative;
    min-height: 55vw;
    margin: 0 -7vw;
}
.char-item{
    position: absolute;
    /* background-size: cover; */
    /* border: 1px solid black; */
}

.char-item .char-img {
    width: 35vw;
    height: 35vw;
    background-size: cover;
}


.char-item p{
    font-size: 1rem;
    z-index: 1;
}

#r{
    left: 0;
    top: 10%;
}
#r p{
    position:absolute;
    left: 57%;
    top:21%
}

#r{
    background-image: url("../images/SVG-2/r.svg");
	p{
		visibility: hidden;
    }
}

#r:hover{
    background-image: url("../images/SVG-2/r-hover.svg");

    p{
        visibility: visible;
    } 
}

#s{
    left: 37vw;
    top: -15%;
    width: 33vw;
    height: 33vw;
}
#s p{
    position:absolute;
    left: 38%;
    top: 65%;
}
#s{
    background-image: url("../images/SVG-2/s.svg");
    p{
        visibility: hidden;
    }

}

#s:hover{
    background-image: url("../images/SVG-2/s-hover.svg");
    
    p{
        visibility: visible;
    }
}

#chars #g{
    left: 17vw;
    top: 65%;
}
#chars #g p{
    position:absolute;
    left: 60%;
    top: 18%
}
#chars #g{
    background-image: url("../images/SVG-2/g.svg");
    p{
        visibility: hidden;
    }
}
#chars #g:hover{
    background-image: url("../images/SVG-2/g-hover.svg");
    p{
        visibility: visible;
    }
}

#z{
    left: 50vw;
    top: 47%;
    width: 30vw;
    height: 30vw;
}
#z p{
    position:absolute;
    left: 40%;
    top: 24%;
/*	visibility: hidden;*/
}
#z{
    background-image: url("../images/SVG-2/z.svg");
    p{
        visibility: hidden;
    }
}
#z:hover{
    background-image: url("../images/SVG-2/z-hover.svg");
    p{
        visibility: visible;
    }
}

#p{
    right: -10vw;
    top: 20%;
}
#p p{
    position: absolute;
    right: 30%;
    top:21%
}
#p{
    background-image: url("../images/SVG-2/p.svg");
    p{
        visibility: hidden;
    }
}
#p:hover{
    background-image: url("../images/SVG-2/p-hover.svg");
    p{
        visibility: visible;
    };
}

@media (max-width: 500px){
    #characteristics #char-intro{
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 16px
    }

    #characteristics #char-intro h1{
        font-size: 2rem;
    }

    #characteristics #grid-lines{
        height: 30vw;
        min-width: 50vw;
    }

    #chars .char-item p{
        font-size: 1rem;
        /* position: absolute; */
        background-color: white;
        border: 1px solid black;
        text-align: center;
        left: 20%;
        right: auto;
        top: 50%;
    }
}

@media (min-width: 1280px){
    #chars .char-item p{
        font-size: 1.5vw;
    }
}

/* optical size */

#opt-alt{
    background-color: var(--Black);
    color: var(--White);

    section>h1{
        font-variation-settings: "ital" 0, "opsz" 43, "wght" 700;
        font-size: 4rem;
        text-align: center;
    }
}

.item-container{
    margin: auto;
    display:flex;
    justify-content: center;
    width: 100%;
}


.item-container>div{
    width:25%;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.character-hover .display-bold{
    font-family: degular-display, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.character-hover .bold{
    font-family: degular, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.character-hover .text-bold{
    font-family: degular-text, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.character-hover span {
    -webkit-text-stroke: 2px var(--Blue);
    /* text-stroke: 2px var(--Blue); */
    color: #FFFFF000;
    font-size: 30vw;
    line-height: 27vw;
    /* width: 25%; */
    /* border: 1px solid black; */
    text-align: center;
    margin-top: -5%;
  }


  @media (max-width: 500px) {
    #opt-alt{
        h1{
            padding: 32px;
        }
    }

    .item-container{
        flex-direction: column;

        div{
            width: 100%;
        }
    }

    .op-item{
        overflow: hidden;
    }
    .character-hover span{
        font-size: 70vw;
        line-height: 70vw;
        margin-top: -5vh;
        /* vertical-align:text-top; */
    }
}
/* optical sizes */

#optical-sizes{
    padding-bottom: 2vh;
}

#optical-sizes .accordion-tab-wrapper input[type="radio"] {
    display: none;
}
  
#optical-sizes .accordion-tab-group{
    display: flex;
    flex-direction: column;
    text-align: center;
    text-transform: uppercase;
    font-size: 2rem;
}
  
#optical-sizes .accordion-tab-group label{
    font-size: 1.5rem;
}
  
#optical-sizes .accordion-tab-group .tab {
    cursor: pointer;
    padding: 15px;
    margin: 0 2px;
    width: 100%;
    display: inline-block;
  }
  
#optical-sizes .accordion-tab-group .tab:hover {
    background: var(--Blue);
    color: white;
  }

#optical-sizes #one:checked~.accordion-tab-group #one-tab,
#optical-sizes #two:checked~.accordion-tab-group #two-tab,
#optical-sizes #three:checked~.accordion-tab-group #three-tab {
    background-color: var(--Blue);
    color: black;
  }

#optical-sizes #one:checked~.op-item .display-bold,
#optical-sizes #two:checked~.op-item .bold,
#optical-sizes #three:checked~.op-item .text-bold{
      color: #ffffffec;
}

.item-container .op-item{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* padding-bottom: 50px; */

}

.item-container .op-item>div{
    display: grid;
    position: relative;
    text-align: center;
    padding: 20px 0;
    /* display: flex; */
    /* justify-content: center;
    align-items: center; */

}

.item-container .op-item div span{
    grid-column: 1;
    grid-row: 1;
}

#alternates #a:hover{
    -moz-font-feature-settings: "ss01";
    -webkit-font-feature-settings: "ss01";
    font-feature-settings: "ss01";
    color: var(--White);
}



#alternates #t:hover{
    -moz-font-feature-settings: "ss04";
    -webkit-font-feature-settings: "ss04";
    font-feature-settings: "ss04";
    color: var(--White);
}

#alternates #g:hover{
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
    color: var(--White);
}

#alternates #G:hover{
    -moz-font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    font-feature-settings: "ss03";
    color: var(--White);
}

/* weights */

#weights{
    background-color: var(--Blue);
}
#weights .accordion-tab-wrapper{
    display: grid;
    grid-template-columns: 1.8fr .8fr 1.4fr;
    grid-template-areas: 
    "tab col-1 col-2"
    "description col-1 col-2";
    grid-gap: 32px;
    align-items: center;
    /* height: 100vh; */
}

.accordion-tab-wrapper:first-child{
    display:flex;
    flex-direction: column;
}

#weights #description{
    font-size: 1.2rem;
    max-width: 30rem;
    grid-row: 2;
    grid-column:1;
    padding: 10px 0;
    grid-area: description;
}


#weights .accordion-tab-wrapper  input[type="radio"] {
    display: none;
}

#weights .accordion-tab-group{
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    grid-row: 1;
    grid-column: 1;
    grid-area: tab;
}
  
#weights .accordion-tab-group label{
    font-size: 10vw;
    line-height: 9vw;
    -webkit-text-stroke: 1px var(--Black);
    color: #FFFFF000;
}

#weights .accordion-tab-group label:first-child{
    font-family: degular, sans-serif;
    color: white;
}
#weights .accordion-tab-group label:nth-child(2){
    font-family: degular-text, sans-serif;
}
#weights .accordion-tab-group label:nth-child(3){
    font-family: degular-display, sans-serif;
}
  
#weights .accordion-tab-group .tab {
    cursor: pointer;
    width: 100%;
    display: inline-block;
  }
  
#weights .accordion-tab-group .tab:hover {
    color: white;
  }

#weights #text:checked~.accordion-tab-group #one-tab,
#weights #display:checked~.accordion-tab-group #two-tab{
    color: white;
  }

#weights .styles{
    grid-row: 1 / 3;
    align-self: center;
}

#weights .styles p{
    font-size: 4vw;
}

#weights #non-ital{
    grid-area: col-1;
}

#weights #ital{
    grid-area: col-2;
}

#weights .styles:nth-child(2){
    grid-area: col-2;
}
#weights-copy:has(input[value="text"]:checked){

    .black{
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 800;
    }
    
    .bold {
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 700;
    }
    
    .semibold {
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 600;
    }
    
    .medium {
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 500;
    }
    
    .regular {
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 400;
    }
    
    .light{
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 300;
    }
    .thin{
        font-variation-settings: "ital" 0, "opsz" 0, "wght" 200;
    }
}

#weights-copy:has(input[value="display"]:checked){

    .black{
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 800;
    }
    
    .bold {
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 700;
    }
    
    .semibold {
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 600;
    }
    
    .medium {
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 500;
    }
    
    .regular {
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 400;
    }
    
    .light{
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 300;
    }
    .thin{
        font-variation-settings: "ital" 0, "opsz" 72, "wght" 200;
    }
}

@media (max-width: 500px){
    #weights .accordion-tab-wrapper{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
        "description description"
        "tab tab"
        "col-1 col-2";
        grid-gap: 16px;
        align-items: center;
    }

    #weights .accordion-tab-group label{
        font-size: 5rem;
        line-height: 4.1rem;

        /* last-child{
            padding-bottom: 200px;
        } */
    }

    #weights #description{
        padding: 0;
    }

    #weights .styles p{
        font-size: 1.5rem;
    }
}

/* copy variations */

#copy-variations .sentence{
    white-space: nowrap;
    padding: 20px;
    border: 1px solid black;
    font-size: 3vw;
    width: auto;
    overflow: scroll;
    text-align: center;
}

#copy-variations .copy-header{
    background-color: black;
    color: white;
    margin: auto;
    padding: 10px 0;
    white-space: nowrap;
    display: flex;
    gap: .5rem;

    .scroll{
        animation: scroll 20s linear infinite;
    }

    p{
        font-size: 5vw;
    }
}

@media (max-width: 500px){
    #copy-variations .sentence{
        font-size: 1rem;
        padding: 16px;
    }
}

/* faux graphics */

#faux-graphics .container {
    display: flex;
    flex-flow: column wrap;
    height: 66vw;
    /* text-align: center; */
    text-transform: uppercase;
    width: 100vw;
  }
  
#faux-graphics .card {
    align-items: center;
    background-color: black;
    background-size: cover;
    background-position: center;
/*	border: 1px black solid;*/
}
    
.card:nth-child(1){
		height: 19%;
      	width: 26%;
/*		border: 1px black solid;*/
    }
    
.card:nth-child(2) {
      height: 46%;
       width: 25%; 
    }
    
.card:nth-child(3) {
      height: 35%;
       width: 26%; 
    }
    
.card:nth-child(4) {
      height: 40%;
      width: 32%;
    }
    
.card:nth-child(5) {
      height: 60%;
       width: 32%; 

    }
    
.card:nth-child(6) {
      height: 50%;
      width: 31%;
    }

.card:nth-child(7) {
        height: 50%;
         width: 32%; 
        
      }

.card:nth-child(8) {
      height: 100%;
      width: 11%;
    }
  }
  
.card:hover{
    transform: scale(1.1);
    transition-duration: 200ms;
}

@media (max-width: 500px){
    /* #faux-graphics .container{
        display: grid;
        /* grid-template-columns: repeat(1fr, 3); */
        /* flex-direction: column;
        flex-flow: column nowrap; */
        /* width: 100%; */
        /* height: auto; */
        /* height: 400vh; */
    /* } */

    #faux-graphics{
        display: none;
    }
  }


#faux-mobile .container{
    width: 100vw;
}

#faux-mobile .container .card img{
    display: block;
    width: 100vw;
    padding:0;
    margin:0;

}

@media (min-width: 500px){
    #faux-mobile{
        display:none;
    }
}