/* ===== CHARLOTTE EMIGH PORTFOLIO - STYLES =====
   Change colors here ONCE and every page updates. */
:root{
  --yellow:#FFBB0F;   /* sunshine */
  --cream:#FEFDF3;    /* paper */
  --blue:#35358C;     /* ink */
  --orange:#FF4200;   /* pop */
  --sidebar-width:250px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Inconsolata",monospace;font-size:1.15rem;line-height:1.65;color:var(--blue);background:var(--cream)}
h1,h2,h3{font-family:"Libre Baskerville",Georgia,serif;line-height:1.15;margin:0 0 .6em}
a{color:var(--orange)}
a:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
img{max-width:100%;display:block}

/* ----- SIDEBAR ----- */
.sidebar{position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-width);background:var(--blue);color:var(--cream);padding:2rem 1.5rem;overflow-y:auto}
.sidebar .logo img{width:84px;margin-bottom:1.2rem}
.sidebar .name{font-family:"Libre Baskerville",Georgia,serif;font-size:2rem;line-height:1.05;margin:0 0 3rem}
.sidebar .name a{text-decoration:none;color:var(--cream)}
.sidebar .name span{display:block;color:var(--yellow);font-weight:700}
.sidebar nav a{display:block;padding:.5rem 0 .5rem 1rem;margin-bottom:.2rem;color:var(--cream);text-decoration:none;font-size:1.3rem;border-left:5px solid transparent}
.sidebar nav a:hover{border-left-color:var(--yellow);color:var(--yellow)}
.sidebar nav a.here{border-left-color:var(--orange);background:rgba(254,253,243,.1)}

/* ----- SPLIT SCREEN ----- */
main{margin-left:var(--sidebar-width);display:grid;grid-template-columns:1fr 1fr;min-height:100vh}
.photo-side{position:sticky;top:0;height:100vh;display:flex;align-items:center;justify-content:center;padding:3rem;overflow:hidden;isolation:isolate}
/* the one bold shape: a big flat circle behind the photos */
.photo-side::before{content:"";position:absolute;width:85vh;height:85vh;max-width:120%;border-radius:50%;background:var(--shape);z-index:-1;right:-12%;bottom:-18%}
.bg-yellow{background:var(--yellow);--shape:var(--orange);--edge:var(--blue)}
.bg-orange{background:var(--orange);--shape:var(--blue);--edge:var(--yellow)}
.bg-blue{background:var(--blue);--shape:var(--orange);--edge:var(--yellow)}
.text-side{padding:4rem 3.5rem 5rem;background:var(--cream)}
.text-side>*{max-width:34rem}

/* ----- PHOTOS: clean frames with a flat colour offset ----- */
.polaroid{margin:0;position:relative}
.polaroid img{width:100%;box-shadow:12px 12px 0 var(--edge)}
.polaroid figcaption{display:none}
.big{width:min(100%,400px)}
.collage{position:relative;width:100%;max-width:440px;height:80vh}
.collage .polaroid{position:absolute;width:56%}
.collage .a{top:0;left:0}.collage .b{top:32%;right:0}.collage .c{bottom:0;left:10%}

iframe{width:100%;aspect-ratio:16/9;border:0;margin:1.2rem 0}

/* ----- TEXT ----- */
h1.title{font-size:3.4rem;color:var(--blue);margin-bottom:.4em}
h1.title::after{content:"";display:block;width:80px;height:8px;background:var(--orange);margin-top:.5rem}
h2{font-size:1.6rem}
.note{background:var(--yellow);padding:1.1rem 1.4rem;border-left:8px solid var(--orange);margin:1.8rem 0}
.note a{color:var(--blue);font-weight:700}
.btn{display:inline-block;background:var(--blue);color:var(--cream);text-decoration:none;padding:.7rem 1.6rem;font-weight:700}
.btn:hover{background:var(--orange)}
.squiggle{border:0;border-top:2px solid var(--blue);opacity:.2;margin:2.2rem 0}
.work-row{display:flex;gap:1rem;margin:1.5rem 0 2rem}
.work-row a{flex:1}
.work-row a:hover img{outline:4px solid var(--orange)}
.post{border-left:6px solid var(--orange);padding-left:1.4rem;margin-bottom:2.2rem}
.post small{color:var(--orange);font-weight:700}
.subnav a{display:inline-block;margin:0 .5rem .6rem 0;padding:.15rem .9rem;background:var(--blue);color:var(--cream);text-decoration:none}
.subnav a:hover{background:var(--orange)}
.piece img{margin:1.2rem 0;box-shadow:10px 10px 0 var(--yellow)}
.piece h3{font-size:1.05rem;color:var(--orange)}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ----- PHONES & NARROW SCREENS: nav moves to top, halves stack ----- */
@media (max-width:850px){
  .sidebar{position:static;width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;padding:1rem}
  .sidebar .logo img{width:48px;margin:0}
  .sidebar .name{margin:0;font-size:1.3rem}
  .sidebar .name span{display:inline}
  .sidebar nav{width:100%;display:flex;flex-wrap:wrap;gap:.2rem .6rem}
  .sidebar nav a{margin:0;padding:.2rem .6rem;font-size:1.05rem}
  main{margin-left:0;grid-template-columns:1fr}
  .photo-side{position:relative;height:auto;padding:2.5rem 1.8rem 3rem}
  .photo-side::before{width:90vw;height:90vw;right:-25%;bottom:-30%}
  .collage{height:auto;display:flex;flex-direction:column;gap:1.8rem;align-items:center}
  .collage .polaroid{position:static;width:75%}
  .text-side{padding:2.5rem 1.5rem 3.5rem}
  h1.title{font-size:2.5rem}
}
/* ----- VIDEOS: shrink to fit the column ----- */
video{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin:1.2rem 0;
  box-shadow:10px 10px 0 var(--yellow);
}

/* stops oversized content from stretching the split-screen columns */
.photo-side,
.text-side{min-width:0}
