@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda+SC:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Homemade+Apple&family=Poppins: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,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

*, html{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    scrollbar-width: thin;
    scrollbar-color: #fff #cb4040!important;
    cursor: url(https://three-apples.org/hk.png), auto !important;
}

::selection {
    background: #710606;
    color: #ffffff;
}
::-moz-selection {
    background: #710606;
    color: #ffffff;
}
::-webkit-selection{
    background: #710606;
    color: #ffffff;
}

body{
    background: url('assets/background.png');
    font: normal 1em/150% 'Poppins', 'Consolas', monospace;
    font-weight: 300;
    color: #8f1e1e;
    overflow-x: hidden;
}   

a:link, a:visited{
    color: #e27979;
    text-decoration: underline wavy;
    -webkit-text-decoration: underline wavy;
    -webkit-text-decoration-color: #ff0000;
    text-decoration-thickness: 1px;
    -webkit-text-decoration-thickness: 1px;
    text-decoration-color: #ff0000;
}

a:hover, a:active{
    color: #fff;
    text-decoration: underline wavy;
    -webkit-text-decoration: underline wavy;
        -webkit-text-decoration-color: #fff;
    text-decoration-thickness: 1px;
    -webkit-text-decoration-thickness: 1px;
    text-decoration-color: #fff;
    background: url('assets/background.png');
}

main{
    width: 55em;
    margin: 3vh auto;
}

h1{
    font: normal 3.3em 'Homemade Apple', cursive;
    flex: 100%;
    max-width: 100%;
    color: #710606;
    text-shadow: 1px 1px 0 #fff;
}

main h1::before{
    content: ' ';
    background: url('assets/apples.png') no-repeat;
    background-size: cover;
    display: inline-block;
    width: 3.6em;
    height: 2.8em;
    vertical-align: middle;
    margin-right: 0.5em;
}

h2{
    margin: -1.8em 0 0 0;
    font: normal 2em 'Bodoni Moda SC';
    text-align: right;
    color: #fff;
    text-shadow: 2px 2px 0 #710606;
}

container{
    background: #fff;
    padding: 1em;
    margin: 3em auto;
    display: block;
    border-radius: 30px;
    box-shadow: 5px 5px 0 #8f1e1e;
}

p{
    padding: 0.5em 0;
}

strong{
    font: normal 120%/100% 'Bodoni Moda SC', serif;
    text-decoration: underline wavy;
    text-decoration-thickness: 1.2px;
    text-decoration-color: #ff0000;
    -webkit-text-decoration-color: #ff0000;
    -webkit-text-decoration-thickness: 1.2px;
    -webkit-text-decoration: underline wavy;
}

nav{
    display: flex;
    text-align: center;
    align-items: center;
    width: 100%;
}

nav a{
    max-width: 33%;
    flex: 33%;
    font: normal 1.5em 'Homemade Apple', cursive;
    text-transform: lowercase;
    padding: 1em 0;
    text-decoration: none;
}

nav a:link, nav a:visited{
    color: #fff;
    text-decoration: none;

}

nav a span{
    text-decoration: underline wavy;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #ff9f9f;
    -webkit-text-decoration-color: #ff9f9f;
    -webkit-text-decoration-thickness: 1px;
    -webkit-text-decoration: underline wavy;
}

nav a small{
    display: block;
    font: normal 0.8em 'Bodoni Moda SC', serif;
    text-decoration: none!important;
    margin-top: -1em;
}

nav a img{
    display: block;
    height: 3.5em;
    margin:0 auto 1em;
}

nav a:hover{
    background: url('assets/light-hover.png');
    border-radius: 30px;
    width: fit-content;
    color: #8f1e1e;
    box-shadow: 5px 5px 0 #8f1e1e;
}

nav a:hover span{
    text-decoration-color: #ff0000;
}

footer{
    display: block;
    margin: 0 auto 3vh;
    text-align: center;
    font: normal 0.9em 'Roboto Mono';
    opacity: 0.8;
    letter-spacing: 1px;
    color: #fff;
}

footer a:link, footer a:visited{
    color: #ffb3b3;
    text-decoration: none;
}

footer a:hover, footer a:active{
    color: #710606;
}

/** page stylings **/

page-frame{
    display: grid;
    grid-template-columns: 20em auto;   /* ← Equal + stable spacing */
    grid-auto-rows: auto;
    gap: 2em 0;                           /* ← spacing between columns + rows */
    width: 80em;
    margin: 3em auto;
}

page-frame nav{
  max-width: 20em;
  flex: 20em;
  display: block;
grid-column: 1;
    grid-row: 1 / span 2;
}

page-frame nav a{
    display: block;
    max-width: 80% !important;
    margin-bottom: 1em;
}

page-frame nav a img{
    margin: 0 auto;
}

page-frame nav a:hover{
    display: block;
    width: auto;
}

top{
    max-width: 70em;
    flex: 70em;
     grid-column: 2;  /* top goes in the right column */
    grid-row: 1;
    display: block;
}

page{
grid-column: 2;  /* page goes under top */
    grid-row: 2;     /* second row */
  background: #ffffff;
  padding: 1em;
  border-radius: 30px;
      box-shadow: 5px 5px 0 #8f1e1e;
      min-height: 50vh;
    display: block;
    margin-top: 3em;
}

page h2{
    text-align: center;
    font: normal 2em 'Homemade Apple', cursive;
    margin: -2.5em;
    padding-bottom: 2.5em;
    text-transform: lowercase;
    color: #710606;
}

page-frame top h2{
    position: relative;
}

page-frame top h2::before{
    content: ' ';
    background: url('assets/apples-h.png') no-repeat;
    background-size: cover;
    display: inline-block;
    width: 3em;
    height: 1em;
    vertical-align: middle;
    position: absolute;
    top: -1em;
    right: 12.5%;
}

h2 span{
    background: #ffffff url('assets/light-hover.png');
    height: 0.8em;
    display: block;
    width: fit-content;
    margin: 1em auto 1em;
    line-height: 100%;
    color: #8f1e1e;
    text-shadow: 1px 1px 0 #fff;
    border-radius: 20px 0;
}

.list{
    list-style-type: none;
}

.list li{
    display: flex;
    margin: 1.5em 1em;
    align-items: center;
    padding-right: 1em;
}

.list a{
    color: inherit;
    text-decoration: none;
}

.list a:hover li{
    background: url('assets/dark-hover.png');
    color: #fff;
    border-radius: 30px;
}

.list li .image{
    background: url('assets/light-hover.png') #8f1e1e;
    border-radius: 30px;
    padding: 0.5em;
    margin-right: 1.5em;
    border: 1.5px dotted #8f1e1e;
    min-width: 20%;
}

.list li.special .image{
    background: url('assets/dark-hover.png');
}

.list li img{
    min-height: 10em;
    max-width: 10em;
    border-radius: 30px;
    vertical-align: middle;
}

.list li h3{
    text-transform: lowercase;
    font: normal 2em 'Bodoni Moda SC', serif;
}

.list li h4{
    margin-top: -1em;
    text-align: right;
    font: normal 1.3em/100% 'Homemade Apple', cursive;
    text-transform: lowercase;
    color: #b10303;
}

.list a:hover li h4{
    color: #fff;
}

.list a:hover li h3{
    text-decoration: underline wavy;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #d02a2a;
    -webkit-text-decoration-color: #d02a2a;
    -webkit-text-decoration-thickness: 1.5px;
    -webkit-text-decoration: underline wavy;
}

.list .blurb{
    width: 100%;
}

heart{
    content: url('assets/heart.png');
    height: 14px;
    width: 14px;
    display: inline;
    vertical-align: middle;
    padding-bottom: 3px;
}

.center{
    text-align: center;
}

footer a.map:link, footer a.map:visited{
    color: #fff;
    text-decoration: underline wavy;
    text-decoration-thickness: 1.2px;
    text-decoration-color: #ffb3b3;
        -webkit-text-decoration-color: #ffb3b3;
    -webkit-text-decoration-thickness: 1.2px;
    -webkit-text-decoration: underline wavy;
}

footer a.map:hover, footer a.map:active {
    color: #710606;
}

footer img:hover, footer img:active{
    background: #5d1010;
    border-radius: 20px;
    padding: 0 5px;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    main, page-frame {
        width: 95vw;
        min-width: unset;
        max-width: 100vw;
        margin: 2vh auto;
    }
    page-frame {
        display: block;
        grid-template-columns: none;
        grid-gap: 0;
        width: 98vw;
    }

    page-frame nav{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        max-width: 100%;
    }

    page-frame top h2::before{
        display: none;
    }

    page-frame top{
        width: 75%;
        display: block;
        margin: 0 auto;
    }
    empty {
        display: none;
    }
    page {
        width: 90vw;
        min-width: unset;
        right: 0;
        left: 0;
        margin: 0 auto;
        position: static;
    }

    page-frame page{
        background: #fff;
        box-shadow: none;
        display: block;
    }

    page-frame page h2{
        margin: 0;
        text-align: center;
        padding: 0;
    }

    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.3em;
    }
    .list li img {
    min-height: 5em;
    max-height: 5em;
    max-width: 100%;
    }

    .list a:hover, .list a:active{
        background: none;
        color: #8f1e1e;
    }
}

/* Mobile (max-width: 700px) */
@media (max-width: 700px) {
    main, page-frame {
        width: 99vw;
        margin: 1vh auto;
        padding: 0 0.5em;
    }

    page{
        background: none;
        box-shadow: none;;
    }

    .list{
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    page-frame {
        display: block;
        width: 100vw;
        grid-template-columns: none;
        grid-gap: 0;
    }
    page-frame nav {
        display: none;
    }

    page-frame nav a {
        flex: 1 0 40vw;
        max-width: 100vw !important;
        margin: 0 0.5em;
        font-size: 1em;
        padding: 0.5em 0;
    }
    page-frame nav a img {
        height: 2em;
        margin-bottom: 0.5em;
    }

    page-frame page{
        background: #fff;
        display: block;
    }

    page-frame page h2{
        padding: 0;
        text-align: center;
        font-size: 1.6em;
    }

    top, page {
        padding: 0.5em;
        border-radius: 15px;
        margin: 0 auto;
        position: static;
    }

    top{
        width: 75%;
    }

    page{
        width: 95vw;
    }

    container{
        margin: 0 auto;
        width: 95vw !important;
    }
    h1 {
        font-size: 1.5em;
        text-align: center;
    }
    main h1::before {
        width: 2em;
        height: 1.5em;
        margin-right: 0.2em;
    }
    
    h2, page h2 {
        margin: 0;
        padding-bottom: 0;
        text-align: center;
    }
    .list li {
        flex-direction: row;
        align-items: flex-start;
        margin: 1em 0.2em;
        padding-right: 0;
    }
    .list li .image {
        margin-right: 0;
        margin-bottom: 0.5em;
        width: 40%;
        text-align: center;
    }

    page-frame .list li .image{
        width: 45%;
    }
    .list
    .list li img {
        min-height: 4em;
        max-width: 90vw;
        width: 100%;
        border-radius: 15px;
    }
    .list li h3 {
        font-size: 1.1em;
    }
    .list li h4 {
        font-size: 1em;
        margin-top: 0.2em;
        text-align: center;
    }

    .list .blurb {
        font-size: 0.95em;
    }

    page-frame .list .blurb {
        font-size: 0.75em;
        padding-left: 1em;
    }

    nav{
        flex-direction: column;
        align-items: center;
    }

    nav a{
        display: block;
        margin: 1em 0;
        text-align: center;
        max-width: 100%!important;
        width: 100%!important;
        min-width: 100%!important;
    }
    footer {
        font-size: 0.8em;
        padding: 0.5em;
    }
}
