@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@900&display=swap');

:root {
    --text-color: #111;
    --bg-color: #b9b3a9;
    --bg-light: #e3ebeb;
    --text-dark: #172121;
    --text-light: #5c6c6c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'myriad pro', sans-serif;
    color: var(--text-color);
    background: var(--bg-light);
    transition: 0.3s ease-out;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    overscroll-behavior: none;
    margin: 0;
}

/* header {
    z-index: 5;
    position: sticky;
    top: 0;
    width: 100%;
    padding: .3rem 2.5rem;
    backdrop-filter: blur(10px);
} */

/* nav {
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    align-items: center;
}

nav li {
    margin: 1rem;
}

nav li a {
    color: var(--text-dark);
    mix-blend-mode: difference;
} */

#recommend {
    min-height: 0;
}

a {
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
}

li {
    list-style: none;
}

i {
    color: var(--text-dark);
    margin-right: .5rem;
}

#showcase i {
    color: var(--bg-color);
    margin-left: .5rem;
}

#showcase i:hover {
    color: var(--bg-light);
}

i::before {
    width: 5rem;
    height: auto;
}

#logo {
    width: 100%;
    height: auto;
    max-width: 10rem;
}

h2,
h3,
h4,
p {
    cursor: default;
}

h1,
.display {
    font-family: 'Kanit', 'Montserrat', sans-serif;
}

p {
    line-height: 1.5;
}

h2,
h3 {
    margin: 1rem 0;
}

strong,
h2,
h3 {
    font-weight: 700;
}

.display {
    font-size: clamp(6rem, 8vw, 12rem);
    line-height: 1;
    font-weight: 900;
    margin-bottom: 1rem;
    position: absolute;
    top: clamp(8rem, 18vh, 20em);
    left: 10vw;
    z-index: 4;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* @media (max-width: 768px) {
    .display {
        font-size: 16vw;
   }
} */
.display span {
    display: block;
}

.colorhover:hover {
    color: var(--text-light);
}

#showcase {
    height: 100vh;
    overflow: hidden;
    display: flex;
    left: 0;
    background: var(--text-color);
    color: var(--bg-color);
}

#showcase a {
    color: var(--bg-color);
}

#works,
#tools {
    margin-top: 2rem;
    gap: 1rem;
    padding: 1rem;
}

.card-border {
    width: unset;
    border: solid 1px var(--text-light);
    border-radius: .1rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.card-border:hover {
    border-radius: 1rem;
    padding: 0 0 .8rem 0;
    z-index: 2;
    /* width: 120%; */
    background-color: rgba(255, 255, 255, 0.8);
}

.card-border .imgBox {
    margin: 0;
}

.card-border h3 {
    margin: .5rem .2rem .2rem .2rem;
}

.pin-wrap h2 {
    font-family: 'Kanit', 'Montserrat', sans-serif;
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
}

.pin-wrap {
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 5.5rem 10vw;
    margin-top: 5rem
}

/* .pin-wrap & gt;
* {
    min-width: 60vw;
    padding: 0 5vw;
} */
.narrowSec {
    width: 100%;
    max-width: 80ch;
    margin: 0 auto;
}

.corner {
    position: absolute;
    bottom: 10vw;
    right: 10vw;
    width: 200px;
    line-height: 1.5;
}

#greeting::before {
    content: attr(data-content);
    font-family: 'Montserrat', 'myriad pro', sans-serif;
    position: absolute;
    top: -1.3ch;
    font-size: 2.8rem;
    opacity: 0.5;
    font-weight: 500;
}



.textBlock {
    margin: 0;
    font-size: 5em;
    font-weight: 500;
    transition-property: transform;
    transform: translate(0, -1rem);
    cursor: default;
}

.textBlock::before {
    content: attr(data-content);
    position: absolute;
    top: -60px;
    height: 4rem;
    overflow: hidden;
    color: rgba(0, 25, 25, 0.8);
    opacity: 0;
    transition: opacity 1s;
}

.textBlock::after {
    content: attr(data-content);
    position: absolute;
    top: -102px;
    left: 0;
    height: 3rem;
    color: rgba(0, 25, 25, 0.6);
    overflow: hidden;
    opacity: 0;
    transition: opacity 2s;
}


.textBlock:hover::after,
.textBlock:hover::before {
    opacity: 1;
}



/* components */
input[type=text],
input[type=email],
textarea,
select {
    border-radius: .25rem;
    padding: 1rem;
    border: none;
    outline: solid 1px var(--text-light);
    width: 100%;
    margin: .75rem 0;
}

.card {
    display: block;
    width: 35em;
    margin: .5rem;
    overflow: hidden;
}

.icons {
    margin: 1rem 0;
}

.imgBox {
    display: block;
    margin: 1rem 0;
    overflow: hidden;
}

.imgBox img {
    width: 100%;
    height: auto;
}

.design .imgBox {
    overflow: hidden;
    height: 30ch;
}

.design .imgBox img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.btn {
    display: block;
    padding: 1rem 2rem;
    background-color: var(--text-dark);
    color: var(--bg-light);
    margin: 1rem;
}

.recommend-btn {
    background-color: var(--text-dark);
}

.recommend {
    text-decoration: underline;
}

.tag {
    background-color: var(--text-dark);
    color: var(--bg-light);
    border-radius: 1rem;
    padding: .25rem .5rem;
    font-size: xx-small;
    margin: .1rem;
}

/* Layout */
.flexbox {
    display: flex;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.design .grid {
    gap: 1rem;
}

.fullHeight {
    min-height: 80vh;
    gap: 2rem;
}

.center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.column {
    flex-direction: column;
}

/* State */
.hidden {
    display: none;
    opacity: 0;
}

.collapse {
    height: 0;
}

/* color & sizing */
.bgcolor-medium {
    background-color: var(--bg-color);
}

.bgcolor-light {
    background-color: var(--bg-light);
}

.text-sm {
    font-size: x-small;
    line-height: 1.1;
    padding: .5rem;
}

@media only screen and (max-width: 900px) {
    h1 {
        margin: 1rem 0;
    }

    .flexbox {
        display: flex;
        flex-direction: column;
    }

}

@media only screen and (max-width: 600px) {

    .display {
        font-size: 16vw;
    }

    .narrowSec {
        width: 90vw;
    }

    .card,
    .card-border {
        width: 90vw;
    }

    .narrowSec .card {
        width: 100%;
        margin: 1rem 0;
    }

    .textBlock {
        transform: translate(0, 4rem)
    }

    #works,
    #tools {
        padding: 0;
    }

}

#error404main {
    min-height: 100vh;
}

/* menu hamburger toggle in header.css*/


/* animation */
nav ul,
.card-border,
.imgBox,
.colorhover,
.display {
    transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}