/* ============================================
   SCRAPBOOK / JUNK-JOURNAL REDESIGN
   manila folder on a kraft desk
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Special+Elite&display=swap');

:root {
  --desk: #7a6248;            /* dark kraft desk */
  --manila: #eddfb3;          /* manila folder */
  --manila-dark: #dcc890;     /* folder edge/shading */
  --paper: #faf5e9;           /* cream paper scraps */
  --paper-lined: #fdfaf2;
  --ink: #2b2723;
  --pencil: #6b6156;
  --pink: #cfa3a6;            /* dusty pink accent */
  --sage: #a3ac8d;            /* sage green accent */
  --tape: rgba(214, 196, 161, 0.65);
  --shadow: rgba(43, 39, 35, 0.28);
  --font-marker: 'Manrope', sans-serif;
  --font-hand: 'Manrope', sans-serif;
  --font-type: 'Special Elite', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }

body {
  background: #2c1d12 url('wood.jpg') center / cover fixed no-repeat;
  font-family: var(--font-hand);
  color: var(--ink);
  min-height: 100vh;
  padding: 26px 0 60px;
}

/* ---------- TOP BAR (home strip) ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 26px;
  background: var(--ink);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.topbar a {
  color: var(--paper);
  font-family: var(--font-type);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 1px;
}
.topbar a:hover { text-decoration: underline; }

/* ---------- MAP FOLDER (homepage, real image) ---------- */

body.home { padding-bottom: 0; overflow: hidden; }

.map-folder {
  position: relative;
  /* width and height are always locked to the folder image's proportions,
     so the items on top always line up with the folder */
  width: min(96vw, calc((100vh - 26px) * 2553 / 2070));
  aspect-ratio: 2553 / 2070;
  margin: 0 auto;
  background: url('folder.png') no-repeat center / 100% 100%;
}

/* photographed props on the folder */
.p-item {
  position: absolute;
  display: block;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.p-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(4px 6px 8px rgba(0, 0, 0, 0.35));
}
a.p-item:hover { transform: scale(1.04); z-index: 30; }

.prop-text {
  position: absolute;
  font-family: var(--font-hand);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  text-align: center;
  pointer-events: none;
}
.prop-text.light {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  white-space: nowrap;
}
.prop-label {
  position: absolute;
  font-family: var(--font-type);
  background: #e8e4d8;
  color: #1d1a17;
  text-align: center;
  letter-spacing: 1px;
  padding: 2px 0;
  border-radius: 2px;
  transform: rotate(8deg);
  pointer-events: none;
}
.about-card { container-type: inline-size; }
.about-text {
  position: absolute;
  font-family: var(--font-type);
  font-weight: 400;
  font-size: 3.1cqw;    /* scales with the About paper, not the window */
  line-height: 1.6;
  color: #6b645a;       /* softer ink so the typewriter face reads lighter */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;        /* center the text block vertically on the paper */
  flex-direction: column;
  justify-content: center;
}
.about-text .about-bio { text-align: left; }
.about-text p { margin: 0 0 0.75em; }
.about-text p:last-child { margin-bottom: 0; }
.about-text a { color: inherit; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 2px; }
.about-text a:hover { color: #000; }

.tab-label {
  position: absolute;
  left: 71%;
  top: 1.8%;
  width: 28.6%;
  height: 6.7%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}
.tab-label .pf {
  font-family: var(--font-marker);
  font-size: clamp(13px, 2vw, 24px);
  letter-spacing: 2px;
  color: var(--ink);
}
.tab-label .by {
  font-family: var(--font-hand);
  font-size: clamp(12px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--pencil);
}

@media (max-width: 900px) and (orientation: portrait) {
  /* PHONES (held upright): the desk and a close-up of the folder stay put
     in the background, and the props float on top in a column you scroll
     through. */
  html:has(> body.home) { scrollbar-gutter: auto; }
  body.home {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 26px 0 0;
    background: #2c1d12;
  }
  /* the fixed background: wood desk + the folder, upright and zoomed in so
     only its top-right part (with the tab) shows. Done as a fixed layer
     because iPhones ignore "background-attachment: fixed". */
  body.home::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      url('folder.png') no-repeat left -105vw top max(64px, 11vh) / 200vw auto,
      url('wood.jpg') center / cover no-repeat;
  }
  .map-folder {
    width: 100%;
    max-width: 520px;
    aspect-ratio: auto;
    margin: 0 auto;
    background: none;
    display: flex;
    flex-direction: column;
    padding: calc(max(38px, 11vh - 26px) + 22vw) 0 70px;  /* leave the tab showing */
  }
  .map-folder .p-item {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 auto;
  }
  a.p-item:hover { transform: none; }   /* no hover zoom on touch screens */

  /* PORTFOLIO label stays put in the folder tab, like the background */
  .map-folder .m-portfolio {
    position: fixed !important;
    left: 44vw !important;
    top: calc(max(64px, 11vh) + 4.6vw) !important;
    width: 34vw !important;
    z-index: 0;
  }
  .map-folder .m-portfolio img { filter: none; }
  /* the props, in scrapbook order, nudged left and right with a little tilt */
  .map-folder .m-about   { width: 94% !important; order: 1; }
  .map-folder .m-arts    { width: 52% !important; order: 2; margin: 14px 6% 0 auto; transform: rotate(5deg); }
  .map-folder .m-blog    { width: 52% !important; order: 3; margin: -8px auto 0 4%;  transform: rotate(-4deg); }
  .map-folder .m-written { width: 60% !important; order: 4; margin: -30px 4% 0 auto; transform: rotate(3deg); }
  .map-folder .m-visual  { width: 78% !important; order: 5; margin: 6px auto 0 2%; }
  .map-folder .m-podcast { width: 48% !important; order: 6; margin: -50px 4% 0 auto; transform: rotate(6deg); }
  .map-folder .m-depot   { width: 58% !important; order: 7; margin: -30px auto 0 6%; transform: rotate(-3deg); }

  .about-text { font-size: 3.6cqw; line-height: 1.4; }
  .about-text p { margin-bottom: 0.5em; }
}

/* ---------- OPEN FOLDER (content pages) ---------- */

.open-folder {
  position: relative;
  width: min(1400px, 96%);
  margin: 0 auto;
  aspect-ratio: 3291 / 5186;
  container-type: inline-size;
  padding: clamp(60px, 10vw, 140px) 7% clamp(50px, 9vw, 120px);
}

/* paper stretch zone: exists ONLY between the two folder halves */
.open-folder::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 70cqw;        /* overlaps the bottom of the top half */
  bottom: 70cqw;     /* overlaps the top of the bottom half */
  background: url('folder-open-middle.png') top center / 100% auto repeat-y;
  z-index: 0;
}

/* the two folder halves, painted above the stretch zone */
.open-folder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('folder-open-top.png') top center / 100% auto no-repeat,
    url('folder-open-bottom.png') bottom center / 100% auto no-repeat;
  z-index: 1;
}

/* ---------- MANILA FOLDER ---------- */

.folder-wrap {
  position: relative;
  max-width: 1180px;
  margin: 60px auto 0;
}

/* folder tab */
.folder-tab {
  position: relative;
  width: 300px;
  height: 46px;
  margin: 0 auto -8px;
  background: var(--manila);
  border: 2px solid var(--manila-dark);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  z-index: 2;
}

.folder {
  position: relative;
  background: var(--manila);
  border: 2px solid var(--manila-dark);
  border-radius: 12px;
  min-height: 640px;
  box-shadow: 6px 8px 0 var(--shadow);
  padding: 30px;
  z-index: 1;
}

/* ---------- PORTFOLIO BANNER ---------- */

.banner {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  background: var(--paper);
  padding: 12px 34px 10px;
  text-align: center;
  box-shadow: 3px 3px 0 var(--shadow);
  clip-path: polygon(1% 8%, 99% 0%, 100% 90%, 97% 100%, 2% 98%, 0% 88%);
  z-index: 5;
  white-space: nowrap;
}
.banner h1 {
  font-family: var(--font-marker);
  font-size: 34px;
  letter-spacing: 4px;
  line-height: 1;
}
.banner .byline {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--pencil);
}
.banner .underline {
  height: 5px;
  width: 70%;
  margin: 4px auto 2px;
  background: var(--pink);
  border-radius: 3px;
  transform: rotate(-1deg);
}

/* ---------- WASHI TAPE ---------- */

.tape {
  position: absolute;
  width: 84px;
  height: 24px;
  background: var(--tape);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.12);
  z-index: 6;
}

/* ---------- COLLAGE ITEMS ---------- */

.collage { position: relative; min-height: 600px; }

.c-item {
  position: absolute;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  transition: transform 0.15s ease;
}
.c-item:hover { transform: scale(1.04) rotate(0.5deg); z-index: 20; }

.c-label {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 400;
  margin-top: 6px;
  display: inline-block;
}
.c-item:hover .c-label { text-decoration: underline wavy var(--pink) 2px; }

/* spiral notebook (blog) */
.spiral-note {
  position: relative;
  width: 230px;
  height: 175px;
  background: var(--paper-lined);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 22px,
    rgba(163, 172, 141, 0.5) 22px 23px
  );
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 14px 14px 10px 30px;
  transform: rotate(-3deg);
}
.spiral-note::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 10px;
  background-image: radial-gradient(circle at 5px 8px, var(--ink) 3px, transparent 3.5px);
  background-size: 10px 24px;
  background-repeat: repeat-y;
}
.spiral-note .doodle-title {
  font-family: var(--font-marker);
  font-size: 30px;
  color: var(--ink);
  transform: rotate(-2deg);
  display: block;
  margin-top: 34px;
}
.spiral-note .doodles {
  font-size: 20px;
  letter-spacing: 12px;
  color: var(--pink);
}

/* label-maker label (depot) */
.label-maker {
  display: inline-block;
  background: #1d1a17;
  color: #f4efe2;
  font-family: var(--font-type);
  font-size: 17px;
  letter-spacing: 4px;
  padding: 8px 20px;
  border-radius: 3px;
  box-shadow: 2px 3px 0 var(--shadow), inset 0 1px 0 rgba(255,255,255,0.25);
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* folder-with-object cards (visual storytelling, podcasting, written work) */
.mini-folder {
  position: relative;
  width: 150px;
  height: 100px;
  background: var(--manila-dark);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 4px 0 var(--shadow);
}
.mini-folder::before {
  content: '';
  position: absolute;
  top: -12px; left: 8px;
  width: 60px; height: 12px;
  background: var(--manila-dark);
  border: 2px solid var(--ink);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
}
.mini-folder svg {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -58%);
  width: 74px; height: 74px;
}

/* postcard (about) */
.postcard {
  width: 300px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 16px;
  transform: rotate(2deg);
  text-align: left;
}
.postcard .pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.postcard .pc-title {
  font-family: var(--font-marker);
  font-size: 20px;
  letter-spacing: 2px;
}
.postcard .pc-photo {
  width: 64px; height: 74px;
  background: var(--pink);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: var(--font-type);
  color: var(--ink);
  text-align: center;
  padding: 2px;
}
.postcard .pc-lines p {
  font-family: var(--font-hand);
  font-size: 18px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(107, 97, 86, 0.4);
  padding-bottom: 2px;
  margin-bottom: 6px;
}

/* clipboard (written work) */
.clipboard {
  position: relative;
  width: 170px;
  height: 200px;
  background: #b08d57;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 24px 12px 12px;
  transform: rotate(3deg);
}
.clipboard::before {
  content: '';
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 20px;
  background: #857055;
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.clipboard .clip-paper {
  width: 100%; height: 100%;
  background: var(--paper);
  border: 1px solid var(--manila-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-marker);
  font-size: 22px;
  text-align: center;
  line-height: 1.3;
  padding: 8px;
}

/* round sticker (performing arts) */
.sticker-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.15;
  color: #23281c;
  padding: 12px;
  transform: rotate(-6deg);
}

/* stamp (decorative) */
.stamp {
  width: 84px;
  height: 100px;
  background: var(--paper);
  border: 2px dashed var(--pencil);
  outline: 6px solid var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--font-type);
  font-size: 11px;
  color: var(--pencil);
  text-align: center;
  transform: rotate(-5deg);
  box-shadow: 2px 3px 0 var(--shadow);
  padding: 6px;
}
.stamp .stamp-num {
  font-size: 20px;
  align-self: flex-end;
}

/* paperclip (decorative, CSS-drawn) */
.paperclip {
  position: absolute;
  width: 18px;
  height: 56px;
  border: 3px solid #8f8577;
  border-radius: 9px;
  z-index: 7;
}

/* ---------- CONTENT PAGES ---------- */

.sheet {
  position: relative;
  z-index: 2;
  /* aged paper sheet: edges stay put, lined middle extends with the content */
  border-style: solid;
  border-color: transparent;
  border-width: 30px 15px;
  border-image: url('assets/paperbkg.png') 60 30 60 30 fill / 30px 15px stretch round;
  filter: drop-shadow(2px 4px 8px rgba(43,39,35,0.35));
  width: 100%;
  margin: 10px auto;
  padding: 16px 40px;
  min-height: 400px;
}

.sheet h1 {
  font-family: var(--font-marker);
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 6px;
}
.sheet .subtitle {
  font-family: var(--font-hand);
  font-size: 17px;
  line-height: 1.5;
  color: var(--pencil);
  margin-bottom: 26px;
  border-bottom: 2px solid var(--pink);
  display: inline-block;
  padding-bottom: 2px;
}

.entry { margin-bottom: 30px; }
.entry h3 {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.entry .meta {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 13px;
  color: var(--pencil);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.entry p {
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.7;
}
.entry a { color: var(--ink); }
.entry a:hover { text-decoration-color: var(--pink); }

.paper-btn {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  box-shadow: 2px 3px 0 var(--shadow);
  transform: rotate(-1deg);
}
.paper-btn:hover { background: #45403a; }

.entry-thumb { display: block; margin: 10px 0; }
.entry-thumb img {
  display: block;
  width: min(340px, 100%);
  border: 6px solid #fff;
  outline: 1px solid var(--manila-dark);
  box-shadow: 2px 3px 6px rgba(43,39,35,0.25);
  transform: rotate(-1deg);
}
.entry-thumb:hover img { transform: rotate(0deg); }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 6px solid #fff;
  outline: 1px solid var(--manila-dark);
  background: #000;
  margin: 12px 0 4px;
  box-shadow: 2px 3px 6px rgba(43,39,35,0.25);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.thumb {
  position: relative;
  background: url('assets/card-kraft.png') center / 100% 100% no-repeat;
  aspect-ratio: 7 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 11px;
  color: var(--pencil);
  text-align: center;
  padding: 14px;
  filter: drop-shadow(2px 3px 5px rgba(43,39,35,0.3));
}
.thumb::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 30%;         /* short, chunky piece of tape */
  height: 30px;
  background: rgba(247, 151, 196, 0.75);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.placeholder-box {
  border: 1px dashed var(--pencil);
  background: rgba(237, 223, 179, 0.35);
  padding: 12px;
  font-family: var(--font-hand);
  font-size: 12px;
  color: var(--pencil);
  text-align: center;
  margin: 8px 0;
}

/* ---------- MOBILE: stack the collage ---------- */

@media (max-width: 900px) {
  .collage { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 20px 0; }
  .c-item, .postcard { position: static !important; transform: none; }
  .stamp, .paperclip, .tape { display: none; }
  .banner { position: static; transform: none; margin: -50px auto 30px; width: fit-content; }
  .sheet { padding: 8px 18px; }
}

/* pages where the paper should run all the way down the folder */
.open-folder.fill { display: flex; flex-direction: column; }
.open-folder.fill .sheet { flex: 1; margin-bottom: 0; }

/* photos mounted on the kraft cards */
.thumb { min-width: 0; min-height: 0; }
.thumb img {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.depot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 34px;
  margin-top: 22px;
}
.depot-grid > .thumb { width: 100%; }
@media (max-width: 600px) {
  .depot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* depot cards: photo on top, title + text underneath */
.depot-grid > .thumb {
  aspect-ratio: auto;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 26px 22px 24px;
}
.card-text { margin-top: 14px; text-align: left; }
.card-text h3 {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 4px;
}
.card-text p {
  font-family: var(--font-hand);
  font-size: 13.5px;
  line-height: 1.55;
  color: #3a372f;
}

/* video mounted on a kraft card */
.card-video {
  position: relative;
  width: 100%;
  aspect-ratio: 920 / 516;
  background: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.card-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-text .card-note { display: block; margin: 2px 0 0; padding: 0; text-indent: 0; font-size: 12px; color: var(--pencil); }
.card-note a { color: var(--pencil); }
