:root {
    --radius: 2rem;
    --radius-sm: .5rem;
    --margin-radius: .8rem;


    --accent: #dd5212;
    --accent-light: #f9a076;
    --fg-light: #FFEAAF;

    --text-sm: .8rem;
    --text-md: 1rem;
    --text-lg: 1.2rem;

    
    --padding-btn: .7rem 1rem;
    --marg-sm: .3rem;
    --marg-md: 2rem;
    --marg-lg: 4rem;

    --background: #fff9f3;
}

* {
    box-sizing: border-box;
}

/*
Just to avoid warning :
    --gh-font-heading, --gh-font-body

Idc about customization : it's a custom theme, not a public one
*/

@font-face {
    font-family: Montserrat;
    src: local("Montserrat"), url("/assets/fonts/Montserrat-Variable.ttf");
}

@font-face {
    font-family: Georgia;
    src: local('Georgia'), url('/assets/fonts/Georgia.ttf');
}
@font-face {
    font-family: CormorantGaramond;
    src: local('CormorantGaramond'), url('/assets/fonts/CormorantGaramond.ttf');
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: Montserrat, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

h2, h3, h4, h5, h6 {
    font-style: italic;
    margin: 0;
}

h2 {
  font-size: 2rem;
  text-align: center;
  font-family: 'Georgia', serif;
  color: #6b4f3b;
  margin-bottom: 1rem;
}
    
section {
    min-height: 300px;
    background-color: var(--background);
}

section .desc {
    font-size: 1.15rem;
    color: #7a6a5e;
    line-height: 1.6;
    max-width: min(700px, 90svw);
    margin: 0 auto 2.5rem;
}


/* color: #7a6a5e; */

b {
    font-weight: 550;
}

/********************************/

h3 {
    font-family: 'Georgia', serif;
    font-weight: normal;
}

.card-decoration {
    /*box-shadow: -.5px 1px 0 1px #c8af9a, -1rem 1rem 1.5rem #00000044, 0 0 5rem #00000022;
    background-image: linear-gradient(15deg, #ceb4a4, #f9f0eb);*/
    color: #4b3322;
    background-color: #f9eee2;

}

.cta {
    border: none;

    border-radius: var(--radius-sm);
    font-weight: 550;
    cursor: pointer;
    text-decoration: none;

    box-shadow: 0 0 .4rem #0004;
    background-color: #D17554;
    color: #fbf5f0;
    

    font-size: var(--text-md);
    padding: var(--padding-btn);
}


/* NAV */
nav {
    position: absolute;
    top: 3rem;
    right: 3rem;
    left: 3rem;
    z-index: 98;

    display: flex;
    gap: 1rem;
    align-items: center;
    flex-flow: row nowrap;
    justify-content: space-between;

    overflow: hidden;
    background-color: #FFF6;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    border: .1px solid #D0D0D0AB;
    box-shadow: .1rem 0 3rem #0003;

    max-height: 4rem;
    transition: max-height .4s ease-in-out;
}

nav.fixed {
    position: fixed;
    top: 1rem;
}

nav.opened {
    max-height: calc(100svh - 6rem);
}

nav #logo {
    display: flex;
    align-items: center;
    flex-flow: row nowrap;
    gap: 1rem;

    color: #223959;
    font-size: 2rem;
    font-weight: 500;
    font-family: CormorantGaramond;
}

nav #logo img {
    height: 4rem;
    border-radius: 50%;
}

nav #logo h1,
nav #logo span {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-family: 'CormorantGaramond', serif;
}

nav.home.hero #logo h1,
nav.home.hero #logo span {
    color: #FFF;
}

nav #menu-btn {
    all: unset;
    width: 4rem;
    height: 4rem;
    display: none;
    cursor: pointer;
}

nav #menu-btn img {
    height: 1.5rem;
}

nav #links {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 1rem;
    margin-right: 2rem;
}

nav a {
    text-decoration: none;
    color: #222;
    position: relative;
    white-space: nowrap;
}

nav a:hover::before {
    transform: scaleX(1);
}

nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.2rem;
    right: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: .3s transform ease-in-out;

    background-color: currentColor;
    height: .1rem;
}

@keyframes pulse {
      0% { transform: scale3d(1, 1, 1) }
      3% { transform: scale3d(1.05, 1.05, 1.05) }
      10% { transform: scale3d(1, 1, 1) }
      13% { transform: scale3d(1.05, 1.05, 1.05) }
      20% { transform: scale3d(1, 1, 1) }
    100% { transform: scale3d(1, 1, 1) }
}

nav .cta {
    color: #FFF;
    line-height: 1rem;
    padding: .5rem .7rem;
    transition: transform .2s;

    animation: pulse 6s infinite;
    border-radius: var(--radius);
}

nav #logo, nav .cta::before {
    content: unset;
}

nav .cta:hover {
    transform: scale(1.2);
}


@media (max-width: 25rem) {
    nav #logo {
        font-size: 1.5rem;
    }
}


@media (max-width: 22rem) {
    nav #logo span {
        font-size: 0;
    }
}

@media (max-width: 50rem) {
    nav {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 4rem 1fr;
    }

    nav #logo {
        grid-column: 1;
        grid-row: 1;
    }

    nav #menu-btn {
        display: block;
        grid-column: 2;
        grid-row: 1;
    }

    nav #links {
        flex-direction: column;
        align-items: start;
        padding: 1rem 2rem;
        overflow: auto;

        grid-column: 1 / span 2;
        grid-row: 2;
        height: 100%;
    }
}

nav.mobile {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 4rem 1fr;
}

nav.mobile #logo {
    grid-column: 1;
    grid-row: 1;
}

nav.mobile #menu-btn {
    display: block;
    grid-column: 2;
    grid-row: 1;
}

nav.mobile #links {
    flex-direction: column;
    align-items: start;
    padding: 1rem 2rem;
    overflow: auto;

    grid-column: 1 / span 2;
    grid-row: 2;
    height: 100%;
}



.post-tile {
    cursor: pointer;
    display: inline-flex;
    flex-direction:row;
    background: #FFF;
    margin:2rem;
    width:500px;
    max-width:calc(100svw - 4rem);
    min-height: 100px;
    aspect-ratio: 5/2;
    border-radius:1rem;
    box-shadow:0 6px 20px #0001;
    overflow:hidden;
    transition: transform 0.3s;
    gap:1.5rem;
    text-decoration: none;
}
.post-tile:hover{
    box-shadow: 0 6px 20px #0001;
    transform:translateY(-5px);
}
.post-tile img{
    flex: 1;
    width:40%;
    object-fit:cover;
    background:#DDE;
    clip-path: url('#post-tile-wave');
}
.post-tile-content {
    padding:.5rem;
    width:60%;
    display:flex;
    flex-direction:column;
}

.post-tile p.title{
    color: var(--accent);
    
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
    display: block;
    text-overflow: ellipsis;

    margin-bottom:0.8rem;
    font-size: 1.1rem;
    line-height: 1.2;
    max-height: 1.2rem;
    transition: max-height .4s;
}

.post-tile p.title:hover {
    white-space: normal;
    max-height: 100%;
}
.post-tile p.title:hover + p {
    opacity: .5;
}

.post-tile p {
    display: -webkit-box;
    font-size: .85rem;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    color: #000;
    transition: opacity .2s;
}

