@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;800;900&display=swap');
@import url('https://use.typekit.net/aui0eqo.css');

@font-face {
    font-family: "Best Stories";
    src: url("fonts/best-stories.otf") format("otf");
    font-weight: 400;
    font-display: swap;
}

:root {
    --w: 680px;
    --ink: #141414;
    --paper: #fff;
    --lime: #ccf50c;
    --display: "monsterific-bb", "Arial Black", system-ui, sans-serif;
    --script: "Best Stories", "Snell Roundhand", "Brush Script MT", cursive;
    --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}

header, main, footer {
  width: 100%;
}

main {
  flex: 1;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);

    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color 400ms ease;
}

/*
body:has(a:not(.project-card):hover){ 
  background:var(--lime);
}*/

body:has(a:hover:not(.project-card):not(.button):not(.no-hover-fx)) {
    background: var(--lime);
}
body:has(.menu-toggle svg:hover){
    background: var(--lime);
}

/* no-hover-fx */
/*
body:has(.project-card:hover){
    background:white;
}*/


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

img {
    background-color:var(--lime);
    display: block;
    width: 100%;
    height: auto;
}

/* three type roles */
.script {
    font-family: var(--script);
    font-weight: 400;
    line-height: .95;
    line-height:1.15;
}

#compass.script {
    line-height: 1.2em;
    text-transform: lowercase;
}



h1,
h2,
nav a,
.menu li > a {
    font-family: var(--display);
    font-weight: 400;
    font-size: 42px;
    transition: transform 0.25s ease;
    transform-origin: center;
}

main h2{
    font-size:32px;
    text-align:center;
    line-height:0.9em;
    margin-top:24px;
}










/* ---------- HOME ---------- */
body.home {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    margin-top: -5vh;
}

body.home .script {
    font-size: clamp(44px, 15vw, 80px);
    display: inline-block;
    padding: .3em;
}

body.home p {
    max-width: 20em;
    margin-top: 1.3em;
    font-size: 17px;
}

span.highlighter-white {
    line-height: 1.7em;
    background-color: white;
    padding: 0px 8px;
}

body.home footer{
    position: fixed;
    inset: auto 0 0 0;
    padding: 26px;
}
body.home footer nav{
    display: flex;
    justify-content: center;
    gap: clamp(20px, 10vw, 80px);
}
/*
#sitewide-footer{
    background-color:white;
    background-color:var(--lime);
    padding-top:6px;
    padding-bottom:4px;
    
    display: flex;
    justify-content: center;
}*/

#sitewide-footer {
  display: flex;
  flex-direction: column;
}

#sitewide-footer #menu-footer {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 8vw, 60px);
  padding: 6px 0;
  background: none;
}
#sitewide-footer #menu-footer a{
    font-family: var(--display);
    font-size:26px;
}

#sitewide-footer #social-bar {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 10vw, 50px);
      padding-top:6px;
    padding-bottom:5px;
  background: var(--lime); /* your existing lime bar */
}

nav a {
    /*  display: inline-block;*/

}

#menu-footer a:hover, .menu-panel li h2 a:hover{
    transform: scaleX(-1);
    rotate(0.001deg);
}

a.button {
    display: block;
    background-color: var(--lime);
    
    padding: 8px 20px 9px 20px;

    font-family: var(--sans);
    font-weight: 900;
    /*
    text-transform:uppercase;
    letter-spacing:1px;
    font-style:italic;*/

    font-size:14px;
    margin: 16px auto;
    width: fit-content;
    text-align: center;
    transition: background-color 400ms ease;
    transition: transform 200ms ease-in;
}

a.button:hover {
    background-color: #00C7BC;
    transform: translateY(-3px);
}

.category-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 30px;
}

/*
.category-buttons a {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.category-buttons a:hover {
  background: var(--hover-grad);
  color: var(--lime);
}*/

a:hover {
    /*
    background: linear-gradient(90deg, #00C7BC 0%, #7C00DE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    */
}


/* ---------- FULL SCREEN MENU ---------- */
/* ============ menu toggle (the icon in the header) ============ */
.menu-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    /* fixed size — icons don't shift the layout */
    height: 30px;
}

.menu-toggle svg {
    position: absolute;
    /* both icons stack in the same spot */
    transition: opacity .2s ease;
}

.menu-toggle .icon-bars {
    opacity: 1;
}

.menu-toggle .icon-waves {
    opacity: 0;
}

.menu-toggle:hover .icon-bars {
    opacity: 0;
}

.menu-toggle:hover .icon-waves {
    opacity: 1;
}

/* ============ hidden checkbox holds open/closed state ============ */
.menu-open {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ============ the sliding panel ============ */
.menu-panel {
    position: fixed;
    inset: 0;
    background: var(--lime);
    padding: 40px;
    padding: clamp(40px, 20vw, 400px);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 100;
    display: flex;
    align-items: center;
}

.menu-open:checked ~ .menu-panel {
    transform: translateX(0);
}


/* ============ menu content (was body.menu ul etc.) ============ */
.menu-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.menu-panel ul ul{
    gap:8px;
}

.menu-panel li > h2 > a,
.menu-panel li > a {
    font-family: var(--display);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    display:inline-block;
}

.menu-panel li > ul > li a{
    font-family: var(--sans);
    margin-top: 4px;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.75;
    line-height: 1.2;
    
    letter-spacing: 1px;
}

.menu-panel li > ul > li > a:hover {
    font-weight: 900;
    letter-spacing: 2px;
    transform:none;
}

.menu-panel .script {
    position: absolute;
    right: 10vh;
    right: clamp(40px, 18vw, 400px);
    bottom: 10vh;
    font-size: clamp(40px, 10vw, 60px);
}

.menu-toggle:hover .icon-bars {
    opacity: 0;
    transform: scaleY(1.2);
}

.menu-toggle .icon-bars {
    transition: opacity .2s ease, transform .2s ease;
}

.menu-toggle .icon-bars {
    opacity: 1;
}

.menu-toggle .icon-waves {
    opacity: 0;
    transition: opacity .2s ease;
}

.menu-toggle:hover .icon-waves {
    opacity: 1;
}



















/* ---------- INTERNAL SHELL ---------- */
header {
    max-width: var(--w);
    margin: 0 auto;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction:row;
}

header .script {
    font-size: 24px;
}

main {
    max-width: var(--w);
    margin: 0 auto;
    padding: 0 24px 72px
}

/* project */
main figure {
    margin: 0 0 22px;
    background: #000;
    aspect-ratio: 4/5
}

main figure img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

h1 {
    font-size: 42px;
    text-align: center;
    margin-top: 12px;
}

h1.script {
    font-size: 46px;
}

/* swap title to the script version with one class */
time {
    display: block;
    text-align: center;
    margin: 6px 0 22px;
    font-size: 17px
}

p {
    font-size: 16px;
    max-width: 40em;
    margin: 14px auto 18px;
    text-align: center;
    text-align:left;
}
p.intro{
    text-align:center;
}

p a:not(.button){
    font-weight:900;
    text-decoration:underline dotted 3px;
    text-underline-offset:3px;
}

/*
main p {
    font-size: 16px;
}

main > p {
    max-width: 40em;
    margin: 14px auto 30px;
    text-align: center;
}*/

/* share bar — centered, after the work */
.share {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 46px
}

.share a {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* archive / tag page */
main > h1 {
    margin-top: 6px
}




/* Let grids extend past normal page width limits */

.grid {
    margin-top:24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5vw 1.1vw;
    grid-auto-flow: dense;
}

@media (min-width:720px) {
    main:has(.grid) {
        max-width: 820px;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px 20px;
        /* Vertical, horizontal */
    }
}

.grid-feature {
    grid-column: 1 / -1;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* Vertical gap within card */
    color: inherit;
    min-width: 0;
    background: white;
    padding: 8px 8px 12px 8px;
    transition: transform 200ms ease-in;
}

.project-card:hover {
    background: var(--lime);
    transform: translateY(-2px);
}

.project-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    background: #000;
    display: block;
}

.grid-feature img {
    aspect-ratio: 21/9;
}

/*
.project-card h3.script {
    font-family: var(--script);
    padding: 14px 0px 8px 0px;
}*/

.project-card h3 {
    /*
    font-family: var(--display);
    text-transform: capitalize;
    font-size: 26px;
    font-weight: 400;*/
    
    font-family:var(--sans);
    text-transform:uppercase;
    font-weight:900;
    font-size:17px;
    line-height:1.3em;
    
    margin-top: 10px;
    text-align: center;
}

.project-card p {
    font-size: 14px;
    line-height: 1.5;
}

/* randomized reveal — only hides cards WHEN JS is running */
.js-reveal .project-card {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .5s ease, transform .5s ease;
}

.js-reveal .project-card.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion:reduce) {
    .js-reveal .project-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}





/**********************************
MASONRY GALLERY LAYOUT 
**********************************/

.masonry {
    column-count: 2;
    column-gap: 16px;
}

@media (min-width:720px) {
    .masonry {
        column-count: 3;
    }
}

.masonry img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    break-inside: avoid;
    /* stops a single image splitting across columns */
}







#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--lime);
  z-index: 9999;
  transform: translateY(0);
  transition: transform .5s ease;
}
#loading-screen.loaded {
  transform: translateY(100%);
  pointer-events: none;
}






@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleUpFade {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0px);
  }
}

h1{
  animation: scaleUpFade 0.4s ease-in forwards;
  opacity: 0;
    animation-delay: 0.2s;
}

p.intro{
  animation: fadeIn 0.6s ease-in forwards;
  opacity: 0;
    animation-delay: 0.4s; 
}
home p.intro{   
  animation-delay: 0.8s; 
}





@media (max-width:720px) {

    p, main > p, p.intro, main h2{
        max-width: 30em;
        text-align: left;
        padding-left: 8px;
        padding-right: 8px;
        margin-left:auto;
        margin-right:auto;
    }
    
}

    .project-card {
        gap: 0px;
    }
}